2023-01-11 02:00 AM
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!
2023-01-11 05:05 AM
Read out and check/post UART registers' content.
JW