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
Solved! Go to Solution.
Hi
For the Kinetis you can use the LIN stack, in include the kinetis E family sample code.
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
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...
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
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
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
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?
Hi
For the Kinetis you can use the LIN stack, in include the kinetis E family sample code.
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
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.