
AN07-00200-03E
92
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
Table 5-2 LIN communication conditions of the sample program
Condition
Setting value
Baud rate
2400 / 9600 (default value) / 19200bps
Peripheral clock frequency
16MHz
Synch break length
13 bits (Receive is fixed to detect 11-bits)
Data length
8 bits
Data bit format
LSB first
Data byte count
8 bytes
Next, this section explains message IDs using LIN communication as described in “Table 5-3 LIN
message IDs in the sample program”.
Table 5-3 LIN message IDs in the sample program
ID
Description
Communication
direction
0x00
Temperature measurement command / temperature
display command
white → yellow
0x01
Temperature sensor information
white → yellow
white ← yellow
0x02
Buzzer output command / volume value
measurement command
white → yellow
0x03
Volume (VR) information
white → yellow
white ← yellow
0x04
LED ON change command: count up / count down
white → yellow
0x05
LED value
white → yellow
white ← yellow