English
Language : 

3825_03 Datasheet, PDF (111/339 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Timer X and timer Y
Pulse width
Pulse width H(s) = 1 ÷ count source frequency ! (the X counter initial value – the X counter value at count stop)
Pulse width measurement mode operation example
•n : The X counter initial value
•m: The X counter value at count stop
Timer X stop
coutrol bit
Count
source
P54/CNTR0 pin
CNTR0 active
edge switch bit
n16
Set initial value
to counter
2
Count start
Set initial value
to counter
Count start
2
m16
000016
CNTR0 interrupt
request bit
CNTR0 interrupt
enable bit
Timer X interrupt
request bit
Timer X interrupt
enable bit
Count stop
H
1
H Time
1 : •Clearing by writing “0” to the CNTR0 interrupt request bit.
•Clearing by accepting the CNTR0 interrupt request when the CNTR0 interrupt enable bit
is “1.”
2 : Set initial value to the timer X when timer X write control bit is “0.”
V : When the CNTR0 active edge switch bit is “1” ;
•“L” level width of the input pulse is measured.
•The CNTR0 interrupt request occurs at the rising edge of the input pulse.
Fig. 2.3.4 Pulse width measurement mode operation example
3825 GROUP USER’S MANUAL
2–39