aPPenDiX a liST OF i/O ReGiSTeRS
aP-a-22
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
0x5300–0x530c
16-bit PWM Timer (T16e) Ch.0
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T16e Ch.0
Compare Data
a Register
(T16e_Ca0)
0x5300
(16 bits)
D15–0 Ca[15:0]
Compare data A
CA15 = MSB
CA0 = LSB
0x0 to 0xffff
0x0 R/W
T16e Ch.0
Compare Data
B Register
(T16e_CB0)
0x5302
(16 bits)
D15–0 CB[15:0]
Compare data B
CB15 = MSB
CB0 = LSB
0x0 to 0xffff
0x0 R/W
T16e Ch.0
Counter Data
Register
(T16e_TC0)
0x5304
(16 bits)
D15–0 TC[15:0]
Counter data
TC15 = MSB
TC0 = LSB
0x0 to 0xffff
0x0 R/W
T16e Ch.0
Control Register
(T16e_CTl0)
0x5306
(16 bits)
D15–9 –
reserved
–
–
–
0 when being read.
D8
iniTOl
Initial output level
1 High
0 Low
0
R/W
D7
–
reserved
–
–
–
0 when being read.
D6
SelFM
Fine mode select
1 Fine mode
0 Normal mode
0
R/W
D5
CBuFen
Comparison buffer enable
1 Enable
0 Disable
0
R/W
D4
inVOuT
Inverse output
1 Invert
0 Normal
0
R/W
D3
ClKSel
Input clock select
1 External
0 Internal
0
R/W
D2
OuTen
Clock output enable
1 Enable
0 Disable
0
R/W
D1
T16eRST
Timer reset
1 Reset
0 Ignored
0
W 0 when being read.
D0
T16eRun
Timer run/stop control
1 Run
0 Stop
0
R/W
T16e Ch.0 Clock
Division Ratio
Select Register
(T16e_DF0)
0x5308
(16 bits)
D15–4 –
reserved
–
–
–
0 when being read.
D3–0 T16eDF[3:0] Clock division ratio select
T16EDF[3:0]
Division ratio
0x0 R/W Source clock = PCLK
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
1/16384
1/8192
1/4096
1/2048
1/1024
1/512
1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1/1
T16e Ch.
x
interrupt Mask
Register
(T16e_iMSK
x
)
0x530a
(16 bits)
D15–2 –
reserved
–
–
–
0 when being read.
D1
CBie
Compare B interrupt enable
1 Enable
0 Disable
0
R/W
D0
Caie
Compare A interrupt enable
1 Enable
0 Disable
0
R/W
T16e Ch.
x
interrupt Flag
Register
(T16e_iFlG
x
)
0x530c
(16 bits)
D15–2 –
reserved
–
–
–
0 when being read.
D1
CBiF
Compare B interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D0
CaiF
Compare A interrupt flag
0
R/W
0x4020, 0x5320–0x532c
MiSC Registers
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
Prescaler
Control Register
(PSC_CTl)
0x4020
(8 bits)
D7–2 –
reserved
–
–
–
0 when being read.
D1
PRunD
Run/stop select in debug mode
1 Run
0 Stop
0
R/W
D0
PRun
Prescaler run/stop control
1 Run
0 Stop
0
R/W
FlaShC
Control Register
(MiSC_Fl)
0x5320
(16 bits)
D15–10 –
reserved
–
–
–
0 when being read.
D9–8 –
reserved
–
0x3
–
D7–3 –
reserved
–
–
–
0 when being read.
D2–0 FlCYC[2:0] FLASHC read access cycle
FLCYC[2:0]
Read cycle
0x3 R/W
0x7–0x5
0x4
0x3
0x2
0x1
0x0
reserved
1 cycle
5 cycles
4 cycles
3 cycles
2 cycles
OSC1 Peripheral
Control Register
(MiSC_OSC1)
0x5322
(16 bits)
D15–1 –
reserved
–
–
–
0 when being read.
D0
O1DBG
Run/stop select in debug mode
(except PCLK peripheral circuits)
1 Run
0 Stop
0
R/W