R01UH0136EJ0210 Rev.2.10
Page 634 of 800
Jul 31, 2012
M16C/64A Group
27. A/D Converter
27.4.2
Repeat Mode
In repeat mode, the analog voltage applied to a selected pin is repeatedly converted to a digital code.
Table 27.10 lists Repeat Mode Specifications.
Table 27.10
Repeat Mode Specifications
Item
Specification
Function
Bits CH2 to CH0 in the ADCON0 register and bits ADGSEL1 to ADGSEL0
in the ADCON2 register, or bits ADEX1 to ADEX0 in the ADCON1 register
are used to select a pin. The analog voltage applied to the pin is repeatedly
converted 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
condition
Set the ADST bit to 0 (A/D conversion stop).
Interrupt request
generation timing
No interrupt requests generated
Analog input pin
Select one pin from among AN0 to AN7, AN0_0 to AN0_7, AN2_0 to
AN2_7, ANEX0, or ANEX1.
Reading of A/D conversion
result
Read the register among AD0 to AD7 that corresponds to the selected pin.
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...