Datasheet

Table Of Contents
14. A/D Converter
page 190
923fo7002,51.beF00.2.veR
0020-2020B90JER
)T62/C61M,B62/C61M,A62/C61M(puorGA62/C61M
14.1.3 Single Sweep Mode
In single sweep mode, analog voltages applied to the selected pins are converted one-by-one to a digital
code. Table 14.1.3.1 shows the single sweep mode specifications. Figure 14.1.3.1 shows the operation
example in single sweep mode. Figure 14.1.3.2 shows the ADCON0 to ADCON2 registers in single
sweep mode.
Item Specification
Function 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
the selected pins is converted one-by-one to a digital code
A/D Conversion Start Condition
When the TRG bit in the ADCON0 register is 0 (software trigger)
Set the ADST bit in the ADCON0 register to 1 (A/D conversion started)
When the TRG bit in the ADCON0 register is 1 (hardware trigger)
The ADTRG pin input changes state from H to L after setting the ADST bit
to 1 (A/D conversion started)
A/D Conversion Stop Condition
A/D conversion completed(When selecting a software trigger, the ADST bit
is set to 0 (A/D conversion halted)).
Set the ADST bit to 0
Interrupt Request Generation Timing
A/D conversion completed
Analog Input Pin Select from AN0 to AN1 (2 pins), AN0 to AN3 (4 pins), AN0 to AN5 (6 pins),
AN0 to AN7 (8 pins)
(1)
Readout of A/D Conversion Result
Readout one of the AD0 to AD7 registers that corresponds to the selected pin
Table 14.1.3.1 Single Sweep Mode Specifications
NOTE:
1. AN30 to AN32 can be used in the same way as AN0 to AN7. However, all input pins need to belong to
the same group.
Figure 14.1.3.1 Operation Example in Single Sweep Mode
Example when selecting AN
0
to AN
3
to analog input pins (SCAN1 to SCAN0=01
2
)
A/D conversion started
A/D interrupt request generated
AN
0
AN
1
AN
2
AN
3
AN
4
AN
5
AN
6
AN
7
A/D pin input voltage
sampling
A/D pin conversion