Getting Started with PSoC® 4 LIN Slave Component - KBA210346

Version: **

 

Question:

What are the references and requirements to be considered while getting started with the LIN Slave Component in PSoC 4?

 

Answer:

The LIN Slave feature is supported by PSoC 3, PSoC 4, and PSoC 5LP families. The implementation of LIN in PSoC 4 is different from that in PSoC 3 and PSoC 5LP. For the PSoC 4 family, the LIN Slave Component implemented is based on SCB (Serial Communication block), while in PSoC 3 and PSoC 5LP, it is based on UDB (Universal Digital Block). More information can be found in the LIN Slave Component datasheet and CE96999 - Basic LIN Slave Implementation in PSoC® 4.

 

The LIN Slave Component in PSoC 4, supports LIN version2.2, 2.1 and 2.0. It also supports compliance with SAE J2602-1 and LIN 1.3 specifications.

 

For PSoC 4 devices only, the LIN Slave Component is certified by the C&S group GmbH based on the standard protocol and data link layer conformance tests. Contact Cypress to obtain the complete certification report. Note that certification is done for only LIN 2.2, 2.1 and 1.3 versions.

 

Configuring LIN Slave Component in PSoC 4 using PSoC Creator™:

 

Configuring LIN slave component involves following:

 

  1. Define the baud rate.
  2. Define the frames and assign frame IDs
  3. Assign respective frame types

 

The detailed steps on configuring in PSoC Creator are documented in CE96999.

 

If your project uses multiple LIN slave Components, you must enable the multiple instance support option and specify the instance number as shown in the following figure:

 

Configure_LIN.png

 

 

 

Note that the LIN Slave Component supports up to two instances in PSoC 4.

 

For more information on configuration and firmware implementation, see the code example: CE96999 - Basic LIN Slave Implementation in PSoC® 4.

 

The default version of the LIN Slave Component is -LIN 2.2/2.1. If you want to use 1.3, 2.0, or SAE J2602-1, you must enable the corresponding option in the General tab of the Component Configuration Window.

 

Evaluating LIN Slave:

 

To evaluate the LIN Slave Component, you need a LIN Master that has been configured to send the specific commands to the LIN slave. In general, a PC interface (software) and a corresponding LIN analyzer (LIN to USB data convertor) hardware is used for evaluation. You also need an external transceiver that will act as a voltage level translator. This level translator will be the interface between the LIN analyzer hardware and the PSoC 4 device.

 

To evaluate the LIN Slave Component, you need the following resources:

 

  1. The PSoC 4 Evaluation Kit according to the device selected (CY8CKIT-042 for PSoC 4200, CY8CKIT-049 for PSoC 4100, and PSoC 4200 or CY8CKIT-044 for PSoC 4M)
  2. An interface that will have a level translator for LIN. We provide CY8CKIT-017 CAN/LIN Expansion Board Kit.
  3. LIN Analyzer- Model 9011 LIN to USB Data Converter from Silicon Engines. You can also use any other third-party analyzer.

 

See CE96999 for more information on the setup and data monitoring.