Example Of Rewriting Compare Register Cr00; Example Of Pwm Output Signal With A 100% Duty Factor - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series
Even if the value of a compare register (CR00, CR01) coincides with the value of 16-bit timer 0 (TM0) more than
once during one period of PWM output, the output levels on the timer outputs (TO0, TO1) do not change.
TM0
count value
0H
CR00
TO0
Cautions 1. If a value less than the value of 16-bit timer 0 (TM0) is set in a compare register (CR00, CR01), a PWM signal with a 100% duty
factor is output. Rewrite the CR00 or CR01 compare register, if required, by using an interrupt generated by a coincidence
between TM0 and the compare register.
Fig. 7-17 Example of PWM Output Signal with a 100% Duty Factor
TM0
count value
0H
CR00
TO0
Remark ALV0 = 0
124
Fig. 7-16 Example of Rewriting Compare Register CR00
T2
T1
T1
T2
Rewriting
CR00
TO0 does not change though CR00 coincides with TM0
FFFFH
n1
n1
FFFFH
T1
FFFFH
FFFFH
n1
n3
n2
When a value, n2 less than TM0 value, n3 is written to CR00
here, the duty factor is 100% during this period.
FFFFH
T2
FFFFH
n2
n2
n2
T1

Advertisement

Table of Contents
loading

Table of Contents