Skip to main content
PVero.1
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:

0693W00000Y7wulQAB.png 

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.

0693W00000Y7wvUQAR.pngAlthough I set these registers to the maximum value however I don't see any difference on the oscilloscope, I am attaching a screen:

0693W00000Y7ww8QAB.pngDo you have any idea what could be the reason? I am also attaching the project files.

Thank you for the support!

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
January 11, 2023

Read out and check/post UART registers' content.

JW