122
CHAPTER 5 TIME-BASE TIMER
5.5
Operations of Time-base Timer Functions
The time-base timer functions as an interval timer or supplies clocks to some
peripherals.
■
Operations of Interval Timer Function (Time-base Timer)
To use as an interval timer, the settings shown below must be made.
Figure 5.5-1 Setting Interval Timer Function
The counter in the time-base timer continues to count up in synchronization with the internal count clock
(at the oscillation frequency divided by two) as long as the clock oscillates.
The counter counts from "0" upon being cleared (TBR = 0). When the interval timer bit overflows, the
overflow interrupt request flag bit (TBOF) is set to "1". In other words, interrupts are generated at specified
intervals, starting from when the counter is cleared.
■
Operations of Clock Supply Function
The time-base timer is often used to make oscillation stabilization wait time. The oscillation stabilization
time is measured from when the time-base timer counter is cleared to when the oscillation stabilization bit
overflows. One of three oscillation stabilization time can be selected by the oscillation stabilization time
selection bits of the system clock control register (SYCC: WT1, WT0).
The time-base timer supplies clocks to the watchdog timer and A/D converter. Clearing the time-base timer
counter affects the operation of continuous activation cycles. In addition, when the time-base timer is
cleared, the counter in the watchdog timer is also cleared.
■
Operations of Time-base Timer
Figure 5.5-2 shows the operation of the time-base timer when:
•
power-on reset occurs.
•
sleep mode is entered while the interval timer function is being performed in normal mode.
•
stop mode is entered.
•
a counter clear request is generated.
In stop mode, the time-base timer is cleared and stops operating. When returning from stop mode, the time-
base timer counts the oscillation stabilization time.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
TBTC
TBOF TBIE
TBC1 TBC0 TBR
0
1
0
1
0
: Used bit
: Set to "1"
: Set to "0"
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......