S1C63666 TECHNICAL MANUAL
EPSON
101
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Sound Generator)
4.13.4 Digital envelope
A digital envelope for duty control can be added to the buzzer signal.
The envelope can be controlled by staged changing of the same duty envelope as detailed in Table 4.13.3.2
in the preceding item from level 1 (maximum) to level 8 (minimum).
The addition of an envelope to the buzzer signal can be done by writing "1" into ENON, but when "0" has
been written it is not added.
When a buzzer signal output is begun (writing "1" into BZE) after setting ENON, the duty ratio shifts to
level 1 (maximum) and changes in stages to level 8.
When attenuated down to level 8 (minimum), it is retained at that level. The duty ratio can be returned to
maximum, by writing "1" into register ENRST during output of a envelope attached buzzer signal.
The envelope attenuation time (time for changing of the duty ratio) can be selected by the register
ENRTM. The time for a 1 stage level change is 62.5 msec (16 Hz), when "0" has been written into ENRTM
and 125 msec (8 Hz), when to "1" has been written. However, there is also a max. 4 msec error from
envelope ON, up to the first change.
Figure 4.13.4.1 shows the timing chart of the digital envelope.
BZFQ0–2
ENON
ENRST
ENRTM
BZE
t
01
t
02
t
03
t
04
t
05
t
06
t
07
t
01
t
11
t
12
t
13
t
14
t
15
t
16
t
17
Level 1 (Max.)
2
3
4
5
6
7
8 (Min.)
BZ signal
duty ratio
No change of duty level
t
01
t
02–07
= 62.5 msec
= 62.5 msec
+0
–4
t
11
t
12–17
= 125 msec
= 125 msec
+0
–4
Fig. 4.13.4.1 Timing chart for digital envelope