|
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
|
▷ |