17 SOunD GeneRaTOR (SnD)
S1C17153 TeChniCal Manual
Seiko epson Corporation
17-5
(Rev. 1.0)
BZEN (WR)
BZEN (RD)
BZ output
#BZ output
Duty ratio
(Volume level)
Write 1
125/62.5/31.25/15.63 ms
Write 0
Write 1
Level 1
2
3
4
5
6
7
8
5.4.1 Buzzer Output in Envelope Mode
Figure 17.
Control Register Details
17.6
6.1 List of SND Registers
Table 17.
address
Register name
Function
0x506e
SND_CLK
SND Clock Control Register
Controls the SND clock.
0x5180
SND_CTL
SND Control Register
Controls buzzer outputs.
0x5181
SND_BZFQ
Buzzer Frequency Control Register
Sets the buzzer frequency.
0x5182
SND_BZDT
Buzzer Duty Ratio Control Register
Sets the buzzer signal duty ratio.
The SND module registers are described in detail below.
note
: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.
SnD Clock Control Register (SnD_ClK)
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
D[7:1]
Reserved
D0
SnDClKe: SnD Clock enable Bit
Enables or disables the OSC1A clock supply to the SND module.
1 (R/W): Enabled (on)
0 (R/W): Disabled (off) (default)
The SNDCLKE default setting is 0, which disables the clock supply. Setting SNDCLKE to 1 sends the
OSC1A clock to the SND module to enable buzzer outputs. If no buzzer output is required, stop the
clock to reduce current consumption.
SnD Control Register (SnD_CTl)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
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
D[7:6]
Reserved