I am using LIN FSL_LIN_2.x_STACK_Package_4.5.9 package to implement a master LIN node. The communication is working fine but I am intrigued to know how is RDRF bit in SCISR1 set while transmitting data.
I assume, you already read the reference manual
Receive Data Register Full Flag:
RDRF is set when the data in the receive shift register transfers to the SCIdata register. Clear RDRF by reading SCI status register 1 (SCISR1) with RDRF set and then reading SCI dataregister low (SCIDRL).0 Data not available in SCI data register1 Received data available in SCI data register
In case of master, the SCI TX and RX lines are connected to the LIN PHY.
When master sends data through TX wire, it will receive this data in RX wire and RDRF will be set. In another case when slave sends data in Lin Bus, RX wire of master will receive this data too and RDRF will be set.
I hope it helps you.
Thanks. I missed the readback part which caused the misunderstanding.
Retrieving data ...