SNC745 16-bit Voice Processor 1. INTRODUCTION SNC745 is a 64mins two-channel speech/melody and 4-channel wave-table melody voice chip. It based on reduced 16-bit fixed-point DSP architecture. SNC745 provides user some necessary and efficient DSP instructions. Furthermore, SNC745 provide one 10-bit PWM and one 10-bit DA converter to driving speaker for speech/melody output. User can select PWM or DA by programming DA/PWM control register, and only one function can be active at the same time. 2. FEATURES w w w w w w w w w w w w w w w w w w w w Power supply: 2.4V ~ 3.6V (for 2 battery application) 3.6V ~ 5.1V (for 3 battery application) Built-in a 16-bit DSP (Very Light Structure) Software-based voice/melody processing Rich Function Instruction Set System Clock − 16MHz crystal or R-C type oscillator for system clock − 0.25s real time clock is form 32768Hz crystal 8 MIPS CPU performance I/O Ports: − 16 I/O pins (P0.0~P0.15) and 8 input pins (P1.0~P1.7) − P0.15 with IR carrier signal RAM size: 2K*16 bits High performance program ROM: 32K*16 bits Data ROM size: 480K*16 bits Total ROM size: 512K*16 bits Maximum program size: 64K word 8 Interrupt Sources − 4 for Internal Timer (timer0, 1, 2 and RTC) − 4 for External (P0.0~P0.3) Two voice/melody channels Three 8-bit timer with auto-reload function Built in a 10-bit PWM Direct Drive circuit and a fixed current D/A output Sampling Rate: 6KHz ~16KHz Built-in software voice synthesizer (multiple bit-rate solution 2Kbps, 3.6Kbps, 5Kbps, 6Kbps, 8Kbps, 10Kbps, 12Kbps, 14Kbps, 16Kbps, 20Kbps, 24Kbps and 29Kbps @8K sampling rate) Built-in software melody synthesizer includes the dual-tone melody and 4-ch wave-table melody. Low Voltage Reset Ver. 1.3 1 October 23, 2002 SNC745 16-bit Voice Processor 3. PIN ASSIGNMENT Symbol P0.0 ~ P0.15 P1.0 ~ P1.7 CVDD VDD GND BP0 BN0 VO XIN XOUT LXIN LXOUT CKSEL RST TEST Ver. 1.3 I/O I/O I I I I O O O I O I O I I I Descriptions I/O port 0 Input port 1 Positive power supply for core circuit Positive power supply Negative power supply PWM output 1 PWM output 2 DA output High speed clock crystal input / RC-type oscillator input High speed clock crystal output / RC-type oscillator input Low speed clock crystal input Low speed clock crystal output Crystal/RC-type oscillator select for high speed clock Chip reset For test only 2 October 23, 2002 SNC745 16-bit Voice Processor 4. ROM TABLE The total ROM size is 512K words. But only 64K words ROM for programming. And 32K words of all is the high speed program ROM. The high-low speed ratio is 1:16, that is to say, if the instruction cycle is two clocks at high speed ROM, the instruction cycle will down to 32 clocks at low speed ROM. 0x000000 0x007FFF 0x008000 Data ROM Total ROM size (512K words) Low-Speed program ROM (32K words) Low-Speed Data ROM (480K words) 0x00FFFF 0x010000 Hi-Speed ROM (32K words) 0x07FFFF Ver. 1.3 3 October 23, 2002 SNC745 16-bit Voice Processor 5. RAM TABLE Total RAM size is 2K words, and one bank is 512 words. If user need playing voice (2Kbps, 3.6Kbps, 12Kbps, dual-tone melody and 4-ch wave-table melody), the system will reserve 1.5K words RAM size. 0x0000 Bank0 Reserved for OS and Voice Algorithm 0x01FF 0x0200 Bank1 0x03FF 0x0400 Bank2 0x05FF 0x0600 Bank3 Free for User 0x07FF 6. System Clock The system clock source also can be selected from 16Mhz crystal or ROSC. For the ROSC, user should connect two resistors in the pin “XIN” and “XOUT” instead of 16MHZ crystal. Beside, the clock source select pin “CKSEL” also should be connected to VDD for ROSC. In order to get an accurate system clock by ROSC, the real time clock source is recommended to connect a 32768HZ crystal for system clock calibration. Ver. 1.3 4 October 23, 2002 SNC745 16-bit Voice Processor 7. I/O PORT SNC745 provides one a 16-bit I/O port and an 8-bit input port for user application (P0.0~P0.15, P1.0~P1.7). The input pull high resistor of each pin can be programmed by Port Pull-High register. The direction of I/O port is selected by Port Direction register. The Port0 (P0.0~P0.15) and Port1 (P1.0~P1.7) can wake the chip up from the stop mode and watch mode. P0.15 can be modulated with a 38.5Khz carry signal to realize IR signal transmission. Pull-Up Resister In/Out Control Pull-Up Select PAD Latch to internal bus In/Out Control I/O Configuration of P0.0~P0.15 Pull-Up Resister Pull-Up Select PAD Digital In Input Control Input Port Configuration of Port 1 (P1.0~P1.7) Ver. 1.3 5 October 23, 2002 SNC745 16-bit Voice Processor IREN P0.15 I/O Pad Overflow Timer2 2 P0.15 Modulated with a carry signal 8. TIMER/COUNTER SNC745 provides three 8 -bit timer/event counters (T0/T1/T2). Each timer is 8-bit binary up-count timer with pre-scalar and auto-reload function. Timer 0 (T0) is used when voice playing, so user should avoid to use T0. (system clock)/2* /2 /4 /8 Enable TnC (8-bit) If equal, Time out 8-bit Up MU Counter comparator clear /256 Pre-scalar Auto-reload 9. DAC & PWM To play out voices, SNC745 contains two different solutions, DAC and PWM, for the users’ applications. The user can choose one of these two solutions in his design. Only one function can be activated at one time. DAC: A 10-bit current type digital-to-analog converter is built-in SNC745. The relationship between input digital data and output analog current is listed in the following table. Also, the recommended application circuit is illustrated as follows. Ver. 1.3 6 October 23, 2002 SNC745 16-bit Voice Processor Input data 0 1 … N … 1024 Typical value of output current (mA) 0 3/1024 n*(3/1024) 3 PWM: A PWM (pulse width modulation) circuit is built-in SNC745. PWM can convert input digital data into pulse trains with suitable different pulse width. The maximum resolution of PWM is 10 bits. Two huge output stage circuits are included in SNC745. Both of them are capable of driving speaker directly. The recommended application circuit is as follows. BP0 BN0 DAC output Ver. 1.3 SPEAKER PWM output 7 October 23, 2002 SNC745 16-bit Voice Processor 10. ABSOLUTE MAXIMUM RATINGS Items Symbol VDD-V VIN TOP TSTG Supply Voltage Input Voltage Operating Temperature Storage Temperature Min -0.3 GND-0.3 -20.0 -55.0 Max 6.0 VDD+0.3 70.0 125.0 Unit. V V o C o C 11. ELECTRICAL CHARACTERISTICS Item Operating Voltage Standby current Operating Current Input current of P0, P1 Drive current of P0 Sink Current of P0 Drive current of Buo1 Sink Current of Buo1 Sym. Min. Typ. Max. Unit Condition VDD 2.4 3.6 V *1. VDD 3.6 5.1 V *2. ISBY 2.0 uA VDD=3V, no load IOPR 5 mA VDD=3V, no load IIH 10.0 uA VDD=3V,V IN=3V IOD 10 mA VDD=3V,V O=2.4V IOS 12 mA VDD=3V,V O=0.4V IOD 100 120 mA VDD=3V,Buo1=1.5V IOS 100 120 mA VDD=3V,Buo1=1.5V Drive Current of Buo2 Sink Current of Buo2 Oscillation Freq. (crystal) IOD IOS FOSC 100 100 - 120 120 16.0 - mA VDD=3V,Buo2=1.5V mA VDD=3V,Buo2=1.5V MHz VDD=3V Note: 1. For 2 battery application. 2. For 3 battery application, user should add 1 resister between power and CVDD pin of chip. Ver. 1.3 8 October 23, 2002 SNC745 16-bit Voice Processor The relationship between ROSC and voltage (Typical) Ta = 25 °C 4.0 V 3.8 V 3.6 V 3.4 V 3.2 V 3.0 V 2.8 V 2.6 V 2.4 V 2.2 V 17.4 17.2 17 16.8 16.6 16.4 16.2 16 15.8 15.6 15.4 15.2 2.0 V Frequency Frequency unit: MHz Voltage The relationship between Frequency and Resister (R2) for ROSC (Typical) Ta = 25 °C, R1 = 75KΩ Frequency unit: MHz Frequency 18 17 16 15 14 13 12 11 10 74K 82K 91K 100K 110K 120K 130K Resister Value Ver. 1.3 9 October 23, 2002 SNC745 16-bit Voice Processor The relationship between operating current and voltage (Typical) Ta = 25 °C Current unit: mA Current 7 6 5 4 3 2 1.8 V 2.4 V 3V 4.1 V Voltage Ver. 1.3 10 October 23, 2002 SNC745 16-bit Voice Processor 12. APPLICATION CIRCUIT VDD (3V) U1 VDD 3 10 R1 220K 23 43 13 C1 0.1u 7 S1 6 SNC745 C4 47u VDD CVDD VDD CVDD VDD LXIN LXOUT TEST P0.0 CKSEL P0.2 15p C3 P0.3 XIN P0.4 Y1 16MHz 39 P0.5 XOUT P0.6 15p P0.7 LS1 2 4 SPEAKER 42 31 C5 4.7u 44 45 RST P0.1 C2 15 VDD RESET 40 C6 0.1u BP0 BN0 P0.8 P0.9 P0.10 P0.11 P0.12 P0.13 P0.14 P0.15 VO P1.0 8 330 9 330 11 330 12 330 16 330 17 330 18 330 19 330 20 21 22 24 25 26 27 28 TR1 29 TR2 P1.1 TR5 35 TR3 P1.4 P1.2 TR6 36 33 TR4 P1.5 P1.3 TR7 37 30 34 P1.6 GND GND GND GND 41 32 14 5 P1.7 1 38 GND TR8 3V, 16MHz Crystal, PWM Note: 1. All the ”VDD” and “CVDD” should be connected together before connected to the power source which with a 47uF(C4) capacitor. 2. The capacitor “C5” is near the “CVDD” pin. Ver. 1.3 11 October 23, 2002 SNC745 16-bit Voice Processor VDD (4.5V) U1 SNC745 R2 360 3 VDD (4.5V) 10 23 R1 220K 43 13 C1 0.1u 7 6 VDD CVDD VDD CVDD VDD LXIN LXOUT P0.0 CKSEL P0.3 XIN P0.4 P0.5 XOUT P0.6 C3 15p P0.7 LS1 2 4 SPEAKER 42 C4 47u C6 0.1u 44 45 VDD (4.5V) TEST Y1 16MHz 39 C5 4.7u RST P0.2 C2 15p 31 VDD P0.1 40 15 BP0 BN0 P0.8 P0.9 P0.10 P0.11 P0.12 P0.13 P0.14 P0.15 VO P1.0 8 330 9 330 11 330 12 330 16 330 17 330 18 330 19 330 20 21 22 24 25 26 27 28 TR1 29 TR2 P1.1 TR5 35 TR3 P1.4 P1.2 TR6 36 33 TR4 P1.5 P1.3 TR7 37 30 34 P1.6 GND GND GND GND 41 32 14 5 P1.7 1 38 GND TR8 4.5V, 16MHz Crystal, PWM Note: 1. All the ”VDD” should be connected together before connected to the power source which with a 47uF(C4) capacitor. 2. The capacitor “C5” is near the “CVDD” pin. Ver. 1.3 12 October 23, 2002 SNC745 16-bit Voice Processor VDD 4.5V BT2 3V BT1 BATTERY BATTERY U1 3 10 C6 C4 0.1u 47u 23 R1 220K 43 13 C1 0.1u 7 VCC 6 SNC745 VDD CVDD VDD CVDD VDD LXIN 75K VR2 LXOUT C8 15p TEST P0.0 CKSEL P0.3 XIN P0.5 XOUT 100K P0.6 VDD LS1 P0.7 2 4 SPEAKER 8050 42 C7 15p 45 RST P0.4 39 44 Y1 32768 P0.2 40 C5 4.7u 31 VDD P0.1 VR1 15 BP0 BN0 P0.8 P0.9 P0.10 P0.11 P0.12 P0.13 P0.14 P0.15 VO Q1 R7 R P1.0 8 9 11 12 16 17 18 19 20 21 22 24 25 26 27 28 TR1 29 TR2 P1.1 TR5 35 TR3 P1.4 P1.2 TR6 36 33 TR4 P1.5 P1.3 TR7 37 30 34 P1.6 GND GND GND GND 41 32 14 5 P1.7 1 38 GND TR8 I/O and VDD 4.5V, CVDD 3V, 16MHz ROSC, DA output Note: 1. All the ”VDD” should be connected together before connected to the power source which with a 47uF(C4) capacitor. 2. The capacitor “C5” is near the “CVDD” pin. Ver. 1.3 13 October 23, 2002 SNC745 16-bit Voice Processor P0.0 TEST P0.1 VDD P0.2 P0.3 RST CVDD GND P0.4 P0.5 P0.6 P0.7 P0.8 P0.9 P0.10 VDD P0.11 P0.12 P0.13 P0.14 P0.15 P1.0 P1.1 CVDD GND P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 13. BONDING PAD 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 XOUT 39 XIN VO 40 41 42 GND VDD 43 LXIN 44 LXOUT 45 (0.00,0.00) Note: The substrate MUST be connected to Vss in PCB layout. Ver. 1.3 14 October 23, 2002 5 GND 4 BN0 3 VDD 2 BP0 1 GND SNC745 16-bit Voice Processor DISCLAIMER The information appearing in SONiX web pages (“this publication”) is believed to be accurate. However, this publication could contain technical inaccuracies or typographical errors. The reader should not assume that this publication is error-free or that it will be suitable for any particular purpose. SONiX makes no warranty, express, statutory implied or by description in this publication or other documents which are referenced by or linked to this publication. In no event shall SONiX be liable for any special, incidental, indirect or consequential damages of any kind, or any damages whatsoever, including, without limitation, those resulting from loss of use, data or profits, whether or not advised of the possibility of damage, and on any theory o f liability, arising out of or in connection with the use or performance of this publication or other documents which are referenced by or linked to this publication. This publication was developed for products offered in Taiwan. SONiX may not offer the products discussed in this document in other countries. Information is subject to change without notice. Please contact SONiX or its local representative for information on offerings available. Integrated circuits sold by SONiX are covered by the warranty and patent indemnification provisions stipulated in the terms of sale only. The application circuits illustrated in this document are for reference purposes only. SONIX DISCLAIMS ALL WARRANTIES, INCLUDING THE WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PURPOSE. SONIX reserves the right to halt production or alter the specifications and prices, and discontinue marketing the Products listed at any time without notice. Accordingly, the reader is cautioned to verify that the data sheets and other information in this publication are current before placing orders. Products described herein are intended for use in normal commercial applications. Applications involving unusual environmental or reliability requirements, e.g. military equipment or medical life support equipment, are specifically not recommended without additional processing by SONIX for such application. Ver. 1.3 15 October 23, 2002