RS485 - Driver Enable/Reciever Enable
Posted: Wed Jun 10, 2020 11:28 am
Hi Guys
I have now moved on in the project to get the RS485 working. Issue I am having is I would like to keep the UART based in hardware rather than software.
As the RS485 IC's use a NOT RE and a DE. I tie these two pins together and just use them as a single write enable pin (I have attached the datasheet).
Now, if I use the hardware to try and toggle the pin low to send data, the pin only drops low for a very short period of time (as we are using hardware UART).
The Modbus RS485 component has this Driver enable feature, but none of the other UART based components do. I cant use Modbus as we need to adapt to a different protocol.
I have throught of just adding a delay for the pin, but this is messy and defeats the object of using the hardware UART.
Does anyone have an idea on how I can get the pin to go low when sending data for just the right period of time using hardware UART?
Thanks
I have now moved on in the project to get the RS485 working. Issue I am having is I would like to keep the UART based in hardware rather than software.
As the RS485 IC's use a NOT RE and a DE. I tie these two pins together and just use them as a single write enable pin (I have attached the datasheet).
Now, if I use the hardware to try and toggle the pin low to send data, the pin only drops low for a very short period of time (as we are using hardware UART).
The Modbus RS485 component has this Driver enable feature, but none of the other UART based components do. I cant use Modbus as we need to adapt to a different protocol.
I have throught of just adding a delay for the pin, but this is messy and defeats the object of using the hardware UART.
Does anyone have an idea on how I can get the pin to go low when sending data for just the right period of time using hardware UART?
Thanks