5.6
Understanding and overview of the program for LIN communication
This section explains sample programs as programs that actually perform LIN communication. In
bits pot LIN communication, the starter kit operates as a LIN slave, and bits pot white operates as the
master.
5.6.1
LIN communication configuration
The LIN communication conditions for the sample program are described in "Table 5-2 LIN
communication conditions".
Table 5-2 LIN communication conditions of the sample program
Baud rate
Peripheral clock frequency
Synch break length
Data length
Data bit format
Data byte count
Next, this section explains message IDs using LIN communication as described in "Table 5-3 LIN
message IDs in the sample program".
ID
Description
Temperature measurement command / temperature
0x00
display command
0x01
Temperature sensor information
Buzzer output command / volume value
0x02
measurement command
0x03
Volume (VR) information
0x04
LED ON change command: count up / count down
0x05
LED value
Condition
2400 / 9600 (default value) / 19200bps
16MHz
13 bits (Receive is fixed to detect 11-bits)
8 bits
LSB first
8 bytes
Table 5-3 LIN message IDs in the sample program
Setting value
Communication
direction
white → yellow
white → yellow
white ← yellow
white → yellow
white → yellow
white ← yellow
white → yellow
white → yellow
white ← yellow
92
AN07-00200-03E