Serial port part add RS485 chip DE pin control
Serial port part add RS485 chip DE pin control
When the TXD serial port is being sent, an I/O can automatically change to high level. When the TXD port is sent, it automatically changes to low level. In this way, you can control the sending and receiving of the RS485 chip
-
- Posts: 1
- Joined: Sun May 14, 2023 7:55 am
Re: Serial port part add RS485 chip DE pin control
In RS485 communication, the TXD (transmit data) line is responsible for transmitting data from the sender to the receiver. To control the sending and receiving of data using the RS485 chip, you can utilize an I/O (input/output) line that automatically changes its level based on the activity of the TXD line.SHIPC wrote: Mon May 08, 2023 12:15 pm When the TXD serial port is being sent, an I/O can automatically change to high level. When the TXD port is sent, it automatically changes to low level. In this way, you can control the sending and receiving of the RS485 chip
want entertainment download gta 5 mobile (100% working) – android on website getmodnow
Re: Serial port part add RS485 chip DE pin control
But my use of the following functions does not work:
digitalWrite(DE,HIGH);
Serial.println("hello");
digitalWrite(DE,LOW);
I have to do this by adding the DELAY function such as:
digitalWrite(DE,HIGH);
Serial.println("hello");
delay(10);
digitalWrite(DE,LOW);
Is there any way to automatically control the RS485 mode, rather than through the delay mode
digitalWrite(DE,HIGH);
Serial.println("hello");
digitalWrite(DE,LOW);
I have to do this by adding the DELAY function such as:
digitalWrite(DE,HIGH);
Serial.println("hello");
delay(10);
digitalWrite(DE,LOW);
Is there any way to automatically control the RS485 mode, rather than through the delay mode
Re: Serial port part add RS485 chip DE pin control
IN STM32CUBEMX I found the serial port automatic flow control function:
https://img-blog.csdnimg.cn/img_convert ... 075b4c.png
https://www.st.com/content/ccc/resource ... 055208.pdf
However, it is not supported in stm32duino
https://img-blog.csdnimg.cn/img_convert ... 075b4c.png
https://www.st.com/content/ccc/resource ... 055208.pdf
However, it is not supported in stm32duino
Re: Serial port part add RS485 chip DE pin control
This function is used to control CTS and RTS
But what I need is DE control which means that when the serial port sends data, the DE pin automatically changes to high level and then to low level after sending
But what I need is DE control which means that when the serial port sends data, the DE pin automatically changes to high level and then to low level after sending
Re: Serial port part add RS485 chip DE pin control
An alternative way to connect the RS-485 transceiver is as follows, where the DE/RE pins are not used in the known way.
Source: https://www.waveshare.com/w/upload/1/1d ... ematic.pdf
Source: https://www.waveshare.com/w/upload/1/1d ... ematic.pdf
Vassilis Serasidis
https://www.serasidis.gr
https://www.serasidis.gr