LIN FSL_LIN_2.x_STACK_Package_4.5.9 : SCI Receive Data Register Full Interrupt set while transmitting

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LIN FSL_LIN_2.x_STACK_Package_4.5.9 : SCI Receive Data Register Full Interrupt set while transmitting

跳至解决方案
854 次查看
salmanshaikh
Contributor II

Hello,

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. 

标记 (2)
1 解答
603 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Salman,

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 SCI
data register. Clear RDRF by reading SCI status register 1 (SCISR1) with RDRF set and then reading SCI data
register low (SCIDRL).
0 Data not available in SCI data register
1 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.

Best regards,

Diana

在原帖中查看解决方案

2 回复数
604 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Salman,

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 SCI
data register. Clear RDRF by reading SCI status register 1 (SCISR1) with RDRF set and then reading SCI data
register low (SCIDRL).
0 Data not available in SCI data register
1 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.

Best regards,

Diana

603 次查看
salmanshaikh
Contributor II

Thanks. I missed the readback part which caused the misunderstanding. 

0 项奖励