|
M38203M4 Datasheet, PDF (133/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.3 Timer X and timer Y
Count period
Count period T(s) = 1 ÷ count source frequency ! (the Y counter initial value + 1)
Event counter mode operation example
â¢UF : Underflow
â¢RL : Reload
â¢n : The Y counter initial value
Timer Y stop
control bit
Count source
(P55/CNTR1 pin)
RL
RL
n16
Writing â1â Writing â0â
RL
RL Count stop
Count restart
UF
UF
UF
UF
000016
T
CNTR1 active
edge switch bit CNTR0 interrupt request occurs at falling edge of the count source
CNTR1 interrupt
request bit
CNTR1 interrupt
enable bit
1
1
1
1
Time
1
Timer Y interrupt
request bit
1
1
1
1
Timer Y interrupt
enable bit
1 : â¢Clearing by writing â0â to the timer Y interrupt request bit or the CNTR1 interrupt request bit.
â¢Clearing by accepting the timer Y interrupt request and the CNTR1 interrupt request when the
respective interrupt enable bits are â1.â
V : When the CNTR1 active edge switch bit is â1â ;
â¢Falling edge of the count source is valid.
â¢The CNTR1 interrupt request occurs at the rising edge of the output pulse.
Fig. 2.3.8 Event counter mode operation example
3820 GROUP USERâS MANUAL
2â47
|
▷ |