Fujitsu MB91460 SERIES FR60 User Manual page 676

32-bit microcontroller
Table of Contents

Advertisement

Chapter 32 USART (LIN / FIFO)
7.USART Operation
■ USART as master device
Initialization:
Set Operat. mode 3
(8N1 data format)
TIE = 0, RIE = 0
Send Message?
Send Synch Break:
write "1" to ECCR:
LBR; TIE = 1;
Send Synch Field:
TDR = 0x55
Send Sleep Mode? Y
Send Identify Field:
TDR = Id
Write to slave?
TIE = 0
RIE = 1
Read data from slave
RIE = 0
660
Figure 7-15 USART LIN master flow chart
START
N
Y
TDRE = 1
Transm. Interrupt
N
TIE = 1
Write data to slave
Y
TIE = 0
N
Send Sleep Mode
TDR = 0x80
TIE = 0
Send Wake up signal
RIE = 0
Wake up
Y
TIE = 1
from CPU?
TDR = 0x80
N
RIE = 1
0x00, 0x80,
Y
N
or 0xC0
received?
Errors occurred?
Y
Error Handler
RIE = 0
N

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60Mb91460 series

Table of Contents