SM1350AAQM High Tone Quality Melody IC OVERVIEW The SM1350AAQM is single-chip high tone quality melody IC, fabricated using NPC’s Molybdenum-gate CMOS process. Melodies are selected in serial or binary (parallel) mode, 6 programmable melodies are stored, and the high tone quality melody is output by how to specify the user. It is making this IC ideal for mechanical clocks and similar applications where high tone quality output is demanded. FEATURES ■ Basic Functions PINOUT (Top view) • 4.0MHz oscillator frequency • Power-save function - Oscillator stopped when no output - S0 to S3, MODE, LH pull-up resistors open • A-class output • Chattering prevention circuit (STN, STOP, S0 to S3) • 10-bit D/A converter current-summing ■ Sound Generator Functions • DWS (dual wave synthesis) sound generators • 4 simultaneous sounds for 4 tones ■ Melody Functions 1 VDD S0 24 S1 S2 XT XTN TO S3 T3N T2N MODE T1N ENDN EBUSYIN LH STOP SP SPN STN BUSYN CT ICN 13 12 VOL VSS • 6 programmable melodies • Level hold/one-shot melody modes • Serial/binary (parallel) select modes ■ Control Signal Outputs PACKAGE DIMENSIONS (Unit : mm) • BUSYN signal : LOW during melody output • CT signal : pulse output synchronizing with selected notes or rests ■ 2.4 to 5.5V supply voltage ■ Molybdenum-gate CMOS ■ Package : 24-pin SSOP ORDERING INFOMATION Device Package SM1350AAQM 24 pin SSOP SEIKO NPC CORPORATION - 1 SM1350AAQM BLOCK DIAGRAM S3 S2 S1 S0 MODE LH STOP STN TO T1N T2N T3N Wave ROM Arithmetic block Circuit Parameter ROM + DAC SP SPN VOL Input Circuit Control Circuit EBUSYIN ENDN BUSYN CT ICN XT XTN Oscillator Score ROM VDD VSS SEIKO NPC CORPORATION - 2 SM1350AAQM PIN DESCRIPTION No. Pin Name I/O State*1 1 VDD - - 2 S0 3 S1 4 S2 I SU 5 S3 6 MODE I SU 7 LH I SU 8 STOP I U 9 STN I U Melody start control 10 BUSYN O C Busy output signal. LOW when a melody is output. 11 CT O C External control pulse output 12 ICN I U Initialization clear input 13 VSS - - Ground pin 14 VOL I - Volume adjusts control. Volume adjusted using an external resistor. 15 SPN O P VOL current output 16 SP O P 10-bit D/A converter output Description Supply pin Binary select mode : Phrase select pins. Serial select mode : S0 and S1 control melody output. Melody select mode control. Binary mode when LOW, and serial mode when HIGH. Melody output mode control. One-shot when LOW, and level hold when HIGH. One-shot melody mode : Melody output stop control. Level hold melody mode : invalid input. It is not necessary to use it usually. It should connect VDD or OPEN. 17 EBUSYIN I U When this terminal is made LOW, BUSYN compulsorily becomes LOW. A pop sound might be emitted. 18 ENDN O C Pulse signal when melody output ends 19 T1N I U 20 T2N I U 21 T3N I U 22 TO O C Test signal output. 62.5kHz output when not in test mode. 23 XTN O - Oscillator output 24 XT I - Oscillator input Test signal inputs This terminal cannot be used. It should connect VDD or OPEN. *1. U : pull-up resistor connection SU : pull-up resistor connection only when melody output starts (Function for current consumption decrease when driving with battery. Only when the terminal is read, the pull-up resistor is connected.) P : p-channel open drain C : complementary output SEIKO NPC CORPORATION - 3 SM1350AAQM SPECIFICATIONS Absolute Maximum Ratings VSS=0V Parameter Symbol Rating Unit Supply voltage VDD -0.3 to 7.0 V *1 VIN -0.3 to VDD+0.3 V VOUT -0.3 to VDD+0.3 V Operating temperature TOPR -20 to 80 C Storage temperature TSTG -40 to 125 C Allowable power dissipation PW 650 mW Input voltage Output voltage *1 Allowable power dissipation[mW] *1. They are range of the voltage where IC destroys and the characteristics degradation and the reliability decrease are not caused. 650 500 400 300 200 100 100mW is not exceeded in usual use. -20 0 25 50 150 80 Temperature[℃] Recommended Operating Conditions VSS=0V Rating Parameter Symbol Supply voltage VDD 2.4 5.5 V Operating temperature Ta -20 80 C MIN TYP MAX Unit SEIKO NPC CORPORATION - 4 SM1350AAQM DC Characteristics Ta=25℃,VDD=3.0V or 5.0V,VSS=0V,fO=4.0MHz unless otherwise noted. Rating Parameter Pin Name Symbol Condition Unit MIN Minimum operating supply voltage*1 VDD,VSS VMIN Maximum operating supply voltage*1 VDD,VSS VMAX VDD ISTBY Standby current consumption VDD IDD 5.5 S0~S3,MODE, V V No melody output 1.0 VDD=3.0V 3.5 VDD=5.0V 9.5 µA mA SP,SPN,ENDN, open HIGH-level input voltage MAX 2.4 BUSYN,CT,TO, Operating current consumption TYP VIH VDD-0.3 VDD V VSS VSS+0.3 V LH,STOP,STN, LOW-level input voltage ICN,EBUSYIN VIL HIGH-level input current S0~S3,MODE, IIH VIH=VDD IIL VIL=VSS LH,STOP,STN, ICN,EBUSYIN LOW-level input current HIGH-level output current1 BUSYN,CT,TO LOW-level output current1 HIGH-level output current2 ENDN LOW-level output current2 Output current3*2 SP,SPN VDD=3.0V 1 VDD=5.0V 1 VDD=3.0V 10 20 VDD=5.0V 30 50 µA µA IOH1 VOH1=VDD-0.7 2.0 mA IOL1 VOL1=VSS+0.7 2.0 mA IOH2 VOH2=VDD-0.7 3.0 mA IOL2 VOL2=VSS+0.7 3.0 mA IOH3 VOH3=VSS+0.7 VDD=3.0V 4.0 VDD=5.0V 7.7 mA *1. Supply voltage ratings shown are with oscillator running and all functions operating normally. *2. Output current when 20kΩ volume control resistor is connected to VOL, and all D/A converter bits ON, measured using the following circuit. VDD SP,SPN VDD A VOL 20kΩ 0.7V VSS SEIKO NPC CORPORATION - 5 SM1350AAQM AC Characteristics Ta=25℃,VDD=3.0V or 5.0V,VSS=0V unless otherwise noted. Parameter Symbol Rating Condition MIN Initialization clear time tICW ICN-STN time to spare tSS STN pulse width TYP Unit MAX 1.0 µsec 10 µsec tSTW 81921 *1 fXTI 3.8 4.0 4.2 MHz *1 RXTI 40 50 60 % Oscillator stop time tXEN 180224 196608 µsec D/A converter rise delay time tDAST 40000 163842 µsec D/A converter fall delay time tDAEN 180224 196608 µsec Standby chattering prevention time tCH1 163842 µsec Oscillator chattering prevention time tCH2 65537 81921 µsec Melody select chattering prevention time tCH3 65536 131072 µsec MODE、LH read timing tMR 10000 15875 31750 µsec S0 to S3 read timing tSR 10000 31875 63750 µsec tBYST 4096 8192 16384 µsec 8192 µsec 32768 µsec Clock frequency Clock duty cycle BUSYN fall delay time BUSYN rise delay time *2 STN,STOP Time after oscillator start STN,STOP S0~S3 Applied level hold melody mode 40000 µsec 81921 81921 tBYEN Melody start delay time tPYST 8192 STOP pulse width tSTPW 81921 ENDN delay time tEDST ENDN pulse width tEDW 8 16384 µsec 16 8192 µsec 32 µsec *1. These are ratings when clock signals are input from the outside to XT pin. *2. The time taken for fast damping to reduce the envelope to 0 level. Note. Input signal should be risen or fallen to the following time or less. Input Signal 90% 90% 10% 10% 1ms 1ms SEIKO NPC CORPORATION - 6 SM1350AAQM FUNCTIONAL DESCRIPTION Chattering Prevention STN, STOP chattering prevention function (a) Oscillator stopping (Standby Mode) The oscillator starts when STN goes from HIGH to LOW in standby mode. Input data is received and melody data output starts 81.9ms after the oscillator start if STN is LOW. SM1350 dose not operate even if the signal is input to STOP in standby mode. 61.0Hz 81.9ms 81.9ms STN OSC Input Reception Melody Output (SP pin) Figure 1. STN,STOP chattering prevention timing (oscillator stopping) (b) Oscillator running Input data is considered valid 81.9ms after STN and STOP have last changed state. Input data is considered invalid for intervals less than 65.5ms. 61.0Hz 65.5ms 81.9ms STN or STOP Input Reception Figure 2. STN,STOP chattering prevention timing (oscillator running) SEIKO NPC CORPORATION - 7 SM1350AAQM S0 to S3 chattering prevention function In binary select mode, S0 to S3 are sampled in sync with the 15.26Hz clock during level-hold melody output. The chatter prevention function compares the data sampled 65.5ms after a data transition on S0 to S3 with the data sampled 65.5ms before the data transition. If the 2 data samples are the same, then the data transition is considered invalid. However, if they are not the same indicating a true transition has occurred, melody output stops and only restarts again after 2 consecutive identical melody select data samples occur. Note that except for binary select mode with level hold output, the S0 to S3 chattering prevention circuit is disabled. 15.26Hz S0 to S3 #N #N Melody Output (SP pin) #M #N 65.5 ms #S #M 65.5 65.5 ms ms #S 65.5 65.5 65.5 ms ms ms Figure 3. S0~S3 chattering prevention timing Initialization When power on and ICN goes LOW, all pins and internal states are initialized to the states shown below. It is recommended to initialize before melody output for steady operation. ■ Output pins • SP, SPN : Open • ENDN : VDD • CT : VSS • BUSYN : VDD ■ Serial melody counter Reset to first melody (S0 to S3 all 0) ■ Oscillator circuit Stopped SEIKO NPC CORPORATION - 8 SM1350AAQM Melody Output Circuit The volume control circuit comprises a P-channel current-summing D/A converter, a built-in constant-current source and an external variable resistor. Output circuit (A-class) The A-class output circuit comprises a single 10-bit D/A converter with current output on SP. The D/A converter is set ON immediately after the oscillator starts, and the current output that results is the center point above and below which the converter current output varies in response to the waveform amplitude. The SP output is current-to-voltage converted for connection to audio equipment or amplifiers. The 4 sound generator waveforms are time multiplexed, so an integrating circuit must be connected between SP and the amplifier to recover the signal. VDD VDD BUSYN AMP SPEAKER SP VSS VOL VSS Figure 4. Output circuit (A-class) Pin Functions STN pin Melody start signal. Melody starts when LOW is detected. One-shot melody output (LH=LOW) One-shot melody is a melody control that stops melody after it play to the last of the melody when there is a start trigger. When STN goes LOW during melody output, the melody specified with S0 to S3 is played STN S0 to S3 #N #M Melody Output (SP pin) #N #M Figure 5. One-shot mode One-shot mode repeat function In one-shot melody mode, the output repeats the same melody while STN is LOW. When STN goes HIGH, the output continues until the end of the currently playing melody and then stops. STN Melody Output (SP pin) #N #N #N Figure 6. One-shot melody repeat timing SEIKO NPC CORPORATION - 9 SM1350AAQM Level hold melody output (LH=HIGH) Level hold melody output is played when STN is LOW, and it goes HIGH, it is melody control which stops in the middle of melody. When either of S0 to S3 changes during melody output, it restarts from the head of the melody newly selected. * This function is effective only while the level hold melody output in the binary select mode. STN S0 to S3 #M #N Melody Output (SP pin) #M #N Figure 7. Level hold mode Binary select mode (MODE=LOW) A melody of 1 to 6 is selected according to the condition (0000 to 1111) of S0 to S3. Serial select mode (MODE=HIGH) In serial select mode, the next melody is selected by cycling through the melodies in the order N→N 1…N-1→N when the STN input goes LOW. Note that when melody output is stopped using the STOP input, the melody-select counter increments. One-shot melody output (LH=LOW) STN Melody Output (SP pin) #N #N+1 #N+2 Figure 8. One-shot mode (serial select) Level hold melody output (LH=HIGH) STN Melody Output (SP pin) #N #N+1 #N+1 Figure 9. Level hold mode (serial select) SEIKO NPC CORPORATION - 10 SM1350AAQM The melody selection in serial mode is controlled by S0 and S1 as shown in the following table. The states of S0 and S1 are read in immediately after startup and the change of S0 and S1 during melody output is invalid. S1 S0 Melody counter LOW - Increments when melody output stops HIGH LOW No increment HIGH HIGH Increments when melody output starts Stable 1. S0, S1 resistor and melody counter STN S1 S0 Selection Counter #N Melody Output (SP pin) #N #N+1 #N+2 #N+1 #N+2 #N+2 #N+2 Figure 10. S0, S1 melody output control timing STOP pin One-shot output mode stops when STOP goes from HIGH to LOW. The STOP input is ignored in level hold output mode and is also ignored in one-shot mode when STN is LOW. Note that even when STOP is LOW, STN has higher priority. CT pin A pulse in sync with selected notes or rests is output on CT. 16.4ms pulse is output when a note or rest occurs for which the corresponding CT data in score ROM is set to 1. CT DATA q e e q. 1 1 0 e q 1 1 0 CT Figure 11. CT pulse mode output Fast Damping When melody output stops, the D/A converter output amplitude dose not fall to zero instantaneously, instead the output converges to zero within a maximum of 8.2ms to prevent noise being generated. Also, when one-shot melody output mode is retriggered, melody output restarts after the fast damping interval. When melody out is stopped by ICN input, it instantaneously becomes 0 level. STOP Melody Output (SP pin) 8.2msec Figure 12. Fast damping timing SEIKO NPC CORPORATION - 11 SM1350AAQM TIMING DIAGRAMS One-shot Melody Mode tICW ICN tSS tSTW STN Oscillation start time:It decides by the used crystal characteristics. OSC tCH1 tMR MODE LH tSR S0 to S3 #N BUSYN tBYST tDAST Melody Output (SP pin) ENDN #N tPYST VDD VSS Figure 13. One-shot mode (standby to melody start) tSTW STN tSTPW STOP tCH2 tMR MODE LH tSR S0 to S3 #N tPYST Melody Output (SP pin) #M tCH2 tDAEN #N tBYEN BUSYN tEDW ENDN OSC tEDST tXEN Figure 14. One-shot mode (melody stop by STOP pin) SEIKO NPC CORPORATION - 12 SM1350AAQM Level Hold Melody Mode tICW ICN tSS STN Oscillation start time:It decides by the used crystal characteristics. OSC tCH1 tMR MODE LH tSR S0 to S3 #N BUSYN tBYST tDAST Melody Output (SP pin) ENDN #N tPYST VDD VSS Figure 15. Level hold mode (standby to melody start) STN S0 to S3 #M #N tCH3 Melody Output (SP pin) #M tCH2 tDAEN #N tBYEN BUSYN tEDW ENDN OSC tEDST tXEN Figure 16. Level hold mode (melody stop by STN Low → High) SEIKO NPC CORPORATION - 13 SM1350AAQM TYPICAL APPLICATIONS VDD S0 C2 0.1μF 3 to 5V TO S2 T3N S3 T2N LH STOP + C1 100μF XTN S1 MODE CPU XT STN MURATA CSTLS 4M00G53 R1 4.7kΩ Darlington Tr. hFE>2000 4MHz Max 400mA + CD CG C4 1000μF T1N ENDN EBUSYIN SP BUSYN SPN CT VOL ICN VSS 8Ω C5 R3 0.47μF 4.7kΩ C6 R2 VR 200kΩ 500Ω 0.01 to 0.1μF R4 10kΩ SEIKO NPC CORPORATION - 14 SM1350AAQM ROM SPECIFICATIONS Sound Supply No. MAIN Wave Pattern Name Sound Name SUB Wave Pattern Name 0 p Rhodes sin Rhodes M 1 Rhods1 sin Rhodes M 2 Rhodes sin Rhodes M 3 A.GtrL A.GuitrL harpsic2 4 StrinM sin Strings1 5 StrinL sin Strings1 6 Bell chime22 chime22 7 1stFlute Flute Flute 8 E.Piano1 Flute orglm 9 Rhodes Flute Rhodes M A Flute1 Flute Flute B STRINGSA sin Strings1 C A.GtrL’ A.GuitrL harpsic2 D E.Piano2 Flute orglm E Strings1 sin Strings1 F E.Piano Flute orglm Melody name, Tempo, Sound assign, Time interval mode, CT mode S0 to S3 Music Melody name Tempo Sound assign Time interval mode CT mode S3 S2 S1 S0 No. L L L L 1 Hitomi ga hohoemukara 105 2 0 0 1 0 0 0 0 pulse L L L H 2 Here comes the sun 272 3 3 3 3 1 1 1 1 pulse L L H L 3 Heigh Ho 215 7 4 4 5 0 0 0 0 pulse L L H H 4 Mirai yosouzu II 67 E E E E 0 0 0 0 pulse L H L L 5 I need to be in love 76 F 9 9 9 0 0 0 0 pulse L H L H 6 Kanon 129 C 8 D B 0 0 0 0 pulse L H H L 7 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse L H H H 8 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse H L L L 9 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse H L L H 10 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse H L H L 11 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse H L H H 12 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse H H L L 13 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse H H L H 14 Heigh Ho-2 215 6 4 4 5 0 0 0 0 pulse H H H L 15 Heigh Ho-3 215 7 4 4 5 0 0 0 0 pulse H H H H 16 Hitomi ga hohoemukara 119 F F F F 0 0 0 0 pulse CH1 CH2 CH3 CH4 CH1 CH2 CH3 CH4 SEIKO NPC CORPORATION - 15 SM1350AAQM MUSIC 瞳が微笑むから Hitomi ga hohoemukara(DI LAO TIAN HUANG) comp by Chika Ueda SEIKO NPC CORPORATION - 16 SM1350AAQM Here comes the sun Music by George Harrison SEIKO NPC CORPORATION - 17 SM1350AAQM SEIKO NPC CORPORATION - 18 SM1350AAQM SEIKO NPC CORPORATION - 19 SM1350AAQM SEIKO NPC CORPORATION - 20 SM1350AAQM SEIKO NPC CORPORATION - 21 SM1350AAQM Heigh Ho Music by Frank Churchill SEIKO NPC CORPORATION - 22 SM1350AAQM SEIKO NPC CORPORATION - 23 SM1350AAQM SEIKO NPC CORPORATION - 24 SM1350AAQM 未来予想図Ⅱ Mirai yosouzu II Music by Miwa Yoshida SEIKO NPC CORPORATION - 25 SM1350AAQM SEIKO NPC CORPORATION - 26 SM1350AAQM I need to be in love Music by Richard Carpenter John Bettis Albert Hammond SEIKO NPC CORPORATION - 27 SM1350AAQM SEIKO NPC CORPORATION - 28 SM1350AAQM Kanon SEIKO NPC CORPORATION - 29 SM1350AAQM SEIKO NPC CORPORATION - 30 SM1350AAQM Please pay your attention to the following points at time of using the products shown in this document. 1. The products shown in this document (hereinafter ”Products”) are designed and manufactured to the generally accepted standards of reliability as expected for use in general electronic and electrical equipment, such as personal equipment, machine tools and measurement equipment. The Products are not designed and manufactured to be used in any other special equipment requiring extremely high level of reliability and safety, such as aerospace equipment, nuclear power control equipment, medical equipment, transportation equipment, disaster prevention equipment, security equipment. The Products are not designed and manufactured to be used for the apparatus that exerts harmful influence on the human lives due to the defects, failure or malfunction of the Products. If you wish to use the Products in that apparatus, please contact our sales section in advance. In the event that the Products are used in such apparatus without our prior approval, we assume no responsibility whatsoever for any damages resulting from the use of that apparatus. 2. NPC reserves the right to change the specifications of the Products in order to improve the characteristics or reliability thereof. 3. The information described in this document is presented only as a guide for using the Products. No responsibility is assumed by us for any infringements of patents or other rights of the third parties which may result from its use. No license is granted by implication or otherwise under any patents or other rights of the third parties. Then, we assume no responsibility whatsoever for any damages resulting from that infringements. 4. The constant of each circuit shown in this document is described as an example, and it is not guaranteed about its value of the mass production products. 5. In the case of that the Products in this document falls under the foreign exchange and foreign trade control law or other applicable laws and regulations, approval of the export to be based on those laws and regulations are necessary. Customers are requested appropriately take steps to obtain required permissions or approvals from appropriate government agencies. SEIKO NPC CORPORATION 1-9-9, Hatchobori, Chuo-ku, Tokyo 104-0032, Japan Telephone: +81-3-5541-6501 Facsimile: +81-3-5541-6510 http://www.npc.co.jp/ Email:[email protected] ND12004-E-01 2012.2 SEIKO NPC CORPORATION - 31 SM1350ADJM High Tone Quality Melody IC OVERVIEW The SM1350ADJM is single-chip high tone quality melody IC, fabricated using NPC’s Molybdenum-gate CMOS process. Melodies are selected in serial or binary (parallel) mode, 16 programmable melodies are stored, and the high tone quality melody is output by how to specify the user. It is making this IC ideal for mechanical clocks and similar applications where high tone quality output is demanded. FEATURES ■ Basic Functions PINOUT (Top view) • 4.0MHz oscillator frequency • Power-save function - Oscillator stopped when no output - S0 to S3, MODE, LH pull-up resistors open • A-class output • Chattering prevention circuit (STN, STOP, S0 to S3) • 10-bit D/A converter current-summing ■ Sound Generator Functions • DWS (dual wave synthesis) sound generators • 4 simultaneous sounds for 4 tones ■ Melody Functions 1 VDD S0 24 S1 S2 XT XTN TO S3 T3N T2N MODE T1N ENDN EBUSYIN LH STOP SP SPN STN BUSYN CT ICN 13 12 VOL VSS • 16 programmable melodies • Level hold/one-shot melody modes • Serial/binary (parallel) select modes ■ Control Signal Outputs PACKAGE DIMENSIONS (Unit : mm) • BUSYN signal : LOW during melody output • CT signal : pulse output synchronizing with selected notes or rests (This function cannot be used with this product.) ■ 2.4 to 5.5V supply voltage ■ Molybdenum-gate CMOS ■ Package : 24-pin SSOP ORDERING INFOMATION Device Package SM1350ADJM 24 pin SSOP SEIKO NPC CORPORATION - 1 SM1350ADJM BLOCK DIAGRAM S3 S2 S1 S0 MODE LH STOP STN TO T1N T2N T3N Wave ROM Arithmetic block Circuit Parameter ROM + DAC SP SPN VOL Input Circuit Control Circuit EBUSYIN ENDN BUSYN CT ICN XT XTN Oscillator Score ROM VDD VSS SEIKO NPC CORPORATION - 2 SM1350ADJM PIN DESCRIPTION No. Pin Name I/O State*1 1 VDD - - 2 S0 3 S1 4 S2 I SU 5 S3 6 MODE I SU 7 LH I SU 8 STOP I U 9 STN I U Melody start control 10 BUSYN O C Busy output signal. LOW when a melody is output. 11 CT O C OPEN (LOW output) 12 ICN I U Initialization clear input 13 VSS - - Ground pin 14 VOL I - Volume adjusts control. Volume adjusted using an external resistor. 15 SPN O P VOL current output 16 SP O P 10-bit D/A converter output Description Supply pin Binary select mode : Phrase select pins. Serial select mode : S0 and S1 control melody output. Melody select mode control. Binary mode when LOW, and serial mode when HIGH. Melody output mode control. One-shot when LOW, and level hold when HIGH. One-shot melody mode : Melody output stop control. Level hold melody mode : invalid input. It is not necessary to use it usually. It should connect VDD or OPEN. 17 EBUSYIN I U When this terminal is made LOW, BUSYN compulsorily becomes LOW. A pop sound might be emitted. 18 ENDN O C Pulse signal when melody output ends 19 T1N I U 20 T2N I U 21 T3N I U 22 TO O C Test signal output. 62.5kHz output when not in test mode. 23 XTN O - Oscillator output 24 XT I - Oscillator input Test signal inputs This terminal cannot be used. It should connect VDD or OPEN. *1. U : pull-up resistor connection SU : pull-up resistor connection only when melody output starts (Function for current consumption decrease when driving with battery. Only when the terminal is read, the pull-up resistor is connected.) P : p-channel open drain C : complementary output SEIKO NPC CORPORATION - 3 SM1350ADJM SPECIFICATIONS Absolute Maximum Ratings VSS=0V Parameter Symbol Rating Unit Supply voltage VDD -0.3 to 7.0 V *1 VIN -0.3 to VDD+0.3 V VOUT -0.3 to VDD+0.3 V Operating temperature TOPR -20 to 80 C Storage temperature TSTG -40 to 125 C Allowable power dissipation PW 650 mW Input voltage Output voltage *1 Allowable power dissipation[mW] *1. They are range of the voltage where IC destroys and the characteristics degradation and the reliability decrease are not caused. 650 500 400 300 200 100 100mW is not exceeded in usual use. -20 0 25 50 80 150 Temperature[℃] Recommended Operating Conditions VSS=0V Rating Parameter Symbol Supply voltage VDD 2.4 5.5 V Operating temperature Ta -20 80 C MIN TYP MAX Unit SEIKO NPC CORPORATION - 4 SM1350ADJM DC Characteristics Ta=25℃,VDD=3.0V or 5.0V,VSS=0V,fO=4.0MHz unless otherwise noted. Rating Parameter Pin Name Symbol Condition Unit MIN Minimum operating supply voltage*1 VDD,VSS VMIN Maximum operating supply voltage*1 VDD,VSS VMAX VDD ISTBY Standby current consumption VDD IDD 5.5 S0~S3,MODE, V V No melody output 1.0 VDD=3.0V 3.5 VDD=5.0V 9.5 µA mA SP,SPN,ENDN, open HIGH-level input voltage MAX 2.4 BUSYN,CT,TO, Operating current consumption TYP VIH VDD-0.3 VDD V VSS VSS+0.3 V LH,STOP,STN, LOW-level input voltage ICN,EBUSYIN VIL HIGH-level input current S0~S3,MODE, IIH VIH=VDD IIL VIL=VSS LH,STOP,STN, ICN,EBUSYIN LOW-level input current HIGH-level output current1 BUSYN,CT,TO LOW-level output current1 HIGH-level output current2 ENDN LOW-level output current2 Output current3*2 SP,SPN VDD=3.0V 1 VDD=5.0V 1 VDD=3.0V 10 20 VDD=5.0V 30 50 µA µA IOH1 VOH1=VDD-0.7 2.0 mA IOL1 VOL1=VSS+0.7 2.0 mA IOH2 VOH2=VDD-0.7 3.0 mA IOL2 VOL2=VSS+0.7 3.0 mA IOH3 VOH3=VSS+0.7 VDD=3.0V 4.0 VDD=5.0V 7.7 mA *1. Supply voltage ratings shown are with oscillator running and all functions operating normally. *2. Output current when 20kΩ volume control resistor is connected to VOL, and all D/A converter bits ON, measured using the following circuit. VDD SP,SPN VDD A VOL 20kΩ 0.7V VSS SEIKO NPC CORPORATION - 5 SM1350ADJM AC Characteristics Ta=25℃,VDD=3.0V or 5.0V,VSS=0V unless otherwise noted. Parameter Symbol Rating Condition MIN Initialization clear time tICW ICN-STN time to spare tSS STN pulse width TYP Unit MAX 1.0 µsec 10 µsec tSTW 81921 *1 fXTI 3.8 4.0 4.2 MHz *1 RXTI 40 50 60 % Oscillator stop time tXEN 180224 196608 µsec D/A converter rise delay time tDAST 40000 163842 µsec D/A converter fall delay time tDAEN 180224 196608 µsec Standby chattering prevention time tCH1 163842 µsec Oscillator chattering prevention time tCH2 65537 81921 µsec Melody select chattering prevention time tCH3 65536 131072 µsec MODE、LH read timing tMR 10000 15875 31750 µsec S0 to S3 read timing tSR 10000 31875 63750 µsec tBYST 4096 8192 16384 µsec 8192 µsec 32768 µsec Clock frequency Clock duty cycle BUSYN fall delay time BUSYN rise delay time *2 STN,STOP Time after oscillator start STN,STOP S0~S3 Applied level hold melody mode 40000 µsec 81921 81921 tBYEN Melody start delay time tPYST 8192 STOP pulse width tSTPW 81921 ENDN delay time tEDST ENDN pulse width tEDW 8 16384 µsec 16 8192 µsec 32 µsec *1. These are ratings when clock signals are input from the outside to XT pin. *2. The time taken for fast damping to reduce the envelope to 0 level. Note. Input signal should be risen or fallen to the following time or less. Input Signal 90% 90% 10% 10% 1ms 1ms SEIKO NPC CORPORATION - 6 SM1350ADJM FUNCTIONAL DESCRIPTION Chattering Prevention STN, STOP chattering prevention function (a) Oscillator stopping (Standby Mode) The oscillator starts when STN goes from HIGH to LOW in standby mode. Input data is received and melody data output starts 81.9ms after the oscillator start if STN is LOW. SM1350 dose not operate even if the signal is input to STOP in standby mode. 61.0Hz 81.9ms 81.9ms STN OSC Input Reception Melody Output (SP pin) Figure 1. STN,STOP chattering prevention timing (oscillator stopping) (b) Oscillator running Input data is considered valid 81.9ms after STN and STOP have last changed state. Input data is considered invalid for intervals less than 65.5ms. 61.0Hz 65.5ms 81.9ms STN or STOP Input Reception Figure 2. STN,STOP chattering prevention timing (oscillator running) SEIKO NPC CORPORATION - 7 SM1350ADJM S0 to S3 chattering prevention function In binary select mode, S0 to S3 are sampled in sync with the 15.26Hz clock during level-hold melody output. The chatter prevention function compares the data sampled 65.5ms after a data transition on S0 to S3 with the data sampled 65.5ms before the data transition. If the 2 data samples are the same, then the data transition is considered invalid. However, if they are not the same indicating a true transition has occurred, melody output stops and only restarts again after 2 consecutive identical melody select data samples occur. Note that except for binary select mode with level hold output, the S0 to S3 chattering prevention circuit is disabled. 15.26Hz S0 to S3 #N #N Melody Output (SP pin) #M #N 65.5 ms #S #M 65.5 65.5 ms ms #S 65.5 65.5 65.5 ms ms ms Figure 3. S0~S3 chattering prevention timing Initialization When power on and ICN goes LOW, all pins and internal states are initialized to the states shown below. It is recommended to initialize before melody output for steady operation. ■ Output pins • SP, SPN : Open • ENDN : VDD • CT : VSS • BUSYN : VDD ■ Serial melody counter Reset to first melody (S0 to S3 all 0) ■ Oscillator circuit Stopped SEIKO NPC CORPORATION - 8 SM1350ADJM Melody Output Circuit The volume control circuit comprises a P-channel current-summing D/A converter, a built-in constant-current source and an external variable resistor. Output circuit (A-class) The A-class output circuit comprises a single 10-bit D/A converter with current output on SP. The D/A converter is set ON immediately after the oscillator starts, and the current output that results is the center point above and below which the converter current output varies in response to the waveform amplitude. The SP output is current-to-voltage converted for connection to audio equipment or amplifiers. The 4 sound generator waveforms are time multiplexed, so an integrating circuit must be connected between SP and the amplifier to recover the signal. VDD VDD BUSYN AMP SPEAKER SP VSS VOL VSS Figure 4. Output circuit (A-class) Pin Functions STN pin Melody start signal. Melody starts when LOW is detected. One-shot melody output (LH=LOW) One-shot melody is a melody control that stops melody after it play to the last of the melody when there is a start trigger. When STN goes LOW during melody output, the melody specified with S0 to S3 is played STN S0 to S3 #N #M Melody Output (SP pin) #N #M Figure 5. One-shot mode One-shot mode repeat function In one-shot melody mode, the output repeats the same melody while STN is LOW. When STN goes HIGH, the output continues until the end of the currently playing melody and then stops. STN Melody Output (SP pin) #N #N #N Figure 6. One-shot melody repeat timing SEIKO NPC CORPORATION - 9 SM1350ADJM Level hold melody output (LH=HIGH) Level hold melody output is played when STN is LOW, and it goes HIGH, it is melody control which stops in the middle of melody. When either of S0 to S3 changes during melody output, it restarts from the head of the melody newly selected. * This function is effective only while the level hold melody output in the binary select mode. STN S0 to S3 #M #N Melody Output (SP pin) #M #N Figure 7. Level hold mode Binary select mode (MODE=LOW) A melody of 1 to 16 is selected according to the condition (0000 to 1111) of S0 to S3. Serial select mode (MODE=HIGH) In serial select mode, the next melody is selected by cycling through the melodies in the order N→N 1…N-1→N when the STN input goes LOW. Note that when melody output is stopped using the STOP input, the melody-select counter increments. One-shot melody output (LH=LOW) STN Melody Output (SP pin) #N #N+1 #N+2 Figure 8. One-shot mode (serial select) Level hold melody output (LH=HIGH) STN Melody Output (SP pin) #N #N+1 #N+1 Figure 9. Level hold mode (serial select) SEIKO NPC CORPORATION - 10 SM1350ADJM The melody selection in serial mode is controlled by S0 and S1 as shown in the following table. The states of S0 and S1 are read in immediately after startup and the change of S0 and S1 during melody output is invalid. S1 S0 Melody counter LOW - Increments when melody output stops HIGH LOW No increment HIGH HIGH Increments when melody output starts Stable 1. S0, S1 resistor and melody counter STN S1 S0 Selection Counter Melody Output (SP pin) #N #N #N+1 #N+2 #N+1 #N+2 #N+2 #N+2 Figure 10. S0, S1 melody output control timing STOP pin One-shot output mode stops when STOP goes from HIGH to LOW. The STOP input is ignored in level hold output mode and is also ignored in one-shot mode when STN is LOW. Note that even when STOP is LOW, STN has higher priority. CT pin A pulse in sync with selected notes or rests is output on CT. But this function cannot be used with this product. Fast Damping When melody output stops, the D/A converter output amplitude dose not fall to zero instantaneously, instead the output converges to zero within a maximum of 8.2ms to prevent noise being generated. Also, when one-shot melody output mode is stopped melody output by STOP pin, melody output becomes standby state after the fast damping interval. When melody out is stopped by ICN input, it instantaneously becomes 0 level. STOP Melody Output (SP pin) 8.2msec Figure 11. Fast damping timing SEIKO NPC CORPORATION - 11 SM1350ADJM TIMING DIAGRAMS One-shot Melody Mode tICW ICN tSS tSTW STN Oscillation start time:It decides by the used crystal characteristics. OSC tCH1 tMR MODE LH tSR S0 to S3 #N BUSYN tBYST tDAST Melody Output (SP pin) ENDN #N tPYST VDD VSS Figure 12. One-shot mode (standby to melody start) tSTW STN tSTPW STOP tCH2 tMR MODE LH tSR S0 to S3 #N tPYST Melody Output (SP pin) #M tCH2 tDAEN #N tBYEN BUSYN tEDW ENDN OSC tEDST tXEN Figure 13. One-shot mode (melody stop by STOP pin) SEIKO NPC CORPORATION - 12 SM1350ADJM Level Hold Melody Mode tICW ICN tSS STN Oscillation start time:It decides by the used crystal characteristics. OSC tCH1 tMR MODE LH tSR S0 to S3 #N BUSYN tBYST tDAST Melody Output (SP pin) ENDN #N tPYST VDD VSS Figure 14. Level hold mode (standby to melody start) STN S0 to S3 #M #N tCH3 Melody Output (SP pin) #M tCH2 tDAEN #N tBYEN BUSYN tEDW ENDN OSC tEDST tXEN Figure 15. Level hold mode (melody stop by STN Low → High) SEIKO NPC CORPORATION - 13 SM1350ADJM TYPICAL APPLICATIONS VDD S0 C2 0.1μF 3 to 5V TO S2 T3N S3 T2N LH STOP + C1 100μF XTN S1 MODE CPU XT STN MURATA CSTLS 4M00G53 R1 4.7kΩ Darlington Tr. hFE>2000 4MHz Max 400mA + CD CG C4 1000μF T1N ENDN EBUSYIN SP BUSYN SPN CT VOL ICN VSS 8Ω C5 R3 0.47μF 4.7kΩ C6 R2 VR 200kΩ 500Ω 0.01 to 0.1μF R4 10kΩ SEIKO NPC CORPORATION - 14 SM1350ADJM ROM SPECIFICATIONS Melody name, Tempo, Sound assign, Time interval mode, CT mode (TROM, AROM) Music Sound assign Tempo Melody name No. Time interval mode CT mode CH1 CH2 CH3 CH4 CH1 CH2 CH3 CH4 1 Pinpon16 48 0 1 F F 0 0 0 0 pulse 2 chime1 124 3 3 3 3 0 0 0 0 pulse 3 sys1 200 4 4 4 4 0 0 0 0 pulse 4 sys2 91 4 4 4 4 0 0 0 0 pulse 5 pro1 124 5 5 5 5 0 0 0 0 pulse 6 pro2 219 5 5 5 5 0 0 0 0 pulse 7 yobi1 62 6 6 6 6 0 0 0 0 pulse 8 yobi2 119 6 6 6 6 0 0 0 0 pulse 9 purururu 553 7 8 8 8 0 0 0 0 pulse 10 pirarara 267 9 9 9 9 0 0 0 0 pulse 11 kankan 105 A A A A 0 0 0 0 pulse 12 booboo 124 B B B B 0 0 0 0 pulse 13 pipo 114 8 7 8 8 0 0 0 0 pulse 14 pipipi 167 D D E E 0 0 0 0 pulse 15 flicker 86 C C C C 0 0 0 0 pulse 16 Westminster 52 2 2 2 2 0 0 0 0 pulse Sound Supply (VROM1, VROM2) No. Sound Name MAIN AR DR DL SR RR TL SUB Wave Wave Pattern No. Name AR DR DL SR RR TL EFFECT Wave Wave Pattern No. Name 0 PinponF# 15 02 03 12 12 31 0 pinponF# 15 02 03 12 12 31 0 1 PinponD 15 03 03 14 12 29 1 pinponD 15 03 03 14 12 29 1 2 CHIME 00 15 31 00 11 31 7 chime22 00 15 31 00 11 31 4 3 A.Pmelo! 00 08 31 14 08 31 4 Flute 00 08 31 14 08 27 4 4 ElA.Pian 00 09 15 12 10 31 4 Flute 00 11 31 12 10 31 2 5 A.P bns3 00 09 29 06 08 28 4 Flute 00 09 31 06 08 28 6 jngleVo2 00 00 00 00 00 29 2 sin 00 00 00 00 00 29 7 squre 5 00 08 08 09 04 27 5 squre 00 00 00 00 00 27 8 squre 6 00 08 08 09 04 27 5 squre 01 00 00 00 02 27 pinponF# TYPE DEPTH norm 0 pinponD norm 0 Flute chr1 0 Flute norm 0 sin norm 0 2 sin norm 0 7 chime22 norm 0 5 squre chr1 0 5 squre norm 0 9 Organ 3 00 00 00 00 02 29 6 strings1 02 00 00 00 02 30 2 sin norm 2 A Strings4 00 09 09 10 07 29 6 strings1 00 09 09 05 05 29 5 squre chr2 2 B squer 3 00 00 00 00 00 31 5 squre 00 00 00 00 00 31 3 harpsic1 chr2 2 C Harpsi2 00 00 00 00 00 29 3 harpsic1 00 00 00 00 00 29 3 harpsic1 chr2 2 D Bell 2c 00 06 24 05 03 28 5 squre 00 08 21 06 04 25 5 squre norm 0 E Harpsi3 00 00 00 00 00 30 3 harpsic1 00 00 00 00 00 30 3 harpsic1 chr2 2 00 00 00 00 00 31 4 Flute 00 00 00 00 00 31 2 sin norm 0 F SEIKO NPC CORPORATION - 15 SM1350ADJM MUSIC 1. pinpon 2. CHIME 1 SEIKO NPC CORPORATION - 16 SM1350ADJM 3. SYS 1 4. SYS 2 5. PRO 1 SEIKO NPC CORPORATION - 17 SM1350ADJM 6. PRO 2 7. YOBI 1 8. YOBI 2 SEIKO NPC CORPORATION - 18 SM1350ADJM 9. purururu 10. pirarara 11. kankan SEIKO NPC CORPORATION - 19 SM1350ADJM 12. booboo 13. pipo 14. pipipi 15. flicker SEIKO NPC CORPORATION - 20 SM1350ADJM 16. Westminster SEIKO NPC CORPORATION - 21 SM1350ADJM Please pay your attention to the following points at time of using the products shown in this document. 1. The products shown in this document (hereinafter ”Products”) are designed and manufactured to the generally accepted standards of reliability as expected for use in general electronic and electrical equipment, such as personal equipment, machine tools and measurement equipment. The Products are not designed and manufactured to be used in any other special equipment requiring extremely high level of reliability and safety, such as aerospace equipment, nuclear power control equipment, medical equipment, transportation equipment, disaster prevention equipment, security equipment. The Products are not designed and manufactured to be used for the apparatus that exerts harmful influence on the human lives due to the defects, failure or malfunction of the Products. If you wish to use the Products in that apparatus, please contact our sales section in advance. In the event that the Products are used in such apparatus without our prior approval, we assume no responsibility whatsoever for any damages resulting from the use of that apparatus. 2. NPC reserves the right to change the specifications of the Products in order to improve the characteristics or reliability thereof. 3. The information described in this document is presented only as a guide for using the Products. No responsibility is assumed by us for any infringements of patents or other rights of the third parties which may result from its use. No license is granted by implication or otherwise under any patents or other rights of the third parties. Then, we assume no responsibility whatsoever for any damages resulting from that infringements. 4. The constant of each circuit shown in this document is described as an example, and it is not guaranteed about its value of the mass production products. 5. In the case of that the Products in this document falls under the foreign exchange and foreign trade control law or other applicable laws and regulations, approval of the export to be based on those laws and regulations are necessary. Customers are requested appropriately take steps to obtain required permissions or approvals from appropriate government agencies. SEIKO NPC CORPORATION 1-9-9, Hatchobori, Chuo-ku, Tokyo 104-0032, Japan Telephone: +81-3-5541-6501 Facsimile: +81-3-5541-6510 http://www.npc.co.jp/ Email:[email protected] ND12005-E-01 2012.2 SEIKO NPC CORPORATION - 22