58
EPSON
S1C60N16 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Sound Generator)
4.11.5 Control of sound generator
Table 4.11.5.1 lists the sound generator's control bits and their addresses.
Table 4.11.5.1 Control bits of sound generator
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
10
5 Undefined
1
2
Initial value at initial reset
Not set in the circuit
3
4
Always "0" being read
Reset (0) immediately after being read
2F6H
BZFQ2
BZFQ1
BZFQ0 ENVRST
R/W
W
BZFQ2
BZFQ1
BZFQ0
ENVRST3
0
Reset
–
Buzzer
frequency
selection
Envelope reset
2F7H
ENVON ENVRT AMPDT AMPON
RR/W
R/W
ENVON
ENVRT
AMPDT
AMPON
0
1
0
On
1.0 sec
+ > -
On
Off
0.5 sec
+ < -
Off
Envelope On/Off
Envelope cycle selection register
Analog comparator data
Analog comparator On/Off
0
fOSC1/8
1
fOSC1/10
2
fOSC1/12
3
fOSC1/14
[BZFQ2–0]
Frequency
4
fOSC1/16
5
fOSC1/20
6
fOSC1/24
7
fOSC1/28
[BZFQ2–0]
Frequency
2ECH
R13
R12
R11
SIOF
R10
R/W
R
R/W
R13
R12
R11
SIOF
R10
0
High/On
High
Run
High/On
Low/Off
Low
Stop
Low/Off
Output port (R13)/BZ output control
Output port (R12)/FOUT output control
Output port (R11)
Output port (SIOF)
Output port (R10)/BZ output control
BZFQ0–BZFQ2: Buzzer frequency selection register (2F6HD1–D3)
This is used to select the frequency of the buzzer signal.
Table 4.11.5.2 Buzzer frequency
BZFQ2
0
1
Buzzer frequency (Hz)
fOSC1/8
fOSC1/10
fOSC1/12
fOSC1/14
fOSC1/16
fOSC1/20
fOSC1/24
fOSC1/28
BZFQ1
0
1
0
1
BZFQ0
0
1
0
1
0
1
0
1
Buzzer frequency is selected from the above eight types that have been divided by fOSC1 (oscillation
frequency of the OSC1 oscillation circuit).
At initial reset, fOSC1/8 (Hz) is selected.
ENVRST: Envelope reset (2F6HD0)
This is the reset input to make the duty ratio of the buzzer signal the maximum.
When "1" is written : Reset input
When "0" is written : No operation
Read-out : Always "0"
When the envelope is added to the buzzer signal, the duty ratio is made maximum through this reset
input. When the envelope is not added or when the buzzer signal is not output, the reset input is invalid.
ENVON: Envelope ON/OFF (2F7HD3)
This controls adding the envelope to the buzzer signal.
When "1" is written : Envelope added (ON)
When "0" is written : No envelope (OFF)
Read-out : Valid
The envelope is the digital envelope based on duty ratio control. When there is no envelope, the duty
ratio is fixed to the maximum.
At initial reset, no envelope (OFF) is selected.