369
CHAPTER 20 UART2, UART3
20.5.1
Reception Interrupt Generation and Flag Set Timing
The following are the reception interrupt causes: completion of reception (SSR2/SSR3:
RDRF) and occurrence of a reception error (SSR2/SSR3:PE, ORE, or FRE).
■
Reception Interrupt Generation and Flag Set Timing
The first stop bit detection in mode 0, 1, 2 (SSM = 1), 3, or the last data bit detection in mode 2 (SSM = 0)
will store the reception data into the reception data resisters (RDR2/RDR3). Each flag is set when the data
reception is completed (SSR2/SSR3: RDRF = 1) or a reception error has occurred (SSR2/SSR3: PE, ORE,
FRE = 1). Then, if the reception interrupt is enabled (SSR2/SSR3: RIE = 1) a reception interrupt will be
generated.
Note:
If a reception error has occurred, the Reception Data Register (RDR2/RDR3) contains invalid data in
each mode.
Figure 20.5-1 shows the reception operation and flag set timing.
Figure 20.5-1 Reception Operation and Flag Set Timing
Note:
The example in Figure 20.5-1 does not show all possible reception options for mode 0 and 3. Here it
is: "7p1" and "8N1" (p = "E" [even] or "O" [odd]).
Receive d
a
t
a
(mode 0/
3
)
Receive d
a
t
a
(mode 1)
Receive d
a
t
a
(mode 2)
S
T:
S
t
a
rt
b
it
S
P:
S
top
b
it AD: Mode 1 (m
u
lti proce
ss
or)
a
ddre
ss
/d
a
t
a
s
election
b
it
S
T D0 D1 D2 .... D5 D6 D7/P
S
P
S
T
S
T D0 D1 D2 .... D6 D7 AD
S
P
S
T
D0 D1 D2 .... D4 D5 D6 D7 D0
RDRF
PE
*1
, FRE
*1: The PE fl
a
g will
a
lw
a
y
s
rem
a
in "0" in mode 1 or
3
.
*2: ORE only occ
u
r
s
, if the reception d
a
t
a
i
s
not re
a
d
b
y the CPU (RDRF = 1)
a
nd
a
nother d
a
t
a
fr
a
me i
s
re
a
d.
reception interr
u
pt occ
u
r
s
ORE
*2
(if RDRF = 1)
Содержание MB90390 Series
Страница 2: ......
Страница 4: ......
Страница 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Страница 18: ...xiv ...
Страница 132: ...104 CHAPTER 5 CLOCKS ...
Страница 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Страница 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Страница 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Страница 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Страница 274: ...246 CHAPTER 15 WATCH TIMER ...
Страница 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Страница 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Страница 364: ...336 CHAPTER 19 UART0 UART1 ...
Страница 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Страница 432: ...404 CHAPTER 20 UART2 UART3 ...
Страница 482: ...454 CHAPTER 22 SERIAL I O ...
Страница 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Страница 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Страница 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Страница 722: ...694 APPENDIX ...
Страница 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 740: ......