SONIX SN56012

SN56012
4-Channel Speech Controller
========================== CONTENTS ===========================
1.
INTRODUCTION............................................................................................................3
2.
FEATURES ......................................................................................................................3
3.
BLOCK DIAGRAM ........................................................................................................4
4.
PIN ASSIGNMENT.........................................................................................................4
5.
FUNCTION DESCRIPTIONS .......................................................................................5
5.1.
5.2.
5.3.
5.4.
5.5.
5.6.
5.7.
5.8.
5.9.
5.10.
5.11.
5.12.
5.13.
OSCILLATOR ...............................................................................................................5
ROM ..........................................................................................................................5
RAM ..........................................................................................................................5
POWER DOWN MODE ..................................................................................................5
SAMPLING RATE COUNTERS .......................................................................................5
AUTO REPETITION .......................................................................................................6
WAVE MARK ..............................................................................................................6
PUSH-PULL OUTPUT ....................................................................................................6
VOLUME CONTROL FUNCTION ....................................................................................6
WATCH DOG ...........................................................................................................7
I/O PORTS ...............................................................................................................7
PULL-LOW RESISTER CONTROL ..............................................................................7
IR FUNCTION ..........................................................................................................7
6.
ABSOLUTE MAXIMUM RATING ..............................................................................8
7.
ELECTRICAL CHARACTERISTICS .........................................................................8
8.
APPLICATION CIRCUIT .............................................................................................9
9.
DISCLAIMER................................................................................................................11
Ver: 1.0
1
March 2,2005
SN56012
4-Channel Speech Controller
AMENDENT HISTORY
Version
Date
Ver 1.0
Ver 1.1
Ver: 1.0
Description
First issue
May 25,2005
Add RST pin Description
2
March 2,2005
SN56012
4-Channel Speech Controller
1.
INTRODUCTION
SN56012 is a 16 seconds single chip 4-channel voice synthesizer IC which contains
I/O pins and a tiny controller. By programming through the tiny controller, users’
applications including section combination, trigger modes, output status, high
performance melody, multiple voices, and other logic functions can be implemented.
2.
FEATURES
Single power supply 2.4V – 5.5V
Built in a tiny controller
12 seconds voice capacity are provided
128*4 bits RAM are provided
ROM Size
−
Maximum 40K*10 bits ROM size
−
40K program ROM is provided
Readable ROM code data
I/O Ports
−
Four 4-bit I/O ports P1, P2, P3, P6
−
The driving/sink current of P3.2 & P3.3 are 8mA/16mA
−
The IO pins P3.3 can be modulated with 38.5Khz carry signal to implement
IR function.
Built in a high quality speech synthesizer
Four independent voice channels
Adaptive playing speed from 4k-40kHz is provided for all 4 channels individually
Automatic repetition for every channel
A 6-bit*8-bit Multiplier is embed to modulate the volume of synthesized voices
Two digital mixers (with saturation control) are provided
Built in an 8-level volume control Analog Push-Pull Direct Drive circuit.
System clock: 2M Hz (RC-type or Crystal Option)
Low Voltage Reset
Built-in WDT function
Built-in Event Mark Function
Ver: 1.0
3
March 2,2005
SN56012
4-Channel Speech Controller
3.
Block Diagram
ROM
Program/Speech/Instrument waveform
Address Pointer
PC/Data Pointer/Stack/Speech Pointer
SRAM
IO1
Timer
ALU
OSC
Sampling Rate Counter
WDT
IO2
4.
Timing
Generator
Voice
Synthesizer
IO3
Push Pull
IO6
PIN ASSIGNMENT
Symbol
P13, P12, P11, P10
P23, P22, P21, P20
P33, P32, P31, P30
P63, P62, P61, P60
VDD
GND
OSC/XIN
XOUT
CKSEL
I/O
I/O
I/O
I/O
I/O
I
I
I
O
I
BUO1
BUO2
RST
O
O
I
Ver: 1.0
Function Description
Bit3 ~ Bit0 of I/O port 1
Bit3 ~ Bit0 of I/O port 2
Bit3 ~ Bit0 of I/O port 3
Bit3 ~ Bit0 of I/O port 6
Positive power supply
Negative power supply
Oscillator / Crystal In
Crystal Out / 1Khz output
Clock type select
‘L’ or floating → RC oscillator
‘H’ →Crystal
Positive Output of Push Pull
Negative Output of Push Pull
RST=1 Reset Chip (Active H)
4
March 2,2005
SN56012
4-Channel Speech Controller
5.
FUNCTION DESCRIPTIONS
5.1. Oscillator
SN56000 series accepts crystal oscillator / ceramic resonator or RC type oscillator
(selected by pin CKSEL) for system clock. The typical circuit diagrams for oscillator
are listed as follows.
VDD
VDD
SN56000
CKSEL
15pf
OSC/XIN
XOUT
SN56000
CKSEL
2MHz
Crystal / Resonator
OSC/XIN
XOUT
15pf
RC Oscillator
5.2. ROM
SN56012 contains 40K word (10-bit) internal ROM. Program, voices, melodies, data,
and instrument waveforms share the same ROM with the others.
5.3. RAM
SN56000 series contains 128 nibble RAM. The 128 nibble RAM is separated into
eight pages (page 0, page1… page 7). An implicit page indicator is utilized to specify
page address. Eight instructions, PAGE0, PAGE1... PAGE7 can switch the page
indicator. All 16 nibbles of each page can be accessed by direct mode (to specify M0
~ M15 in the data transfer type instructions.)
5.4. Power Down Mode
“End” instruction will let SN56000 series enter power down mode and consumer very
little amount of current. (<2uA @VDD=3V and <5uA @VDD=5V) After SN56012
enters power down mode, any valid data transition (L H or H L) occurring on any
input ports or IO ports (P1, P2, P3 and P6) lead SN56000 series back to normal
operation mode.
5.5. Sampling Rate Counters
4 independent sampling rate counters are dedicated to 4 individual voice channels to
play voices with different playing rates. The playing rate is programmable from 4KHz
to 40KHz. The resolution of sampling period of each sampling rate counter is 0.25 uS.
This feature helps SN56000 series play sounds with accurate pitches in the case of
music instrument synthesis.
Ver: 1.0
5
March 2,2005
SN56012
4-Channel Speech Controller
5.6. Auto repetition
Auto repetition function helps SN56000 series realize a “looping” sound automatically
by hardware without any software effort. Auto repetition function is a very useful
mechanism to implement “Sustain” sound in instrument synthesis. All 4 channels are
equipped with this function. Arbitrary lengths of looping sound are accepted by
SN56000 series.
5.7. Wave Mark
This is a new function for SN56000 series, it allows user to add a special mark in wave
data by the voice edit tool “CoolEdit”, ”Goldwav”, “SoundForge”. User can insert
event tags in anywhere of his wave file and can easy to get this special code to do his
special action during voice playing. That means, it should be easily to control the I/O
(such as LED or Motor) and other actions to synchronize with voice.
5.8. Push-Pull output
A Push-Pull Direct Drive circuit is built-in SN56012. The maximum resolution of
Push-Pull is 8 bits (8 bit structure with LSB set to 0). Two huge output stage circuits are
designed in SN56012. With this advanced circuit, the chip is capable of driving
speaker directly without external transistors.
5.9. Volume Control Function
Bit0~Bit2 of VOL Register is applied to control the volume of voice. The relationship
between output current and mode2 register is listed in the following table (power on set
to 111). Bit3 of VOL register provide for VOL Output division 2.
Bit2
0
0
0
0
1
1
1
1
Ver: 1.0
Bit1
0
0
1
1
0
0
1
1
Bit0
0
1
0
1
0
1
0
1
Output Volume
46.5 DB
52.2 DB
58.1 DB
63.9 DB
70.3 DB
77.2 DB
82.3 DB
88.0 DB
6
March 2,2005
SN56012
4-Channel Speech Controller
5.10. Watch Dog
This is a new function for SN56000 series. The WDT is cascade after system timer.
When user reset system timer will issue a clear signal to WDT also. It would issue a
reset signal to chip if user doesn’t reset any system timer before it reach terminate
count (1 Second) when chip is in active mode.
5.11. I/O Ports
P1/P2/P3/P6 are four 4-bit I/O ports. Any bit of P1/P2/P3/P6 can be programmed to
be input or output individually. Any valid data transition (H L or L H) of P1, P2, P3
and P6 can reactivate the chip when it is in power-down stage.
Port D ata
PAD
Port Status
W eak
Pull Low enable
To Internal Data Bus
Read C ontrol
I/O Port Configuration (P10~P13, P20~P23, P30~P33, P60~P63)
Note: All weak N-MOS’s can serve as pull-low resistors.
5.12. Pull-Low Resister Control
This function provides user to control Pull-Low register of all I/O ports that can be
disabled by user command. With the help of this function, input floating and input pull
low is supported.
5.13. IR Function
P33 can be modulated with 38.5KHz square wave before sent out to P33 pin.
The IR signal can be achieved by this modulated signal.
Ver: 1.0
7
March 2,2005
SN56012
4-Channel Speech Controller
6.
ABSOLUTE MAXIMUM RATING
Items
Supply Voltage
Input Voltage
Operating Temperature
Storage Temperature
7.
Symbol
VDD-V
VIN
TOP
TSTG
Min
-0.3
VSS-0.3
0
-55.0
Max
6.0
VDD+0.3
55.0
125.0
Unit.
V
V
o
C
o
C
ELECTRICAL CHARACTERISTICS
Item
Operating Voltage
Standby Current
Operating Current
Operating Current
Ii
-
3
-
Unit
Condition
V
uA VDD=3V, no load
uA VDD=3V, no load
mA VDD=3V, Push-Pull turn
on , no load
uA VDD=3V
IOD
-
4
-
mA VDD=3V,VO=2.4V
IOS
-
6
-
mA VDD=3V,VO=0.4V
IOD
IOS
IBUD
-
8
16
80
-
Sink Current of Buo1/Buo2
IBUS
-
80
-
Oscillation Freq.
FOSC
-
2.0
-
mA VDD=3V,VO=2.4V
mA VDD=3V,VO=0.4V
mA VDD=3V,Buox=1.5V
Sine wav Full Amplitude
mA VDD=3V,Buox=1.5V
Sine wav Full Amplitude
MHz VDD=3V
Input Current of
P10~P13, P20~P23,
P30~P33, P60~P63
Drive Current of
P10~P13, P20~P23,
P30~P31, P60~P63
Sink Current of
P10~P13, P20~P23,
P30~P31, P60~P63
Drive Current of P32~P33
Sink Current of P32~P33
Drive current of Buo1/Buo2
Ver: 1.0
Sym. Min. Typ. Max.
VDD 2.4 3.0 5.5
ISBY
2.0
IOPR
350
IOPR
4.4
-
8
March 2,2005
4-Channel Speech Controller
SN56012
APPLICATION CIRCUIT
8.
System Clock: 2MHZ ROSC
Keys: 32 Scan Keys
VDD
330K
VDD
CKSEL
GND
SN56000
OSC/XIN
XOUT
RST
P30
P31
P32
P33
BUO1
BUO2
GND
P10
P11
P12
P13
P20
P21
P22
P23
P60
P61
P62
P63
TR26
TR31
TR30
TR29
TR22
TR27
TR32
TR25
TR18
TR23
TR28
TR21
TR14
TR19
TR24
TR17
TR10
TR15
TR20
TR13
TR6
TR11
TR16
TR9
TR2
TR7
TR12
TR5
TR3
TR8
TR1
TR4
March 2,2005
9
Ver: 1.0
4-Channel Speech Controller
SN56012
System Clock: 2MHZ Crystal
Keys: 32 Scan Keys
20pf
20pf
VDD
2MHz
VDD
CKSEL
SN56000
OSC/XIN
XOUT
RST
P30
P31
P32
P33
BUO1
BUO2
GND GND
P10
P11
P12
P13
P20
P21
P22
P23
P60
P61
P62
P63
TR26
TR31
TR30
TR29
TR22
TR27
TR32
TR25
TR18
TR23
TR28
TR21
TR14
TR19
TR24
TR17
TR10
TR15
TR20
TR13
TR6
TR11
TR16
TR9
TR2
TR7
TR12
TR5
TR3
TR8
TR1
TR4
March 2,2005
10
Ver: 1.0
SN56012
4-Channel Speech Controller
9.
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 of 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.0
11
March 2,2005