|
4552 Datasheet, PDF (39/145 Pages) Renesas Technology Corp – SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER | |||
|
◁ |
4552 Group
qWaveform extension function of CNTR output âHâ interval: Invalid (W22 = â0â),
CNTR output: valid (W23 = â1â),
Count source: XIN input selected (W20 = â0â),
Reload register R2L: â0316â
Reload register R2H: â0216â
Timer 2 count start timing
Machine cycle Mi
System clock
f(STCK)=f(XIN)/4
XIN input
(count source selected)
Register W21
Timer 2 count value
(Reload register)
Timer 2
underflow signal
PWM signal
Mi+1
Mi+2
TW2A instruction execution cycle (W21) â 1
0316
(R2L)
0216 0116 0016 0216 0116 0016 0316 0216 0116
(R2H)
(R2L)
Timer 2 count start timing
Timer 2 count stop timing
Machine cycle
Mi
System clock
f(STCK)=f(XIN)/4
XIN input
(count source selected)
Mi+1
TW2A instruction execution cycle (W21) â 0
Register W21
Timer 2 count value
(Reload register)
0216 0116 0016 0216 0116 0016 0316 0216 0116 0016
(R2H)
(R2L)
0216
(R2H)
Timer 2
underflow signal
PWM signal
(Note 1)
Mi+2
Timer 2 count stop timing
Notes 1: In order to stop timer 2 at CNTR output valid (W23 = â1â), avoid a timing when timer 2 underflows.
If these timings overlap, a hazard may occur in a CNTR output waveform.
2: At CNTR output valid, timer 2 stops after âHâ interval of PWM signal set by reload register R2H is output.
Fig. 28 Timer 2 count start/stop timing
Rev.3.02 Dec 22, 2006 page 39 of 142
REJ03B0023-0302
|
▷ |