MB95630H Series
242
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-1v0-E
CHAPTER 14 LIN-UART
14.6 Operations of LIN-UART and LIN-UART
Setting Procedure Example
■
LIN Slave Device
Figure 14.6-19 LIN Slave Flow Chart
YE
S
NO
NO
YE
S
YE
S
NO
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
TXE = 1, TIE = 0, RXE = 0, RIE = 1
Connect LIN-UART with
8
/16-
b
it compo
s
ite
timer
Re
a
d
8
/16-
b
it compo
s
ite timer d
a
t
a
Adj
us
t
bau
d r
a
te
En
ab
le reception
Cle
a
r
8
/16-
b
it compo
s
ite timer interr
u
pt
fl
a
g
Di
sab
le
8
/16-
b
it compo
s
ite timer interr
u
pt
s
LBD = 1
S
ynch
b
re
a
k interr
u
pt
Receive Identify field
*1
Di
sab
le reception
En
ab
le
8
/16-
b
it compo
s
ite timer interr
u
pt
s
En
ab
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
Re
a
d
8
/16-
b
it compo
s
ite timer d
a
t
a
Cle
a
r
8
/16-
b
it compo
s
ite timer interr
u
pt fl
a
g
TII0 interr
u
pt
TII0 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
Di
sab
le reception
TDRE = 1
Tr
a
n
s
mit 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
.
Cle
a
r
s
ynch
b
re
a
k detection
E
S
CR:LBD = 0
Di
sab
le
s
ynch
b
re
a
k
interr
u
pt
s
RDRF = 1
Receive interr
u
pt
S
leep mode?
W
a
ke-
u
p
received?
W
a
ke-
u
p
tr
a
n
s
mitted?
Di
sab
le reception
Tr
a
n
s
mit w
a
ke-
u
p code
RDRF = 1
Receive interr
u
pt
Содержание MB95630H Series
Страница 2: ......
Страница 4: ......
Страница 8: ...iv ...
Страница 20: ...xvi ...
Страница 106: ...MB95630H Series 86 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 6 I O PORT 6 2 Configuration and Operations ...
Страница 282: ...MB95630H Series 262 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 14 LIN UART 14 8 Notes on Using LIN UART ...
Страница 642: ...MB95630H Series 622 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E APPENDIX A Instruction Overview A 5 Instruction Map ...
Страница 644: ......