HT3834 36 Melody Music Generator Features · Operating voltage: 2.4V~5.0V · Volume control · ROSC Operating frequency: 6MHz · Hold key · Three operating modes for 28-pin package, · Ring detect MCU control mode, key control mode and manual mode · Hook detect · Mono output · Dual operating mode for 16-pin package, key control · High D/A converter resolution: 16 bits mode and MCU mode · Polyphonic 4 notes · Low voltage detect · 16/28-pin SOP package General Description The HT3834 is a CMOS VLSI designed for musical instruments, especially 36 melody songs. The HT3834 has an integrated controller and a WTS (Wave Table Synthesizer). The HT3834 has applications in areas such as phone ringtones, high function toys, musical boxes, doorbells etc. Block Diagram V D V S V D V S 3 2 K ´ 1 6 - b it R O M P A 0 ~ P A 7 P B 0 ~ P B 7 O S C 1 O S C 2 8 - b it M C U R E S D S D A S A 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 A U D IO Pin Assignment 1 2 8 P B 2 P B 0 2 2 7 P B 3 A U D 3 2 6 P B 4 T E S T 4 2 5 P B 5 V D D A 5 2 4 P B 6 V S S A 6 2 3 P B 7 A U D 1 1 6 P A 7 O S C 2 7 2 2 P A 7 V D D A 2 1 5 P A 6 O S C 1 8 2 1 P A 6 V S S A 3 1 4 P A 5 V S S 9 2 0 P A 5 O S C 2 4 1 3 P A 4 V D D 1 0 1 9 P A 4 O S C 1 5 1 2 P A 3 R E S 1 1 1 8 P A 3 V S S 6 1 1 P A 2 N C 1 2 1 7 P A 2 V D D 7 1 0 P A 1 N C 1 3 1 6 P A 1 R E S 8 9 P A 0 N C 1 4 1 5 P A 0 H T 3 8 3 4 2 8 S O P -A H T 3 8 3 4 1 6 S O P -A Rev. 1.00 P B 1 1 November 2, 2006 HT3834 Pad Assignment 4 2 5 2 4 2 3 2 2 P B 5 P B 4 3 V S S A P B 3 V D D A P B 2 2 P B 1 1 P B 0 A U D T E S T 2 1 2 0 1 9 P B 6 1 8 1 7 P B 7 P A 7 1 6 1 5 1 4 P A 6 P A 5 P A 4 1 3 P A 3 (0 , 0 ) O S C 1 6 V S S 7 V D D 8 R E S 9 1 1 1 2 P A 2 1 0 P A 1 5 P A 0 O S C 2 Chip size: 2135´2385 (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 -876.150 1043.000 14 916.350 514.500 2 -876.150 931.200 15 916.350 625.100 3 -876.150 817.560 16 916.350 725.100 4 -876.150 715.600 17 916.350 835.700 5 -916.350 -63.124 18 916.350 935.700 6 -916.350 -740.976 19 916.350 1046.300 7 -916.350 -842.650 20 704.250 1041.550 8 -916.350 -942.650 21 593.650 1041.550 9 -1044.324 22 493.650 1041.550 10 -916.350 710.500 -1041.350 23 383.050 1041.550 11 810.500 -1041.350 24 283.050 1041.550 12 13 921.100 916.350 -1041.350 414.500 25 172.450 1041.550 Rev. 1.00 2 November 2, 2006 HT3834 Pad Description I/O Internal Connection VDD ¾ ¾ Positive power supply VDDA ¾ ¾ DAC power supply VSS ¾ ¾ Negative power supply, ground VSSA ¾ ¾ DAC negative supply, ground PA0~PA7 I/O Wake-up, Pull-high or None Bidirectional 8-bit I/O port, wake-up by mask option PB0~PB7 I/O Pull-high or None Bidirectional 8-bit I/O port RESET I ¾ OSC1 I X¢tal/Resistor OSC2 O ¾ XOUT or T1 AUD O ¾ DAC output interface Pad Name Function Reset input, active low XIN for X¢tal or ROSCIN for resistor by mask option 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. Electrical Characteristics Symbol Parameter VDD Operating Voltage IDD Operating Current Ta=25°C Test Conditions Min. Typ. Max. Unit 2.4 4.5 5 V ¾ 2 8 ¾ 8 10 ¾ 1 ¾ ¾ 1 3 ¾ 5 ¾ ¾ mA ¾ 5 ¾ ¾ mA VDD Conditions ¾ ¾ 3V No load (OSC= 6MHz) 4.5V ISTB 3V ¾ Standby Current 4.5V 3V mA mA IOH Flag Source Current IOL Flag Sink Current VIH Input High Voltage for I/O Ports ¾ ¾ 0.8VDD ¾ VDD V VIL Input Low Voltage for I/O Ports ¾ ¾ 0 ¾ 0.2VDD V Rev. 1.00 4.5V 3V 4.5V 3 November 2, 2006 HT3834 Function Description Mode selection PB3=1, PA7=0: Key control mode PB3=1, PA7=1: MCU control mode PB3=0: Manual control mode Low voltage detect PA5=0 (normal); PA5=1 (low voltage active, program stop) Key Control Mode PA0: 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. PA1: 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. PA2: Melody select key This key chooses and plays one of the 36 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. 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. PA4: 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. MCU Mode PA0: clock pin Clock from external CPU PA1: data pin Data from external CPU Timing Chart T 2 C L K T 1 D A T A T 2 B it0 B it1 3 0 m s Note: ³ B it2 T 1 ³ B it3 B it4 B it5 B it6 4 m s 1 0 m s ³ B it7 T 2 ³ P a r ity 3 0 0 m s 50ms 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~23H This command will select and play one of the 36 stored musical melodies (play once). 30H~53H This command will select and play one of the 36 stored musical melodies (repeatedly once). 5FH Stop play 60H~6FH 16 level volume control, 60H refers to highest volume (power on default 60H) Rev. 1.00 4 November 2, 2006 HT3834 Song Selection (Manual Selection Mode Only) Mid Name PB2 PB1 PB0 All 1 1 1 Play all songs, classical ® xmas ® children Child 1 1 0 Play children songs, CHxx.mid Classical 1 0 1 Play classical songs, CLxx.mid Xmas 1 0 0 Play xmas songs, XMasxx.mid Shuffle 0 1 1 Random play English Song Name Trigger Mode PA7 PB3 ²VDD² Phone Ring VSS VDD PA0 Ring Detect Clock PA1 Hook Data PA2 Select No function PA3 Hold No function PA4 Volume No function PA5 LVR LVR PA6 BusyB BusyB PA6 BusyB BusyB Mode 1 Mode 2 Mode 3 ¾ VDD VDD VSS VSS PA0 ²VSS² (See Manual Selection Mode) PB4 PA1 VDD VSS VDD VSS PA2 Re-trigger Toggle Level Hold ¾ PA3 Re-play Toggle+10min Non-retrigger ¾ PA4 Volume + PA5 Volume - PA6 BusyB PA7 STOP PB5/PB6/PB7 Mode VDD PWM VSS On-Off Rev. 1.00 5 November 2, 2006 HT3834 Manual Selection Mode (28-pin Package only) · Re-trigger play Songx.mid (for chosen songs) · Replay the song that has been chosen by re-trigger mode, non-retriggerable (for doorbell) · Toggle: Pressing the key once will play songs sequentially. Song1, Song2, .... SongN, Song1, Song2, .... (There is 2sec of silence between every two songs) Pressing the key again and the song will stop. Pressing the key again will play the next song sequentially. Pressing the key again and the song will stop. · Toggle + 10 min timer · Level Hold: Hold key, songs will play sequentially and repeatedly (There is 2sec of silence between every two songs). Songs will stop when the key is released. Pressing the key again, will play sequentially from the next song. · Non-retrigger: for bound trigger switch, in order not to be triggered during song playing. · Volume+ / Volume -: volume up / down, power on default max volume=7. Min volume=0 (silence). 8 levels volume control. · STOP: stop play Output · PA6: BusyB (Op amp control) · PB5: PWM/On-Off control red LED, when stop play is high · PB6: PWM/On-Off control blue LED, when stop play is high · PB7: PWM/On-Off control green LED, when stop play is high Song List Data No. Mid Name English Song Name Child 1 CH1.mid Lullaby 2 CH2.mid My Bonnie 3 CH3.mid Little Boy Blue 4 CH4.mid Clementine 5 CH5.mid Mary Had a Little Lamb 6 CH6.mid Old Black Joe 7 CH7.mid Twinkle Twinkle Little Star 8 CH8.mid Where, Oh Where Has My Little Dog Gone ? 9 CH9.mid Rain, Rain 10 CH10.mid London Bridge 11 CH11.mid Lavender's Blue 12 CH12.mid Rock-a-bye, Baby Classical 1 CL1.mid Canon 2 CL2.mid Spring Song 3 CL3.mid Jeanie With The Light Brown Hair 4 CL4.mid To a Wild Rose 5 CL5.mid ROMANCE de Amor Rev. 1.00 6 November 2, 2006 HT3834 No. Mid Name English Song Name 6 CL6.mid Green Sleeves 7 CL7.mid Swan Lake 8 CL8.mid About Strange Lands and People 9 CL9.mid Old French Song 10 CL10.mid Impromptu 11 CL11.mid Solveig¢s Song 12 CL12.mid Berceuse Xmas 1 Xmas1.mid Jingle Bells 2 Xmas2.mid Silent Night 3 Xmas3.mid The Twelve Days of Christmas 4 Xmas4.mid Away in a Manger 5 Xmas5.mid The First Noel 6 Xmas6.mid Santa Claus Is Coming to Town 7 Xmas7.mid We Wish You a Merry Christmas 8 Xmas8.mid Toy Solder's March 9 Xmas9.mid God Rest Ye Merry, Gentlemen 10 Xmas10.mid Over the River and Through the Woods 11 Xmas11.mid Go Tell it on the Mountain 12 Xmas12.mid Angels We Have Heard On High Application Circuits MCU Mode V V D D A m p lile r C u r c u it c a n u s e H T 8 2 V 7 3 3 V D D P B 3 V D D V D D A 1 k W A U D O S C 1 1 8 0 k W P A 7 S P K 8 W T E S T P A 0 ~ P A 3 O S C 2 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 5 V 8 0 5 0 D D D D P A 6 1 0 0 k W P A 0 C L O C K P A 1 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 R E S 0 .1 m F 3 0 0 W P B 5 3 0 0 W P B 6 V S S V S S A D D 3 0 0 W P B 7 H T 3 8 3 4 Rev. 1.00 7 November 2, 2006 HT3834 Key Control Mode V D D A m p lile r C u r c u it c a n u s e H T 8 2 V 7 3 3 V V D D V D D A 1 8 0 k W P B 3 1 k W A U D O S C 1 V O S C 2 D D S P K 8 W 8 0 5 0 D D 5 1 k W P A 1 V P A 0 1 0 0 k W R E S H O L D 5 1 k W 2 2 m F 2 5 0 V T IP R IN G 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 6 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 3 S E L E C T D D P A 5 D D V O L V 1 0 k W T E S T 0 .1 m F V IS C 2 D E C K -IS O 1 D D P A 4 V P A 2 P B 5 P A 7 P B 6 V S S V S S A P B 7 2 .2 k W 4 7 k W D D 3 0 0 W 3 0 0 W 3 0 0 W H T 3 8 3 4 Rev. 1.00 8 November 2, 2006 HT3834 Manual Selection Mode: Mode 1 V D D 1 0 W 4 7 m F 0 .1 m F V V D D A V V D D 3 0 0 W P B 5 D D 3 0 0 W P B 6 1 0 0 k W 3 0 0 W P B 7 R E S D D 0 .1 m F A U D V O u tp u t A m p lifie r C ir c u it D D P A 6 P A 0 S e e B e lo w P A 1 R e - tr ig g e r P A 2 R e - p la y P A 3 V o lu m e + P A 4 V o lu m e - P A 5 S to p P A 7 P B 0 P B 1 P B 2 P B 3 1 8 0 k W O S C 1 V S S A O S C 2 V S S H T 3 8 3 4 T r a n s is to r O P A m p V D D V 4 7 m F A U D 0 .1 m F 2 0 k W P A 6 Rev. 1.00 B u s y B 2 IN 8 V D D H T 8 2 V 7 3 3 3 V re f C E V S S 1 0 m F 5 4 O U T N 1 S P K 8 W 7 O U T P A U D D D S P K 8 W 1 k W 7 5 0 W P A 6 9 November 2, 2006 HT3834 Manual Selection Mode: Mode 2 V D D 1 0 W 4 7 m F 0 .1 m F V D D A V D D V V D D 3 0 0 W P B 5 3 0 0 W P B 6 1 0 0 k W R E S 3 0 0 W P B 7 0 .1 m F A U D T o g g le P A 2 T o g g le + 1 0 m in P A 3 V o lu m e + P A 4 V o lu m e - P A 5 P A 7 S to p D D O u tp u t A m p lifie r C ir c u it P A 6 S e e B e lo w V D D P A 0 1 8 0 k W O S C 1 P A 1 O S C 2 P B 3 V S S A V S S H T 3 8 3 4 T r a n s is to r O P A m p V D D V 4 7 m F A U D 0 .1 m F 2 0 k W P A 6 Rev. 1.00 B u s y B 2 8 IN V D D O U T N H T 8 2 V 7 3 3 3 V re f C E V S S 1 0 m F 5 4 1 S P K 8 W 7 O U T P A U D D D S P K 8 W 1 k W 7 5 0 W P A 6 10 November 2, 2006 HT3834 Manual Selection Mode: Mode 3 V D D 1 0 W 4 7 m F 0 .1 m F V D D A V D D V V D D 3 0 0 W P B 5 3 0 0 W P B 6 1 0 0 k W 3 0 0 W P B 7 R E S D D 0 .1 m F A U D L e v e l H o ld P A 2 N o n - r e tr ig g e r P A 3 V o lu m e + P A 4 V o lu m e - P A 5 S to p P A 7 O u tp u t A m p lifie r C ir c u it P A 6 S e e B e lo w V D D P A 1 P A 0 1 8 0 k W O S C 1 P B 3 O S C 2 V S S A V S S H T 3 8 3 4 T r a n s is to r O P A m p V D D V 4 7 m F A U D 0 .1 m F 2 0 k W P A 6 Rev. 1.00 B u s y B 2 IN 8 V D D H T 8 2 V 7 3 3 3 V re f C E V S S 1 0 m F 5 4 O U T N 1 S P K 8 W 7 O U T P A U D D D S P K 8 W 1 k W 7 5 0 W P A 6 11 November 2, 2006 HT3834 Package Information 16-pin SOP (300mil) Outline Dimensions 1 6 9 A B 1 8 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¢ 390 ¾ 413 D 92 ¾ 104 E ¾ 50 ¾ F 4 ¾ ¾ G 32 ¾ 38 H 4 ¾ 12 a 0° ¾ 10° 12 November 2, 2006 HT3834 28-pin SOP (300mil) Outline Dimensions 2 8 1 5 A B 1 1 4 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¢ 697 ¾ 713 D 92 ¾ 104 E ¾ 50 ¾ F 4 ¾ ¾ G 32 ¾ 38 H 4 ¾ 12 a 0° ¾ 10° 13 November 2, 2006 HT3834 Product Tape and Reel Specifications Reel Dimensions D T 2 A C B T 1 SOP 16W (300mil) Symbol Description Dimensions in mm A Reel Outer Diameter 330±1 B Reel Inner Diameter 62±1.5 C Spindle Hole Diameter 13±0.5 -0.2 D Key Slit Width 2±0.5 T1 Space Between Flange 16.8+0.3 -0.2 T2 Reel Thickness 22.2±0.2 SOP 28W (300mil) Symbol Description Dimensions in mm A Reel Outer Diameter 330±1 B Reel Inner Diameter 62±1.5 C Spindle Hole Diameter 13+0.5 -0.2 D Key Slit Width 2±0.5 T1 Space Between Flange 24.8+0.3 -0.2 T2 Reel Thickness 30.2±0.2 Rev. 1.00 14 November 2, 2006 HT3834 Carrier Tape Dimensions P 0 D P 1 t E F W C D 1 B 0 P K 0 A 0 SOP 16W (300mil) Symbol Description Dimensions in mm W Carrier Tape Width 16±0.2 P Cavity Pitch 12±0.1 E Perforation Position 1.75±0.1 F Cavity to Perforation (Width Direction) 7.5±0.1 D Perforation Diameter 1.5+0.1 D1 Cavity Hole Diameter 1.5+0.25 P0 Perforation Pitch 4±0.1 P1 Cavity to Perforation (Length Direction) A0 Cavity Length 10.9±0.1 B0 Cavity Width 10.8±0.1 K0 Cavity Depth 3±0.1 t Carrier Tape Thickness C Cover Tape Width 2±0.1 0.3±0.05 13.3 SOP 28W (300mil) Symbol Description Dimensions in mm W Carrier Tape Width P Cavity Pitch 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.1 P1 Cavity to Perforation (Length Direction) 2±0.1 24±0.3 12±0.1 A0 Cavity Length 10.85±0.1 B0 Cavity Width 18.34±0.1 K0 Cavity Depth 2.97±0.1 t Carrier Tape Thickness 0.35±0.01 C Cover Tape Width Rev. 1.00 21.3 15 November 2, 2006 HT3834 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 16 November 2, 2006