Datasheet

Table Of Contents
14. A/D Converter
page 188
923fo7002,51.beF00.2.veR
0020-2020B90JER
)T62/C61M,B62/C61M,A62/C61M(puorGA62/C61M
14.1.2 Repeat mode
In repeat mode, analog voltage applied to a selected pin is repeatedly converted to a digital code. Table
14.1.2.1 shows the repeat mode specifications. Figure 14.1.2.1 shows the operation example in repeat
mode. Figure 14.1.2.2 shows the ADCON0 to ADCON2 registers in repeat mode.
Item Specification
Function The CH2 to CH0 bits in the ADCON0 register and the ADGSEL1 to ADGSEL0
bits in the ADCON2 register select pins. Analog voltage applied to a selected
pin is repeatedly converted to a digital code
A/D Conversion Start
When the TRG bit in the ADCON0 register is 0 (software trigger)
Condition
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
Set the ADST bit to 0 (A/D conversion halted)
Interrupt Request Generation Timing
None generated
Analog Input Pin
Select one pin from AN
0
to AN
7
, AN
30
to AN
32
and AN
24
Readout of A/D Conversion Result
Readout one of the AD0 to AD7 registers that corresponds to the selected pin
Table 14.1.2.1 Repeat Mode Specifications
Figure 14.1.2.1 Operation Example in Repeat Mode
Example when selecting AN
2
to an analog input pin
(Ch2 toCH0=010
2
)
A/D conversion started
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