
HT1130
11
May24,1999
Initialreset
The HT1130 provides an RES pin for system
initialization. This pin is equipped with an in-
ternal pull high resistor and in combination
with an external 0.1
m
~1
m
F capacitor, provides
an internal reset pulse of sufficient length to
guarantee a reset to all internal circuits. If the
reset pulse is generated externally, theRES pin
must be held low for at least 5ms. Normal cir-
cuit operation will not commence until the RES
pinreturnshigh.
Theresetperformsthefollowingfunctions:
·
SetstheprogramcounterPCto000H
·
Disablestheinterruptmode
·
Stopsthetimer
·
Resetsthetimerandtimerflag
·
Clearsthecarryflag
·
Setsthesoundoffandonesingmode
·
SetsportAhighorfloating
Halt
This is a special feature of the HT1130 to inter-
rupt the chip s normal operation and reduce
power consumption. When a HALT is executed
thefollowinghappens...
·
Thesystemclockwillbestopped.
·
The contents of the on-chip RAM and regis-
tersremainunchanged.
·
All of the LCD segments and commons will
have the VLCD voltage so the LCD becomes
blank.
The halt status can be terminated by an exter-
nalinterruptorahardwarereset.
In the HALT mode any bit of ports PP, PS, PM
can be used as external interrupts set by mask
option to wake-up the system. This signal is ac-
tiveonalow-goingtransition.
When the halt status is terminated by an exter-
nal interrupt, the following procedure takes
place...
Case 1: If the system is in an interrupt-disable
statebeforeenteringthehaltstate:
·
The instruction HALT is executed and the
systementersahaltstate
·
A falling edge transition on INT, or on any of
the wake up pins on ports PP, PS or PM, will
awaken the system and return to the main
program instruction following the HALT com-
mand.
·
An interrupt signal, whether caused by INT
or the ports PP,PS or PM, will be held until
the system receives an enable interrupt com-
mand at which point the held interrupt will
beserviced.
Case 2: If the system is in an interrupt enable
state:
·
The instruction HALT is executed and the
systementersahaltstate
·
A falling edge transition on INT, or on any of
the wake up pins on ports PP, PS or PM, will
awaken the system and execute the external
interruptsubroutine
Soundeffects
The HT1130 includes sound effect circuitry
which offers up to 16 sounds with 3 tones, boom
and noise effects. Holtek supports a sound li-
brary which has melodies, alarms, machine
gunsetc..
Whenever the instruction "SOUND n" or
"SOUND A" is executed, the specified sound
will begin. Whenever "SOUND OFF" is exe-
cuted, it terminates the singing sound immedi-
ately.
There are two singing modes, SONE mode and
SLOOP mode activated by SOUND ONE and
SOUND LOOP. In SONE mode the specified
sound plays just once. In SLOOP mode the
specifiedsoundkeepsre-playing.
Since sounds 0~11 contain 32 notes and sounds
12~15 contain 64 notes the latter possesses
bettersoundthantheformer.
The frequency of the sound effect circuit can be
selectedbymaskoption.