Fujitsu MB91460 SERIES FR60 User Manual page 674

32-bit microcontroller
Table of Contents

Advertisement

Chapter 32 USART (LIN / FIFO)
7.USART Operation
658
Figure 7-12 Master-slave communication flowchart
(Master CPU)
Start
Set operation mode 1
Set SIN pin as the
serial data input pin.
Set SOT pin as the
serial data output pin.
Set 7 or 8 data bits.
Set 1 or 2 stop bits.
Set "1" in AD bit
Set TXE = RXE = 1.
Send Slave Address
Set "0" in AD bit.
Communicate with
slave CPU
Is
NO
communication
complete?
YES
Communicate
NO
with another
slave CPU?
YES
Set TXE = RXE = 0.
End
(Slave CPU)
Start
Set operation mode 1
Set SIN pin as the
serial data input pin.
Set SOT pin as the
serial data output pin.
Set 7 or 8 data bits.
Set 1 or 2 stop bits.
Set TXE = RXE = 1.
Receive Byte
NO
Is
AD bit = 1 ?
YES
Does
NO
Slave Address
match?
YES
Communicate with
master CPU
Is
NO
communication
complete?
YES

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60Mb91460 series

Table of Contents