HT81003 EasyVoiceTM 3-Second Speech Features · Operating voltage: 2.4V~5V · FLAG2 options · Directly drives an external transistor - 3Hz flash 6Hz flash Busy output OFF · 2 keys · PWM function directly driver speaker · Low standby current (1mA typ. for VDD=3V) · Minimal external components · 240 notes table ROM for key functions · Key options · Programmable silence length and end-pulse width - 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 (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 - Retriggerable - Non-retriggerable · Dice form or 16-pin DIP package Applications · Leisure products · Alert and warning system · Alarm clocks · Sound effect generators · Public address system General Description The HT81003 is a Mask ROM type. The HT81003 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 is excellent for versatile voice applications. The HT81003 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. EasyVoiceTM is a trademark of Holtek Semiconductor Inc. Rev. 1.10 1 January 22, 2002 HT81003 Block Diagram T G 1 I/O 1 O S C I 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 A u d io C o n tr o lle r D a ta R O M 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 Pad Assignment Pin Assignment N C 1 1 6 N C N C 2 1 5 N C V S S N C 3 1 4 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 S S 1 0 V D D 1 O S C I 2 K E Y 1 3 5 4 6 O U T 1 8 V D D 7 O U T 2 V S S I/O 2 I/O 1 H T 8 1 0 0 3 1 6 D IP -A 9 (0 ,0 ) Chip size: 42.3´46.7 (mil)2 * The IC substrate should be connected to VSS in the PCB layout artwork. Unit: mm Pad Coordinates Pad No. X Y Pad No. X Y 1 2 3 4 5 -387.35 -391.70 -202.25 -67.25 68.25 20.06 -200.11 -377.40 -377.40 -377.40 6 7 8 9 10 214.30 383.00 379.05 383.00 397.50 -340.60 -77.60 -347.50 192.30 457.50 Pin Description Pin No. 1, 2, 3, 5, 15, 16 Pin Name I/O Internal Connection NC ¾ ¾ Description No connection 4, 12 VDD ¾ ¾ 6 OSCI I Oscillator Input Pin 7 KEY1 I Pull-high 8 I/O1 I NMOS Pull-high 9 I/O2 I/O Pull-high Input/NMOS 10, 14 VSS ¾ ¾ 11 OUT2 O CMOS PWM output +/NMOS output 13 OUT1 O CMOS PWM output -/NMOS output Rev. 1.10 Positive power supply Oscillator input pin Trigger key 1, active low Trigger key 2, active low/NMOS output Pull-high/transistor output/NMOS output Negative power supply, ground 2 January 22, 2002 HT81003 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. Electrical Characteristics Symbol Parameter Ta=25°C Test Conditions VDD Conditions ¾ Min. Typ. Max. Unit 2.4 3 5 V VDD Operating Voltage 3V IDD Operating Current 3V No load ¾ 1000 1200 mA ISTB Standby Current 3V OSC stop ¾ 1 3 mA 3V VOL=0.2VDD 90 110 ¾ 3V VOH=0.8VDD -10 -20 ¾ IOL1 PWM Output Current IOH1 mA IOL2 I/O2 (TR) 3V VOL=0.1VDD 1 3 ¾ mA IOH2 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 R=50kW (option) 40 50 60 R=100kW (option) 80 100 120 R=200kW (option) 160 200 240 RPH Rev. 1.10 Input Pull-high Resistor 3V 3 kW January 22, 2002 HT81003 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. Section 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 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. 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. 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 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. The following are examples of section division: E x a m p le 1 : O n e s e c tio n o n ly Play function block diagram 8 /1 6 /3 2 W s p e a k e r K e y tr ig g e r K e y fe a tu re s o p tio n K e fu n c ta b R O y tio n le M V o ic e R O M P W M + P W M S e le c t s e c .1 V R O M D D 8 W s p e a k e r E x a m p le 2 : 3 s e c tio n d iv is io n s e c .1 T R s e c .2 s e c .3 R O M E x a m p le 3 : N F la g o u tp u t P la y c o n tr o l lo g ic 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 In addition, a section can be set as retriggerable or non-retriggerable depending on code option. 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. · Retriggerable When the currently playing section is set as retriggerable, it will stop immediately upon receipt of other key inputs. · Non-retriggerable 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. O S C I H T 8 1 0 0 3 R O S C 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. Voice ROM Group 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. 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. The playback time can be significantly extended by making use of coding efficiency, silence playing, section repeating, section cascade, etc. Rev. 1.10 4 January 22, 2002 HT81003 Key function table 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. The voice ROM sections are played according to the instructions of the key function table. The function table contains group information and 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. ¨ ¨ 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: sec.1 + sec.2 + sec.3 + sec.4 Group 2 sec.3 ¨ · KEY1 as a sequential key Group 1-2 sec.1 + sec.3 : : - 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. 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: sec.4 + sec.2 Sub-group selection 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: 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. 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 Group 1 The playing sequence of sequential KEY1 is: Group 1-1 ® Group 1-2 ® Group 1-3 ..... ® Group 1-N (the last group) ® Group 1-1 ..... 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). : : · KEY2 as a stop key (by mask option) Group 1-N sec.2 + sec.3 Group 2 sec.2 + sec.3 When KEY2 functions as a stop key, any voice output can be stopped by pressing KEY2. 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 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 Rev. 1.10 5 January 22, 2002 HT81003 OFF, 3HzB flash, Busy, 6HzB flash, 3hz, 6Hz or End-pulse output · KEY2 as a repeat key As a repeat key, the sections included can be played sequentially and repeatedly until other key input is triggered. FLAG2, on the other hand, can be set as one of the following signal outputs: OFF, 3Hz flash, 6Hz flash, or Busy output Key features · 3Hz/3HzB flash · Key priority 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. When two keys are triggered simultaneously, the output voice is determined by the key priority as shown below: KEY1>KEY2 · Key debounce time 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. A U D · Pull-high resistance F L A G 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. : F lo a tin g · 6Hz/6HzB flash 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. · Trigger mode The two keys can optioned as one-shot trigger mode or normal mode. ¨ 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. A U D K E Y N A U D G ro u p N ¨ F L A G G ro u p N : F lo a tin g Normal trigger 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. · Busy output When a voice group is playing, the outputs of both FLAG1 and FLAG2 are turned low, indicating that the chip is busy. K E Y N A U D A U D G ro u p N G ro u p N F L A G G ro u p N : F lo a tin g FLAG When voices are playing, both FLAG1 and FLAG2 pins are activated to output one of the following signals through code option. In addition to the above-stated output signals, FLAG1 can also generate one of the following signals by code option: FLAG1 can be optioned as one of the following signal outputs: Rev. 1.10 6 January 22, 2002 HT81003 ¨ End-pulse output I/O2 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. 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. The FLAG1 as well as FLAG2 pins are both floating outputs when the chip is in the standby state. An 8050 type transistor with hFE@150 is recommended for an output driver. A U D O S C I R F L A G O U T 1 O S C S P K O U T 2 : F lo a tin g H T 8 1 0 0 3 V Volume control 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. D D S P K O S C I R I/O 2 O S C H T 8 1 0 0 3 Application Circuits V 0 .1 m F D D V D D K E Y 2 I/O 1 O U T 1 S p e a k e r S p e a k e r K E Y 2 8 W K E Y 1 K E Y 1 K E Y 1 R O S C H T 8 1 0 0 3 O S C I V 0 .1 m F O U T 2 I/O 2 V D D I/O 1 K E Y 1 8 W /1 6 W /3 2 W 2 0 0 W R 8 0 5 0 O S C V D D I/O 1 H T 8 1 0 0 3 2 0 0 W S p e a k e r L E D 2 L E D 1 8 W O U T 2 I/O 2 2 0 0 W 8 0 5 0 V S S V 0 .1 m F L E D 1 V D D K E Y 2 2 0 0 W O U T 1 O S C I V S S 0 .1 m F D D O U T 1 V D D K E Y 1 S p e a k e r D D K E Y 1 O U T 1 S p e a k e r 2 0 0 W 2 0 0 W L E D 1 L E D 2 K E Y 1 K E Y 1 R O S C H T 8 1 0 0 3 O S C I O U T 2 I/O 2 H T 8 1 0 0 3 8 W /1 6 W /3 2 W R O S C O S C I 2 0 0 W V S S V 0 .1 m F V D D K E Y 1 O S C O U T 1 I/O 1 K E Y 1 R V 0 .1 m F 2 0 0 W L E D 1 H T 8 1 0 0 3 O S C I O U T 2 I/O 2 S p e a k e r S p e a k e r K E Y 2 8 W K E Y 1 2 0 0 W R 8 0 5 0 O S C 2 0 0 W I/O 1 V D D K E Y 1 8 W /1 6 W /3 2 W 8 W /1 6 W /3 2 W D D I/O 1 O U T 1 H T 8 1 0 0 3 O S C I O U T 2 I/O 2 S p e a k e r 8 W /1 6 W /3 2 W T o n e in V S S V S S Rev. 1.10 I/O 2 V S S D D O U T 2 7 January 22, 2002 HT81003 Holtek Semiconductor Inc. (Headquarters) No.3, Creation Rd. II, Science Park, Hsinchu, Taiwan Tel: 886-3-563-1999 Fax: 886-3-563-1189 http://www.holtek.com.tw Holtek Semiconductor Inc. (Taipei Sales Office) 4F-2, No. 3-2, YuanQu St., Nankang Software Park, Taipei 115, Taiwan Tel: 886-2-2655-7070 Fax: 886-2-2655-7373 Fax: 886-2-2655-7383 (International sales hotline) Holtek Semiconductor Inc. (Shanghai Sales Office) 7th Floor, Building 2, No.889, Yi Shan Rd., Shanghai, China 200233 Tel: 021-6485-5560 Fax: 021-6485-0313 http://www.holtek.com.cn Holtek Semiconductor Inc. (Shenzhen Sales Office) 5/F, Unit A, Productivity Building, Cross of Science M 3rd Road and Gaoxin M 2nd Road, Science Park, Nanshan District, Shenzhen, China 518057 Tel: 0755-8616-9908, 8616-9308 Fax: 0755-8616-9533 Holtek Semiconductor Inc. (Beijing Sales Office) Suite 1721, Jinyu Tower, A129 West Xuan Wu Men Street, Xicheng District, Beijing, China 100031 Tel: 010-6641-0030, 6641-7751, 6641-7752 Fax: 010-6641-0125 Holtek Semiconductor Inc. (Chengdu Sales Office) 709, Building 3, Champagne Plaza, No.97 Dongda Street, Chengdu, Sichuan, China 610016 Tel: 028-6653-6590 Fax: 028-6653-6591 Holmate Semiconductor, Inc. (North America Sales Office) 46729 Fremont Blvd., Fremont, CA 94538 Tel: 510-252-9880 Fax: 510-252-9885 http://www.holmate.com Copyright Ó 2002 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¢s products are not authorized for use as critical components in life support devices or systems. 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. Rev. 1.10 8 January 22, 2002