LIN implementation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIN implementation

5,984 Views
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 Kudos
Reply
2 Replies

5,973 Views
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 Kudos
Reply

5,957 Views
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 Kudos
Reply