MB95630H Series
MN702-00009-1v0-E
FUJITSU SEMICONDUCTOR LIMITED
241
CHAPTER 14 LIN-UART
14.6 Operations of LIN-UART and LIN-UART
Setting Procedure Example
14.6.8
Examples of LIN-UART LIN Communication Flow
Chart (Operating Mode 3)
This section shows examples of LIN-UART LIN communication flow charts.
■
LIN Master Device
Figure 14.6-18 LIN Master Flow Chart
YE
S
NO
NO
YE
S
YE
S
NO
YE
S
NO
S
t
a
rt
Initi
a
l
s
etting:
S
et to oper
a
ting mode
3
En
ab
le
s
eri
a
l d
a
t
a
o
u
tp
u
t,
s
et
bau
d r
a
te
S
et
s
ynch
b
re
a
k length
TXE = 1, TIE = 0, RXE = 1, RIE = 1
Me
ssa
ge?
RXE = 0
En
ab
le
s
ynch
b
re
a
k interr
u
pt
s
Tr
a
n
s
mit
s
ynch
b
re
a
k:
ECCR:LBR = 1
Tr
a
n
s
mit
S
ynch field:
TDR = 0x55
LBD = 1
S
ynch
b
re
a
k interr
u
pt
s
Receive ID field
*1
En
ab
le reception
LBD = 0
Di
sab
le
s
ynch
b
re
a
k
interr
u
pt
s
No error?
H
a
ndle
a
n error
*2
D
a
t
a
field
received?
S
et tr
a
n
s
mit d
a
t
a
1
TDR = D
a
t
a
1
En
ab
le tr
a
n
s
mit
interr
u
pt
s
W
a
ke
u
p?
(0x
8
0 reception)
Receive
s
ynch field
*1
S
et Identify field: TDR = ID
RDRF = 1
Receive interr
u
pt
RDRF = 1
Receive interr
u
pt
(Reception)
(Tr
a
n
s
mi
ss
ion)
RDRF = 1
Receive interr
u
pt
Receive d
a
t
a
1
*1
Receive d
a
t
a
N
*1
RDRF = 1
Receive interr
u
pt
S
et tr
a
n
s
mit d
a
t
a
N
TDR = D
a
t
a
N
Di
sab
le tr
a
n
s
mit
interr
u
pt
s
Receive d
a
t
a
1
*1
Re
a
d d
a
t
a
1
Receive d
a
t
a
N
*1
Re
a
d d
a
t
a
N
TDRE = 1
Tr
a
n
s
mit interr
u
pt
RDRF = 1
Receive interr
u
pt
RDRF = 1
Receive interr
u
pt
* 1: If
a
n error occ
u
r
s
, proceed to proce
ss
the error.
* 2: - If the FRE or ORE fl
a
g i
s
s
et to "1", write "1" to the
S
CR:CRE
b
it to cle
a
r the error fl
a
g.
- If the E
S
CR:LBD
b
it i
s
s
et to "1", exec
u
te the LIN-UART re
s
et.
Note: De
a
l properly with
a
ny error detected in
a
proce
ss
.