Dear friends,
We now use ZStack-CC2530-2.3.0-1.4.0, and need CC2530 send and receive data through RS485. if we set the data direction as CC2530 ->RS485 and don't change it, the data send is right. and if we set the direction is RS485 ->CC2530 and don't change it, the data receive also right.
But, when CC2530 need send data to RS485, we set the disrection (CC2530 ->RS485) befor HalUARTWrite(HAL_UART_PORT_0, pData, len); and set the contrary direction (RS485 ->CC2530) when UART send out event == HAL_UART_TX_EMPTY. we do it, but the dara error is very higher.
Please help me. how to control the RS485 data transceiver direction
BestRegard.Yihua