
Appendix A: I/O Register List
S1C17003 TECHNICAL MANUAL
EPSON
AP-29
AP
0x5380–0x5386
ADC10SA
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
A/D Conversion
Result Register
(ADC10_ADD)
0x5380
(16 bits)
D15–0 ADD[15:0] A/D converted data
@STMD=0
ADD[15:10]=6’b0,ADD9=MSB,
ADD0=LSB
@STMD=1
ADD15=MSB,ADD6=LSB,
ADD[5:0]=6’b0
0-1023
0
R
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
Converted 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
Conversion trigger selection
ADTS[2: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 Must set 0x7
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
9clocks
8clocks
7clocks
6clocks
5clocks
4clocks
3clocks
2clocks
A/D Control/
Status Register
(ADC10_CTL)
0x5384
(16 bits)
D15
–
reserved
–
0 when being read.
D14–12 ADICH
Internal conversion channel status
0x0-0x7
0
R
D11
–
reserved
–
0 when being read.
D10
ADIBS
Internal busy 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-complete flag
1 Completed 0 Not
completed
0
R Reset when
ADC10_ADD is read.
D7–6 –
reserved
–
0 when being read.
D5
ADOIE
Overwrite interrupt enable
1 Enable
0 Disable
0
R/W
D4
ADCIE
Conversion-complete interrupt
enable
1 Enable
0 Disable
0
R/W
D3–2 –
reserved
–
0 when being read.
D1
ADCTL
conversion control
1 Start/Run
0 Stop
0
R/W Stop by writing 0
D0
ADEN
A/D enable
1 Enable
0 Disable
0
R/W
A/D divided
frequency
Register
(ADC_DIV)
0x5386
(16 bits)
D15–4 –
reserved
–
0 when being read.
D3–0 ADDF[3:0] A/D converter clock divided
frequency select
ADDF[3:0]
clock
0
R/W
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
Reserved
PCLK 1/32768
PCLK 1/16384
PCLK 1/8192
PCLK 1/4096
PCLK 1/2048
PCLK 1/1024
PCLK 1/512
PCLK 1/256
PCLK 1/128
PCLK 1/64
PCLK 1/32
PCLK 1/16
PCLK 1/8
PCLK 1/4
PCLK 1/2