
S1C88409 TECHNICAL MANUAL
EPSON
155
CHAPTER 5: PERIPHERAL CIRCUITS AND OPERATION (Sound Generator)
BZSHT: One-shot buzzer trigger/status
(00FF54HD5)
Controls the one-shot buzzer output.
When "1" is written: Trigger
When "0" is written: No operation
When "1" is read: Busy
When "0" is read: Ready
Writing "1" into BZSHT causes the one-shot output
circuit to operate and the BZ signal to be output.
The buzzer output is automatically turned OFF
after the time set by SHTPW has elapsed. At this
time, the high-impedance control register of the
output port R42 must be set to "0" and the data
register must be "1".
The one-shot output is only valid when the normal
buzzer output is OFF (BZON = "0") status. The
trigger is invalid during ON (BZON = "1") status.
When a re-trigger is assigned during a one-shot
output, the one-shot output time set with SHTPW
is measured again from that point. (time extension)
The operation status of the one-shot output circuit
can be confirmed by reading BZSHT, when the
one-shot output is ON (busy), BZSHT is read as "1"
and when the output is OFF (ready), it is read as
"0".
At initial reset, BZSHT is set to "0" (ready).
BZSTP: One-shot buzzer forcibly stop
(00FF54HD6)
Forcibly stops the one-shot buzzer output.
When "1" is written: Forcibly stop
When "0" is written: No operation
Reading: Constantly "0"
By writing "1" into BZSTP, the one-shot buzzer
output can be stopped prior to the elapsing of the
time set with SHTPW.
Writing "0" is invalid and writing "1" except during
one-shot output is also invalid.
When "1" is written to BZSHT and BZSTP simulta-
neously, BZSTP takes precedence and one-shot
output becomes stop status.
Since BZSTP is for writing only, during readout it
is constantly set to "0".
5.15.7 Programming notes
(1) Since the BZ signal is generated asynchro-
nously from the register BZON, when the
signal is turned ON or OFF by the register
setting, a hazard of a 1/2 cycle or less is
generated.
(2) The SLP instruction has executed when the BZ
signal is in the enable status (BZON = "1" or
BZSHT = "1"), an unstable clock is output from
the R42 output port terminal at the time of
return from the SLEEP status. Consequently,
when shifting to the SLEEP status, you should
set the BZ signal to the disable status (BZON =
BZSHT = "0") prior to executing the SLP
instruction.
(3) The one-shot output is only valid when the
normal buzzer output is OFF (BZON = "0")
status. The trigger is invalid during ON (BZON
= "1") status.