283
CHAPTER 13 UART
Table 13.1-4 provides an example of the baud rates selectable when the 8-bit PWM timer is used.
Figure 13.1-4 shows an example of calculating the baud rate when the PWM timer is selected.
Figure 13.1-4 Example of Calculating the Baud Rate (when the PWM Timer is Selected)
The value of the baud rate is determined by the clock input specified in the clock dividing rate register
(CS1 and CS0). The clock input is determined with an external clock (PWM timer). For calculation, see
Table 13.1-3 and Table 13.1-4 .
•
When an external clock is selected (F
CH
= 12.5 MHz)
1/49kbps=1.28
µ
s (min.)
×
16 (CR=0)
•
When the PWM timer is selected (F
CH
= 12.5 MHz)
1/98kbps=0.32
µ
s (4/F
CH
)
×
1 (P1=0,P0=0)
×
1 (COMR=0)
×
2
×
16 (CR=0)
1/24414 bps=0.32
µ
s (4/F
CH
)
×
1 (P1=0,P0=0)
×
1 (COMR=0)
×
2
×
64 (CR=1)
Table 13.1-4 Transfer Cycles and Transfer Rates Selectable for the 8-bit PWM Timer
PWM timer
count clock
cycle
Asynchronous transfer mode
Synchronous transfer mode
Divider for clock
Transfer rate (bps)
Divider for
clock
Transfer rate (bps)
1t
INST
CR=0
16
97656 to 763
2
781k to 6.1k
CR=1
64
24414 to 191
16t
INST
CR=0
16
6103 to 47.8
2
48828 to 381.5
CR=1
64
1526 to 11.9
64t
INST
CR=0
16
1526 to 11.9
2
12207 to 95.4
CR=1
64
381.5 to 3
8/16-bit capture
timer/counter
CR=0
16
48828 to 381.5
2
391k to 3k
CR=1
64
12207 to 95.4
t
INST
: Instruction cycle
The system clock control register (SYCC) selects the maximum clock speed (CS1 and CS0 = 11
B
, 1 instruction cycle =
4/F
CH
) in active mode.
64/F
CH
16/F
CH
8/F
CH
4/F
CH
1(P1=0,P0=0)
16(P1=0,P0=1)
64(P1=1,P0=0)
8/16 timer (P1=1,P0=1)
=
2
CR
CR=0:16
CR=1:64
1
Value of baud rate
Clock gear
selected
Input clock select bit
(PWM)
Compare register
(COMP)
Value specified in the
compare re 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: ......