R01UH0092EJ0110 Rev.1.10
Page 796 of 807
Jul 31, 2012
M16C/64C Group
32. Usage Notes
32.21
Notes on A/D Converter
32.21.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
32.21.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.
32.21.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 32.13 Example of Pin Configuration
32.21.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.
32.21.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.
32.21.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...