SIC63616-(Rev. 1.0) NO. P139
3240-0412
4.11.7 I/O memory of sound generator
Table 4.11.7.1 shows the I/O addresses and the control bits for the sound generator.
Table 4.11.7.1 Control bits of sound generator
D3
D2
D1
D0
Name Init
∗
1
1
0
FF16H
MDCKE SGCKE SWCKE RTCKE
R/W
MDCKE
SGCKE
SWCKE
RTCKE
0
0
0
0
Enable
Enable
Enable
Enable
Disable
Disable
Disable
Disable
Integer multiplier clock enable
Sound generator clock enable
Stopwatch timer clock enable
Clock timer clock enable
Address
Comment
Register
0
4096.0
1
3276.8
2
2730.7
3
2340.6
[BZFQ2–0]
Frequency (Hz)
4
2048.0
5
1638.4
6
1365.3
7
1170.3
[BZFQ2–0]
Frequency (Hz)
FF44H
ENRTM ENRST ENON
BZE
R/W
W
R/W
ENRTM
ENRST
∗
3
ENON
BZE
0
Reset
0
0
1 sec
Reset
On
Enable
0.5 sec
Invalid
Off
Disable
Envelope releasing time selection
Envelope reset (writing)
Envelope On/Off
Buzzer output enable
FF46H
0
BZFQ2 BZFQ1 BZFQ0
R
R/W
0
∗
3
BZFQ2
BZFQ1
BZFQ0
–
∗
2
0
0
0
Unused
Buzzer
frequency
selection
FF47H
0
BDTY2 BDTY1 BDTY0
R
R/W
0
∗
3
BDTY2
BDTY1
BDTY0
–
∗
2
0
0
0
Unused
Buzzer signal duty ratio selection
(refer to main manual)
FF45H
0
BZSTP BZSHT SHTPW
R
W
R/W
0
∗
3
BZSTP
∗
3
BZSHT
SHTPW
–
∗
2
0
0
0
Stop
Trigger
Busy
125 msec
Invalid
Invalid
Ready
31.25 msec
Unused
1-shot buzzer stop (writing)
1-shot buzzer trigger (writing)
1-shot buzzer status (reading)
1-shot buzzer pulse width setting
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
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
consumption.
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 P03 (BZ) terminal. The I/O control register
IOC03 and data register P03 settings are ineffective while the BZ signal is being output.
When BZE is set to "0", the P03 port is configured as a general-purpose DC input/output port.
At initial reset, this register is set to "0".