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 of the CTS, RTS and RS485 DE signals,
RS485 Driver Enable
The driver enable feature is enabled by setting bit DEM in the USART CR3 control register This allows the user to activate the external transceiver controlthrough the DE(Driver Enable) signal.The assertion time is the time between the activation of the DE signal and the beginning of the START bit.It is programmed using the DEAT[4:0] bit fields in the UsART CR1 control reaister. The de-assertion time is the time between the end of the last stop bit, in a transmitted message, and the de-activation of the DE signal.It is programmed using the DEDT4:0bit fields in the UsART CR1 contro register. The polarity of the DE siqnal can be confiqured using the DEP bit in the USART CR3 controreqister.
In UsArt the DEAT and DEDT are expressed in sample time units (1/8 or 1/16 bit duration depending on the oversampling rate).
Serial port part add 485 chip DE pin control
Related to the the forum.
Return to “Ideas & suggestions”
Jump to
- Announcements
- New users start here
- ↳ Forum rules, FAQs and HowTo's
- ↳ Let us know a bit about you and your projects
- Arduino for STM32
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Cores
- ↳ STM32 Core
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ Ideas & suggestions
- ↳ General discussion
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ LibMaple
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ Steve's LibMaple core
- ↳ General discussion
- ↳ PR's bugs and enhancements
- ↳ Projects
- ↳ IDE's
- ↳ Off topic
- Arduino for STM8
- ↳ General discussion
- ↳ Cores
- ↳ STM8 Core
- ↳ Other
- Boards
- ↳ Custom design boards
- ↳ Maple & Maple mini etc
- ↳ STM boards (Discovery, Eval, Nucleo, ...)
- ↳ All other boards
- ↳ STM32F0 based boards
- ↳ STM32F1 based boards
- ↳ STM32F2 based boards
- ↳ STM32F3 based boards
- ↳ STM32F4 based boards
- ↳ STM32F7 based boards
- ↳ STM32G0 based boards
- ↳ STM32G4 based boards
- ↳ STM32H7 based boards
- ↳ STM32L0 based boards
- ↳ STM32L1 based boards
- ↳ STM32L4 based boards
- ↳ STM32L5 based boards
- ↳ STM32MP1 based boards
- ↳ STM32WB based boards
- Bootloaders
- ↳ STM32 HID bootloader
- ↳ USB bootloader
- ↳ STM32 SD-Bootloader
- ↳ STM32 USB CDC bootloader
- Uploaders and debuggers
- ↳ STLink
- ↳ USB to Serial adaptors
- ↳ Black Magic Probe & other
- Dead Thread Graveyard
- ↳ Dead Thread Graveyard