24 a/D COnVeRTeR (aDC10)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
24-7
ADEN
Trigger
ADIBS
A/D operation
ADD[15:0]
ADCF
Conversion result read
ADOWE
Interrupt request
AIN0
Ch.0
Ch.1
Ch.2
AIN0
Sampling
Conversion
AIN1
AIN1
Sampling
Clear
Conversion
AIN2
AIN0 converted data AIN1 converted data
AIN2 converted data
ADD[15:0] is overwritten
AIN2
Sampling
Conversion
(2) Multi-channel (AIN0–AIN2) one-time conversion mode (ADCS = 0, ADCE = 2, ADMS = 0)
ADEN
Trigger
ADIBS
A/D operation
ADD[15:0]
ADCF
Conversion result read
ADOWE
Interrupt request
AIN0
Ch.0
Ch.0
Ch.0
AIN0
Sampling
Conversion
AIN0
AIN0
Sampling
Clear
Clear
Conversion
AIN0 converted data AIN0 converted data
0 is written to ADCTL
to stop conversion.
Sampling
Conversion
AIN0
invalid
(3) Single channel (AIN0) continuous conversion mode (ADCS = 0, ADCE = 0, ADMS = 1)
ADEN
Trigger
ADIBS
A/D operation
ADD[15:0]
ADCF
Conversion result read
ADOWE
Interrupt request
AIN0
Ch.0
Ch.1
Ch.0
AIN0
Sampling
Conversion
AIN1
AIN1
Sampling
Clear
Clear
Conversion
AIN0 converted data AIN1 converted data
0 is written to ADCTL
to stop conversion.
Sampling
Conversion
AIN0
invalid
(4) Multi-channel (AIN0–AIN1) continuous conversion mode (ADCS = 0, ADCE = 1, ADMS = 1)
4.5.1 A/D Converter Operations
Figure 24.
a/D Converter interrupts
24.5
The A/D converter includes a function for generating the following two different types of interrupts.
• Conversion completion interrupt
• Conversion data overwrite error interrupt
The A/D converter outputs one interrupt signal shared by the two above interrupt causes to the interrupt controller
(ITC). Inspect the status flag to determine the interrupt cause occurred.