aPPenDiX a liST OF i/O ReGiSTeRS
aP-a-8
Seiko epson Corporation
S1C17153 TeChniCal Manual
(Rev. 1.0)
0x5120
Power Generator
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
V
D1
Control
Register
(VD1_CTl)
0x5120
(8 bits)
D7–6
–
reserved
–
–
–
0 when being read.
D5
hVlD
V
D1
heavy load protection mode
1 On
0 Off
0
R/W
D4–0
–
reserved
–
–
–
0 when being read.
0x506e, 0x5180–0x5182
Sound Generator
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
SnD Clock
Control Register
(SnD_ClK)
0x506e
(8 bits)
D7–1
–
reserved
–
–
–
0 when being read.
D0
SnDClKe
SND clock enable
1 Enable
0 Disable
0
R/W
SnD Control
Register
(SnD_CTl)
0x5180
(8 bits)
D7–6
–
reserved
–
–
–
0 when being read.
D5–4
BZTM[1:0]
Buzzer envelope time/one-shot
output time select
BZTM[1:0]
Time
0x0 R/W
0x3
0x2
0x1
0x0
125 ms
62.5 ms
31.25 ms
15.63 ms
D3–2
BZMD[1:0]
Buzzer mode select
BZMD[1:0]
Mode
0x0 R/W
0x3
0x2
0x1
0x0
reserved
Envelope
One-shot
Normal
D1
–
reserved
–
–
–
0 when being read.
D0
BZen
Buzzer output control
1 On/Trigger
0 Off
0
R/W
Buzzer
Frequency
Control Register
(SnD_BZFQ)
0x5181
(8 bits)
D7–3
–
reserved
–
–
–
0 when being read.
D2–0
BZFQ[2:0]
Buzzer frequency select
BZFQ[2:0]
Frequency
0x0 R/W
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
1170.3 Hz
1365.3 Hz
1638.4 Hz
2048.0 Hz
2340.6 Hz
2730.7 Hz
3276.8 Hz
4096.0 Hz
Buzzer
Duty Ratio
Control Register
(SnD_BZDT)
0x5182
(8 bits)
D7–3
–
reserved
–
–
–
0 when being read.
D2–0
BZDT[2:0]
Buzzer duty ratio select
BZDT[2:0]
Duty (volume) 0x0 R/W
0x7
:
0x0
Level 8 (Min.)
:
Level 1 (Max.)
0x5200–0x52a2
P Port & Port MuX
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
P0 Port input
Data Register
(P0_in)
0x5200
(8 bits)
D7–0
P0in[7:0]
P0[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P0 Port Output
Data Register
(P0_OuT)
0x5201
(8 bits)
D7–0
P0OuT[7:0]
P0[7:0] port output data
1 1 (H)
0 0 (L)
0
R/W
P0 Port
Output enable
Register
(P0_Oen)
0x5202
(8 bits)
D7–0
P0Oen[7:0]
P0[7:0] port output enable
1 Enable
0 Disable
0
R/W
P0 Port Pull-up
Control Register
(P0_Pu)
0x5203
(8 bits)
D7–0
P0Pu[7:0]
P0[7:0] port pull-up enable
1 Enable
0 Disable
1
(0xff)
R/W
P0 Port
interrupt Mask
Register
(P0_iMSK)
0x5205
(8 bits)
D7–0
P0ie[7:0]
P0[7:0] port interrupt enable
1 Enable
0 Disable
0
R/W
P0 Port
interrupt edge
Select Register
(P0_eDGe)
0x5206
(8 bits)
D7–0
P0eDGe[7:0]
P0[7:0] port interrupt edge select
1 Falling edge 0 Rising edge
0
R/W
P0 Port
interrupt Flag
Register
(P0_iFlG)
0x5207
(8 bits)
D7–0
P0iF[7:0]
P0[7:0] port interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.