
24 a/D COnVeRTeR (aDC10)
24-10
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
When ADMS is 0, the A/D converter operates in one-time conversion mode. In this mode, A/D conver-
sion is terminated after all inputs in the range of the channels selected by ADCS[2:0] and ADCE[2:0]
have been converted once.
D[5:4]
aDTS[1:0]: Conversion Trigger Select Bits
Selects a trigger source to start A/D conversion.
6.3 Trigger Selection
Table 24.
aDTS[1:0]
Trigger source
0x3
External trigger (#ADTRG)
0x2
Reserved
0x1
16-bit timer Ch.0
0x0
Software trigger
(Default: 0x0)
When an external trigger is used, the #ADTRG pin must be configured in advance using the port func-
tion select bit (see the “I/O Ports (P)” chapter). A/D conversion is started when a falling edge of the
#ADTRG signal is detected.
When 16-bit timer (T16) Ch.0 is used, since its underflow signal serves as a trigger, set the underflow
cycle and other conditions for the timer.
D3
Reserved
D[2:0]
aDST[2:0]: Sampling Time Setting Bits
Sets the analog input sampling time.
6.4 Sampling Time Settings
Table 24.
aDST[2:0]
Sampling time
(in a/D conversion clock cycles)
0x7
9 cycles
0x6
8 cycles
0x5
7 cycles
0x4
6 cycles
0x3
5 cycles
0x2
4 cycles
0x1
3 cycles
0x0
2 cycles
(Default: 0x7)
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)
0x5384
(16 bits)
D15
–
reserved
–
–
–
0 when being read.
D14–12 aDiCh[2:0] Conversion channel indicator
0x0 to 0x7
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 7) 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