Preliminary HT81003/HT81R03 EasyVoice 3-Second Speech TM Features · · · · · · · · · · Operating voltage: 2.4V~3.6V Directly drives an external transistor PWM function directly driver speaker Low standby current (1mA typ. for VDD=3V) Minimal external components 240 notes table ROM for key functions Programmable silence length and end-pulse width (minimal end-pulse width is 1.3ms at 8kHz sampling rate) 3-sec voice capacity (based on a 5kHz sampling rate) Controllable volume FLAG1 options - End-pulse output - 3Hz, 3HzB flash - 6Hz, 6HzB flash - Busy output - OFF · FLAG2 options - 3Hz flash - 6Hz flash - Busy output - OFF 2 keys Key options - Sequential/Directed - Repeat (KEY2) - STOP key (KEY2) - Key debounce time: 1.2ms, 22ms, 45ms (based on a 8kHz sampling rate) - One shot/Normal - Pull-high resistance: 0, 50kW, 100kW, 200kW Section options - Retriggerable - Non-retriggerable Dice form or 16-pin DIP package · · Alert and warning system Sound effect generators · · · · Applications · · · Leisure products Alarm clocks Public address system General Description The HT81003 is a Mask ROM type and HT81R03 is an OTP type. The HT81003/ HT81R03 is a single-chip voice synthesizer LSI with 3-second voice capacity at 5kHz sampling rate. The chip when triggered drives a speaker through an external transistor with a PWM output. Negligible current is consumed in the standby state. The customer¢s voice sources are recorded section by section into an internal mask ROM. The instructions of section playback arrangement of each key are stored in the table ROM. The key features are also programmable. With such a flexible structure, the HT81003/HT81R03 is excellent for versatile voice applications. The HT81003/HT81R03 provides 2-key inputs and 2 programmable FLAG outputs. With 2.4V~5.0V power supply, a complete synthesized voice playback system can be easily built with very few external components. EasyVoice TM is a trademark of Holtek Semiconductor Inc. 1 July 24, 2000 Preliminary HT81003/HT81R03 Block Diagram T G 1 I/O 1 O S C I V P P O E V D D D e b o u n c e C ir c u it O n e -s h o t O s c illa to r C ir c u it T im e B a s e G e n e ra to r R O M A d d re s s C o u n te r O T P C ir c u it A u d io C o n tr o lle r D a ta R O M ( fo r H T 8 1 R 0 3 o n ly ) V S S S ta tu s D is p la y C o n tr o lle r I/O 2 S e le c to r O U T 1 O U T 2 Pin Assignment Pad Assignment 1 6 N C 2 1 5 O E N C 3 1 4 V S S V D D 4 1 3 N C 5 1 2 O U T 1 V D D O S C I 6 1 1 O U T 2 K E Y 1 7 1 0 V S S I/O 1 8 9 I/O 2 V D D 1 H T 8 1 R 0 3 1 6 D IP O E 1 V P P N C V P P 1 1 1 2 (0 ,0 ) 1 0 O S C I K E Y 1 V S S 9 O U T 1 8 V D D 7 O U T 2 2 3 4 5 6 V S S I/O 2 I/O 1 2 Chip size: 1020 ´ 1995 (mm) * The IC substrate should be connected to VSS in the PCB layout artwork. 2 July 24, 2000 Preliminary HT81003/HT81R03 Pad Coordinates Unit: mm Pad No. X Y Pad No. X Y 1 2 3 4 5 6 -345.85 -361.00 -356.60 -254.00 -11.10 174.15 850.70 -385.35 -691.45 -839.95 -838.55 -842.65 7 8 9 10 11 12 343.85 343.85 343.85 334.25 305.30 128.18 -778.05 -514.85 -251.65 -58.75 851.65 844.24 Pin Description Pin No. Pin Name I/O Internal Connection 1,3,5,16 NC ¾ ¾ 2 VPP ¾ ¾ Description No connection 4, 12 VDD ¾ ¾ Positive power supply 6 OSCI I ¾ Oscillator input pin 7 KEY1 I Pull-high Trigger key 1, active low 8 I/O1 I NMOS Pull-high Trigger key 2, active low/NMOS output 9 I/O2 O NMOS Pull-high Pull-high/transistor output/NMOS output 10, 14 VSS ¾ ¾ 11 OUT2 O CMOS PWM output +/NMOS output 13 OUT1 O CMOS PWM output -/NMOS output 15 OE ¾ ¾ Negative power supply Absolute Maximum Ratings Supply Voltage ................................-0.3V to 6V Storage Temperature ............... -50°C to 125°C Input Voltage ............... VSS-0.3V to VDD+0.3V Operating Temperature .............-20°C to 70°C Note: These are stress ratings only. Stresses exceeding the range specified under ²Absolute Maximum 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 exposure to extreme conditions may affect device reliability. 3 July 24, 2000 Preliminary HT81003/HT81R03 Electrical Characteristics Symbol Parameter Ta=25°C Test Conditions VDD Conditions Min. Typ. Max. Unit VDD Operating Voltage ¾ ¾ 2.4 ¾ 3.6 V IDD Operating Current 3V No load (OSC on) ¾ 1000 1200 mA ISTB Standby Current 3V ¾ ¾ 1 3 mA IOL1 OUT1 (PWM+) PWM Output Current 3V VOL=0.1VDD 75 90 ¾ mA 3V VOH=0.9VDD 3 6 ¾ mA IOH1 3V VOL=0.1VDD 1 3 ¾ mA IOH2 I/O2 (TR) Tr Output Current 3V VOH=0.9VDD -1 -2 ¾ mA IOL3 I/O1 (FLAG Sink Current) 3V VOL=0.1VDD 3 5 ¾ mA VIH ²H² Input Voltage ¾ ¾ 0.8VDD ¾ VDD V VIL ²L² Input Voltage ¾ ¾ 0 ¾ 0.2VDD V IOL2 Functional Description The EasyVoiceTM is voice synthesizer with 3-second voice capacity. A group of pre-recorded voice sections is played upon receipt of key trigger input signals. Two FLAG signals are output while playing voices. Play function block diagram The 3-sec voice capacity can be divided into sections of arbitrary length. Notice that the silence length and end-pulse width are not included in the memory. K e y tr ig g e r 8 /1 6 /3 2 W s p e a k e r K e y fe a tu re s o p tio n K fu n ta R e y c tio n b le O M P la y c o n tr o l lo g ic By using Holtek¢s programming tools, the contents and arrangement of sections, as well as key features and FLAG output are all programmable before device fabrication. V o ic e R O M P W M + P W M S e le c t V D D 8 W s p e a k e r T R F la g o u tp u t The IC provides 2 key inputs (KEY1~KEY2), KEY1 can be optioned as a direct, sequential trigger key. Key 2 can be selected as a stop or a direct key. 4 July 24, 2000 Preliminary HT81003/HT81R03 The following are examples of section division: System oscillator The EasyVoiceTM has a built-in RC oscillator which requires only one external resistor for normal applications. The oscillator frequency is typically 2MHz for an external resistor of 150kW. The required oscillator frequency may vary with different sampling rates in the process of voice programming. As a result, the value of the oscillator resistor may be different with respect to different items. E x a m p le 1 : O n e s e c tio n o n ly s e c .1 R O M E x a m p le 2 : 3 s e c tio n d iv is io n s e c .1 s e c .2 R O M E x a m p le 3 : N s e c .1 s e c tio n d iv is io n s e c .2 s e c .N R O M O S C I H T 8 1 0 0 3 / H T 8 1 R 0 3 s e c .3 R In addition, a section can be set as retriggerable or non-retriggerable depending on code option. O S C · Retriggerable The oscillator is turned on when triggered by a key input. After playing, it is immediately turned off. Then the chip goes into the standby state. When the currently playing section is set as retriggerable, it will stop immediately upon receipt of other key inputs. Voice ROM · Non-retriggerable The voice ROM is originally designed to continuously record the 3-sec voice data at about 5kHz sampling rate. A higher sampling rate will generate voices of better playback quality, but will shorten the total recording time. On the other hand, a lower sampling rate will result in longer recording time but sacrifice the voice quality. When the currently playing section is selected as non-retriggerable, it will go on playing until the whole section is completed, whether or not there is a key input in the process of playing. For a key group, some sections can be set as retriggerable and some as non-retriggerable. When a retriggerable section of a key group is playing, any key can be triggered to interrupt its playing. If it is a non-retriggerable section playing, any key interrupt is invalid. The playback time can be significantly extended by making use of coding efficiency, silence playing, section repeating, section cascade, etc. Section Group Section is the basic element constituting the contents of the voice ROM. During programming, the customer¢s voice sources can be divided into as many sections as required. A section can be composed of a voice or an interval of silence. However, the silent length is not counted in the voice ROM. The total number of sections included should be less than 256 due to the space limitation of the function table ROM. The total length of the included sections is limited by the voice ROM. The EasyVoiceTM plays groups according to the key input. A group can be made up of one or more sections. When a key is triggered, the corresponding group is played. For example, triggering KEY2 plays group 2, and so on. The same section is allowed to appear in different groups. However, KEY1 can be made up of multiple groups when it is optioned as a sequential key. Otherwise, each key is composed by one group only. Key function table A section, when triggered by a key input, can be played once, repeatedly or cascaded with other sections, depending on the key function table instructions. The voice ROM sections are played according to the instructions of the key function table. The function table contains group information and 5 July 24, 2000 Preliminary ¨ The playing sequence of sequential KEY1 is: the playing order of the sections in the groups. Notice that the total amount of sections included in the groups should be less than 256 which is the space limitation of the function table ROM. Group 1-1 ® Group 1-2 ® Group 1-3 ..... ® Group 1-N (the last group) ® Group 1-1 ..... ¨ Reset of KEY1 playing sequence If a sub-group of KEY1 group is being played and KEY2 is triggered, the playing sub-group will be terminated, and the newly triggered key group is played in stead. The first sub-group will start playing by retriggering KEY1. In other words, the KEY1 playing sequence is reset whenever a key other than KEY1 is triggered (see Figure 1). · KEY1 as a direct key Each key is mapped to a group in the function table. If a key is not used, the group mapped to that key is a piece of silence. The following is an example of the function table: Group 1 sec.1 + sec.2 + sec.3 + sec.4 Group 2 sec.3 ¨ Sub-group selection As illustrated in the table, voice ROM is composed of 4 sections, and 5 sections for the function table. If KEY1 is momentarily triggered, section 1, section 2, section 3 and section 4 are played in sequence and then stopped. Triggering KEY2 plays section 3. When KEY1 is triggered with pulses, a desired sub-group can be selected by controlling its corresponding pulse number. However, the features of KEY1 have to be set in the following ways: sequential retriggerable - minimum key debounce time (@1.2ms, fOSC=2MHz) For instance, if sub-group 1-3 is the previous playing group, sub-group 1-5 will start playing after 2 pulses are applied to KEY1, and so on. - · KEY1 as a sequential key - When KEY1 is optioned as a sequential key, it can include multiple groups (sub-groups) in the function table. However, KEY2 is used as a direct key exclusively and comprise of only one group in the function table. An example is shown below: To make a selection of KEY1 sub-groups more easy, KEY2 should be programmed as silence. Then this silence key has to be triggered to reset KEY1. By so doing, the playing sub-group of KEY1 is directly specified by the pulse number applied to KEY1 (see Figure 2). Group 1-1 sec.4 + sec.2 Group 1-2 sec.1 + sec.3 : : : : Group 1-N sec.2 + sec.3 Group 2 HT81003/HT81R03 · KEY2 as a stop key (by mask option) sec.2 + sec.3 When KEY2 functions as a stop key, any voice output can be stopped by pressing KEY2. As indicated in the above table, KEY1 can be made up of sub-groups. The corresponding sub-groups is played in sequence each time KEY1 is triggered. K E Y 1 K E Y 2 A U D G ro u p 1 -1 G ro u p 1 -2 G ro u p 1 -N G ro u p (2 ~ 8 ) G ro u p 1 -1 Figure 1. Reset of KEY1 playing sequence 6 July 24, 2000 Preliminary HT81003/HT81R03 K E Y 1 K E Y 2 ( S ile n c e ) N p u ls e M p u ls e A U D G ro u p 1 -N G ro u p 1 -M Figure 2. KEY1 sub-group selection · KEY2 as a repeat key ¨ Normal trigger As a repeat key, the sections included can be played sequentially and repeatedly until other key input is triggered. When one of the two keys is pressed and held down, the corresponding group will continue playing. Once the pressed key is released, the group will not stop until the included sections are all completed. Key features · Key priority K E Y N When two keys are triggered simultaneously, the output voice is determined by the key priority as shown below: A U D G ro u p N G ro u p N G ro u p N KEY1>KEY2 · Key debounce time FLAG There are three kinds of key-in debounce time to be selected by mask option, namely, 1.2ms, 22ms, 45ms. The key debounce time varies with the value of the system frequency. When voices are playing, both FLAG1 and FLAG2 pins are activated to output one of the following signals through code option. FLAG1 can be optioned as one of the following signal outputs: · Pull-high resistance Four kinds of key input pin pull-high resistance can be selected by mask option, namely, 0kW, 50kW, 100kW and 200kW. The resistance may vary with VDD, temperatures and the chip itself due to process variations. OFF, 3HzB flash, Busy, 6HzB flash, 3hz, 6Hz or End-pulse output FLAG2, on the other hand, can be set as one of the following signal outputs: OFF, 3Hz flash, 6Hz flash, or Busy output · Trigger mode · 3Hz/3HzB flash The two keys can optioned as one-shot trigger mode or normal mode. When voices are playing, FLAG1 as well as FLAG2 pin outputs a 3Hz signal to drive a LED. The signal is active low, 25% duty. Once the voice output is terminated, the FLAG1 and FLAG2 pins become floating outputs. When the FLAG1 and the FLAG2 pins are optioned as 3HzB and 3Hz output, they will alternately output at a 3Hz rate. ¨ One shot When one of the two keys (KEY1, KEY2) is pressed momentarily or held down, the group corresponding to that key will play once. K E Y N A U D G ro u p N G ro u p N 7 July 24, 2000 Preliminary A U D A U D F L A G F L A G HT81003/HT81R03 : F lo a tin g : F lo a tin g · 6Hz/6HzB flash Volume control When voices are playing, the FLAG1 pin outputs a 6Hz signal to drive a LED. The signal is active low, 25% duty. Once the voice output is terminated, the FLAG1 pin becomes a floating output. When the FLAG1 and the FLAG2 pins are optioned as 6HzB and 6Hz outputs, they will alternately output at a 6Hz rate. The function of the volume control can be set by mask option. A code is written in the function table for the purpose of controlling the volume of each section output after the volume control function is chosen. There are two volume options, namely; full range and half range. I/O2 The I/O2 pin is a PWM structure. It outputs voice signals to drive a speaker through an external NPN transistor when the chip is active. The OUT1 and OUT2 pins are configured as PWM structure which can drive 8/16/32W speaker directly. A U D F L A G : F lo a tin g An 8050 type transistor with hFE@150 is recommended for an output driver. · Busy output When a voice group is playing, the outputs of both FLAG1 and FLAG2 are turned low, indicating that the chip is busy. O S C I R O U T 1 O S C S P K A U D O U T 2 H T 8 1 0 0 3 /H T 8 1 R 0 3 F L A G V D D : F lo a tin g S P K In addition to the above-stated output signals, FLAG1 can also generate one of the following signals by code option: O S C I R ¨ End-pulse output When the voice output is completed, the FLAG1 pin outputs an active low pulse. The pulse width can be programmed depending on the customer¢s requirements. I/O 2 O S C H T 8 1 0 0 3 /H T 8 1 R 0 3 The FLAG1 as well as FLAG2 pins are both floating outputs when the chip is in the standby state. 8 July 24, 2000 Preliminary HT81003/HT81R03 Application Circuits V V D D D D O E V P P V D D O E V P P V D D 2 0 0 W 1 1 2 1 1 1 1 2 1 1 L E D 1 H T 8 1 R 0 3 H T 8 1 R 0 3 V S S 1 0 4 p F 1 0 9 2 O S C I O U T 1 V D D 8 3 K E Y 1 4 7 5 I/O 1 9 2 O S C I 8 4 7 5 I/O 1 O U T 2 6 V S S V O E 1 8 0 5 0 D D V P P V D D O E V P P 1 2 S p e a k e r 8 W 2 0 0 W 8 0 5 0 D D 1 1 O U T 1 V D D 3 K E Y 1 I/O 2 V S S I/O 2 V D D 1 S p e a k e r 8 W /1 6 W /3 2 W S p e a k e r 8 W 2 0 0 W V S S 1 0 4 p F 1 0 O U T 2 6 V L E D 2 1 2 1 1 2 0 0 W L E D 2 H T 8 1 R 0 3 1 0 O S C I K E Y 1 9 2 O U T 1 V D D 8 3 4 5 7 6 H T 8 1 R 0 3 V S S 1 0 4 p F S p e a k e r 8 W /1 6 W /3 2 W O S C I 2 0 0 W K E Y 1 O U T 2 I/O 1 O U T 1 8 V D D 3 4 5 7 6 S p e a k e r 8 W /1 6 W /3 2 W O U T 2 S p e a k e r 8 W V S S L E D 2 9 2 I/O 2 V S S I/O 2 I/O 1 L E D 1 V S S 1 0 4 p F 1 0 8 0 5 0 9 July 24, 2000 Preliminary V V D D H T 8 1 R 0 3 V S S 1 0 4 p F 1 0 K E Y 1 I/O 1 9 2 O U T 1 V D D 8 3 4 5 1 2 1 1 H T 8 1 R 0 3 O S C I O E 1 1 2 1 1 D D V P P V D D O E V P P V D D 1 HT81003/HT81R03 7 6 V S S 1 0 4 p F 1 0 S p e a k e r 8 W /1 6 W /3 2 W O S C I K E Y 1 O U T 2 I/O 1 3 4 5 V D D 7 6 S p e a k e r 8 W /1 6 W /3 2 W O U T 2 V S S 2 0 0 W O U T 1 8 I/O 2 V S S I/O 2 L E D 1 9 2 T o n e In 10 July 24, 2000 Preliminary HT81003/HT81R03 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 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 present 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. 11 July 24, 2000