NEC UPD703116 User Manual page 315

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(i) Description of operation
The CM1n0 register is a compare register used to set the PWM output cycle. When the value of this
register matches the value of TM1n, the INTCM1n0 interrupt is generated. Compare match is saved
by hardware, and TM1n is cleared at the next count clock after the match.
The CM1n1 register is a compare register used to set the PWM output duty. Set the duty required for
the PWM cycle.
Figure 9-50. PWM Signal Output Example (When ALVT10 Bit = 0 Is Set)
INTCM1n0
INTCM1n1
Cautions 1. Changing the values of the CM1n0 and CM1n1 registers is prohibited during TM1n operation
(TM1CEn bit of TMC1n register = 1).
2. Changing the value of the ALVT10 bit of the TUMn register is prohibited during TM1n
operation.
3. PWM signal output is performed from the second PWM cycle after the TM1CEn bit is set (to
"1").
CHAPTER 9 TIMER/COUNTER FUNCTION
CM1n0 set value
TM1n
CM1n1 set value
TO1n
User's Manual U14492EJ5V0UD
315

Advertisement

Table of Contents
loading

Table of Contents