HT38A5 12 Melody Music Generator Features · Operating voltage: 2.4V~5.0V · Rang detect · Operating frequency: 8MHz · Hook · Two operating mode MCU control mode key control · Mono output mode · High D/A converter resolution: 16 bits · Low voltage detect · Polyphonic up to 8 notes · Volume control · 16-pin DIP, 20-pin SOP package · Hold key General Description The HT38A5 is a CMOS VLSI designed for musical instruments, especially 12 melody songs. The HT38A5 is built-in with a controller and an WTS (Wave Table Synthesizer). The HT38A5 has applications in areas such as phone ringtones, high function toys, musical boxes, doorbells etc. Block Diagram 3 2 K ´ 1 6 - b it R O M P A 0 ~ P A 7 O S C 1 O S C 2 8 - B it M C U V D V S V D V S 2 0 8 ´ 8 R A M 1 6 - B it D A C M u ltip lie r /P h a s e G e n e ra l R E S D S D A S A A U D Pin Assignment 1 2 0 P A 3 P A 5 2 1 9 P A 2 P A 4 1 1 6 P A 3 P A 6 3 1 8 P A 1 P A 5 2 1 5 P A 2 P A 7 4 1 7 P A 0 P A 6 3 1 4 P A 1 V S S 5 1 6 N C P A 7 4 1 3 P A 0 V S S A 6 1 5 O S C 2 V S S 5 1 2 O S C 2 V D D 7 1 4 O S C 1 V D D 6 1 1 O S C 1 N C 8 1 3 N C V D D A 7 1 0 R E S V D D A 9 1 2 R E S T E S T 8 9 A U D T E S T 1 0 1 1 A U D H T 3 8 A 5 1 6 D IP -A Rev. 1.00 P A 4 H T 3 8 A 5 2 0 S O P -A 1 November 2, 2006 HT38A5 Pad Assignment P A 5 P A 6 1 7 1 P A 7 P A 4 P A 3 1 5 1 6 2 P A 2 1 4 1 3 P A 1 1 2 P A 0 1 1 O S C 2 1 0 O S C 1 (0 , 0 ) V S S 3 V S S A 4 5 V D D V D D A 6 7 T E S T 8 9 R E S A U D Chip size: 2110 ´ 2530 (mm)2 * The IC substrate should be connected to VSS in the PCB layout artwork. Pad Coordinates Unit: mm Pad No. X Y Pad No. X Y 1 -903.425 1096.250 10 900.650 -994.626 2 -903.425 985.650 11 900.650 3 -882.900 -650.050 12 901.625 -316.774 1006.000 4 -882.900 -776.910 13 901.625 1116.600 5 -831.950 -886.910 14 697.050 1114.025 6 -831.950 -1025.350 15 586.450 1114.025 7 -177.390 -1045.600 16 -588.250 1114.025 8 -65.590 900.650 -1045.600 17 -698.850 1114.025 9 Rev. 1.00 -1107.950 2 November 2, 2006 HT38A5 Pad Description Pad Name I/O Internal Connection PA0~PA7 I/O Pull-High or None VSSA ¾ ¾ Negative power supply of DAC, ground VSS ¾ ¾ Negative power supply, ground VDD ¾ ¾ Positive power supply VDDA ¾ ¾ DAC power supply TEST ¾ ¾ No connection (open) AUD O ¾ Audio output for driving a external transistor or for driving HT82V733 RES I ¾ Reset input, active low OSC1 OSC2 I O ¾ OSC1 and OSC2 are connected to an RC network or a crystal (by mask option) for the internal system clock. In the case of RC operation, OSC2 is the output terminal for 1/8 system clock. The system clock may come from the crystal, the two pins cannot be floating. Function Mode select and control pia. Absolute Maximum Ratings Supply Voltage ......................... VSS-0.3V to VSS+5.5V Storage Temperature .......................... -50°C to 125°C Input Voltage ............................ VSS-0.3V to VDD+0.3V Operating Temperature ......................... -25°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. D.C. Characteristics Symbol Parameter Ta=25°C Test Conditions VDD Conditions ¾ Min. Typ. Max. Unit 2.4 3 5 V VDD Operating Voltage ¾ IDD Operating Current 5V No load fOSC=8MHz ¾ 8 16 mA ISTB Standby Current (WDT Disabled) 5V No load System HALT ¾ 1 ¾ mA IOL I/O Ports Sink Current 5V VOL=0.5V 9.7 16.2 ¾ mA IOH I/O Ports Source Current 5V VOH=4.5V -5.2 -8.7 ¾ mA RPH Pull-High Resistance of I/O Ports 5V VIL=0V 11 22 44 kW VIH1 Input High Voltage for I/O Ports 5V ¾ 3.5 ¾ 5 V VIL1 Input Low Voltage for I/O Ports 5V ¾ 0 ¾ 1.5 V VIH2 Input High Voltage (RES) 5V ¾ ¾ 4 ¾ V VIL2 Input Low Voltage (RES) 5V ¾ ¾ 2.5 ¾ V Rev. 1.00 3 November 2, 2006 HT38A5 A.C. Characteristics Symbol Ta=25°C Parameter Test Conditions Conditions VDD Min. Typ. Max. Unit MCU interface fOSC System Frequency 5V 8MHz crystal ¾ 8 ¾ MHz fSYS System Clock 5V ¾ 4 ¾ 8 MHz tWDT Watchdog Time-Out Period (RC) ¾ Without WDT prescaler 9 17 35 ms tRES External Reset Low Pulse Width ¾ ¾ 1 ¾ ¾ ms Function Description Mode selection PA0=0, key control mode PA0=1, MCU control mode Low voltage detect PA4=0,(normal) ;PA4=1(low voltage active, program stop) Key Control Mode PA1: Melody select key This key chooses and plays one of the 12 stored musical melodies. When the key is pressed the next melody in the list will be selected and played. When the HOLD key is pressed the telephone hold function will be activated and when an incoming ring signal is detected the music will be played. PA2: Volume key Controls the music volume in 8 discrete steps. Each time the key is pressed the volume will reduce one step at a time until the lowest volume is reached. When the lowest volume is reached, the next key press will return the volume to its maximum level. PA3: Telephone Hold key If this key is pressed during a phone conversation the phone will be put on hold and the caller can listen to the music while waiting. If, when the music is playing, the handset is lifted, the music will immediately stop playing. After this happens the HOLD function will have no effect for a period of 2 seconds. PA6: Ring Detect When an incoming 13Hz~90Hz ring signal is detected after a period of 200ms, the music will automatically start playing. When the incoming ring signal stops, after a period of 6 seconds the music will stop playing. PA7: Hook Detect This line detects the on/off hook condition of the telephone. Only when the telephone is in an on-hook condition, can the music be chosen and played. If the handset is lifted to talk, the music will stop playing and the HOLD key will be effective. Communication with External MCU Control Mode (Clock Mode) Communication with External CPU PA6:clock pin Clock from external CPU PA7:data pin Data from external CPU Rev. 1.00 4 November 2, 2006 HT38A5 Timing Chart D C K T 1 D A T A T 2 B it0 B it1 3 0 m s Note: ³ B it2 T 1 ³ B it3 T 2 B it4 B it5 1 0 m s B it6 4 m s ³ B it7 T 2 ³ P a r ity 3 0 0 m s 400ms after power up, the device will be ready to communicate with the external CPU using the CLK and DATA lines. Communication via the CLK and DATA lines is conducted in a simple manner. The device will obtain its data on the high going edge of the CLK line. If the device does not receive a complete byte within 50ms then the present byte will be discarded and the next byte will then be received. Even-parity is used for data checking. For the previous 8-bits, if the total number of ²1s² is odd then the parity bit is set to ²1², otherwise it is set to ²0². If the parity is incorrect then the byte will be discarded. Data Type (Command) 00h~0bh This command will select and play one of the 12 stored musical melodies. If the chosen melody number exceeds the highest number of that stored in the device then the command will be ignored and no action taken. 40h-4fh 16 level volume control, 40h refers to highest volume 50h Stop play Melody List Command English Song Name 00h Toreador Song 01h Jingle Bells 02h Chinese New Year 03h Santa Lucia 04h My Old Kentucky Home 05h La Cucaracha 06h Allegro 07h I¢m a Little Teapot 08h Sabre Dance 09h Happy Birthday to You 0Ah Working on the Railroad 0Bh Radetzky March Rev. 1.00 5 November 2, 2006 HT38A5 Application Circuits V D D A m p lile r C u r c u it c a n u s H T 8 2 V 7 3 3 V V D D 1 2 0 ~ 1 5 0 k W V D D A O S C 1 A U D O S C 2 T E S T 1 k W P A 0 ~ P A 3 V D D P A 5 R E S 0 .1 m F S P K 8 W 8 0 5 0 V o lta g e D e te c t L o w : N o rm a l H ig h : L o w V o lta g e R e s e t P A 4 1 0 0 k W D D P A 6 C L O C K P A 7 D A T A E n a b le A m p L o w : N o rm a l H ig h : S ta n d b y V S S H T 3 8 A 5 V D D A m p lile r C u r c u it c a n u s H T 8 2 V 7 3 3 V V D D A V D D 1 2 0 ~ 1 5 0 k W V O S C 1 A U D O S C 2 T E S T 1 k W 1 0 k W P A 7 S P K 8 W 8 0 5 0 E n a b le A m p L o w : N o rm a l H ig h : S ta n d b y P A 5 D D V IS C 2 D E C K -IS O 1 D D 1 0 0 k W R E S V P A 6 H O L D 1 0 k W V O L N A M E D D 2 2 m F 1 0 k W 0 .1 m F D D 2 5 0 V 2 .2 k W T IP R IN G P A 3 P A 4 P A 2 P A 0 P A 1 V S S 4 7 k W V o lta g e D e te c t L o w : N o rm a l H ig h : L o w V o lta g e R e s e t H T 3 8 A 5 Rev. 1.00 6 November 2, 2006 HT38A5 Package Information 16-pin DIP (300mil) Outline Dimensions A B 1 6 9 8 1 H C D a G E I F Symbol A Rev. 1.00 Dimensions in mil Min. Nom. Max. 745 ¾ 775 B 240 ¾ 260 C 125 ¾ 135 D 125 ¾ 145 E 16 ¾ 20 70 F 50 ¾ G ¾ 100 ¾ H 295 ¾ 315 I 335 ¾ 375 a 0° ¾ 15° 7 November 2, 2006 HT38A5 20-pin SOP (300mil) Outline Dimensions 1 1 2 0 A B 1 1 0 C C ' G H D E Symbol Rev. 1.00 a F Dimensions in mil Min. Nom. Max. A 394 ¾ 419 B 290 ¾ 300 C 14 ¾ 20 C¢ 490 ¾ 510 D 92 ¾ 104 E ¾ 50 ¾ F 4 ¾ ¾ G 32 ¾ 38 H 4 ¾ 12 a 0° ¾ 10° 8 November 2, 2006 HT38A5 Product Tape and Reel Specifications Reel Dimensions D T 2 A C B T 1 SOP 20W Symbol Description A Reel Outer Diameter B Reel Inner Diameter Dimensions in mm 330±1.0 62±1.5 13.0+0.5 -0.2 C Spindle Hole Diameter D Key Slit Width 2.0±0.5 T1 Space Between Flange 24.8+0.3 -0.2 T2 Reel Thickness 30.2±0.2 Rev. 1.00 9 November 2, 2006 HT38A5 Carrier Tape Dimensions P 0 D P 1 t E F W C D 1 B 0 P K 0 A 0 SOP 20W Symbol Description Dimensions in mm W Carrier Tape Width 24.0+0.3 -0.1 P Cavity Pitch 12.0±0.1 E Perforation Position 1.75±0.1 F Cavity to Perforation (Width Direction) 11.5±0.1 D Perforation Diameter 1.5+0.1 D1 Cavity Hole Diameter 1.5+0.25 P0 Perforation Pitch 4.0±0.1 P1 Cavity to Perforation (Length Direction) 2.0±0.1 A0 Cavity Length 10.8±0.1 B0 Cavity Width 13.3±0.1 K0 Cavity Depth 3.2±0.1 t Carrier Tape Thickness 0.3±0.05 C Cover Tape Width Rev. 1.00 21.3 10 November 2, 2006 HT38A5 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 Ó 2006 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.00 11 November 2, 2006