25 A/D CONVERTER (ADC10)
25-12
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
D[7:6]
Reserved
D5
ADOIE: Overwrite Error Interrupt Enable Bit
Enables or disables interrupts caused by occurrences of conversion data overwrite errors.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
Setting ADOIE to 1 enables conversion data overwrite error interrupt requests to the ITC; setting to 0
disables interrupts.
D4
ADCIE: Conversion Completion Interrupt Enable Bit
Enables or disables interrupts caused by completion of conversion.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
Setting ADCIE to 1 enables conversion data overwrite error interrupt requests to the ITC; setting to 0
disables interrupts.
D[3:2]
Reserved
D1
ADCTL: A/D Conversion Control Bit
Controls A/D conversion.
1 (W):
Software trigger
0 (W):
Stop A/D conversion
1 (R):
Being converted
0 (R):
Conversion completed/standby (default)
Write 1 to ADCTL to start A/D conversion by a software trigger. If any other trigger is used, ADCTL is
automatically set to 1 by the hardware.
ADCTL remains set while A/D conversion is underway. In one-time conversion mode, upon completion
of A/D conversion in the specified channels, ADCTL is reset to 0 and the A/D conversion circuit stops
operating. To stop A/D conversion during operation in continuous conversion mode, reset ADCTL by
writing 0.
When ADEN is 0 (A/D conversion disabled), ADCTL is fixed to 0, with no trigger accepted.
D0
ADEN: ADC10 Enable Bit
Enables or disables the A/D converter operations.
1 (R/W): Enabled
0 (R/W): Disabled (default)
Writing 1 to ADEN enables the A/D converter, meaning it is ready to start A/D conversion (i.e., ready
to accept a trigger).
When ADEN is 0, the A/D converter is disabled, meaning it is unable to accept a trigger.
Before setting the modes, start/end channels, or other A/D converter conditions, be sure to reset ADEN
to 0. This helps to prevent the A/D converter from operating erratically.
Notes: • To prevent interrupt recurrences, ADCF/ADC10_CTL register and ADOWE/ADC10_CTL reg-
ister must be reset in the interrupt handler routine after an ADC10 interrupt has occurred.
• To prevent unwanted interrupts, reset ADCF and ADOWE before enabling interrupts with AD-
CIE/ADC10_CTL register and ADOIE/ADC10_CTL register.