136
µ
PD78214 Sub-Series
Fig. 7-37 Setting Procedure for PWM OutputFig. 7-38 Changing Duty Factor of PWM Output
CIF000
Preprocessing for
changing duty factor
Clear INTC00 interrupt request
flag ; Clears bit 4 of IF0L
Enable INTC00 interrupt ; Clears bit 4 of MK0L
INTC00 interrupt
Duty factor changing
processing
Set duty factor in CR00
CMK000
Disable INTC00 interrupt ; Sets bit 4 of MK0L
CMK001
RETI
PWM output
Set CRC0 register
Set TOC register
Set P34 pin in control mode
Set initial value in compare
register
Start counting
; Sets bit 3 of TMC0
CRC090H
PMC3.41
CE01