R01UH0092EJ0110 Rev.1.10
Page 645 of 807
Jul 31, 2012
M16C/64C Group
27. A/D Converter
27.7
Notes on A/D Converter
27.7.1
Analog Input Voltage
Set the analog input voltage as follows:
analog input voltage (AN_0 to AN_7, ANEX0, and ANEX1)
≤
VCC1
analog input voltage (AN0_0 to AN0_7 and AN2_7 to AN2_7)
≤
VCC2
27.7.2
Analog Input Pin
Do not use any pin from AN4 to AN7 as analog input pin if any pin from
KI0
to
KI3
is used as a key input
interrupt.
27.7.3
Pin Configuration
To prevent operation errors due to noise or latchup, and to reduce conversion errors, place capacitors
between the AVSS pin and the AVCC pin, the VREF pin, and analog inputs (ANi (i = 0 to 7), ANEXi,
AN0_i, and AN2_i). Also, place a capacitor between the VCC1 pin and VSS pin.
Figure 27.17 Example of Pin Configuration
27.7.4
Register Access
Write registers ADCON0 (excluding the ADST bit), ADCON1, and ADCON2 when A/D conversion
stops (before a trigger is generated).
After A/D conversion stops, set the ADSTBY bit in the ADCON1 register from 1 to 0.
27.7.5
A/D Conversion Start
When rewriting the ADSTBY bit in the ADCON1 register from 0 (A/D operation stopped) to 1 (A/D
operation enabled), wait for one
φ
AD cycle or more before starting A/D conversion.
27.7.6
A/D Operation Mode Change
When the A/D operation mode has been changed, reselect analog input pins by using bits CH2 to CH0
in the ADCON0 register or bits SCAN1 to SCAN0 in the ADCON1 register.
VCC1
VSS
AVCC
AVSS
VREF
ANi
C4
C1
C2
C3
MCU
Notes:
1. Reference values: C1
≥
0.1
μ
F, C2
≥
0.1
μ
F, C3
≥
100 pF, C4
≥
0.1
μ
F, C5
≥
0.1
μ
F.
2. The traces for the capacitor and MCU should be short and wide as much as physically possible.
VCC2
VSS
C5
VCC1
VCC1
VCC2
ANi: ANi (i = 0 to 7), AN0_i, AN2_i, ANEXi
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...