M16C/62P Group (M16C/62P, M16C/62PT)
18.1.3 Single Sweep Mode
In single sweep mode, analog voltage that is applied to selected pins is converted one-by-one to a digital
code. Table 18.4 shows the specifications of single sweep mode. Figure 18.6 shows the ADCON0 to
ADCON1 registers in single sweep mode.
Table 18.4 Single Sweep Mode Specifications
Item
Function
A/D Conversion Start
Condition
A/D Conversion Stop Condition • Completion of A/D conversion (If a software trigger is selected, the
Interrupt Request Generation Timing Completion of A/D conversion
Analog Input Pin
Reading of Result of A/D Converter Read one of the AD0 to AD7 registers that corresponds to the selected pin
NOTES:
1. AN0_0 to AN0_7, and AN2_0 to AN2_7 can be used in the same way as AN0 to AN7. However, if
VCC2 < VCC1, do not use AN00 to AN07 and AN20 to AN27 as analog input pins.
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
The SCAN1 to SCAN0 bits in the ADCON1 register and the ADGSEL1 to
ADGSEL0 bits in the ADCON2 register select pins. Analog voltage
applied to this pins is converted one-by-one to a digital code.
• When the TRG bit in the ADCON0 register is "0" (software trigger)
The ADST bit in the ADCON0 register is set to "1" (A/D conversion
starts)
• When the TRG bit is "1" (ADTRG trigger)
Input on the ADTRG pin changes state from high to low after the ADST
bit is set to "1" (A/D conversion starts)
ADST bit is cleared to "0" (A/D conversion halted))
• Set the ADST bit to "0"
Select from AN0 to AN1 (2 pins), AN0 to AN3 (4 pins),
AN0 to AN5 (6 pins), AN0 to AN7 (8 pins)
page 215
f o
3
6
4
Specification
____________
____________
18. A/D Converter
(1)