25 A/D CONVERTER (ADC10)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
25-9
A/D Conversion Result Register (ADC10_ADD)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
A/D Conversion
Result Register
(ADC10_ADD)
0x301300
(16 bits)
D15–0 ADD[15:0] A/D converted data
ADD[9:0] are effective when
STMD = 0 (ADD[15:10] = 0)
ADD[15:6] are effective when
STMD = 1 (ADD[5:0] = 0)
0x0 to 0x3ff
0x0
R
D[15:0] ADD[15:0]: A/D Converted Data Bits
The A/D conversion results are stored. (Default: 0x0)
The data alignment in this 16-bit register (conversion result storing mode) can be selected using the
STMD/ADC10_TRG register.
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 25.
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)
0x301302
(16 bits)
D15–14 –
reserved
–
–
–
0 when being read.
D13–11 ADCE[2:0] End channel select
0x0 to 0x5
0x0 R/W
D10–8 ADCS[2:0] Start channel select
0x0 to 0x5
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
#ADTRIG pin
reserved
T8 Ch.2
Software
D3
–
reserved
–
–
–
0 when being read.
D2–0 ADST[2:0] Sampling time setting
ADST[2:0]
Sampling time 0x7 R/W Always set to 0x7.
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
9•ADCCLK
8•ADCCLK
7•ADCCLK
6•ADCCLK
5•ADCCLK
4•ADCCLK
3•ADCCLK
2•ADCCLK
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 5. (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 25.
ADCS[2:0]/ADCE[2:0]
Channel selected
0x7–0x6
Reserved
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 5. (Default: 0x0 = AIN0)
D7
STMD: Conversion Result Storing Mode Bit
Selects the data alignment when the conversion results are loaded into ADD[15:0].