197
CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER
8.9
8/16-bit Capture Timer/Counter Operation in Each Mode
This section describes the operation of the 8/16-bit capture timer/counter when it
switches to the sleep or stop mode or when a halfway stop request is issued during the
operation of the interval timer or counter function.
■
Operation in Standby Mode and at Halfway Stop
Figure 8.9-1 shows the counter value states if the 8/16-bit capture timer/counter switches to the sleep or
stop mode or when a halfway stop request is issued when the interval timer or counter function is in
operation (at timer 0 operation).
When the counter switches to the stop mode, it retains the value and stops. If the stop mode is released by
an external interrupt, the counter starts its operation at the retained value, and so the first interval time and
external clock count are incorrect. When the stop mode is released, the 8/16-bit capture timer/counter must
be initialized.
When the counter is temporarily stopped (TSTR0 = 0), it retains its value and stops. If the subsequent
operation is continued (TSTR0 = 1), the count value is cleared and the counter is restarted.
Figure 8.9-1 Counter Operation in Standby Mode and at Halfway Stop
0000
H
Co
u
nter v
a
l
u
e
V
a
l
u
e
s
et in d
a
t
a
regi
s
ter
Co
u
nter cle
a
r
S
t
a
rt
M
a
tch
M
a
tch
M
a
tch
M
a
tch
M
a
tch
Time
T
S
TR0
b
it
Cle
a
r
b
y progr
a
m
Tempor
a
ry
s
top
TIF0
b
it
TO pin
S
leep
*
S
LP
b
it
(
S
TBC regi
s
ter)
S
leep rele
as
e
b
y IRQ
3
S
top
S
TP
b
it
(
S
TBC regi
s
ter)
Extern
a
l interr
u
pt
*:
When the pin
s
t
a
te
s
pecific
a
tion
b
it (
S
PL) of the
s
t
a
nd
b
y control regi
s
ter (
S
TBC) i
s
"1"
a
nd the TO pin i
s
not
p
u
lled
u
p, the TO pin in the
s
top mode
b
ecome
s
Hi-Z. When the pin
s
t
a
te
s
pecific
a
tion
b
it (
S
PL) i
s
"0", the v
a
l
u
e
immedi
a
tely
b
efore the
8
/16-
b
it c
a
pt
u
re timer/co
u
nter
s
witche
s
to the
s
top mode i
s
ret
a
ined.
Содержание 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: ......