24 a/D COnVeRTeR (aDC10)
24-2
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
aDC10 input Pins
24.2
Table 24.2.1 lists the ADC10 input pins.
2.1 List of ADC10 Input Pins
Table 24.
Pin name
i/O
Qty
Function
AIN[7:0]
I
8
Analog signal input pins AIN0 (Ch.0) to AIN7 (Ch.7) (see Note below)
Input the analog signals to be A/D converted. The analog input voltage AV
IN
must
be within the range of V
SS
≤
AV
IN
≤
AV
DD
(= V
DD
).
#ADTRG
I
1
External trigger input pin
Input a trigger signal to start A/D conversion from an external source.
AV
DD
–
1
Analog power-supply pin (AV
DD
= V
DD
)
Always supply the V
DD
voltage even if the A/D converter is not used.
note: The pins go to high impedance status when the port function is switched.
The A/D converter input pins (AIN[7:0], #ADTRG) are shared with I/O ports and are initially set as general pur-
pose I/O port pins. The pin functions must be switched using the port function select bits to use the general purpose
I/O port pins as A/D converter input pins.
For detailed information on pin function switching, see the “I/O Ports (P)” chapter.
a/D Converter Settings
24.3
Make the following settings before starting A/D conversion.
(1) Set the analog input pins. See Section 24.2.
(2) Set the A/D conversion clock.
(3) Select the A/D conversion start and end channels.
(4) Select the A/D conversion mode.
(5) Select the A/D conversion trigger source.
(6) Set the sampling time.
(7) Select the conversion result storing mode.
(8) When using A/D converter interrupts, set interrupt conditions. See Section 24.5.
note: Make sure the A/D converter is disabled (ADEN/ADC10_CTL register = 0) before changing the
above settings. Changing the settings while the A/D converter is enabled may cause a malfunc-
tion.
a/D Conversion Clock Setting
24.3.1
To use the A/D converter, the clock used in the A/D converter must be supplied by turning on the peripheral module
clock (PCLK) output from the clock generator (CLG). For more information on clock control, see the “Clock Gen-
erator (CLG)” chapters.
The A/D conversion is generated by dividing PCLK. The division ratio can be selected from the 15 types shown in
Table 24.3.1.1 using ADDF[3:0]/ADC_DIV register.
note: For the A/D conversion clock frequency range that can be used for this A/D converter, see “A/D
Converter Characteristics” in the “Electrical Characteristics” chapter.