282
CHAPTER 13 UART
Figure 13.1-2 Example of Calculating the Baud Rate
Notes:
The baud rate is specified using the clock gear register (CS1 and CS0), clock divider registers (PR2,
PR1, and PR0), or baud rate selection registers (RC2, RC1, and RC0). For the example of calculating
the baud rate, see Table 13.1-2 .
•
Asynchronous transfer mode
1/12019bps= 0.8
µ
s{4/F
CH
×
2.5(PR2=0,PR1=1,PR0=0)}
×
1(CS1=CS0=1)
×
8(asynchronous)
×
1(RC2=RC1=RC0=0)
×
13(asynchronous)
•
Synchronous transfer mode
1/1.25Mbps = 0.8
µ
s{4/F
CH
×
2.5(PR2=0,PR1=1,PR0=0)}
×
1(CS1=CS0=1)
×
1(synchronous)
×
1(RC2=RC1=RC0=0)
×
1(synchronous)
Table 13.1-3 provides an example of the baud rates selectable when an external clock is used.
Figure 13.1-3 Example of Calculating the Baud Rate (when an External Clock is Selected)
Value of baud rate
1
=
Clock gear
selected
4/F
CH
, 8/F
CH
16/
F
CH
, 64/
F
CH
Clock divider
selected
(PR2,PR1,PR0)
Divided by 1, 2,
2.5, 3, 4, or 5
Baud rate
selected
(RC2,RC1,RC0)
Divided by 1, 2,
4, 8, 16, or 32
Synchronous/
asynchronous
mode selected
(SMDE)
Divided by 1 or
13
Note: When RC2 is
1 and RC1 is 1, the
divider is 1.
Clock rate
(CR)
Divided by 1,
or 8
Table 13.1-3 Transfer Cycles and Transfer Rates Selectable for an External Clock
Asynchronous transfer mode
Synchronous transfer mode
Divider for baud
rate
Transfer cycle
Transfer rate
(bps) *
Divider for
baud rate
Transfer cycle
Transfer rate
(bps) *
CR=0
16
256/F
CH
or more
48828 or less
1
16/F
CH
or more
781 k or less
CR=1
64
1024/F
CH
or more
12207 or less
*: The minimum value of F
CH
specified for 12.5 MHz is external clock cycle 16/F
CH
= 1.28
µ
s.
F
CH
: Oscillation frequency
(min:
8
/F
CH
2)
F
CH
: O
s
cill
a
tion fre
qu
ency
V
a
l
u
e of
bau
d r
a
te
1
Extern
a
l clock inp
u
t
CR CR=0
16
64
CR=1
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......