|
UPD784938 Datasheet, PDF (261/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers | |||
|
◁ |
CHAPTER 9 TIMER/EVENT COUNTER 0
Figure 9-44. Changing PWM Output Duty
Duty change preprocessing
Clear INTC00 interrupt request flag
CIF00 â 0
; Clear bit 4 of IF0L
Enable INTC00 interrupts
CMK00 â 0
; Clear bit 4 of MK0L
INTC00 interrupt
Duty change processing
Set duty value in CR00
Disable INTC00 interrupts
CMK00 â 1
RETI
; Set bit 4 of MK0L
Preliminary Userâs Manual U13987EJ1V0UM00
261
|
▷ |