436
CHAPTER 20 LIN-UART
●
Function selection
Select the operation mode and data transfer mode for master-slave communication as shown in Table 20.7-
3 .
●
Communication procedure
When the master CPU transmits address data, communication starts. The AD bit in the address data is
set to 1, and the communication destination slave CPU is selected. Each slave CPU checks the address
data using a program. When the address data indicates the address assigned to a slave CPU, the slave
CPU communicates with the master CPU.
Figure 20.7-15 shows a flowchart of master-slave communication (multiprocessor mode)
Table 20.7-3 Selection of the Master-slave Communication Function
Operation mode Data Parity Synchron
ization
method
Stop bit Bit direction
Master
CPU
Slave
CPU
Address
transmission
and
reception
Mode 1
(transmit/
receive AD-
bit)
Mode 1
(transmit/
receive AD-
bit)
AD="1"
+
7- or 8-bit address
None Asynchro-
nous
1 bit or 2 bits LSB or MSB
first
Data
transmission
and
reception
AD="0"
+
7- or 8-bit data