AM263Px MCU+ SDK  26.00.00
LIN Responder LLD

Introduction

This example demonstrates LIN Responder mode data write and read operation using LLD driver 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 then waits for Reception of a Message from remote Commander.

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_lld

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
  • Create A new Commander Read Frame with following configuration.
    LIN Commander Read Frame
  • Then create new Commander Write Frame Frame with following configuration.
    PLIN Connectivity status
  • Create A new Frame with following configuration.
    LIN Commander Write 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
  • First send the Commander Read Frame. Then send Commander Write Frame

See Also

LIN HLD

Sample Output

Shown below is a sample output when the application is run,

[LIN] LIN Responder LLD Application Started ...
[I2C] LIN Volatage Level Shifter started ...
[LIN] Responder Write ... !!!
[LIN] Responder Read ... !!!
Received Message ID: 0x18
Received Message Data:
0x56
0x78
0x90
0xab
0xcd
0xef
0x12
0x34
All tests have passed!!

Shown below is a sample output on PLIN-View Pro

Output on PLIN-View Pro