Hi , Iam trying to implement RS 485 protocol in TIVA C series controllers and Iam using TI RTOS. Iam using the UART drivers of TI RTOS for writing and reading the data. Iam also using GPIO driver API's to enable the TX in RS485 drivers.
For Transmitting data iam doing following steps -
1) Make The TXEN pin of RS485 driver high using GPIO_write API.
2) Write the data on to the serial port using UART_write()
3) Make the TXEN pin of RS485 driver low using GPIO_write API.
If I don't give proper delay after writing data to serial port , then i get nothing in RS485 output. If I give higher delay, I could see the same data coming over RS485 multiple times. I want to know when should I drive the RS485 driver TXEN low so that I get proper RS485 output.