LIN implementation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LIN implementation

5,950件の閲覧回数
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 返答(返信)

5,939件の閲覧回数
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 件の賞賛
返信

5,923件の閲覧回数
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 件の賞賛
返信