Visitor II
January 11, 2023
Question
RS485 Driver Enable - DEAT and DEDT no effect
- January 11, 2023
- 1 reply
- 1227 views
Hi Guys,
STM32L475RGTX
I have a device whith USART2 (PA2 and PA3) connected to a RS485 transceivers and i would like use the PA1 pin as DE, as below:
This works correctly and the DE PIN is toggoled correctly.
From the reference manual, I have seen that I can set the DEAT and DEAD fileds in the USART_CR1 register which should raise/lower DE with a certain advance/delay.
Although I set these registers to the maximum value however I don't see any difference on the oscilloscope, I am attaching a screen:
Do you have any idea what could be the reason? I am also attaching the project files.
Thank you for the support!
