MB95630H Series
MN702-00009-2v0-E
FUJITSU SEMICONDUCTOR LIMITED
93
CHAPTER 7 TIME-BASE TIMER
7.4 Operations and Setting Procedure
Example
■
Operation Examples of Time-base Timer
Figure 7.4-2 shows examples of operations under the following conditions:
1. A power-on reset is generated.
2. The device transits to the sleep mode during the operation of the interval timer function in
main clock mode, main CR clock mode or main CR PLL clock mode.
3. The device transits to the stop mode in main clock mode, main CR clock mode or main CR
PLL clock mode.
4. A request is generated to clear the counter.
If the device transits to the time-base timer mode, the same operations are executed as those
executed when the device transits to the sleep mode.
In stop mode in which the clock mode is subclock mode, sub-CR clock mode, main clock
mode, main CR clock mode or main CR PLL clock mode, the timer operation stops because it
is cleared and the main clock stops.
Figure 7.4-2 Operations of Time-base Timer
TBIF bit
TBIE bit
2) SLP bit
(STBC register)
3) STP bit
(STBC register)
Counter value
(count down)
0x000000
Oscillation
stabilization
wait time
1) Power-on reset
Interval cycle
0xFFFFFF
Sleep
Stop
Stop mode released by external interrupt
• When setting the interval time select bits in time-base timer control register (TBTC:TBC[3:0]) to "0b0011" (2
16
×
2/F
CH
)
• TBTC:TBC[3:0]
• TBTC:TCLR
• TBTC:TBIF
• TBTC:TBIE
• STBC:SLP
• STBC:STP
Oscillation
stabilization wait time
Count value detected in
TBTC:TBC[3:0]
: Time-base timer initialization bit in time-base timer control register
: Time-base timer interrupt request flag bit in time-base timer control register
: Time-base timer interrupt request enable bit in time-base timer control register
: Sleep bit in standby control register
: Stop bit in standby control register
: Interval time select bits in time-base timer control register
Cleared by
transition
to stop mode
(TBTC:TBC[3:0] = 0b0011)
4) Counter cleared
(TBTC:TCLR = 1)
Cleared in interrupt
service routine
Sleep mode released by
time-base timer interrupt
Cleared at
interval setting
Summary of Contents for 8FX
Page 2: ......
Page 4: ......
Page 8: ...iv ...
Page 18: ...xiv ...
Page 22: ...xviii ...
Page 650: ......