E0C88832/88862 TECHNICAL MANUAL
EPSON
105
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Sound Generator)
BZFQ0–2
ENON
ENRST
ENRTM
BZON
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)
Buzzer
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. 5.12.4.1 Timing chart of digital envelope
Fig. 5.12.5.1 Timing chart of one-shot output
5.12.5 One-shot output
The sound generator has a built-in one-shot output
function for outputting a short duration buzzer
signal for key operation sounds and similar effects.
Either 125 msec or 31.25 msec can be selected by the
one-shot buzzer duration selection register SHTPW
for buzzer signal output time.
The output control of the one-shot buzzer is done
by writing "1" to the one-shot buzzer trigger
BZSHT, then the buzzer signal is output in synchro-
nization with the internal 256 Hz signal from the
output port terminal. Thereafter, when the set time
has elapsed, the buzzer signal in synchronization
with the 256 Hz signal automatically goes OFF in
the same manner.
The BZSHT can be read to determine status. When
BZSHT is "1", it indicates a BUSY status (during
one-shot output) and when BZSHT is "0", it indi-
cates a READY status (during stop).
When you want to turn the buzzer signal OFF prior
to the elapse of the set time, the buzzer signal can
be immediately stopped (goes OFF in
asynchonization with 256 Hz signal) by writing "1"
to the one-shot forced stop bit BZSTP.
Since the one-shot output has a short duration, an
envelope cannot be added. (When "1" is written to
BZSHT, ENON is automatically reset to "0".)
Consequently, only the frequency and sound level
can be set for one-shot output.
The control for the one-shot output is invalid
during normal buzzer output.
Figure 5.12.5.1 shows the timing chart of the one-
shot output.
256 Hz
SHTPW
BZSHT(W)
BZSHT(R)
BZSTP
BZ output (R50)
BZ output (R51)
*
∗
when selected by mask option
5.12.4 Digital envelope
A digital envelope with duty control can be added
to the buzzer signal.
The envelope can be realized by staged changing of
the same duty ratio as detailed in Table 5.12.3.2 in
the preceding section from level 1 (maximum) to
level 8 (minimum).
The addition of an envelope to the buzzer signal
can be done by writing "1" to the envelope control
register ENON. When "0" is written, the duty ratio
is set at the level selected in DUTY0–DUTY2.
By writing "1" to ENON to turn the buzzer output
ON (writing "1" to BZON), the buzzer signal with a
level 1 duty ratio is output, and then the duty ratio
can be attenuated in stages to level 8. The attenu-
ated envelope can be returned to level 1 by writing
"1" to the envelope reset bit ENRST. When attenu-
ated to level 8, the duty level remains at level 8
until the buzzer output is turned OFF (writing "0"
to BZON) or writing "1" to ENRST.
The stage changing time for the envelope level can
be selected either 125 msec or 62.5 msec by the
envelope attenuation time selection register
ENRTM.
Figure 5.12.4.1 shows the timing chart of the digital
envelope.
Summary of Contents for 0C88832
Page 6: ......