Introduction
This example demonstrates LIN Responder mode data write operation where the Instance LIN1 is set as a Responder. The transfer is initiated by PLIN-USB (from PEAK Systems -> IPEH-004052) device connected to external PC.
The LIN1 instance waits for appropriate ID. On ID match the instance responds with data.
Example Can be run in Polling, Interrupt and DMA mode, The Operating mode is configurable in SYSCONFIG.
Supported Combinations
| Parameter | Value |
| CPU + OS | r5fss0-0 nortos |
| r5fss0-0 freertos |
| Toolchain | ti-arm-clang |
| Boards | am263px-cc |
| Example folder | examples/drivers/lin/lin_responder_write |
Steps to Run the Example
- Board Configuration, Change the SW5 to ON state, and change the SW4 to 1-2.
LIN SW5 and SW4 settings
- Hardware Conectivity, Connect the PLIN-USB module to PC from USB and Serial Port to be connected as mentioned in the image below.
LIN Hardware Connectivity with PLIN USB - J10 Header.
- Software Setup, Download and Install the PLIN-View Pro from https://www.peak-system.com/PLIN-USB.485.0.html?&L=1
- Click on LIN in the menu bar and connect to PLIN-USB. Make sure the LINMode for PLIN is Commander with Baud Rate of 19200.
LIN Hardware Connectivity with PLIN USB
- After successful connection with PLIN-USB, the status of connection is shown as the bottom of the screen.
PLIN Connectivity status
- Create A new Frame with following configuration.
LIN Commander Frame
- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
See Also
LIN HLD
Sample Output
Shown below is a sample output when the application is run,
[LIN] LIN Responder Write Application Started ...
[I2C] LIN Voltage Level Shifter started ...
[LIN] Responder Write ... !!!
All tests have passed!!
Shown below is a sample output on PLIN-View Pro
Output on PLIN-View Pro