|
UPD784938 Datasheet, PDF (359/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers | |||
|
◁ |
CHAPTER 11 TIMER/EVENT COUNTER 2
Figure 11-49. Changing PWM Output Duty
Duty change preprocessing
Clear INTC21 interrupt request flag
CIF21 â 0
; Clear bit 0 of IF0H
Enable INTC21 interrupts
CMK21 â 0
; Clear bit 0 of MK0H
INTC21 interrupt
Duty change processing
Set duty value in CR21
Disable INTC21 interrupts
CMK21 â 1
RETI
; Set bit 0 of MK0H
Preliminary Userâs Manual U13987EJ1V0UM00
359
|
▷ |