
R01UH0336EJ0102 Rev.1.02
Page 1315 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 23 A/D Converter
7
ADCAn
CE
Enables or disables the A/D converter:
0: Disables the A/D converter
1: Enables the A/D converter
This bit must be set to 1 separately from other bits.
The A/D conversion is started by generating a hardware or software start trigger
(using bit ADCAnTRGi.ADCAnSTTi) after setting the ADCAnCTL0.ADCAnCE
bit to 1.
Although a hardware or software start trigger is acceptable immediately after
power on using bit ADCAnCTL1.ADCAnGPS (during the stabilization time), A/D
conversion is not started before the stabilization time has elapsed. After the
stabilization time, A/D conversion is started.
When the A/D converter is enabled and then disabled, the procedure is as
follows.
1. Set the ADCAnCTL1.ADCAnTiETS[1:0] bits to 00B. (The valid edge of the
HW conversion trigger is not detected.)
2. Wait for one cycle.
3. ADCAnCTL0.ADCAnCE = 0 (AD conversion stopped)
When the enable/disable is switched, the value retained to conversion result
registers (ADCAnDGCR, ADCAnLCR, ADCAnCmCR and ADCAnDBiCR) are
initialized.
6
ADCAnSTM
This bit specifies the mode of repetition for one-shot conversion.
0: Channel repetition mode is not used.
1: Channel repetition mode is used.
Conversion is repeated on each channel in turn the number of times specified
by the ADCAnSCTi[1:0] bits.
Example: When CGi = {1, 2, and 3} and the ADCAnSCTi[1:0] bits are 10
B
In channel repetition mode, conversion is in the following order:
channel 1
channel1
channel1
channel 2
channel 2
channel 2
channel 3
channel 3
channel 3
Note: When ADCAnSTM = 0, set the number of repetitions (the ADCAnSCTi
[1:0] bits) to 1 (00
B
).
5 to 0
ADCAn
SCTi[1:0]
Number of times the scan list conversions of CG0, CG1, and CG2 are repeated
in one-shot conversion mode
ADCAn
SCTi1
ADCAn
SCTi0
Number of Repetitions of Scan List
Conversions of CGi
0
0
1
0
1
2
1
0
3
1
1
4
Table 23-7
ADCAnCTL0 Register Contents (2/2)
Bit Position
Bit Name
Function
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...