ETC W562S08

W562XXX
DUAL-TONE MELODY WITH
VOICE SYNTHESIZER (BandDirectorTM Series)
GENERAL DESCRIPTION
The W562xxx is one of the derivatives of the BandDirectorTM family. It consists of a 4-bit µC, two
voice synthesizers, one Dual tone Melody generator, 38 KHz carrier output for IR transmission and
one ROM shared ROM.
The muti-tasking operation for voice synthesis and Dual Tone Melody generation is implemented by
dedicated H/W that can output the speech voice in parallel with the background music. The 4 bit
kernel, which executes instructions of up to 12 KIPS (Kilo-Instructions Per Second) can offer
customers a great deal of flexibility to achieve various kind of program controls for different
applications.
In addition, the W562xxx's user-friendly development environment can effectively reduce your design
period and help you easily tool your project by yourself with the W56xxx ICE and emulation kit.
There are 9 kinds of W562xxx IC bodies. (see table below)
PART NO.
W562S08
W562S10
W562S12
W562S15
W562S20
W562S25
W562S30
Duration
8 sec
10 sec
12 sec
15 sec
20 sec
25 sec
30 sec
PART NO.
W562S40
W562S50
W562S60
W562S80
W562S99
W562M02
Duration
40 sec
50 sec
60 sec
80 sec
100 sec
120 sec
Note: The voice durations are estimated by 6.4 KHz sampling rate
Possible applications are:
• Programmed voice synthesis with background music or speech.
• I/O interactive voice synthesis to accompany background music or speech.
• Q&A games.
• Edutainment toys.
• Remote toys.
FEATURES
• Multi-engine processor parallel management with µC, speech and Dual Tone Melody.
− µC // (Synthesizer1 or Dual Tone Melody) // Synthesizer2 (//: in parallel )
− µC, with basic ALU, 64-nibble RAM (including 8 working registers) and an 8-bit timer.
− Synthesizer1 capable of voice syntheses with Sample rate @ 4.8/6/8/12 KHz
− Synthesizer2, same as synthesizer1.
− Dual-tone Melody D/A output with 3 level volume control
-1-
Publication Release Date: Fabruary 1999
Revision A2
W562XXX
• Wide operating voltage range: 2.4 to 5.5 volts
• Low power consumption (VDD = 5 Volt)
− Standby current < 1 µA
− Operating current < 1 mA
• Main oscillator: 3 MHz, Ring oscillation
• Input/ Output port
− Port for input only: 1 port/ 4 pins
− Input/ Output ports: 2 ports/ 8 pins
− Port for output only: 1 port/ 4 pins
− Can offer a direct row and column matrix of up to 72 (8 × 9) keys
• Interrupts
− Internal interrupts: Timer
− External interrupts: TG (port 0, port1), POI (Power On Initialization)
− Priority: POI > TG > Timer
• Melody + Voice outputs for DAC
• TG interrupt provided
− Share TG interrupt for Port0/Port1 input
− Global TG interrupt enable controlled (bit3 of the IER register)
− Individual interrupt enable controlled (PER0 and PER1 registers)
• Built-in 8 bit programmable down count timer
− One of two internal clock frequencies can be selected
− Desired Timer interval = (preset value+1) * 1/FT
(FT: 32 Hz or 32 KHz dependent on the bit0 of the MODE register, at Fosc = 3 MHz)
• A total of around 64,000 instructions can be used in the program
• Powerful instruction set:
− Arithmetic: ADD, ADDC, SUB, SUBC, INC, DEC, SETB, CLRB
− Logic Operation: AND, OR, XOR, NOT
− Shift & Rotate: RORC, ROLC, SHRC, SHLC
− Date move: LD, LDR, MV
− Branch: JP, JB0, JB1, JB2, JB3, JZ, JNZ, JC, JNC, JBZ1, JBZ2, CJNE, CJE, DJNZ, DJZ
− Subroutine: CALL, RTN, RTI
− Others: NOP, END, EN INT, DIS INT, PLAY CH1, PLAY CH2, STOP CH1, STOP CH2
• 8-level STACK shared by CALL, Timer, Synthesizer and TG
• Multi-tasking operation via interrupt for automatic voice segment concatenation
− Melody or Speech voice can be easily concatenated with symbol "+"
-2-
W562XXX
− Example: PLAY CH1, H4 + Melody1 + Speech1 + Speech2 + Melody2 + T4
The DAC of the W562xxx will play Melody1, Speech1, Speech2 and Melody2 sequentially
• The length of the voice segment is unlimited
• Speech section control
− Sample rate control (4.8K/6K/8K/12K)
− Example: PLAY CH2, H4 + speech1_S + T4; S: define the sample rate
• Melody section control
− Background music D/A output bits selectable for volume control (6/7/8)
− Example: PLAY CH1, H4 + Melody_xxB + T4; B: define the melody output bits
• Dual tone melody with
− XM3: Triple harmonic effect
− 3 kinds of percussion effects
− 6 beats
− 41 pitches from G3# to C7
− 16 kinds of tempo
− The number of the score and note are unlimited
• Provide IR 38 KHz carrier
− TXF.0 = 0/1 disable/enable IR carrier
− TXF.1 = 0/1 output carrier with P2.3 low/high active
• Provides ICE (In Circuit Emulation) system for easy debugging
− Free Run
− Stop Run
− Program Reset
− Step Into
− Step Over
− Go To Cursor
− Break point
− Register read/ modify
-3-
Publication Release Date: Fabruary1999
Revision A2
W562XXX
BLOCK DIAGRAM
P2 P3
P0 P1
OSC
I/O
Controller
38KHz
carrier
RAM
Special Register
Timing
Generator
Timer
ALU
*
ROM
Synthesizer II
Synthesizer I
Dual Tone
Melody Generator
Mixer
DAC
PAD DESCRIPTION
NAME
I/O
DESCRIPTION
TEST
I
Test pin, internally pulled low
P0.0−P0.3
I
Interruptable input pins, internally pulled high
P1.0−P1.3
I/O
I/O multiplexed port1. Interruptable port if selected as input
P2.0−P2.3
I/O
I/O multiplexed port 2
P2.3 can be programmed as 38 KHz carrier output pin
P3.0−P3.3
O
Output port 3
VSS
-
Negative power supply
RESET
I
Reset all, functions as POR (Power On Reset), internally pulled high
VDD
-
Positive power supply
OSC
I
Connect ROSC to VDD to generate 3 MHz oscillator
DAC
O
Current output of mixing of the channel 1 and channel 2 for driving an
external speaker
-4-
W562XXX
ABSOLUTE MAXIMUM RATINGS
PARAMETER
Power Supply
Input Voltage
Storage Temp.
Operating Temp.
SYMBOL
CONDITIONS
RATED VALUE
UNIT
VDD−VSS
VIN
TSTG
All Inputs
-
-0.3 to +7.0
VSS -0.3 to VDD +0.3
-55 to +150
V
V
°C
TOPR
-
0 to +70
°C
Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability of the
device.
ELECTRICAL CHARACTERISTICS
DC Characteristics
(VDD−VSS = 3.0V, Fm = 3 MHz, TA = 25° C; unless otherwise specified)
PARAMETER
SYM.
CONDITIONS
MIN.
TYP.
MAX.
UNIT
Operating Voltage
Standby Current
VDD
IDD1
No load, No Playing
2.4
-
-
5.5
1
V
µA
Operating Current
(Ring Type)
IOP2
No load
-
-
1
mA
Input Low Voltage
Input High Voltage
VIL
VIH
All Input Pins
All Input Pins
VSS
0.7 VDD
-
0.3 VDD
VDD
V
V
Input Current for P0, P1, P2
IIN
VDD = 3V, VIN = 0V
-
-
-6
µA
Input Current for RESET
IIN1
VDD = 3V, VIN = 0V
-
-
-6
µA
Output Current of P1,
P2, P3
DAC (D/A full Scale)
IOL
IOH
IDAC
VDD = 3V, VOUT = 0.4V
VDD = 3V, VOUT = 2.7V
5
-3
-4.0
-5.0
-6.0
mA
mA
mA
Pull-low Resistor
RPL
100
-
-
KΩ
VDD = 4.5V, RL = 100Ω
TEST Pin
AC Characteristics
PARAMETER
SYM.
CONDITIONS
MIN.
TYP.
MAX.
UNIT
Main-clock Frequency
FM
Ring type, ROSC =
1.2MΩ
2.7
3
3.3
MHz
Frequency Deviation by
Voltage Drop for Ring
Type Oscillator
∆f
-
-
10
%
f
f(3V) − f(2.4V)
f(3V)
Machine Cycle Time
TINS
One machine cycle
1/12
-
1/6
mS
POR Pulse Width
TPOR
-
1
-
-
µS
-5-
Publication Release Date: Fabruary1999
Revision A2
W562XXX
TYPICAL APPLICATION CIRCUIT
Vcc
P0.0
W562xx
P0.1
8050
DAC
P0.2
P0.3
Rs
Cs
P1.0
P1.1
P1.2
P1.3
Vcc
P2.0
P2.1
P2.2
R2
IR LED
P2.3
8550
Vcc
R1
RESET
P3.1
OSCI
R OSC
Rosc = 1.2 MΩ, Rs = 330 - 680 Ω, R2 = 10 Ω, R1 = 220 Ω, Cs = 0.1 µF
Headquarters
Winbond Electronics (H.K.) Ltd.
Rm. 803, World Trade Square, Tower II,
No. 4, Creation Rd. III,
123 Hoi Bun Rd., Kwun Tong,
Science-Based Industrial Park,
Kowloon, Hong Kong
Hsinchu, Taiwan
TEL: 852-27513100
TEL: 886-3-5770066
FAX: 852-27552064
FAX: 886-3-5792697
http://www.winbond.com.tw/
Voice & Fax-on-demand: 886-2-27197006
Taipei Office
11F, No. 115, Sec. 3, Min-Sheng East Rd.,
Taipei, Taiwan
TEL: 886-2-27190505
FAX: 886-2-27197502
Note: All data and specifications are subject to change without notice.
-6-
Winbond Electronics North America Corp.
Winbond Memory Lab.
Winbond Microelectronics Corp.
Winbond Systems Lab.
2727 N. First Street, San Jose,
CA 95134, U.S.A.
TEL: 408-9436666
FAX: 408-5441798