
23 A/D Converter (ADC10SA)
S1C17003 TECHNICAL MANUAL
EPSON
23-9
ADC10SA
23.5 A/D Converter interrupt
The A/D converter provides function of generating the following 2 types of interrupts.
Conversion complete interrupt
Conversion data overwrite interrupt
The A/D converter outputs an interrupt signal shared by those 2 types of interrupt factors to the interrupt controller
(ITC). To determine the generated interrupt factor, read a relevant interrupt factor register.
Conversion complete interrupt
Once completing A/D conversion for a channel, and if ADCIE (D4/ADC10_CTL register) is set to 1 (default:0),
the A/D converter outputs the conversion complete interrupt signal to the controller (ITC) to request an
interrupt.
ADCIE: Conversion-Complete Interrupt Enable Bit in the ADC10 Control/Status (ADC10_CTL) Register
(D4/0x5384)
By reading ADD[15:0] (D[15:0]/ADC10_ADD register), the conversion complete interrupt factor is
automatically cleared, and ADCF (D8/ADC10_CTL register) is also reset from 1 to 0. To disable generation of
the conversion complete interrupt, set the ADCIE bit to 0.
Conversion data overwrite interrupt
When the ADD[15:0] register has not been read before it is overwritten by the subsequent A/D conversion
result, and if ADOIE (D5/ADC10_CTL register) is set to 1 (default:0), the A/D converter outputs the
conversion data overwrite interrupt signal to the controller (ITC) to request an interrupt.
ADOIE: Overwrite Interrupt Enable Bit in the ADC10 Control/Status (ADC10_CTL) Register (D5/0x5384)
By writing 1 to ADOWE (D9/ADC10_CTL register), the conversion data overwrite interrupt factor is reset to 0.
ADOWE: Overwrite Error Flag Bit in the ADC10 Control/Status (ADC10_CTL) Register (D9/0x5384)
To disable generation of the conversion data overwrite interrupt, set the ADOIE bit to 0.