The HT84XXX family is a series of programma
ble speech synthesizers and tone generators designed for user-defined voice and melody
applications. It provides various sampling
rates and beats, tone levels, tempos for the
speech synthesizer and melody generator. The
HT84XXX series has two built-in high quality,
current type D/A outputs with 16 levels of volume control. The user¢s commands enable the
user to program the powerful custom function
HT84XXX
Magic Voice
5 octaves of tone level and 18 tempos
·
16 levels of digital volume control
·
Two current type D/A outputs
·
Eight programmable I/O pins
·
Four programmable input pins
·
Provides 36 sec to 384 sec of voice capacity
·
Timer controller
·
Voice fill-in function
·
Powerful user-defined functions
·
Power-on initial setting
·
28-pin SKDIP package
·
Speech synthesizers and sound effect
·
generators
such as to build-in a tiny controller. The Magic
-
TM
Voice
similar to arithmetic operation, logic operation,
branch decision, random counter, and a programmable timer. The Magic Voice
are suitable for versatile voice and sound effect
applications.
The HT84XXX Magic Voice
mat
provides various operational functions
TM
TM
supported.
TM
TM
series
is Easy For-
ROM Selection Table
The HT84XXX series provides various voice capacity as shown below:
Part No.HT84036HT84072HT84144HT84192HT84384
ROM768Kb1536Kb3072Kb4096Kb8192Kb
Voice
Length
Note: The voice capacity is based on a sampling rate of 21Kb/s
Magic VoiceTMis a trademark of Holtek Semiconductor Inc.
Easy Format
TM
is a trademark of Grow With Me, Inc.
36 sec72 sec144 sec192 sec384 sec
1April 26, 2000
Block Diagram
HT84XXX
OSC
PB0~PB7
PA0~PA3
VDD
VSS
Tim e Base
G enerator
D ecoder
I/O
C ontroller
Pin Assignment
1
NC
2
NC
3
NC
4
NC
5
NC
6
VDD
PB7
PB6
PB5
PB4
PB3
PB2
7
8
9
10
11
12
13
14
AUD 0
AUD 1
&
28
27
26
25
24
23
22
21
20
19
18
17
16
15
NC
NC
NC
NC
NC
OSC
VSS
VSS
PA0
PA1
PA2
PA3
PB0
PB1
Tone/M elody
Generator
DATA
& User
In struction
ROM
C u rre n t T y p e
D/A Output
Speech
Synthesizer
C u rre n t T y p e
D/A Output
AUD 0
AUD 1
HT84XXX
28 S K D IP
2April 26, 2000
Pad Assignment
HT84036
VDD
AUD 0
HT84XXX
1
(0 , 0 )
OSC
18
17
VSS
VSS
7168
AUD 1
PB7
PB6
PB5
PB3
PB4
Chip size: 2735 ´ 2105 (mm)
102113124
9
PB2
PB1
PB0
135146
PA3
PA2
15
PA0
PA1
2
* The IC substrate should be connected to VSS in the PCB layout artwork.
3April 26, 2000
HT84072
HT84XXX
(0 , 0 )
VDD
AUD 0
1
18
17
4
AUD 1
PB7
PB6
6157168
PB5
PB4
9
10211312
PB3
PB2
PB1
Chip size: 2735 ´ 2645 (mm)
13514
PA3
PB0
2
PA2
PA0
PA1
* The IC substrate should be connected to VSS in the PCB layout artwork.
OSC
VSS
VSS
4April 26, 2000
HT84144
VDD
HT84XXX
(0 , 0 )
1
OSC
18
AUD 0
7168179
AUD 1
PB7
PB5
PB6
PB3
PB4
Chip size: 2735 ´ 3735 (mm)
102113124135146
PA1
PA2
PB1
PB2
PA3
PB0
2
VSS
VSS
15
PA0
* The IC substrate should be connected to VSS in the PCB layout artwork.
5April 26, 2000
HT84192
HT84XXX
(0 ,0 )
VDD
AUD 0
1
2
3
AUD 1
5146157168
PB6
PB7
PB3
PB5
PB4
Chip size: 2735 ´ 4460 (mm)
18
OSC
VSS
17
VSS
11
10
9
PB2
12413
PA1
PA2
PA3
PB1
PB0
2
PA0
* The IC substrate should be connected to VSS in the PCB layout artwork.
6April 26, 2000
HT84384
HT84XXX
(0 , 0 )
VDD
AUD 0
1
2
7
8179
5
3
AUD 1
6
PB5
PB6
PB7
10
PB1
PB2
PB3
PB4
Chip size: 2740 ´ 7350 (mm)
11
PB0
12413
PA3
2
PA2
OSC1
18
VSS
16
VSS
14
15
PA0
PA1
* The IC substrate should be connected to VSS in the PCB layout artwork.
Bidirectional I/O pins
Can be optioned as trigger inputs or LED outputs
Bidirectional I/O pins
Can be optioned as CDS interface with internal
Schmitt trigger input
9April 26, 2000
HT84XXX
Pin No. Pin Name I/O
20~17PA0~PA3I
21, 22VSS
Internal
Connection
Wake-up
Pull-high
¾¾
Description
Trigger inputs
Can also be configured as wake-up inputs
Negative power supply, ground
Built-in RC oscillator
23OSCI
¾
An oscillator resistor is connected between OSC and
VSS
Absolute Maximum Ratings
Supply Voltage.................................-0.3V to 6V
Input Voltage .................V
-0.3V to VDD+0.3V
SS
Note: These are stress ratings only. Stresses exceeding the range specified under ²Absolute Maxi
mum Ratings² may cause substantial damage to the device. Functional operation of this device
at other conditions beyond those listed in the specification is not implied and prolonged expo
sure to extreme conditions may affect device reliability.
Electrical Characteristics
SymbolParameter
V
I
STB
I
DD
I
OL
I
O
f
SYS
DD
Operating Voltage
Standby Current3VNo load, system HALT
Operating Current3V
PB0~PB7 Sink Current3V
Max. AUD1 and AUD2
Output Current
System Frequency3V
V
DD
¾¾
3V
Storage Temperature.................-50°Cto125°C
Operating Temperature ..............-20°Cto70°C
Test Conditions
Min. Typ. Max. Unit
Conditions
No load, f
V
=0.3V
OL
=0.6V
V
OH
=240kW
R
OSC
SYS
2.4
=4MHz
-1.5-2¾
3.64.04.4MHz
¾
¾
¾
13
58mA
46
Ta=25°C
5.2V
mA
mA
¾
mA
-
-
10April 26, 2000
Functional Description
The Magic VoiceTMseries is a series of program
mable speech synthesizers and melody genera
tors. It provides various sampling rates and
beats, tone levels, tempos for speech synthe
sizer and melody generator. For voice synthe
sizer, the Magic Voice
6-bit m-law PCM and 4-bit ADPCM synthesis.
In HT84XXX series, a mixed output of two
channels PCM synthesis is allowed but only
one channel ADPCM synthesis is allowed. For
melody generator, the Magic Voice
a tone melody and PCM melody generator and
two channels mixed output for the whole series.
The Magic Voice
mable I/O pins and 4 programmable input pins
along with powerful user¢s command. The
user¢s instructions are employed to develop
new and customized functions for a wide vari
ety of innovative applications.
Speech and melody analysis
The speech and melody sources of the Magic
TM
Voice
can be recorded and edited from the PC
sound card and media tools. Holtek¢s CAD tools
first load a speech source file as .WAV or .PCM
format, then transfer the speech file as PCM,
LOG-PCM or ADPCM format, and finally save
it to the internal mask ROM by changing a
layer of the mask. The PCM format generates a
higher sound quality whereas the ADPCM format brings about a longer recording capacity.
The melody source can either be in the .MID or
in the .MLD format.
The .MID file is the standard format of the windows media tools. The .MLD file is a text for
mat. After the .MID file is compiled, the .MLD
file is automatically generated.
The Magic Voice
compression format of the voice .WAV and
.PCM file: AD4, PCM8, m-law PCM.
Current type D/A output
The HT84XXX series supply two high accuracy
current type D/A output pins for audio output.
The output volume is changeable from 0 to 15
digital levels by writing a value to the VOL
TM
provides 8-bit PCM,
TM
TM
series build-in 8 program
TM
can support the following
supports
UME_n (n=1 or 2) registers. The D/A pins are
PMOS open drain structure and ouput synthe
sized signals for driving a speaker through an
external NPN transistor when the chip is ac
tive. However, it becomes floating when the
chip is in the standby state. An 8050 type tran
sistor with h
=150 is recommended for the
FE
output driver of the D/A output pin.
Melody/Tone generator
The HT84XXX family has a built-in mel
ody/tone generator. The generator can generate
13 different kinds of melody beats, 5 octaves of
tone level, 18 tempos, and 2 channels mixed
output. Of these components, the melody tempo
is changeable and generates sound effects by
writing a control value to the TEMPO register.
The chip provides the following 18 tempos, 13
beats, and 5 octaves for user¢s programming.
·
18 tempos (Beats/Min.)
68788293100105
109114119125132139
147156179192227310
·
13 beats
1
24,112,18,16,14,13,12,23,34,
·
5 octaves
43,3
1,
2
2,
C1~B1, C2~B2, C3~B3, C4~B4, C5~B5
PCM/ADPCM synthesizer
The HT84XXX family contains a PCM and
ADPCM synthesizer. The synthesizer offers a
wide range of sampling rates from 4kHz to
24kHz for PCM synthesis and 4kHz to 16kHz
for ADPCM synthesis. The sampling rate of the
synthesizer can be changed by writing a control
value to the sampling rate register. It also sup
ports a small variety of 100Hz. For a higher
performance sound quality, the PCM coding is
required. But for a longer recording capacity,
the ADPCM coding is recommended.
-
HT84XXX
-
-
-
-
-
11April 26, 2000
HT84XXX
The capability of the voice sampling rate for
various voice compression format.
f
OSC
PCM8
m-law
PCM
AD4
4M12kHz11kHz8kHz
5M15kHz14kHz10kHz
6M18kHz16kHz12kHz
8M24kHz22kHz16kHz
Oscillator configuration
The HT84XXX series provides an RC oscillator
for the system clock. The system oscillator
stops in the standby state so as to reduce power
consumption.
For the oscillator circuit, an external resistor is
required between OSC and VSS. The oscillator
frequency is typically 4MHz for an external re
sistor of 240kW. The RC type of oscillator offers
the most cost-effective solution, although the
frequency of the oscillation may vary with tem
perature and the chip itself due to process vari
ation.
R
OSC
f
OSC
4M
5M
6M
8M
HT84EVA HT84P00IC
180kW240kW240kW
150kW210kW210kW
120kW180kW180kW
91kW150kW150kW
Mask options
The following options have to be defined to en
sure a proper system functioning:
·
Pull-high resistor: 33kW/98kW (3V)
·
-
Keydebounce time: 0ms~255ms(f
OSC
-
-
-
=4MHz)
12April 26, 2000
Application Circuits
Basic application
HT84XXX
8050
8050
8050
8050
8050
8050
V
V
DD
R
OSC
DD
R
OSC
EASY 4-1
VDD
AUD0
AUD1
OSC
VSS
EASY 12
VDD
AUD0
AUD1
OSC
VSS
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
TR1
TR2
TR3
TR4
OUT7
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
TR1
TR2
TR3
TR4
OUT5
OUT4
OUT3
OUT2
OUT1
TR5
TR6
TR7
TR8
TR9
TR10
TR11
TR12
EASY 4
V
DD
VDD
AUD0
AUD1
OSC
R
OSC
VSS
EASY 8
V
DD
VDD
AUD0
AUD1
OSC
R
OSC
VSS
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
TR1
TR2
TR3
TR4
OUT8
OUT7
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
TR1
TR2
TR3
TR4
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
8050
TR5
TR6
TR7
TR8
8050
13November 8, 1999
HT84XXX
8050
8050
V
8050
V
8050
DD
R
OSC
DD
R
OSC
EASY 16
VDD
AUD 0
AUD 1
OSC
VSS
EASY 20
VDD
AUD 0
AUD 1
OSC
VSS
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
TR1
TR2
TR3
TR4
OUT4
OUT3
OUT2
OUT1
TR1
TR2
TR3
TR4
OUT3
OUT2
OUT1
TR5
TR6
TR7
TR8
TR5
TR6
TR7
TR8
TR9
TR10
TR11
TR12
TR9
TR10
TR11
TR12
TR13
TR14
TR15
TR16
TR13
TR14
TR15
TR16
TR17
TR18
TR19
TR20
14April 26, 2000
HT84XXX
8050
8050
V
8050
V
8050
DD
R
OSC
DD
R
OSC
EASY 24
VDD
AUD 0
AUD 1
OSC
VSS
EASY 28
VDD
AUD0
AUD1
OSC
VSS
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA0
PA1
PA2
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
TR1
TR2
TR3
TR4
OUT2
OUT1
TR1
TR2
TR3
TR4
OUT1
TR5
TR6
TR7
TR8
TR5
TR6
TR7
TR8
TR9
TR10
TR11
TR12
TR9
TR10
TR11
TR12
TR13
TR14
TR15
TR16
TR13
TR14
TR15
TR16
TR17
TR18
TR19
TR20
TR17
TR18
TR19
TR20
TR21
TR22
TR23
TR24
TR21
TR22
TR23
TR24
TR25
TR26
TR27
TR28
15April 26, 2000
HT84XXX
8050
8050
8050
8050
V
V
DD
R OSC
DD
R OSC
EASY 32
VDD
AUD0
AUD1
OSC
VSS
EASY 64
VDD
AUD0
AUD1
OSC
VSS
TR1
PA0
TR2
PA1
TR3
PA2
TR4
PA3
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA3
PA2
PA1
PA0
TR1
TR9
PB6
TR17
PB5
TR25TR26TR27TR28TR29TR 30TR31
PB4
TR33TR34TR35TR36TR37TR 38TR39
PB3
TR41TR42TR43TR44TR45TR 46TR47
PB2
TR49TR50TR51TR52TR53TR 54TR55
PB1
TR57TR58TR59TR60TR61TR 62TR63
PB0
TR5
TR6
TR7
TR8
TR2
TR10
TR18TR19TR20TR21TR22TR 23
TR9
TR10
TR11
TR12
TR3
TR11
TR13
TR14
TR15
TR16
TR4
TR12
TR17
TR18
TR19
TR20
TR5
TR13
TR21
TR22
TR23
TR24
TR6
TR14
TR25
TR26
TR27
TR28
TR7
TR15
TR29
TR30
TR31
TR32
TR8
TR16
TR24
TR32
TR40
TR48
TR56
TR64
PB7
Note: In Easy 64 mode, only falling edge trigger can be used in input state
In Easy 64 mode, the path command ²TRn?L:pathname² and ²TRn?H:pathname² are
invalid
16April 26, 2000
Push-pull amplifilter application
47mF
47mF
V
8050
8550
V
8050
8550
HT84XXX
DD
IN P U T 1
VDD
AUD0
470
W
DD
AUD1
OSC
470
W
PA0
IN P U T 2
PA1
IN P U T 3
PA2
IN P U T 4
PA3
OUT8
PB7
OUT7
PB6
OUT6
PB5
OUT5
PB4
OUT4
PB3
OUT3
PB2
OUT2
PB1
OUT1
PB0
VSS
R
OSC
OP amplifilter application
To P ow er
Am p
To P ow er
Am p
10k
10k
W
V
DD
IN P U T 1
VDD
0.1mF
AUD0
W
560
W
0.1mF
AUD1
560
W
OSC
PA0
IN P U T 2
PA1
IN P U T 3
PA2
IN P U T 4
PA3
OUT8
PB7
OUT7
PB6
OUT6
PB5
OUT5
PB4
OUT4
PB3
OUT3
PB2
OUT2
PB1
OUT1
PB0
VSS
R
OSC
17April 26, 2000
Application Notes
HT84XXX
Easy Format
TM
The syntax of the Easy FormatTMconsists of four major parts. They are format and audio file decla
ration part, input states declaration part, output states declaration part and path command part.
The architecture of the Easy Format
EASY n
; Comment
; Format and audio file declaration part
TM
program is shown as follows:
....
Stereo/Mono; Two AUD output or single AUD output
INPUT STATES; Input states declaration part
....
OUTPUT STATES ; Output states declaration part
....
PATHS; Path command part
....
Note: Easy Format
TM
is a trademark of Grow With Me, Inc.
Format and voice/melody file declaration
In this area the format and audio file declaration are used to define the number of input and output
as well as declare the audio format.
Syntax: EASY n
The EASY n command is used to define the maximum number of trigger input in the application circuit. The alphanumeric n represents the number of trigger input where n has the choice from 4 to 64
with a scale 4. However, the determination of trigger input reflects the number of output. The relation of the number of I/O is shown in the following table.
EASY nTRnOUTn
-
EASY 4TR1, TR2, TR3, TR4OUT1, OUT2, ...., OUT7
EASY 8TR1, TR2, ...., TR8OUT1, OUT2, ...., OUT6
EASY 12TR1, TR2, ...., TR12OUT1, OUT2, ...., OUT5
EASY 16TR1, TR2, ...., TR16OUT1, OUT2, ...., OUT4
EASY 20TR1, TR2, ...., TR20OUT1, OUT2, OUT3
EASY 24TR1, TR2, ...., TR24OUT1, OUT2
EASY 28TR1, TR2, ...., TR28OUT1
EASY 32TR1, TR2, ...., TR32
EASY 64TR1, TR2, ...., TR64
* refer to the application circuit
18April 26, 2000
HT84XXX
Syntax:
voice_file/compression_method
melody_file
tone_file
The source audio files must be included in your Easy program. The audio files include the voice files
with the extended name .PCM or .WAV, the melody files with .MID or .MLD format and the tone files
with Holtek¢s .HT8 format. The compression methods of voice files have three options such as m-law
PCM, PCM8 and AD4.
Example:
voice1.wav/pcm8; #0 voice files declaration
voice2.pcm/ad4; #1
melody1.mid; #2 melody files declaration
melody2.mld; #3
tone1.ht8; #4 tone files declaration
Stereo/Mono:
The audio output selection. If the audio output is declared as ²Stereo², the channel
1 voice will output via AUD1 and the channel 2 voice will output via AUD2. If the
audio output isdeclared as ²Mono², the channel 1 and channel 2 voices will mixedly
output via AUD1 and AUD2 is invalid. The default declaration is ²Mono². The au
dio file compressed by AD4 cannot output through channel 2. If the melody file out
puts through channel 2, the melody file cannotinclude anychannel 1 instructions.
The bracket [ ] is denoted as optional existence. If the path is assigned as ²X², the input trigger signal
is ignored. Unassigned trigger paths will automatically be assigned as ²X². When TRn detects a rising edge or a falling edge signal, the path name of the rising edge path or falling edge path will be exe
cuted. The statename and path label can be any name defined by the user. The ²/² denotes the falling
edge path. The maximum number of statename are 256 and the maximum number of different pathname
are 128.
Example:
INPUT STATES; input states declaration
;TR1TR2TR3
Run:P12Start/P13StopP14Go/P15Pause
where ²Run² denotes the input statename and ²P12Start², ²/P13Stop², ²P14Go² and ²/P15Pause² are
all pathnames. When a rising edge signal triggers the TR1, then the path of P12Start will be exe
cuted. And if a falling edge signal triggers the TR1, then the signal is ignored, etc.
19April 26, 2000
-
-
HT84XXX
Output states declaration
Syntax:
OUTPUT STATES
;OUTn....
statename:OutputMode ....
The possible output mode are listed and described on the following table. The maximum number of
output state are 256.
Output ModeDescription
X
H
L
P+
P-
SP+
SP-
Example:
OUTPUT STATES; output states declaration
;OUT1OUT2
SirenOn:P+L
Set OUTn to input mode with pull-high resistor
Set the output pins to logic high
Set the output pins to logic low
Send a (+) pulse train to output pins
Send a (-) pulse train to output pins
Send a plus single pulse to output pins
Send a minus single pulse to output pins
where ²SirenOn² denotes the output statename. Executing ²SirenOn² in the path command will send
a positive pulse train to PB0 and send a logic low to PB1.
Path command definition
Syntax:
PATHS
pathname: path command ....
The pathname is defined according to the user¢s desire. The elements of the path command are listed
and described on the following table. Each path equation consists of many path commands and each
command is separated by one or more space. In order to increase the program readability if the path
commands exceed the screen display you can break the path command to the next line and put the
symbol ²&² in front of the new line.
20April 26, 2000
Path_CommandDescription
Input statenameTo active input state
Output statenameTo active output state
PathnameTo execute the specified path
VAR=pathnameDefine the variable path
VARTo execute the variable path
Volume_1=nDefine the volume 1 value (n=0~15)
Volume_2=nDefine the volume 2 value (n=0~15)
Samplerate_1=nDefine the sampling rate 1 value
Samplerate_2=nDefine the sampling rate 2 value
Delay(n)To delay n (min=0.1s) (n=0.1~65), f
OSC
=4MHz
TRn?H:pathnameIf TRn is logic High, then the pathname is executed.
TRn?L:pathnameIf TRn is logic Low, then the pathname is executed.
Flashrate=n
FlashrateT=n
FlashrateV=n
Set the output pulse rate to ²n² pulses per second, where n can be
assigned as 1, 2, 3, ..., 12
Set the output pulse rate after the melody tempo,
n=1, 2, 3, ..., 12
Set the output pulse rate after the volume,
n=1, 2, ..., 12
ENDEnter power down mode
Mi=PBRead Port B to Mi
STOP1Stop the sound of channel 1 playback
STOP2Stop the sound of channel 2 playback
Mi=dataSet the contents of Mi to be data
Mi=MjSet the contents Mi to be Mj
Mi(bn)=1 or 0Set bit bn to be 1 or 0, bn=0~7
Mi=Mj+dataAdd immediate data with Mj to Mi
Mi=Mi+MjAdd Mi with Mj to Mi
Mi=Mj.AND.dataAnd immediate data with Mj to Mi, data=0~255
Mi=Mj.OR.dataOR immediate data with Mj to Mi, data=0~255
Mi=Mj.XOR.dataXOR immediate data with Mj to Mi, data=0~255
Mi?data:pathnameIf Mi=data then pathname is executed
Mi?Mj:pathnameIf Mi=Mj then pathname is executed.
Mi(bn)?1:pathname
Mi(bn)?0:pathname
If the bit bn of Mi is ²1² then the pathname is executed.
If the bit bn of Mi is ²0² then the pathname is executed.
HT84XXX
21April 26, 2000
HT84XXX
Path_CommandDescription
Path1 is executed when Mi=1;
Mi:[Path1, Path2,
Path3, .... Pathn]
Random(Mi)Get a random code and put it to Mi
Timert: timer_pathInitial the timer. If time out then timer_path is executed, t=0.1~65 sec.
TimerONStart the timer counter
TimerOFFStop timer counter
n*soundfile, n*#N or
#N
[n*soundfile] or
[repeat *soundfile]
Wait
Note: The n of TRn ranges from 1 to 32
²Volume_1=15² is equal to ²Volume=15²
²Samplerate_1=4000² is equal to ²Samplerate=4000², ²4000² means that the sampling rate is
4kHz.
The Mi, Mj are working registers (i, j=0, 1, 2, ..., 10), the M0~M4 are dedicated for users, the
others are shared with VAR and Timer command.
RegisterCommandComment
M0~M4
M5, M6VARIf the VAR instruction is used, the M5, M6 will be invalid.
M7~M10Timer
Example:
EASY 4
INPUT STATES
;TR1TR2TR3TR4
start:/P1XXX
Path2 is executed when Mi=2;
....
Pathn is executed when Mi=n
Play the soundfile n times
#N is the N¢th soundfile which is defined in the audio file declaration part.
The starting number is 0
Play the soundfile n times or repeatedly via channel 2 and simultaneously
execute the next path command.
Stop executing the next path command until the channel 2 soundfile is
terminated.
¾
Normal register
If the Timer instruction are used, the M7~M10 will be invalid.
PATHS
POWERON:startEND
where ²POWERON² is a reserved pathname and provides the initial setting. When the power is
turned on, a falling edge trigger in TR1 is accepted and others are all ignored.
22April 26, 2000
Application 1 ¾ One shot, nonretriggerable
EASY 4
voice.wav/pcm8;#0 sound file declaration
INPUT STATES
;TR1TR2TR3TR4
state1:/path1XXX
busy:XXXX
PATHS
POWERON:state1END
path1:busy1*voicestate1END
TR1
AUD
Application 2 ¾ One shot, retriggerable by itself
EASY 4
voice.wav/pcm8;#0 sound file declaration
INPUT STATES
;TR1TR2TR3TR4
state1:/path1XXX
HT84XXX
PATHS
POWERON:state1END
path1:1*voiceEND
TR1
AUD
23April 26, 2000
Application 3 ¾ One shot, retriggerable by the other pin only
EASY 4
voice1.wav/pcm8 ;#0 sound file declaration
voice2.wav/pcm8 ;#1
voice3.wav/pcm8 ;#2
voice4.wav/pcm8 ;#3
INPUT STATES
;TR1TR2TR3TR4
state0:/path1/path2/path3/path4
state1:X/path2/path3/path4
state2:/path1X/path3/path4
state3:/path1/path2X/path4
state4:/path1/path2/path3X
PATHS
POWERON:state0END
path1:state1#0state0END
path2:state2#1state0END
path3:state3#2state0END
path4:state4#3state0END
HT84XXX
TR1
TR2~TR 4
AUD
#0#0#(1~3)
24April 26, 2000
Application 4 ¾ Level hold, retriggerable by the other pin only
EASY 4
voice1.wav/pcm8 ;#0 sound file declaration
voice2.wav/pcm8 ;#1
voice3.wav/pcm8 ;#2
voice4.wav/pcm8 ;#3
INPUT STATES
;TR1TR2TR3TR4
state0:/path1/path2/path3/path4
state1:path11/path2/path3/path4
state2:/path1path11/path3/path4
state3:/path1/path2path11/path4
state4:/path1/path2/path3path11
PATHS
POWERON:state0END
path1:state1#0path1
path2:state2#1path2
path3:state3#2path3
path4:state4#3path4
path11:state0END
HT84XXX
TR1
TR2~TR 4
AUD
#0#0#(1~3)
#0
25April 26, 2000
Application 5 ¾ LED output, direct mode
EASY 4
voice1 .wav/pcm8 ;#0 sound file declaration
INPUT STATES
;TR1TR2TR3TR4
state0:/path1XXX
OUTPUT STATES
;OUT12
alarm:P+L
standby:LH
turnoff:XX
PATHS
POWERON:state0flashrate=6HzEND
path1:alarm#0standbydelay(2)turnoffEND
Application 6 ¾ LED output matrix mode
EASY 4
INPUT STATES
;TR1
state0:/path0
OUTPUT STATES
;OUT1 OUT2 OUT3 OUT4OUT5 OUT6OUT7
LED1:P+LLLHHH
LED2:LP+LLHHH
LED3:LLP+LHHH
LED4:P+LLHLHH
LED5:LP+LHLHH
LED6:LLP+HLHH
LED7:P+LLHHLH
LED8:LP+LHHLH
LED9:LLP+HHLH
LED10:P+LLHHHL
LED11:LP+LHHHL
LED12:LLP+HHHL
turnoff:XXXXXXX
HT84XXX
26April 26, 2000
PATHS
POWERON:state0 M0=0flashrate=3HzEND
path0:M0=M0+1
& M0:[P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12]
P1:LED1delay(2) turnoffEND
P2:LED2delay(2) turnoffEND
P3:LED3delay(2) turnoffEND
P4:LED4delay(2) turnoffEND
P5:LED5delay(2) turnoffEND
P6:LED6delay(2) turnoffEND
P7:LED7delay(2) turnoffEND
P8:LED8delay(2) turnoffEND
P9:LED9delay(2) turnoffEND
P10:LED10 delay(2)turnoffEND
P11:LED11 delay(2)turnoffEND
P12:M0=0 LED12delay(2) turnoffEND
HT84XXX
27April 26, 2000
HT84XXX
Application 7 ¾ Police car
This is a full program application example to demonstrate how Easy Format handles a complicated
design requirement. All the work is to be done on a single page.
STARTACCELSIR ENBR AKE
L1L2
There are four input trigger buttons and two output pins to drive two LEDs.
·
BUTTON #1: Turn ON (START) or OFF the engine.
·
BUTTON #2: Gas pedal to give ACCELERATION sound from idle and then keep on at a steady
running sound.
·
BUTTON #3: SIREN sound On/Off: toggle ON and toggle Off.
·
BUTTON #4: BRAKE, triggers deceleration sound and then brings the car to idle.
·
LEDs OUTPUTs: Blinks in opposite phase when the Siren sound is on. That is when one light is on,
the other light is off in an alternating pattern.
·
TIME OUT REQUIREMENTS: every sound needs to be automatically shut down after a specified
period if no more trigger signal is received.
No.3 Creation Rd. II, Science-based Industrial Park, Hsinchu, Taiwan, R.O.C.
Tel: 886-3-563-1999
Fax: 886-3-563-1189
Holtek Semiconductor Inc. (Taipei Office)
5F, No.576, Sec.7 Chung Hsiao E. Rd., Taipei, Taiwan, R.O.C.
Tel: 886-2-2782-9635
Fax: 886-2-2782-9636
Fax: 886-2-2782-7128 (International sales hotline)
Holtek Semiconductor (Hong Kong) Ltd.
RM.711, Tower 2, Cheung Sha Wan Plaza, 833 Cheung Sha Wan Rd., Kowloon, Hong Kong
Tel: 852-2-745-8288
Fax: 852-2-742-8657
Copyright ã 2000 by HOLTEK SEMICONDUCTOR INC.
The information appearing in this Data Sheet is believed to be accurate at the time of publication. However, Holtek
assumes no responsibility arising from the use of the specifications described. The applications mentioned hereinare
used solely for the purpose of illustration and Holtek makes no warranty or representation that such applications
will be suitable without further modification, nor recommends the use of its products for application that may pres
ent a risk to human life due to malfunction or otherwise. Holtek reserves the right to alter its products without prior
notification. For the most up-to-date information, please visit our web site at http://www.holtek.com.tw.
31April 26, 2000
-
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.