Fujitsu MB90390 Series Hardware Manual page 428

Table of Contents

Advertisement

CHAPTER 20 UART2, UART3
■ UART2, UART3 as Slave Device
START
Initial setting :
Set operation mode 3
Serial data output enabled
Baud rate setting
Synch break length setting
TXE=1, TIE=0
RXE=0, RIE=1
Connection with UART and ICU
Reception prohibited
ICU interrupt enabled
Synch break interrupt enabled
Synch break detection clear
ECCR2/ECCR3 : LBD=0
Synch break interrupt prohibited
ICU data read
ICU interrupt flag clear
ICU data read
Baud rate regulation
Reception enabled
ICU interrupt flag clear
ICU interrupt prohibited
*1
Identify field reception
*1: Perform an error processing when an error has occurred.
*2: • If FRE and ORE bits are "1", write "1" to the CRE bit in the SCR to clear the error flag.
• If LBD bit in the ESCR is "1", execute UART reset.
Note: Perform the error detection in each process and give proper care.
400
Figure 20.7-19 UART2, UART3 LIN Slave Flow Chart
LBD=1
Synch break interrupt
*1
ICU interrupt
*1
ICU interrupt
LBD=1
Synch break interrupt
YES (reception)
Data field
reception?
RDRF=1
Reception interrupt
Data 1 reception
RDRF=1
Reception interrupt
Data N reception
Reception prohibited
Without error
YES
Sleep mode?
YES
Wake up reception?
YES
NO (transmission)
Transmission data 1 set
TDR2/TDR3=Data 1
Transmission interrupt
enabled
TDRE=1
Transmission interrupt
Transmission data N set
TDR2/TDR3=Data N
Transmission interrupt
prohibited
RDRF=1
Reception interrupt
*1
Data 1 reception
Data 1 read
RDRF=1
Reception interrupt
*1
Data N reception
Data N read
Reception prohibited
*2
NO
Error processing
NO
NO
NO
Wake up
transmission?
YES
Wake up code transmission

Advertisement

Table of Contents
loading

Table of Contents