Introduction
This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the USART in LIN modes software driver.
It also comes bundled with an example. This example is a basic example supporting Master and Slave Mode example.
It is possible to choose between the two modes.
Example's operating mode:
- Connect the RX/TX lines of LIN to the transceiver.
- Open CANVector Tools and select in LINANALYSER/ folder the project link to you configuration
–> Lin Version 1.3 or 2.0
–> Node configuration Master or Slave
- Run the source code.
- On the bus you will see
–> In case Of Master Configuration: The message with the ID 12 sent by UC3 and the response sent by CANVector Tools.
The Message with the ID 0x13 is sent with the response by the UC3.
–> In case of Slave Configuration: The message with the ID 12 sent by CANVector Tools and the response sent by UC3.
The Message with the ID 0x13 is sent with the response by the CANVector Tools.
Main Files
- lin.c: Service for LIN support mode;
- lin.h: Header file of service for LIN support mode;
- lin_mngt_example.c: LIN example application in slave mode.
- conf_lin.h: LIN example configuration file for the driver.
Compilation Information
This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR32. Other compilers may or may not work.
Device Information
All AVR32 devices with USART revision 3 and above revision of the IP can be used.
Configuration Information
This example has been tested with the following configuration:
- STK600 starter kit and AVR32UC3B device;
- CPU clock: 12 MHz;
Contact Information
For further information, visit Atmel AVR32.