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
Search found 6 matches
- Thu May 18, 2023 11:48 am
- Forum: General discussion
- Topic: Serial port part add RS485 chip DE pin control
- Replies: 6
- Views: 4709
- Thu May 18, 2023 11:05 am
- Forum: General discussion
- Topic: Serial port part add RS485 chip DE pin control
- Replies: 6
- Views: 4709
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/c48dc529e2604ca652a859fe6f075b4c.png
https://www.st.com/content/ccc/resource/technical/document/application_note/c8/5f/ef/b7/f8/a5/48/15/DM00055208.pdf/files/DM00055208.pdf/jcr:content ...
https://img-blog.csdnimg.cn/img_convert/c48dc529e2604ca652a859fe6f075b4c.png
https://www.st.com/content/ccc/resource/technical/document/application_note/c8/5f/ef/b7/f8/a5/48/15/DM00055208.pdf/files/DM00055208.pdf/jcr:content ...
- Thu May 18, 2023 10:57 am
- Forum: General discussion
- Topic: Serial port part add RS485 chip DE pin control
- Replies: 6
- Views: 4709
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 ...
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 ...
- Mon May 08, 2023 12:15 pm
- Forum: General discussion
- Topic: Serial port part add RS485 chip DE pin control
- Replies: 6
- Views: 4709
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
- Sat May 06, 2023 2:28 pm
- Forum: General discussion
- Topic: STM32F103 DTR
- Replies: 8
- Views: 5085
Re: STM32F103 DTR
hardware flow control configuration APIs are available since 2.3.0:
https://github.com/stm32duino/Arduino_Core_STM32/pull/1634
However, the library file of version 2.3 only provides CTS and RTS control, which is often used for RS232 control. For RS485, there needs to be an IO to control whether ...
- Sat May 06, 2023 2:12 pm
- Forum: Ideas & suggestions
- Topic: Serial port part add 485 chip DE pin control
- Replies: 0
- Views: 14784
Serial port part add 485 chip DE pin control
In industrial control, we often use 485,485 to receive or send depending on the 485 chip DE pin. Now whether you can add automatic flow control function in the code, to achieve 485 automatic manipulation 3 control. In the manual of STM32G070RBT6, I found these words: They provide hardware management ...