beautypg.com

FUJITSU F2MCTM-16LX User Manual

Page 453

background image

437

CHAPTER 20 LIN-UART

Figure 20.7-15 Master-slave Communication Flowchart

NO

YES

YES

NO

NO

NO

YES

YES

YES

NO

(Master CPU)

(Slave CPU)

Start

Start

Set operation mode 1

Set operation mode 1

Set SINn pin as the serial
data input pin.
Set SOTn pin as the serial
data output pin.

Set SINn pin as the serial
data input pin.
Set SOTn pin as the serial
data output pin.

Set 7 or 8 data bits.
Set 1 or 2 stop bits.

Set 7 or 8 data bits.
Set 1 or 2 stop bits.

Set "1" in AD bit.

Transfer & reception

operation enabled

Transfer & reception

operation enabled

Send address to slave.

Receive byte

AD bit = 1

Set "0" in AD bit.

Communicate with

slave CPU

Is communication

complete?

Communicate

with another slave

CPU?

Transfer & reception

operation disabled

End

Slave address

match?

Communicate with mas-

ter CPU

Communication

complete?