Bus LIN solution

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,985件の閲覧回数
arnogir
Senior Contributor II

Hello,

We must design a small industrial application with some Inputs/Outputs (Logical Input/Outputs, Analog input)

RS485 and then a LIN BUS (slave)

Which small CPU could you advice to me  to support the LIN Bus.

Constraint could be following:

- Is library is availlable for the LIN Bus on this CPU? (Like an USB / CAN library)

- Is this CPU can be flash with P&E MultiLink FX and Cyclone FX ?

Thank

1 解決策
1,743件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

For the Kinetis you can use the LIN stack, in include the kinetis E family sample code.

pastedImage_1.png

pastedImage_2.png

https://www.nxp.com/webapp/Download?colCode=FSL_LIN_2.X_DRIVER&location=null 

On the kinetis devices, there is a register where you set the 13 bit and the break detection,

also there are some samples for the LPC family

LPC54608 LIN slave basic usage sharing 

https://community.nxp.com/docs/DOC-341382 

regards

Vicente Gomez

元の投稿で解決策を見る

0 件の賞賛
6 返答(返信)
1,743件の閲覧回数
arnogir
Senior Contributor II

Hello

After read the dataSheet and test, we can generate a 11,12,13,14 bits break generation.

But on Rx Way, wa can only detect 11 or 12 bit break where I need 13 bits.

Then I don't activate it and get a byte to 0x00...

1,743件の閲覧回数
arnogir
Senior Contributor II

Hello

Thank for your back,

THen, this confirm athink of me: a simple basic UART is not sufficient to do a Lin Bus. We must have an UART with a specific functionnality to manage a Lin Bus.

The question is : is the 9S08 familly is an active familly that can be recommanded for new design?

Is some CPU in Kinetis familly can have the LIN possibility?

For my information, what is the specific function must have an UART for the LIN?

Is somewhere an explaination of the Lin Protocol (on Slave point of view)?

Thank

0 件の賞賛
1,743件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

Hi 

Any UART can be a Lin bus, just you need to set the difference versus the UART protocol.

On the following link you can check the longevity for the different S08 families

Product Longevity | NXP 

Regarding to Kinitis any kinetis uart can be Lin bus.

 For the lin protocol, you can check there is a lot of documentation on the web 

0 件の賞賛
1,743件の閲覧回数
arnogir
Senior Contributor II

Hello

I'm interesting by do it with Kinetis.

1) THen, there is no stack for this target?

2) Our customer use only low protocol and hardware for Lin. But with the Uart, how generate (for master) and manage (for slave) the Break field into Frame header (13 bit dominant + 1 Stop) ?

Edit: for point 2: Ok on Kinetis there are option "LIN break detect"

Is the alone particularity to manage the LIN?

1,744件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

For the Kinetis you can use the LIN stack, in include the kinetis E family sample code.

pastedImage_1.png

pastedImage_2.png

https://www.nxp.com/webapp/Download?colCode=FSL_LIN_2.X_DRIVER&location=null 

On the kinetis devices, there is a register where you set the 13 bit and the break detection,

also there are some samples for the LPC family

LPC54608 LIN slave basic usage sharing 

https://community.nxp.com/docs/DOC-341382 

regards

Vicente Gomez

0 件の賞賛
1,743件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

Hi 

Almost all S08 device with SCI/UART port can be used to get the LIN communication, only the MC9S08EL family has the SLIC module that is slave lin communication, 

Another good option is the MC9S08D family

For both, we have the LIN2.x and SAE J2602 Stack

I hope this will help you.

0 件の賞賛