24 A/D Converter (ADC10SA)
S1C17602 TECHNICAL MANUAL
EPSON
24-13
ADC10SA
0x5382: ADC10 Trigger/Channel Selection Register (ADC10_TRG)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
A/D trigger/
Channel
Select
(ADC10_TRG)
0x5382
(16 bits)
D15–14
–
reserved
–
0 when being read.
D13–11
ADCE[2:0] End channel selection
0x0–0x7
0
R/W
D10–8
ADCS[2:0] Start channel selection
0x0–0x7
0
R/W
D7
STMD
Covnerted data store mode
1 {AD[9:0], 6’
b0}
0
{6’b0,
AD[9:0]}
0
R/W
D6
ADMS
Conversion mode selection
1 continuous 0
single
0
R/W
D5–4
ADTS[1:0]
Conversion trigger selection
ADST[1:0]
trigger
0
R/W
0x3
0x2
0x1
0x0
#ADTRG pin
reserved
16bit timer
software
D3
–
reserved
–
0 when being read.
D2–0
ADST[2:0]
Sampling clock count
ADST[2:0]
count clock
0x7 R/W
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
9clocks
8clocks
7clocks
6clocks
5clocks
4clocks
3clocks
2clocks
D[15:14] Reserved
D[13:11] ADCE[2:0]: End Channel Selection Bits
Set the conversion end channel within (0–7) channel numbers.
Analog input from the channel set by ADCS register up to the channel set by register can be converted
continuously in 1 A/D conversion.
When A/D is to be converted only for 1 channel, set the same channel numbers in ADCS register and
ADCE register.
ADCE is set to 0 (AIN0) at the time of initial reset.
D[10:8]
ADCS[2:0]: Start Channel Selection Bit
Set the conversion start channel with channel numbers (0–7).
Analog input from the channel set by this register up to the channel set by ADCE register can be
converted continuously in 1 A/D conversion.
When A/D is converted for only 1 channel, set the same channel number in ADCS register and ADCE
register.
ADCS is set to 0 (AIN0) at the time of initial reset.
D7
STMD: Converted Data Store Mode Bit
Select the method to store conversion result to ADD register.
For the details, refer to ADD register.
STMD is set to 0 (ADD [15:10]=6’b0, ADD[9]=MSB, ADD[0]=LSB) at the time of initial reset.
D6
ADMS: Conversion Mode Selection Bit
Select the A/D conversion mode.
1 (R/W) : Continuous conversion mode
0 (R/W) : Single conversion mode
A/D converter is set to continuous mode by writing 1 to ADMS. A/D conversion in the range of channel
selected by ADCS and ADCE can be performed continuously till software stops it.
When ADMS is 0, it operates in single conversion mode and A/D conversion for all inputs in the range
of channel selected by ADCS and ADCE register is performed once and stopped.
ADMS is set to 0 (single conversion mode) at the time of initial reset.