English
Language : 

M38203M4 Datasheet, PDF (131/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Timer X and timer Y
Pulse period
Pulse period T(s) = 1 ÷ count source frequency ! (the Y counter initial value – the Y counter value immediately before reload )
Period measurement mode operation example
•RL : Reload
•n : The Y counter initial value
•m : The Y counter value immediately before reload
Timer Y stop
control bit
Count
source
P55/CNTR1 pin
CNTR1 active
edge switch bit
RL
RL
RL
n16
m16
000016
T
T
Time
CNTR1 interrupt
request bit
CNTR1 interrupt
enable bit
1
1
1
Timer Y interrupt
request bit
Timer Y interrupt
enable bit
1 : •Clearing by writing “0” to the CNTR1 interrupt request bit.
•Clearing by accepting the CNTR1 interrupt request when the CNTR1 interrupt enable
bit is “1.”
V : When the CNTR1 active edge switch bit is “1” ;
•From the rising edge to the rising edge of the input pulse is measured.
•The CNTR1 interrupt request occurs at the rising edge of the input pulse.
Fig. 2.3.7 Period measurement mode operation example
3820 GROUP USER’S MANUAL
2–45