R01UH0092EJ0110 Rev.1.10
Page 636 of 807
Jul 31, 2012
M16C/64C Group
27. A/D Converter
27.4.3
Single Sweep Mode
In single sweep mode, the analog voltage applied to selected pins is converted one-by-one to a digital
code. Table 27.12 lists the Single Sweep Mode Specifications.
Table 27.12
Single Sweep Mode Specifications
Item
Specification
Function
Bits SCAN1 to SCAN0 in the ADCON1 register and bits ADGSEL1 to
ADGSEL0 in the ADCON2 register are used to select pins. The analog
voltage applied to the pins is converted one-by-one to a digital code.
A/D conversion start
conditions
•
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 start).
•
When the TRG bit is 1 (
ADTRG
trigger)
the input level at the
ADTRG
pin changes from high to low after the ADST
bit is set to 1 (A/D conversion start).
A/D conversion stop
conditions
•
Completion of A/D conversion (if a software trigger is selected, the ADST
bit is set to 0 (A/D conversion stop)).
•
Set the ADST bit to 0.
Interrupt request generation
timing
Completion of A/D conversion
Analog input pin
Select one of the following groupings from AN0 to AN7:
2 pins: AN0 and AN1
4 pins: AN0 to AN3
6 pins: AN0 to AN5
8 pins: AN0 to AN7
AN0_0 to AN0_7 and AN2_0 to AN2_7 can also be selected in the same
way.
Reading of A/D conversion
result
Read the registers among AD0 to AD7 that corresponds to the selected pin.
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...