25 A/D CONVERTER (ADC10)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
25-11
A/D Control/Status Register (ADC10_CTL)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
A/D Control/
Status Register
(ADC10_CTL)
0x301304
(16 bits)
D15
–
reserved
–
–
–
0 when being read.
D14–12 ADICH[2:0] Conversion channel indicator
0x0 to 0x5
0x0
R
D11
–
reserved
–
–
–
0 when being read.
D10
ADIBS
ADC10 status
1 Busy
0 Idle
0
R
D9
ADOWE
Overwrite error flag
1 Error
0 Normal
0
R/W Reset by writing 1.
D8
ADCF
Conversion completion flag
1 Completed 0 Run/Stand-
by
0
R Reset when
ADC10_ADD is
read.
D7–6 –
reserved
–
–
–
0 when being read.
D5
ADOIE
Overwrite error interrupt enable
1 Enable
0 Disable
0
R/W
D4
ADCIE
Conversion completion int. enable 1 Enable
0 Disable
0
R/W
D3–2 –
reserved
–
–
–
0 when being read.
D1
ADCTL
A/D conversion control
1 Start
0 Stop
0
R/W
D0
ADEN
ADC10 enable
1 Enable
0 Disable
0
R/W
D15
Reserved
D[14:12] ADICH[2:0]: Conversion Channel Indicator Bits
Indicates the channel number (0 to 5) currently being A/D-converted. (Default: 0x0 = AIN0)
When A/D conversion is performed in multiple channels, read this bit to identify the channel in which
conversion is underway.
D11
Reserved
D10
ADIBS: ADC10 Status Bit
Indicates the A/D converter status.
1 (R):
Being converted
0 (R):
Conversion completed/standby (default)
ADIBS is set to 1 at the input trigger signal edge (at the beginning of sampling) and is reset to 0 upon
completion of conversion (when ADCTL is set to 0).
D9
ADOWE: Overwrite Error Flag Bit
Indicates that the converted results in ADD[15:0]/ADC10_ADD register have been overwritten before
reading.
1 (R):
Overwrite error (cause of interrupt has occurred)
0 (R):
Normal (cause of interrupt has not occurred) (default)
1 (W):
Flag is reset
0 (W):
Ignored
When a single channel or multiple channels are being converted continuously, ADD[15:0] is overwritten
and ADOWE is set to 1 if the A/D conversion currently underway is completed while ADCF is set to 1
(before reading the previous conversion results). After the conversion results are read from ADD[15:0],
ADOWE should be read to check whether the read data is valid or not.
ADOWE is a cause of ADC10 interrupt. When ADOWE is set to 1, a conversion data overwrite error
interrupt request is output to the ITC if ADOIE has been set to 1 (interrupt enabled). An interrupt is
generated if the ITC and C33 PE Core interrupt conditions are satisfied. ADOWE is reset by writing 1.
D8
ADCF: Conversion Completion Flag Bit
Indicates that A/D conversion has been completed.
1 (R):
Conversion completed (cause of interrupt has occurred)
0 (R):
Being converted/standby (cause of interrupt has not occurred) (default)
ADCF is set to 1 when A/D conversion is completed, and the converted data is loaded into ADD[15:0]/
ADC10_ADD register.
ADCF is a cause of ADC10 interrupt. When ADCF is set to 1, a conversion completion interrupt re-
quest is output to the ITC if ADCIE has been set to 1 (interrupt enabled). An interrupt is generated if the
ITC and C33 PE Core interrupt conditions are satisfied. ADCF is reset to 0 by reading ADD[15:0].
An overwrite error occurs if the next A/D conversion is completed while ADCF is set (see ADOWE
above), ADCF must be reset by reading ADD[15:0] before an overwrite occurs. When an overwrite er-
ror occurs, ADCF is also set due to completion of conversion.