User manual
V850E2/MN4 A/D Converter Control
R01AN0923EJ0100 Rev.1.00 Page 2 of 26
Feb 13, 2012
1. Overview
This sample program converts the scan list of CG0 by using the software trigger in one-shot mode. The number of times
conversion of the scan list is repeated can be set from one to four per CG in a specific register for a given channel, but is
set to one in the sample program.
An A/D conversion flow is given below. See section 4.1 “Flow Charts” for the details of the individual operations.
Set ADC
Start ADC
Await end of conversion
End
Main loop processing
Conversion end
Interrupt processing
Conversion end Interrupt
Conversion end Interrupt
Interrupt
Interrupt
: Interrupt
: Flow of processing
Conversion end
Interrupt processing
Figure 1.1 A/D Conversion Flow