English
Language : 

UPD784938 Datasheet, PDF (363/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 11 TIMER/EVENT COUNTER 2
Figure 11-53. Changing PPG Output Duty
Duty change preprocessing
Clear INTC20 interrupt request flag
CIF20 ← 0
; Clear bit 3 of IF0H
Enable INTC20 interrupts
CMK20 ← 0
; Clear bit 3 of MK0H
INTC20 interrupt
Duty change processing
Set duty value in CR20
Disable INTC20 interrupts
CMK20 ← 1
RETI
; Set bit 3 of MK0H
Preliminary User’s Manual U13987EJ1V0UM00
363