W567SXXX Data Sheet 8-CHANNEL SPEECH+MELODY PROCESSOR (BandDirectorTM Series) Table of Contents1. GENERAL DESCRIPTION ......................................................................................................... 2 2. FEATURES ................................................................................................................................. 3 3. PIN DESCRIPTION..................................................................................................................... 4 4. BLOCK DIAGRAM ...................................................................................................................... 5 5. ELECTRICAL CHARACTERISTICS ........................................................................................... 6 6. 7. 5.1 Absolute Maximum Ratings ............................................................................................... 6 5.2 D.C. Characteristics........................................................................................................... 6 5.3 A.C. Characteristics ........................................................................................................... 7 TYPICAL APPLICATION CIRCUITS .......................................................................................... 8 6.1 W567S010~S030 .............................................................................................................. 8 6.2 W567S040~S060 .............................................................................................................. 9 6.3 W567S080~S341 ............................................................................................................ 10 6.4 W567S301/S341 with ADC Application........................................................................... 11 REVISION HISTORY ................................................................................................................ 12 -1- Publication Release Date: April 14, 2005 Revision A12 W567SXXX 1. GENERAL DESCRIPTION The W567Sxxx is a powerful microcontroller (uC) dedicated to speech and melody synthesis applications. With the help of the embedded 8-bit microprocessor & dedicated H/W, the W567Sxxx can synthesize 8-channel speech+melody simultaneously. The two channels of synthesized speech can be in different kinds of format, for example ADPCM and MDPCM. The W567Sxxx can provide 8-channel high-quality WinMelodyTM , which can emulate the characteristics of musical instruments, such as piano and violin. The output of speech/melody channels are mixed together through the on-chip digital mixer to produce colorful effects. The mixer is further processed to drive dual speakers with stereo effects. With these hardware resources, the W567Sxxx is very suitable for high-quality and sophisticated scenario applications. The W567Sxxx is also capable of transmitting infrared (IR) signals with on-chip carrier generator. As a result, toys can be designed to interact with each other for more play values. A serial interface can be supported as external memory for memory expansion or content-updateable applications. Besides, the W567Sxxx is equipped with a 4-channel Analog-to-Digital Converter (ADC). With ADC, a toy can respond to environment conditions such as temperature or pressure via sensory devices. Therefore, toys with ADC can behave vividly than ever before. The W567Sxxx family contains several items with different playback duration as shown below: (@5-bit MDPCM algorithm, 6 KHz sampling rate) Item W567S010 W567S015 W567S020 W567S025 W567S030 W567S040 *Duration 14 sec. 18 sec. 27 sec. 31 sec. 35 sec. 52 sec. Item W567S060 W567S080 W567S100 W567S120 W567S150 W567S170 Duration 60 sec. 104 sec. 116 sec. 129 sec. 163 sec. 197 sec. Item W567S210 W567S260 W567S301 W567S341 Duration 232 sec. 265 sec. 300 sec. 334 sec. Note: *: The duration time is based on 5-bit MDPCM at 6 KHz sampling rate. The firmware library and timber library have been xcluded from user's ROM space for the duration estimation. -2- W567SXXX 2. FEATURES * Wide range of operating voltage: - 8 MHz @ 3.6 volt ~ 5.5 volt - 4 MHz @ 2.4 volt ~ 5.5 volt * Power management: - 4 ~ 8 MHz system clocks, with Ring type - Stop mode for stopping all IC operations * Provides up to 8 inputs and 24 I/O pins * Current-type Digital-to-Analog Converter (DAC): - (8+2)-bit resolution with programmable output current - 2 speaker outputs for stereo applications * F/W speech synthesis with multiple format support: ADPCM/MDPCM/PCM * 2 speech synthesis1 channels at programmable sample rate * 8 melody channels that can emulate characteristics of musical instruments * 8-input/10-bit-resolution Mixer can mix the speech and melody signals flexibly * Dynamic control of the channel assignment to the dual speaker output for stereo effects * Built-in IR carrier generation circuit for simplifying firmware IR application * 4-channel ADC interface (W567S301~S341) with maximum 4-KHz sampling rate and 6-bit effective resolution * Built-in 9 timers for speech/melody synthesis and general purpose applications * Built-in 10*7 multiplier * Built-in Watch-Dog Timer (WDT) and Low Voltage Reset (LVR) * Built-in 32KHz crystal oscillator with divider for time-keeping application in W567S080 ~ S341 * Built-in Serial Interface Manager (SIM) in W567S080 ~ S341 * Support PowerScript for developing codes in easy way * Full-fledged development system - Source-level ICE debugger - Event synchronization mechanism - Compatible with W566B/C & W588S system - User-friendly GUI environment * Available package form: (COB is essential) - W567S010, S015, S020, S025, S030: LQFP48 - W567S040, S060: QFP64 - W567S080 ~ S120: LQFP80 - W567S150 ~ S341: LQFP100 1 More speech channels are available for 8-bit PCM format in the remaining melody channels. -3- Publication Release Date: April 14, 2005 Revision A12 W567SXXX 3. PIN DESCRIPTION PIN NAME RESETB XIN XOUT In In Out IC reset input, low active. 32 KHz crystal oscillator with divider for time-keeping application 32 KHz crystal oscillator with divider for time-keeping application Main-clock oscillation input. Only Ring type is used. Connect to GND via the oscillation resistor. General input port with pull-high selection. Each 2 input pins can be programmed to generate interrupt request and used to release IC from STOP mode. IP0[3:0] are used as the input of ADC. IP0.0 is the input pin of channel 0 and IP0.3 is the input pin of channel 3, and so on. General input/output pins. When used as output pin, it can be open-drain or CMOS type and it can sink 8mA for high-current applications. When used as input pin, there may have a pull-high option and generate interrupt request to release IC from STOP mode. When BP0[7] is used as output pin, it can be the IR transmission carrier for IR applications. General input/output pins. When used as output pin, it can be open-drain or CMOS type. When used as input pin, there may have a pull-high option and generate interrupt request to release IC from STOP mode. When serial interface is enabled, BP1[6:4] are used as serial interface pins. General input/output pins. When used as output pin, it can be open-drain or CMOS type. When used as input pin, there may have a pull-high option and generate interrupt request to release IC from STOP mode. Reference-bottom voltage of ADC. Theoretically, the converted codes 0 ~ 255 will be uniformly distributed between VRB and AVDD. Voltages below VRB will be mapped to code 0. Capacitor input for ADC. Capacitor output for ADC. ADC regulator output voltage. Current type DAC speaker output 0. Current type DAC speaker output 1. Test input, internally pulled low. Do not connect during normal operation. In IP0[3:0] / IP0[7:4] In BP0[7:0] I/O BP2[7:0] 2 I/O I/O VRB Out CIN COUT 2 AVDD DAC0 DAC1 TEST VDD In Out Out Out Out In Power VSS 3 VDDOSC 3 VSSOSC 2 VDDA 2 VSSA Power Power Power Power Power 2 2 3 FUNCTION OSC BP1[7:0] 2 I/O Positive power supply for P and peripherals. Negative power supply for P and peripherals. Positive power supply for oscillation. Negative power supply for oscillation. Positive power supply for ADC module. Negative power supply for ADC module. Only W567S301~S341 provides these pins for ADC application. In order to get a stable oscillating frequency, W567S080~S341 provides these pins for power supply. -4- W567SXXX 4. BLOCK DIAGRAM OSC BP1[7:0] BP0[7:0] BP2[7:0] BP1[6:4] XOUT XIN RESETB Timing Generator Interrupt Controller Timers & HQ generator Serial Interface I/O IP0[3:0] or IP0[7:4] 8 bits uP Address/Data Data RAM Program ROM WDT Bus 4 Channels ADC Speaker Driver DAC0 Speaker Driver DAC1 Mixer VRB COUT CIN IP0[3:0] -5- Publication Release Date: April 14, 2005 Revision A12 W567SXXX 5. ELECTRICAL CHARACTERISTICS 5.1 Absolute Maximum Ratings PARAMETER Supply Voltage to Ground Potential D.C. Voltage on Any Pin to Ground Potential RATING UNIT -0.3 to +7.0 -0.3 to VDD +0.3 V V 0 to +70 C -55 to +150 C Operating Temperature Storage Temperature Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability of the device. 5.2 D.C. Characteristics (VDD-VSS = 4.5 V, FM = 8 MHz, Ta = 25C, No Load unless otherwise specified) PARAMETER SYM. TEST CONDITIONS Operating Voltage VDD Operating Current IOP FSYS = 4 MHz FSYS = 8 MHz FSYS = FM, normal operation Standby Current ISB STOP mode 32KHz Crystal current I32K Input Low Voltage Input High Voltage VIL VIH Output Low Current IOL Output High Current IOH DAC Full Scale Current IDAC ADC Analog Input Voltage ADC Reference-Bottom Voltage IRB 6 mA UNIT Typ. Max. 2.4 3.6 - 5.5 5.5 V V - 15 20 mA - 1 2 A 6 15 A - 0.3 VDD VDD V V - 4 mA -3.0 -5.0 8 -3.6 -6.0 mA mA VRB - AVDD V 0.6 0.8 1.0 V 30 - - M 60 uA FOSC disable, No load, Wake up frequency: 2Hz All input pins VSS All input pins 0.7 VDD VOUT = 0.4V, all output pins except BP0 VOUT = 0.4V, BP0 only VOUT = 2.4V, all output pins -4 -2.4 VDD = 4.5V, RL = 100 -4.0 VAN VRB SPEC. Min. mA ADC Input Impendence RADC Operation Current of Low Voltage Reset ILVR VDD = 4.5V Pull High Resistance RIN All input pins except RESETB 200 - - K RESERB 100 - - K -6- W567SXXX 5.3 A.C. Characteristics (VDD-VSS = 4.5 V, FM = 8 MHz, Ta = 25C; No Load unless otherwise specified) PARAMETER Main-Clock SYM. FM TEST CONDITIONS Typ. Max. Ring type, *Rosc = 300 K 3.6 4 4.4 Ring type, *Rosc = 150 K 7.2 8 8.8 125 - DC nS - 3 5 mS - 3 7.5 % After FSYS stable 4 - - TCYC Fixed AVDD4 - - 6 bits AVDD = 3.6 ~ 5.5V - - 5 bits - - 1 LSB Conversion rate = 8 KHz, FSYS = 4 MHz - 2000 - pF Conversion rate = 16 KHz, FSYS = 8 MHz - 1000 - pF 512/FM - 32K/FM S - - 2 S TCYC FSYS = 8 MHz Main-Clock Wake-up Stable Time TWSM Ring type, R = 160 K F F RESETB Active Width TRES ADC Resolution ADC Accuracy ADC Capacitor FMAX - FMIN FMIN Ebit CADC ADC Conversion Time TCON ADC Stable Time TADS UNIT Min. Cycle Time Main-Clock Frequency Deviation, Ring type SPEC. AVDD = VDD = 3V MHz *: Typical ROSC value for each part number should refer to design guide. 4 AVDD is a fixed voltage, for example AVDD = 3.6V, 4.5V, or 5.5V. -7- Publication Release Date: April 14, 2005 Revision A12 W567SXXX 6. TYPICAL APPLICATION CIRCUITS 6.1 W567S010~S030 VDD Battery + 4.7uF BP00 | BP07 VDD OSC W567S010 | W567S030 ROSC BP10 | BP17 Speaker DAC /RESET Reset Switch 8050 Rs 0.1uF VSS Notes: 1. 2. The typical value of Rosc is 150 K for 8MHz and 300 K for 4MHz and should be connected to GND (VSS). Please refer to design guide to get typical Rosc value for each part number. 3. The Rs value is suggested in 270 ~ 1K to limit too large DAC output current flowing into transistor. 4. The capacitor, 4.7F, shunts between VDD and GND is necessary as power stability. But the value of capacitor is depend on the application. 5. The above application circuits are for reference only. No warranty for mass production. -8- W567SXXX 6.2 W567S040~S060 VDD Battery + 4.7uF IP04 | IP07 BP00 | BP07 OSC ROSC W567S040 | W567S060 VDD BP10 | BP17 Speaker0 DAC0 8050 Rs VDD /RESET Reset Switch 0.1uF Speaker1 VSS Notes: 1. 2. DAC1 8050 Rs The typical value of Rosc is 160 K for 8MHz and 330 K for 4MHz and should be connected to GND (VSS). Please refer to design guide to get typical Rosc value for each part number. 3. The Rs value is suggested in 270 ~ 1K to limit too large DAC output current flowing into transistor. 4. The capacitor, 4.7uF, shunts between VDD and GND is necessary as power stability. But the value of capacitor is depend on the application. 5. The above application circuits are for reference only. No warranty for mass production. -9- Publication Release Date: April 14, 2005 Revision A12 W567SXXX 6.3 W567S080~S341 VDD Battery + 4.7uF 10 IP00 | IP07 VDDOSC 0.1uF BP00 | BP07 OSC BP10 | BP17 ROSC X32I W567S080 | W567S341 32K X32O VDD BP20 | BP27 Speaker0 DAC0 8050 Rs VDD Speaker1 /RESET Reset Switch DAC1 0.1uF VSSOSC VSS 8050 Rs Notes: 1. The typical value of Rosc is 150 K for 8MHz and 300 K for 4MHz and should be connected to GND (VSS). 2. Please refer to design guide to get typical Rosc value for each part number. 3. For W567S080~S341, VSSOSC should be connected to VSS; and VDDOSC should be connected to VDD in PCB layout. 4. The Rs value is suggested in 270 ~ 1K to limit too large DAC output current flowing into transistor. 5. The 10 and 0.1F between VDD, VDDOSC and GND are optional to filter power noise. 6. The capacitor, 4.7F, shunts between VDD and GND is necessary as power stability. But the value of capacitor is depend on the application. 7. The above application circuits are for reference only. No warranty for mass production. - 10 - W567SXXX 6.4 W567S301/S341 with ADC Application IP00 IP01 IP02 IP03 IP04 | IP07 VDD Battery + 4.7uF VDDA 10 VDDOSC 0.1uF BP00 | BP07 AVDD 22uF BP10 | BP17 CIN C COUT W567S301 | W567S341 BP20 | BP27 DAC0 VRB VDD Speaker0 8050 OSC ROSC VDD X32I 32K X32O Speaker1 DAC1 8050 /RESET Reset Switch 0.1uF VSSOSC VSSA VSS Notes: 1. 2. 3. 4. 5. 6. 7. The typical value of Rosc is 150 K for 8MHz and 300 K for 4MHz and should be connected to GND (VSS). Please refer to design guide to get typical Rosc value for each part number. For W567S301~S341, VSSA and VSSOSC should be connected to VSS; and VDDA and VDDOSC should be connected to VDD in PCB layout. The Rs value is suggested in 270 ~ 1K to limit too large DAC output current flowing into transistor. The 10 and 0.1F between VDD, VDDOSC and GND are optional to filter power noise. The capacitor, 4.7F, shunts between VDD and GND is necessary as power stability. But the value of capacitor is depend on the application. The above application circuits are for reference only. No warranty for mass production. - 11 - Publication Release Date: April 14, 2005 Revision A12 W567SXXX 7. REVISION HISTORY VERSION DATE PAGE A1 April 2002 - DESCRIPTION Preliminary release. W567S020 created. A2 July 11, 2002 - 2 speech channels for entire series. Wording modification. A3 July 31, 2002 - A4 Oct. 15, 2002 - A5 Nov. 15, 2002 - Modify pin description Modify DC/AC electrical characteristics Remove SIM out of from W567S040 ~ S060 Define ROSC value in AC ELECTRICAL CHARACTERI Page 2, provides up to 8 input pins Page 2, available package Add a table to show all W567Sxxx duration in page 1 A6 May 15, 2003 Add PowerScriptTM function in feature list - Update available package Rename RTC as 32 KHz crystal Update application circuit Change part number W567S300 as W567S301 A7 Sep 10, 2003 Change part number W567S340 as W567S341 - Page 3, add Low Voltage Detect (LVD) feature A8 Oct. 15, 2003 - Update application circuit and notes. A9 Nov 17, 2003 - Rename VDD1 to VDDOSC in the Pin Description Update application circuit and notes. A10 March 16, 2004 - Change the name Low-Voltage-Detect (LVD) to Low-Voltage-Reset (LVR). A11 June 15, 2004 - Add the operation current of Low-VoltageReset. A12 APRIL 18, 2005 12 ADD IMPORTANT NOTICE - 12 - W567SXXX Important Notice Winbond products are not designed, intended, authorized or warranted for use as components in systems or equipment intended for surgical implantation, atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for other applications intended to support or sustain life. Further more, Winbond products are not intended for applications wherein failure of Winbond products could result or lead to a situation wherein personal injury, death or severe property or environmental damage could occur. Winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Winbond for any damages resulting from such improper use or sales. Headquarters Winbond Electronics Corporation America Winbond Electronics (Shanghai) Ltd. No. 4, Creation Rd. III, Science-Based Industrial Park, Hsinchu, Taiwan TEL: 886-3-5770066 FAX: 886-3-5665577 http://www.winbond.com.tw/ 2727 North First Street, San Jose, CA 95134, U.S.A. TEL: 1-408-9436666 FAX: 1-408-5441798 27F, 2299 Yan An W. Rd. Shanghai, 200336 China TEL: 86-21-62365999 FAX: 86-21-62365998 Taipei Office Winbond Electronics Corporation Japan Winbond Electronics (H.K.) Ltd. 9F, No.480, Rueiguang Rd., Neihu District, Taipei, 114, Taiwan, R.O.C. TEL: 886-2-8177-7168 FAX: 886-2-8751-3579 7F Daini-ueno BLDG, 3-7-18 Shinyokohama Kohoku-ku, Yokohama, 222-0033 TEL: 81-45-4781881 FAX: 81-45-4781800 Unit 9-15, 22F, Millennium City, No. 378 Kwun Tong Rd., Kowloon, Hong Kong TEL: 852-27513100 FAX: 852-27552064 Please note that all data and specifications are subject to change without notice. All the trade marks of products and companies mentioned in this data sheet belong to their respective owners. - 13 - Publication Release Date: April 14, 2005 Revision A12