19-9
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
(MSB)
12-bit conversion result
(LSB)
0
0
0
0
0
0
0
0
(MSB)
12-bit conversion result
(LSB)
This bit enables the ADC12A operations.
1 (R/W): Enable ADC12A operations (The operating clock is supplied.)
0 (R/W): Disable ADC12A operations (The operating clock is stopped.)
Note:
After 0 is written to the ADC12A_
n
CTL.MODEN bit, the ADC12A executes a terminate
processing. Before the clock source is deactivated, read the ADC12A_
n
CTL.MODEN bit to
make sure that it is set to 0.
ADC12A Ch.
n
Trigger/Analog Input Select Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
ADC12A_
n
TRG
15
–
14
–
0x0
–
R
–
13
–
11
ENDAIN[2:0]
0x0
H0
R/W
10
–
8
STAAIN[2:0]
0x0
H0
R/W
7
STMD
0
H0
R/W
6
CNVMD
0
H0
R/W
5
–
4
CNVTRG[1:0]
0x0
H0
R/W
3
–
0
–
R
2
–
0
SMPCLK[2:0]
0x7
H0
R/W
Note:
Make sure that the ADC12A_
n
CTL.BSYSTAT bit is set to 0 before altering the ADC12A_
n
TRG register.
Bits 15
–
14 Reserved
Bits 13
–
11 ENDAIN[2:0]
These bits set the analog input pin to be A/D converted last.
See Table 19.7.1 for the relationship between analog input pins and bit setting values.
Note:
The analog input pin range to perform A/D conversion must be set as ADC12A_
n
TRG. ENDAIN[2:0]
bits
≥
ADC12A_
n
TRG.STAAIN[2:0] bits.
Bits 10
–
8
STAAIN[2:0]
These bits set the analog input pin to be A/D converted first.
See Table 19.7.1 for the relationship between analog input pins and bit setting values.
Bit 7
STMD
This bit selects the data alignment when the conversion results are loaded into the A/D
conversion result register (ADC12A_
n
ADD.ADD[15:0] bits).
1 (R/W): Left justify
0 (R/W): Right justify
All the A/D conversion result registers change their data alignment immediately after
this bit is altered. This does not affect the conversion results.
ADC12A_
n
ADD.ADD[15:0] bits
Left justified (ADC12A_
n
TRG.STMD bit = 1)
Right justified (ADC12A_
n
TRG.STMD bit = 0)
Figure 19.7.1 Conversion Data Alignment
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...