MB95630H Series
MN702-00009-1v0-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. When a power-on reset is generated
2. When the device enters 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. When the device enters the stop mode during the main clock mode, main CR clock mode or
main CR PLL clock mode
4. When a request is generated to clear the counter
If the device transits to the time-base time 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
b
it
TBIE
b
it
2)
S
LP
b
it
(
S
TBC regi
s
ter)
3
)
S
TP
b
it
(
S
TBC regi
s
ter)
Co
u
nter v
a
l
u
e
(co
u
nt down)
0x000000
O
s
cill
a
tion
s
t
ab
iliz
a
tion
w
a
it time
1) Power-on re
s
et
Interv
a
l cycle
0xFFFFFF
S
leep
S
top
S
top mode rele
as
ed
b
y extern
a
l interr
u
pt
• When
s
etting the interv
a
l time
s
elect
b
it
s
in time-
bas
e timer control regi
s
ter (TBTC:TBC[
3
:0]) to "0
b
0011" (2
16
×
2/F
CH
)
• TBTC:TBC[
3
:0]
• TBTC:TCLR
• TBTC:TBIF
• TBTC:TBIE
•
S
TBC:
S
LP
•
S
TBC:
S
TP
O
s
cill
a
tion
s
t
ab
iliz
a
tion w
a
it time
Co
u
nt v
a
l
u
e detected in
TBTC:TBC[
3
:0]
: Time-
bas
e timer initi
a
liz
a
tion
b
it in time-
bas
e timer control regi
s
ter
: Time-
bas
e timer interr
u
pt re
qu
e
s
t fl
a
g
b
it in time-
bas
e timer control regi
s
ter
: Time-
bas
e timer interr
u
pt re
qu
e
s
t en
ab
le
b
it in time-
bas
e timer control regi
s
ter
:
S
leep
b
it in
s
t
a
nd
b
y control regi
s
ter
:
S
top
b
it in
s
t
a
nd
b
y control regi
s
ter
: Interv
a
l time
s
elect
b
it
s
in time-
bas
e timer control regi
s
ter
Cle
a
red
b
y
tr
a
n
s
ition
to
s
top mode
(TBTC:TBC[
3
:0] = 0
b
0011)
4) Co
u
nter cle
a
red
(TBTC:TCLR = 1)
Cle
a
red in interr
u
pt
proce
ss
ing ro
u
tine
S
leep mode rele
as
ed
b
y
time-
bas
e timer interr
u
pt
Cle
a
red
a
t
interv
a
l
s
etting
Содержание MB95630H Series
Страница 2: ......
Страница 4: ......
Страница 8: ...iv ...
Страница 20: ...xvi ...
Страница 106: ...MB95630H Series 86 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 6 I O PORT 6 2 Configuration and Operations ...
Страница 282: ...MB95630H Series 262 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 14 LIN UART 14 8 Notes on Using LIN UART ...
Страница 642: ...MB95630H Series 622 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E APPENDIX A Instruction Overview A 5 Instruction Map ...
Страница 644: ......