
R01UH0336EJ0102 Rev.1.02
Page 1375 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 24 Peripheral Interconnection (PIC)
24.4.2.4
Example of Operation
1. Initial Setting
Set the timers to use from among TAUB0, ENCA0, TSG20, and TAPA0.
(Refer to the specification of each timer for detailed initial setting
procedure.)
2. Setting A/D Converter Trigger Output Control Register 40j
(PIC0ADTEN40j)
Set bit m in the A/D converter trigger output control register 40j
(PIC0ADTEN40j; j = 0 to 2) to 1 to allow the interrupt trigger signal from
each channel of TAUB0 to be selected as a trigger of ADC channel group i.
Note Set the registers while the AD converter is stopped (ADCA0CE
= 0).
3. Setting A/D Converter Trigger Selection Control Register i (ADCA0TSELi)
By setting the bit corresponding to each trigger to 1, the trigger signals are
ORed and the result can be used as a trigger for ADC channel group i.
NoteSet the registers while the AD converter is stopped (ADCA0CE
= 0).
4. Enabling TAUB0, ENCA0, TSG20, and TAPA0 Operation
Timers selected in step 1 from among TAUB0, ENCA0, TSG20, and
TAPA0 are started.