116
CHAPTER 5 TIME-BASE TIMER
5.1
Overview of Time-base Timer
The time-base timer functions as an interval timer. The time-base timer is a 21-bit free-
run counter that counts up in synchronization with the internal count clock (at the
oscillation frequency divided by 2). The timer also has an interval timer function to
select one of four time intervals. In addition, it provides timer output for oscillation
stabilization time and an operation clock for the watchdog timer.
The time-base timer stops operating in modes in which oscillation stops.
■
Interval Timer Function
The interval timer function is used to continuously generate interrupts at specified intervals.
•
An interrupt occurs when the interval timer bits of the time-base timer counter overflow.
•
One of four time intervals can be selected by setting the interval timer bits.
Table 5.1-1 lists the time intervals for the time-base timer.
■
Clock Supply Function
The clock supply function is used to provide one of three timer outputs for the oscillation stabilization wait
time and the operation clock for the resource function.
Table 5.1-2 lists cycles of the clock that the time-base timer supplies to peripherals.
Table 5.1-1 Time Intervals for Time-base Timer
Internal count clock cycle
Time interval
2/F
CH
(0.16
µ
s)
2
13
/F
CH
(Approximately 0.66 ms)
2
15
/F
CH
(Approximately 2.6 ms)
2
18
/F
CH
(Approximately 21.0 ms)
2
22
/F
CH
(Approximately 335.5 ms)
F
CH
: Oscillation frequency
The values enclosed in parentheses are time intervals when the oscillation frequency is 12.5 MHz.
Table 5.1-2 Clock Cycles Supplied by Time-base Timer (1/2)
Clock supplied to
Clock cycle
Remarks
Oscillation
stabilization time
2
14
/F
CH
(Approximately 1.31 ms)
Selected by the oscillation stabilization time
selection bits (SYCC: WT1, WT0) of the clock
control section system clock control register.
2
17
/F
CH
(Approximately 10.49 ms)
2
18
/F
CH
(Approximately 20.97 ms)
Содержание 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: ......