15 SOunD GeneRaTOR
15-4
Seiko epson Corporation
S1C63003/004/008/016 TeChniCal Manual
(Rev. 1.1)
256 Hz
SHTPW
BZSHT (W)
BZSHT (R)
BZSTP
BZ output
6.1 Timing chart for one-shot output
Figure 15.
i/O Memory of Sound Generator
15.7
Table 15.7.1 shows the I/O addresses and the control bits for the sound generator.
7.1 Control bits of sound generator
Table 15.
Address
Register name R/W Default
Setting/data
Function
FF16H D3 MDCKE (
*
5)
R/W
0
1 Enable
0 Disable
Integer multiplier clock enable
D2
SGCKe
R/W
0
1 Enable
0 Disable
Sound generator clock enable
D1 SWCKE
R/W
0
1 Enable
0 Disable
Stopwatch timer clock enable
D0 RTCKE
R/W
0
1 Enable
0 Disable
Clock timer clock enable
FF44H D3
enRTM
R/W
0
1 1 sec
0 0.5 sec
Envelope releasing time selection
D2
enRST (
*
3)
W (Reset) 1 Reset
0 Invalid
Envelope reset (writing)
D1
enOn
R/W
0
1 On
0 Off
Envelope On/Off
D0
BZe
R/W
0
1 Enable
0 Disable
Buzzer output enable
FF45H D3 0 (
*
3)
R
– (
*
2)
–
Unused
D2
BZSTP (
*
3)
W
0
1 Stop
0 Invalid
1-shot buzzer stop (writing)
D1
BZShT
R/W
0
1 Trigger (W)
Busy (R)
0 Invalid (W)
Ready (R)
1-shot buzzer trigger (writing)
1-shot buzzer status (reading)
D0
ShTPW
R/W
0
1 125 msec
0 31.25 msec
1-shot buzzer pulse width setting
FF46H D3 0 (
*
3)
R
– (
*
2)
–
Unused
D2
BZFQ2
R/W
0
7 1170.3
4 2048.0
1 3276.8
Buzzer frequency (Hz) selection
D1
BZFQ1
R/W
0
6 1365.3
3 2340.6
0 4096.0
D0
BZFQ0
R/W
0
5 1638.4
2 2730.7
FF47H D3 0 (
*
3)
R
– (
*
2)
–
Unused
D2
BDTY2
R/W
0
7 Level 8
4 Level 5
1 Level 2
Buzzer signal duty ratio selection
D1
BDTY1
R/W
0
6 Level 7
3 Level 4
0 Level 1
(max.)
D0
BDTY0
R/W
0
5 Level 6
2 Level 3
*
1 Initial value at initial reset
*
2 Not set in the circuit
*
3 Constantly "0" when being read
*
4 Unused in the S1C63003/004/008
*
5 Unused in the S1C63003/004
*
6 Unused in the S1C63003
SGCKe: Sound generator clock enable register (FF16h•D2)
Controls the clock supply to the sound generator.
When "1" is written: On
When "0" is written: Off
Reading: Valid
When "1" is written to SGCKE, the sound generator operating clock is supplied from the clock manager. If it is
not necessary to run the sound generator, stop the clock supply by setting SGCKE to "0" to reduce current con-
sumption. At initial reset, this register is set to "0."
BZe: Buzzer output enable register (FF44h•D0)
Controls the buzzer signal output.
When "1" is written: Buzzer output On
When "0" is written: Buzzer output Off
Reading: Valid
When "1" is written to BZE, the BZ signal is output from the BZ (P12) terminal. The I/O control register IOC12
and data register P12 settings are ineffective while the BZ signal is being output. When BZE is set to "0," the P12
port is configured as a general-purpose DC input/output port. At initial reset, this register is set to "0."