24 a/D COnVeRTeR (aDC10)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
24-9
ADD bit
15
...
10
9
...
6
5
...
0
Left justify mode (STMD = 1) (MSB)
10-bit conversion results
(LSB)
0
...
0
Right justify mode (STMD = 0)
0
...
0
(MSB)
10-bit conversion results
(LSB)
6.1 Conversion Data Alignment
Figure 24.
This register is a read-only, so writing to this register is ignored.
a/D Trigger/Channel Select Register (aDC10_TRG)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
a/D Trigger/
Channel Select
Register
(aDC10_TRG)
0x5382
(16 bits)
D15–14 –
reserved
–
–
–
0 when being read.
D13–11 aDCe[2:0] End channel select
0x0 to 0x7
0x0 R/W
D10–8 aDCS[2:0] Start channel select
0x0 to 0x7
0x0 R/W
D7
STMD
Conversion result storing mode
1 ADD[15:6]
0 ADD[9:0]
0
R/W
D6
aDMS
Conversion mode select
1 Continuous 0 Single
0
R/W
D5–4 aDTS[1:0] Conversion trigger select
ADTS[1:0]
Trigger
0x0 R/W
0x3
0x2
0x1
0x0
#ADTRG pin
reserved
T16 Ch.0
Software
D3
–
reserved
–
–
–
0 when being read.
D2–0 aDST[2:0] Sampling time setting
ADST[2:0]
Sampling time 0x7 R/W
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
9 cycles
8 cycles
7 cycles
6 cycles
5 cycles
4 cycles
3 cycles
2 cycles
D[15:14] Reserved
D[13:11] aDCe[2:0]: end Channel Select Bits
Sets the conversion end channel with a channel number from 0 to 7. (Default: 0x0 = AIN0)
Analog inputs can be A/D-converted continuously from the channel set by ADCS[2:0] to the channel set
by ADCE[2:0] in one A/D conversion. If only one channel is to be A/D converted, set the same channel
number in both ADCS[2:0] and ADCE[2:0].
6.2 Relationship between ADCS/ADCE and Input Channels
Table 24.
aDCS[2:0]/aDCe[2:0]
Channel selected
0x7
AIN7
0x6
AIN6
0x5
AIN5
0x4
AIN4
0x3
AIN3
0x2
AIN2
0x1
AIN1
0x0
AIN0
(Default: 0x0)
D[10:8] aDCS[2:0]: Start Channel Select Bits
Sets the conversion start channel with a channel number from 0 to 7. (Default: 0x0 = AIN0)
D7
STMD: Conversion Result Storing Mode Bit
Selects the data alignment when the conversion results are loaded into ADD[15:0].
1 (R/W): Left justify mode (10-bit conversion results
→
ADD[15:6], ADD[5:0] = 0)
0 (R/W): Right justify mode (10-bit conversion results
→
ADD[9:0], ADD[15:10] = 0) (default)
D6
aDMS: Conversion Mode Select Bit
Selects an A/D conversion mode.
1 (R/W): Continuous conversion mode
0 (R/W): One-time conversion mode (default)
Writing 1 to ADMS sets the A/D converter to continuous conversion mode. In this mode, A/D conver-
sions in the range of the channels selected by ADCS[2:0] and ADCE[2:0] are executed continuously
until stopped with software.