beautypg.com

Epson S1C63558 User Manual

Page 117

background image

S1C63558 TECHNICAL MANUAL

EPSON

107

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Sound Generator)

BDTY0–BDTY2: Duty level selection register (FF6FH•D0–D2)

Selects the duty ratio of the buzzer signal as shown in Table 4.12.7.3.

Table 4.12.7.3 Duty ratio setting

BDTY0

0

1

0

1

0

1

0

1

BDTY1

0

0

1

1

0

0

1

1

BDTY2

0

0

0

0

1

1

1

1

Level

Level 1 (Max.)

Level 2

Level 3

Level 4

Level 5

Level 6

Level 7

Level 8 (Min.)

4096.0

2048.0

8/16

7/16

6/16

5/16

4/16

3/16

2/16

1/16

3276.8

1638.4

8/20

7/20

6/20

5/20

4/20

3/20

2/20

1/20

2730.7

1365.3

12/24

11/24

10/24

9/24

8/24

7/24

6/24

5/24

2340.6

1170.3

12/28

11/28

10/28

9/28

8/28

7/28

6/28

5/28

Duty ratio by buzzer frequency (Hz)

The sound level of this buzzer can be set by selecting this duty ratio.
However, when the envelope has been set to ON (ENON = "1"), this setting becomes invalid.
At initial reset, this register is set to "0".

ENRST: Envelope reset (FF6CH•D2)

Resets the envelope.

When "1" is written: Reset
When "0" is written: No operation

Reading: Always "0"

Writing "1" into ENRST resets envelope and the duty ratio becomes maximum. If an envelope has not
been added (ENON = "0") and if no buzzer signal is being output, the reset becomes invalid. Writing "0"
is also invalid.
This bit is dedicated for writing, and is always "0" for reading.

ENON: Envelope ON/OFF control register (FF6CH•D1)

Controls the addition of an envelope onto the buzzer signal.

When "1" is written: ON
When "0" is written: OFF

Reading: Valid

Writing "1" into the ENON causes an envelope to be added during buzzer signal output. When a "0" has
been written, an envelope is not added.
At initial reset, this register is set to "0".

ENRTM: Envelope releasing time selection register (FF6CH•D3)

Selects the envelope releasing time that is added to the buzzer signal.

When "1" is written: 1.0 sec (125 msec

×

7 = 875 msec)

When "0" is written: 0.5 sec (62.5 msec

×

7 = 437.5 msec)

Reading: Valid

The releasing time of the digital envelope is determined by the time for converting the duty ratio.
When "1" has been written in ENRTM, it becomes 125 msec (8 Hz) units and when "0" has been written, it
becomes 62.5 msec (16 Hz) units.
At initial reset, this register is set to "0".