Problems with SCI interface on LIN communication

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

Problems with SCI interface on LIN communication

1,385 Views
hpgorobr
Contributor I

Dear Professionals of NXP Community:

I am developing an embedded application on NXP S9S08RNA16 microcontroller (CodeWarrior 11.1 IDE) to processing of 2 LIN communication links (Protocol version: SAE J2602 – Baud rate: 10.417 kbps – LIN Drivers: TLIN1029DRQ1 and NCV7428D15R2G). I use the CANoe software and the VN1640A interface to generate the LIN test frames. My current problem is that I can’t read the BREAK and SYNC character of a LIN frame.

1) Which is the better way to process the reading of BREAK received character in the LIN protocol using the SCIx interfaces:

a) Using the LBKDE bit (considering the BREAK character like as “0x00” extended, based on the Reference Manual of microcontroller)? or

b) Using RIE with Framing Error (considering the BREAK character like as character “0x00” with framing error, used in the Asynchro Serial component of Processor Expert)?

2) After the reception of BREAK character, is necessary to do any special action (on the control of SCI interface) to receive normally the next character “SYNC” without losing the synchronizing?

From now on, I appreciate any help or guidance (examples, tutorial, AN, etc.).

Tags (1)
0 Kudos
Reply
2 Replies

1,363 Views
hpgorobr
Contributor I

Hello Vicente,

I appreciate your help so much. Some months ago I downloaded the NXP LIN Stack and I analyzed it. But this were not resolve the problem described above. With the configuration, that I was working (bus clock = 8 MHz and LIN baud rate = 10.417 kbps), the SCIx interfaces doesn't work. From an idea of my manager, I altered the bus clock to 20 MHz (approximately) (the maximum for this chip), and the SCIx interface begin to work (the rest of the software and the circuits remains the same). The Processor Expert enabled me to configure the MCU with the parameters of 8 MHz and 10.417 kbps, but the application was not communicate with the Master (PC/Windows with CANoe). The Reference Manual of MCU (Document Number: S9S08RN16RM - Rev. 1, 01/2014) doesn't show any argument to configure a baud rate of 10.417 kbps with the 8 MHz bus clock. Now the question is: this processor need a 20 MHz bus clock to reach a baud rate of 10.417 kbps on SCIx interfaces? Why this is not highlitgh by the Processor Expert and the Reference Manual of processor)

Sincerely,

Horacio Gorosito

0 Kudos
Reply

1,381 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

 

Please check the LIN stack on the next link

https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW-LIN2X-J2602-D

 

I hope this will help you.

 

Regards

Vicente Gomez

0 Kudos
Reply