LIN implementation

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

LIN implementation

7,992 次查看
akhilk234
Contributor I

I am trying to implement LIN driver for MPC5777C-DEVB. I'm able to transmit the complete LIN frame but I'm also receiving random data if I clear the eSCI_IFSR2_TXRDY register before updating the eSCI_LTR register. If I don't clear the eSCI_IFSR2_TXRDY register before updating the eSCI_LTR register then I'm getting complete LIN frame and in-between LIN frames I'm receiving PID field and data frames in sci data format. How can I avoid these unwanted messages in between LIN frames. These CRO snap shots I'm attaching. And all esci registers screen shot I'm attaching.

0 项奖励
回复
2 回复数

7,977 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

 

what is the code you have? And what LIN slave is connected?

Attached is very simple code showing LIN TX and RX operation.

 

BR, Petr

0 项奖励
回复

7,961 次查看
akhilk234
Contributor I

I didn't connected any slave and I am observing on CRO and Kvaser Leaf Professional LIN. I haven't updated CSE bit that's why I received 2 LIN Frames. Now I'm getting proper LIN Frame.

But I want to use MPC5777C in LIN Slave mode. How can I uses this board in LIN Slave mode? What are the registers should I update to put this board in LIN Slave mode?

0 项奖励
回复