|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
ht84xxx magic voice tm rom selection table the ht84xxx series provides various voice capacity as shown below: part no. ht84036 ht84072 ht84144 HT84192 ht84384 rom 768kb 1536kb 3072kb 4096kb 8192kb voice length 36 sec 72 sec 144 sec 192 sec 384 sec note: the voice capacity is based on a sampling rate of 21kb/s 1 april 26, 2000 general description the ht84xxx family is a series of programma - ble speech synthesizers and tone generators de- signed 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 vol- ume control. the user s commands enable the user to program the powerful custom function such as to build-in a tiny controller. the magic voice tm provides various operational functions similar to arithmetic operation, logic operation, branch decision, random counter, and a pro- grammable timer. the magic voice tm series are suitable for versatile voice and sound effect applications. the ht84xxx magic voice tm is easy for- mat tm supported. features operating voltage: 2.4v~5.0v programmable tone melody generator adpcm or -law pcm, pcm synthesis wide range of sampling rate for voice synthesis minimum sampling rate step: 100hz voice melody mixed output programmable 2 channels of melody mixed output programmable 2 channels of voice mixed output 13 kinds of melody beats 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 applications high-end educational leisure products alert and warning systems speech synthesizers and sound effect generators magic voice tm is a trademark of holtek semiconductor inc. easy format tm is a trademark of grow with me, inc.
block diagram pin assignment ht84xxx 2 april 26, 2000 ! " #!$#% #!$#& ' ' ( ( ( ( ( ' ' #! #" #) #& #! #" " ) & * + , % - . "! "" ") "& "* )- )% ), )+ )* )& )) )" )! ". "- "% ", "+ ( ( ( ( ( ' ! " #% #, #+ #* #& #) pad assignment ht84036 chip size: 2735 2105 ( m) 2 * the ic substrate should be connected to vss in the pcb layout artwork. ht84xxx 3 april 26, 2000 " "! ) "" & ") * "& + "* , "+ % ", - "% "- . /! 0! 1 ' ! " #% #, #+ #& #* #) #" #& #! #! #" #) ' ' ht84072 chip size: 2735 2645 ( m) 2 * the ic substrate should be connected to vss in the pcb layout artwork. ht84xxx 4 april 26, 2000 " "! ) "" & ") * "& + "* , "+ % ", - "% "- . /! 0! 1 ' ! " #% #, #+ #& #* #) #" #& #! #! #" #) ' ' ht84144 chip size: 2735 3735 ( m) 2 * the ic substrate should be connected to vss in the pcb layout artwork. ht84xxx 5 april 26, 2000 " "! ) "" & ") * "& + "* , "+ % ", - "% . "- /! 0! 1 ' ! " #" #) #& #" #! #) #& #+ #, #* #% ' ' #! HT84192 chip size: 2735 4460 ( m) 2 * the ic substrate should be connected to vss in the pcb layout artwork. ht84xxx 6 april 26, 2000 " "! ) "" & ") * "& + "* , "+ % ", - "% "- . /! 0! 1 ' ! " #" #) #& #" #! #) #& #+ #, #* #% ' ' #! ht84384 chip size: 2740 7350 ( m) 2 * the ic substrate should be connected to vss in the pcb layout artwork. ht84xxx 7 april 26, 2000 " "! ) "" & ") * "& + "* , "+ % ", - "% . "- /! 0! 1 " ' ' #! #" #) #& #! #" #) #& #* #+ #, #% " ! ' pad coordinates ht84036 unit: m pad no. x y pad no. x y 1 1125.31 114.74 10 320.15 774.24 2 1177.49 398.79 11 505.75 774.24 3 939.68 884.61 12 656.55 774.24 4 689.05 774.24 13 842.15 774.24 5 503.45 774.24 14 992.95 774.24 6 352.65 774.24 15 1178.55 774.24 7 167.05 774.24 16 1167.43 517.18 8 16.25 774.24 17 1167.53 377.08 9 169.35 774.24 18 1167.53 35.96 ht84072 unit: m pad no. x y pad no. x y 1 1125.31 155.26 10 320.15 1044.24 2 1177.49 668.79 11 505.75 1044.24 3 939.68 1154.61 12 656.55 1044.24 4 689.05 1044.24 13 842.15 1044.24 5 503.45 1044.24 14 992.95 1044.24 6 352.65 1044.24 15 1178.55 1044.24 7 167.05 1044.24 16 1167.43 787.18 8 16.25 1044.24 17 1167.53 647.08 9 169.35 1044.24 18 1167.53 305.96 ht84144 unit: m pad no. x y pad no. x y 1 1125.31 700.26 10 320.15 1589.24 2 1177.49 1213.79 11 505.75 1589.24 3 939.68 1699.61 12 656.55 1589.24 4 689.05 1589.24 13 842.15 1589.24 5 503.45 1589.24 14 992.95 1589.24 6 352.65 1589.24 15 1178.55 1589.24 7 167.05 1589.24 16 1167.43 1332.18 8 16.25 1589.24 17 1167.53 1192.08 9 169.35 1589.24 18 1167.53 850.96 ht84xxx 8 april 26, 2000 HT84192 unit: m pad no. x y pad no. x y 1 1125.31 1062.76 10 320.15 1951.74 2 1177.49 1576.29 11 505.75 1951.74 3 939.68 2062.11 12 656.55 1951.74 4 689.05 1951.74 13 842.15 1951.74 5 503.45 1951.74 14 992.95 1951.74 6 352.65 1951.74 15 1178.55 1951.74 7 167.05 1951.74 16 1167.43 1694.68 8 16.25 1951.74 17 1167.53 1554.58 9 169.35 1951.74 18 1167.53 1213.46 ht84384 unit: m pad no. x y pad no. x y 1 1121.81 2507.96 10 323.65 3396.94 2 1173.99 3021.49 11 509.25 3396.94 3 936.18 3507.31 12 660.05 3396.94 4 685.55 3396.94 13 845.65 3396.94 5 499.95 3396.94 14 996.45 3396.94 6 349.15 3396.94 15 1182.05 3396.94 7 163.55 3396.94 16 1170.93 3139.88 8 12.75 3396.94 17 1171.03 2999.78 9 172.85 3396.94 18 1171.03 2658.66 pin description pin no. pin name i/o internal connection description 1~5, 24~28 nc no connection 6 vdd positive power supply 7 aud0 o pmos open drain audio output for driving an external transistor 8 aud1 o pmos open drain audio output for driving an external transistor 15~9 pb1~pb7 i/o pull-high or cmos bidirectional i/o pins can be optioned as trigger inputs or led outputs 16 pb0 i/o pull-high or cmos bidirectional i/o pins can be optioned as cds interface with internal schmitt trigger input ht84xxx 9 april 26, 2000 pin no. pin name i/o internal connection description 20~17 pa0~pa3 i wake-up pull-high trigger inputs can also be configured as wake-up inputs 21, 22 vss negative power supply, ground 23 osc i built-in rc oscillator an oscillator resistor is connected between osc and vss absolute maximum ratings supply voltage................................. 0.3v to 6v storage temperature................. 50 cto125 c input voltage .................v ss 0.3v to v dd +0.3v operating temperature .............. 20 cto70 c 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 ta=25 c symbol parameter test conditions min. typ. max. unit v dd conditions v dd operating voltage 2.4 5.2 v i stb standby current 3v no load, system halt 13 a i dd operating current 3v no load, f sys =4mhz 58ma i ol pb0~pb7 sink current 3v v ol =0.3v 46 ma i o max. aud1 and aud2 output current 3v v oh =0.6v 1.5 2 ma f sys system frequency 3v r osc =240k 3.6 4.0 4.4 mhz ht84xxx 10 april 26, 2000 ht84xxx 11 april 26, 2000 functional description the magic voice tm series 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 tm provides 8-bit pcm, 6-bit -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 tm supports a tone melody and pcm melody generator and two channels mixed output for the whole series. the magic voice tm series build-in 8 program - 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 voice tm 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 for- mat 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 win- dows 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 tm can support the following compression format of the voice .wav and .pcm file: ad4, pcm8, -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 - 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 fe =150 is recommended for the 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.) 68 78 82 93 100 105 109 114 119 125 132 139 147 156 179 192 227 310 13 beats 1 24, 1 12, 1 8, 1 6, 1 4, 1 3, 1 2, 2 3, 3 4, 1, 4 3, 3 2, 2 5 octaves 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 12 april 26, 2000 the capability of the voice sampling rate for various voice compression format. f osc pcm8 -law pcm ad4 4m 12khz 11khz 8khz 5m 15khz 14khz 10khz 6m 18khz 16khz 12khz 8m 24khz 22khz 16khz 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 240k . 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 ht84eva ht84p00 ic 4m 180k 240k 240k 5m 150k 210k 210k 6m 120k 180k 180k 8m 91k 150k 150k mask options the following options have to be defined to en - sure a proper system functioning: pull-high resistor: 33k /98k (3v) keydebouncetime:0ms~255ms(f osc =4mhz) application circuits basic application ht84xxx 13 november 8, 1999 #" #) #& #! " ) & * , + * & ) " + , % - #" #) #& #! " ) & * + * & ) " + , % - . "! "" ") ! " ' -!+! -!+! ' ! " ' -!+! -!+! ' #% #, #+ #* #& #) #" #! #% #, #+ #* #& #) #" #! ' ' #" #) #& #! % , + * & ) " ! " - ' -!+! -!+! ' #" #) #& #! % , + * & ) " ! " ' -!+! -!+! ' #% #, #+ #* #& #) #" #! #% #, #+ #* #& #) #" #! ' ' " ) & * " ) & * ht84xxx 14 april 26, 2000 #" #) #& #! " ) & * & ) " + , % - . "! "" ") "& "* "+ ", * #" #) #& #! " ) & * & ) " + , % - . "! "" ") "& "* "+ ", "% "- ". )! ' -!+! ' -!+! ' -!+! ' -!+! #% #, #+ #* #& #) #" #! #% #, #+ #* #& #) #" #! ' ' ! " ! " ht84xxx 15 april 26, 2000 #" #) #& #! " ) & * ) " + , % - . "! "" ") "& "* "+ ", "% "- ". )! )" )) )& )* #" #) #& #! " ) & * " + , % - . "! "" ") "& "* "+ ", "% "- ". )! )" )) )& )* )+ ), )% )- ' -!+! ' -!+! ! " ' -!+! ' -!+! #% #, #+ #* #& #) #" #! #% #, #+ #* #& #) #" #! ' ! " ' 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 ht84xxx 16 april 26, 2000 #" #) #& #! " ) & * #% #, #+ #* #& #) #" #! + , % - . "! "" ") "& "* "+ ", "% "- ". )! )" )) )& )* )+ ), )% )- ). &! &" &) ! " ' -!+! ' -!+! #) #" #! #& "% "- ". )! )" )) )& )* " . ) "! & "" * ") + "& , "* % "+ - ", )+ ), )% )- ). &! &" &) *" *) *& ** *+ *, *% *- && &* &+ &, &% &- &. *! *. +! +" +) +& +* ++ +, +% +- +. ,! ," ,) ,& ,* ! " ' -!+! ' -!+! ' ' #, #+ #* #& #) #" #! #% push-pull amplifilter application op amplifilter application ht84xxx 17 april 26, 2000 #! ( # " ( # ) ( # & ( # * % , + * & ) " ! " - ' -!+! ' *% 2 -++! -!+! -++! #% #, #+ #* #& #) #" #! #" #) #& ' ' *% 2 *%! *%! #! ( # " ( # ) ( # & ( # * % , + * & ) " ! " - ' ' !3" 2 +,! "!4 +,! # 5 # 5 #" #) #& #% #, #+ #* #& #) #" #! ' "!4 !3" 2 application notes easy format tm the syntax of the easy format tm consists 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 tm program is shown as follows: easy n ; comment ; format and audio file declaration part .... 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 cir- cuit. 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 rela- tion of the number of i/o is shown in the following table. easy n trn outn easy 4 tr1, tr2, tr3, tr4 out1, out2, ...., out7 easy 8 tr1, tr2, ...., tr8 out1, out2, ...., out6 easy 12 tr1, tr2, ...., tr12 out1, out2, ...., out5 easy 16 tr1, tr2, ...., tr16 out1, out2, ...., out4 easy 20 tr1, tr2, ...., tr20 out1, out2, out3 easy 24 tr1, tr2, ...., tr24 out1, out2 easy 28 tr1, tr2, ...., tr28 out1 easy 32 tr1, tr2, ...., tr32 easy 64 tr1, tr2, ...., tr64 * refer to the application circuit ht84xxx 18 april 26, 2000 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 -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 is declared 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 cannot include any channel 1 instructions. input states declaration syntax: input states ; trn .... statename: [rising_edge_path][/falling_edge_path] .... 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 ris- ing 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 ; tr1 tr2 tr3 run: p12start /p13stop p14go/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. ht84xxx 19 april 26, 2000 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 mode description x set outn to input mode with pull-high resistor h set the output pins to logic high l set the output pins to logic low p+ send a (+) pulse train to output pins p- send a (-) pulse train to output pins sp+ send a plus single pulse to output pins sp- send a minus single pulse to output pins example: output states ; output states declaration ; out1 out2 sirenon: p+ l 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. ht84xxx 20 april 26, 2000 path_command description input statename to active input state output statename to active output state pathname to execute the specified path var=pathname define the variable path var to execute the variable path volume_1=n define the volume 1 value (n=0~15) volume_2=n define the volume 2 value (n=0~15) samplerate_1=n define the sampling rate 1 value samplerate_2=n define the sampling rate 2 value delay(n) to delay n (min=0.1s) (n=0.1~65), f osc =4mhz trn?h:pathname if trn is logic high, then the pathname is executed. trn?l:pathname if trn is logic low, then the pathname is executed. flashrate=n set the output pulse rate to n pulses per second, where n can be assigned as 1, 2, 3, ..., 12 flashratet=n set the output pulse rate after the melody tempo, n=1, 2, 3, ..., 12 flashratev=n set the output pulse rate after the volume, n=1, 2, ..., 12 end enter power down mode mi=pb read port b to mi stop1 stop the sound of channel 1 playback stop2 stop the sound of channel 2 playback mi=data set the contents of mi to be data mi=mj set the contents mi to be mj mi(bn)=1 or 0 set bit bn to be 1 or 0, bn=0~7 mi=mj+data add immediate data with mj to mi mi=mi+mj add mi with mj to mi mi=mj.and.data and immediate data with mj to mi, data=0~255 mi=mj.or.data or immediate data with mj to mi, data=0~255 mi=mj.xor.data xor immediate data with mj to mi, data=0~255 mi?data:pathname if mi=data then pathname is executed mi?mj:pathname if mi=mj then pathname is executed. mi(bn)?1:pathname if the bit bn of mi is 1 then the pathname is executed. mi(bn)?0:pathname if the bit bn of mi is 0 then the pathname is executed. ht84xxx 21 april 26, 2000 path_command description mi:[path1, path2, path3, .... pathn] path1 is executed when mi=1; path2 is executed when mi=2; .... pathn is executed when mi=n random(mi) get a random code and put it to mi timert: timer_path initial the timer. if time out then timer_path is executed, t=0.1~65 sec. timeron start the timer counter timeroff stop timer counter n*soundfile, n*#n or #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 [n*soundfile] or [repeat *soundfile] play the soundfile n times or repeatedly via channel 2 and simultaneously execute the next path command. wait stop executing the next path command until the channel 2 soundfile is terminated. 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. register command comment m0~m4 normal register m5, m6 var if the var instruction is used, the m5, m6 will be invalid. m7~m10 timer if the timer instruction are used, the m7~m10 will be in- valid. example: easy 4 input states ; tr1 tr2 tr3 tr4 start: /p1 x x x paths poweron: start end 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. ht84xxx 22 april 26, 2000 application 1 one shot, nonretriggerable easy 4 voice.wav/pcm8 ;#0 sound file declaration input states ; tr1 tr2 tr3 tr4 state1: /path1 x x x busy: x x x x paths poweron: state1 end path1: busy 1*voice state1 end application 2 one shot, retriggerable by itself easy 4 voice.wav/pcm8 ;#0 sound file declaration input states ; tr1 tr2 tr3 tr4 state1: /path1 x x x paths poweron: state1 end path1: 1*voice end ht84xxx 23 april 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 ; tr1 tr2 tr3 tr4 state0: /path1 /path2 /path3 /path4 state1: x /path2 /path3 /path4 state2: /path1 x /path3 /path4 state3: /path1 /path2 x /path4 state4: /path1 /path2 /path3 x paths poweron: state0 end path1: state1 #0 state0 end path2: state2 #1 state0 end path3: state3 #2 state0 end path4: state4 #3 state0 end ht84xxx 24 april 26, 2000 " 6! 6! 6/"$&1 )$ * 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 ; tr1 tr2 tr3 tr4 state0: /path1 /path2 /path3 /path4 state1: path11 /path2 /path3 /path4 state2: /path1 path11 /path3 /path4 state3: /path1 /path2 path11 /path4 state4: /path1 /path2 /path3 path11 paths poweron: state0 end path1: state1 #0 path1 path2: state2 #1 path2 path3: state3 #2 path3 path4: state4 #3 path4 path11: state0 end ht84xxx 25 april 26, 2000 " 6! 6! 6/"$&1 )$ * 6! application 5 led output, direct mode easy 4 voice1 .wav/pcm8 ;#0 sound file declaration input states ; tr1 tr2 tr3 tr4 state0: /path1 x x x output states ;out 1 2 alarm: p+ l standby: l h turnoff: x x paths poweron: state0 flashrate=6hz end path1: alarm #0 standby delay(2) turnoff end application 6 led output matrix mode easy 4 input states ; tr1 state0: /path0 output states ; out1 out2 out3 out4 out5 out6 out7 led1: p+ l l l h h h led2: l p+ l l h h h led3: l l p+ l h h h led4: p+ l l h l h h led5: l p+ l h l h h led6: l l p+ h l h h led7: p+ l l h h l h led8: l p+ l h h l h led9: l l p+ h h l h led10: p+ l l h h h l led11: l p+ l h h h l led12: l l p+ h h h l turnoff: x x x x x x x ht84xxx 26 april 26, 2000 paths poweron: state0 m0=0 flashrate=3hz end path0: m0=m0+1 & m0:[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12] p1: led1 delay(2) turnoff end p2: led2 delay(2) turnoff end p3: led3 delay(2) turnoff end p4: led4 delay(2) turnoff end p5: led5 delay(2) turnoff end p6: led6 delay(2) turnoff end p7: led7 delay(2) turnoff end p8: led8 delay(2) turnoff end p9: led9 delay(2) turnoff end p10: led10 delay(2) turnoff end p11: led11 delay(2) turnoff end p12: m0=0 led12 delay(2) turnoff end ht84xxx 27 april 26, 2000 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. 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. easy format tm application example: police car flow chart ht84xxx 28 april 26, 2000 78 7( 97 8" 8) ( 7( 7(:( # 8 7 # &) 9 7 # )& 7 8 # +& 7 ( ( # +& 7 ( 22 # "& 7 8 # "* 7 ( ( # +* 9 7 # *" 7 ( 22 # )" # ") # )+ 7 ( ( # *+ 7 8 easy 4 ********************************************************************** ;* voice file define ********************************************************************** startsnd.wav/ad4 idlesnd.wav/ad4 accelsnd.wav/ad4 runsnd.wav/ad4 decelsnd.wav/ad4 sirensnd.wav/ad4 sirunsnd.wav/ad4 ********************************************************************* ;* i/o states ********************************************************************* input states ; tr1 tr2 tr3 tr4 ; start accel siren brake stopcar: /p12start /p13accel /p14sirenon x idle: /p21start /p23accel /p25sirenon x run: x x /p35sirenon /p32brake siren x /p45accel /p41sirenoff x sirenrun x x /p53sirenoff /p54brake output states ; out1 out2 sirenon: p+ p- sirenoff: h h ********************************************************************* ;* paths ********************************************************************* paths poweron: stopcar sirenoff flashrate=6hz end p12start: idle 1*startsnd 10*idlesnd powerdown p21start: stopcar end p13accel: run 2*idlesnd 1*accelsnd 20*runsnd & powerdown ht84xxx 29 april 26, 2000 p14sirenon: siren sirenon 10*sirensnd powerdown p41sirenoff: stopcar sirenoff end p23accel: run 1*accelsnd 20*runsnd powerdown p32brake: idle 1*decelsnd 10*idlesnd powerdown p25sirenon: 1*accelsnd sirenrun sirenon 10*sirunsnd powerdown p35sirenon: sirenrun sirenon 10*sirunsond powerdown p53sirenoff: sirenoff run 20*runsnd powerdown p45accel: p25sirenon p54brake: 1*decelsnd siren sirenon 10*sirensnd & powerdown powerdown: sirenoff stopcar end ht84xxx 30 april 26, 2000 ht84xxx 31 april 26, 2000 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 herein are 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. holtek semiconductor inc. (headquarters) 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 |
Price & Availability of HT84192 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |