
R01UH0336EJ0102 Rev.1.02
Page 1451 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 24 Peripheral Interconnection (PIC)
Advance processing
Figure 24-38
ENCA0CCR1 Rewrite Flow during Operation
Retard processing
Figure 24-39
ENCA0CCR1 Rewrite Flow during Operation
Start of advance processing
Enable INTENCA0I1 interrupt
INTENCA0I1 interrupt processing
Disable INTENCA0I1 interrupt
END
INTENCA0I1 interrupt processing
Compute the next output pattern
switching timing on interrupt generation
Set switching timing in ENCA0CCR1
END
Start of retard processing
Enable INTENCA0I1 interrupt
INTENCA0I1 interrupt processing
(first time)
INTENCA0I1 interrupt processing
(second time)
Disable INTENCA0I1 interrupt
END
END
INTENCA0I1 interrupt processing
(second time)
Mask the TSOPCI0 signal connection
(set the TS0STE bit in TS0OPT0 to 0)
Compute the next output pattern
switching timing on interrupt generation
Set switching timing in ENCA0CCR1
Mask the TSOPCI0 signal connection
(change the TS0STE bit in TS0OPT0 from 0 to 1)
END
INTENCA0I1 interrupt processing
(first time)