SONIX SNC88340

SNC88340
24-Channel MIDI/Speech Controller
================== CONTENTS =================
1
INTRODUCTION......................................................................................................................... 3
2
FEATURES ...................................................................................................................................3
3
PIN ASSIGNMENT ...................................................................................................................... 4
4
BLOCK DIAGRAM ..................................................................................................................... 5
5
FUNCTION DESCRIPTION....................................................................................................... 5
5.1.
OSCILLATOR ................................................................................................................................ 5
5.2.
ROM........................................................................................................................................... 6
5.3.
RAM........................................................................................................................................... 6
5.4.
POWER DOWN MODE .................................................................................................................. 6
5.5.
IR FUNCTION............................................................................................................................... 7
5.6.
I/O PORTS ...................................................................................................................................7
5.7.
SAMPLING RATE COUNTERS ........................................................................................................ 8
5.8.
AUTO REPETITION ....................................................................................................................... 8
5.9.
VOICE SYNTHESIZER ................................................................................................................... 8
5.10.
MUSIC SYNTHESIZER................................................................................................................... 8
5.11.
DAC ........................................................................................................................................... 9
6
APPLICATION CIRCUIT......................................................................................................... 10
7
ABSOLUTE MAXIMUM RATING.......................................................................................... 13
8
ELECTRICAL CHARACTERISTICS ..................................................................................... 13
Ver: 1.6
1
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
AMENDENT HISTORY
Version
Date
Ver 1.0
October 07, 2004
Ver 1.1
Description
First issue
November 12, 2004 Modify Application Circuit.
1. Oscillator R-Type is “no connect”. Page5
2. Modify Application Circuit.(Low CLK Mode, 32768,
Ver 1.2
March 21, 2005
R-Type, Xin and Xout no connect) Page10
3. Modify Electric Characteristic (Max->Typical) Page12
4. Modify I/O Circuit in Page7
1. Modify Application circuit in Low CLK(RC mode)
R=91K, C=200pF
Ver1.3
June 30,2005
2. In Application Circuit add R=100 (direct key) in Page10
3. Modify Chapter 5.1 oscillator about Rosc mode has to let
Xin connect R=51k and C=200pF to GND.
Ver1.4
September 5,2005
1. Remove Chapter 5.1 High Clock RC Mode.
2. Remove Chapter 6 application circuit RC Mode.
1. Modify Application Circuit add a diode between
Ver1.5
November 18,2005
“VDD“ and “VDDVR” @4.5V.
2. Modify Application Circuit add R=100 in each input pin
(direct key).
1. Add High Clock RC Mode in Oscillator functional
description (Chap 5.1)
Ver1.6
September,8,2006
2. Add High Clock RC Mode in Application Circuit
3. Removed Application circuit R=100 in each input pin
(direct key)
Ver: 1.6
2
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
1 INTRODUCTION
The SNC88340 is a single chip 24-channel MIDI compatible wave-table/voice
synthesizer. Equipped with a powerful 8-bit controller and 24 I/O pins, it provides a
low-cost MIDI sound system solution. It’s low power consumption and operating range
makes it ideal for all battery operated devices using MIDI or voice synthesis.
2 FEATURES


















Single Power Supply 2.4V – 5.5V
Powerful Built-in 8-bit Controller
Three 8-bit I/O ports
640*8 bits RAM
Maximum 64k program ROM
1M*12 shared ROM for program and voice data
Readable ROM code data
24-voice Polyphony through a high-quality speech synthesizer
Mark Event Supported in both Wave and Melody.
Individual adaptive playing speed from 4k-64kHz for all 24 channels
Automatic repetition for each channel
Volume modulation controlled by embedded multiplier
Two digital mixers with saturation control
Two built-in 10-bit current mode DA converters
Analog Direct Drive speaker circuit.
System clock: 16.384M Hz (RC-type or Crystal Option)
1 MIPS CPU power free to user
Low Voltage Reset
Ver: 1.6
3
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
3 PIN ASSIGNMENT
Ver: 1.6
Symbol
P00 ~ P07
P10 ~ P17
P20 ~ P27
VDDVR
GNDVR
VDDPP
GNDPP
CVDD
VDD
GND
REGOUT
RST
XIN
XOUT
LXIN
LXOUT
I/O
I/O
I/O
I/O
P
P
P
P
P
P
P
P
I
I
O
I
O
CKSEL
I
TestM
VO1
VO2
BN0
BP0
I
O
O
O
O
Function Description
Bit7 ~ Bit0 of I/O port 0
Bit7 ~ Bit0 of I/O port 1
Bit7 ~ Bit0 of I/O port 2
Positive power supply for ROSC
Negative power supply for ROSC
Positive power supply for Direct Drive
Negative power supply for Direct Drive
Positive power supply for internal circuit
Positive power supply for I/O
Negative power supply
3V regulator output
Chip Reset (Active low)
High clock Crystal In
High clock Crystal Out
Low clock Crystal In
Low clock Crystal Out
Clock type select
‘VDD’ RC oscillator
‘GND’Crystal
Test Pin
DA1 output
DA2 output
Direct Drive negative output
Direct Drive positive output
4
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
4 Block Diagram
ROM
Program/Speech/Melody/Instrument waveform
1M 12 bits
Address Pointers/ STACK
OSC
SRAM (640 bytes)
Timing
Generator
Sampling
Rate Counter
Timer
Music
Synthesizer
Voice
Synthesizer
10bit D/A X 2
IO0
IO1
IO2
ALU
Direct Drive
5 FUNCTION DESCRIPTION
5.1. Oscillator
CKSEL (Clock Select) input pin of the SNC88340 selects between crystal
oscillator/ceramic resonator or RC type oscillators as system clock.
VDD
20pf
CKSEL
XIN
XOUT
GND
CKSEL
16.384Mhz
XIN
NC
XOUT
NC
20pf
Crystal / Resonator
RC Oscillator
Notice: For RC Oscillator, Keep XOUT and XIN as “No Connect”.
Ver: 1.6
5
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
5.2. ROM
SNC88340 contains a substantial 1M x 12-bit word internal ROM which is shared by
program and resource data. Program, voice, melodies, data, and instrument
waveforms are shared within this same 1M words ROM.
5.3. RAM
SNC88340 contains 640 bytes RAM (640 x 8-bits). The 640 byte RAM is divided into
five pages (page0, 1, 2, 3 and 4, 128 bytes RAM for each page). The RAMBK register
is used to switch to a specific RAM page. For example, declaring
Org
0x180
UseMem ds 1
would locate one byte memory for “UseMem” at BANK 3. Setting ‘RAMbk = 3’in a
program would switch to bank 3 of RAM.
0x0000
:
:
0x007F
0x0080
:
:
Reserved for System
0x00FF
0x0100
:
:
0x017F
0x0180
:
:
0x01FF
0x0200
:
:
Free for User
0x027F
5.4. Power Down Mode
Entering the IC into Stop Mode will stop the system clock for power savings (<3uA
@VDD=3V and <6uA @VDD=4.5V). Any transition (LH or HL) on any I/O pin or
RTC (Real-time clock) can be used to start the system clock and return to normal
operating mode.
Ver: 1.6
6
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
5.5. IR Function
When IR is enabled, a 38.5KHz square wave is gated with P27. The 38.5KHz IR
signal is present at the pin when P27 is set to “1”.
38.5KHZ
P AD
"1"
IR e n
P 27
5.6. I/O Ports
There are three 8-bit I/O ports P0, P1, and P2. Any I/O can be individually
programmed as either input or output. When I/O is set to input, any valid data
transition (H L or LH) of each I/O port can wake-up the chip from power-down
mode.
P AD
P ort Da ta
P ort S ta tus
We a k
To Inte rna l Da ta Bus
Re a d Control
I/O Port Configuration
Note: weak N-MOS’s can serve as pull-low resistors.
Ver: 1.6
7
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
5.7. Sampling Rate Counters
Each voice channel of 24 is equipped with an independent sampling rate counter to
allow individual sample rate play back per channel. Channel sample rate play back
can be dynamically set from 4KHz to 64KHz. Each sampling rate counter is updated
on a period of 0.125uS. This architecture yields a high-quality music/voice synthesis
that sounds very close to its original source when played through the same amplifier
and speaker circuitry.
5.8. Auto Repetition
Each voice channel of 24 is equipped with a hardware auto repeat function. Auto
repeat functions are normally used to implement sustain in instrument synthesis but
can even be used to repeat any voice data of arbitrary length.
5.9.
Voice Synthesizer
The Major function of Voice Synthesizer is to fetch Wave data from ROM and
synthesize into voice. Each voice channel of 24 is equipped with an individual volume
setting.
5.10. Music Synthesizer
The SNC88340 has a separate built in hardware music synthesizer for playing MIDI or
melody sequences. Compatible with the MIDI stream format, sequencer note
resolution is 480 ticks per quarter-note (tpqn) with tempo range settings from 16-400
beats per minute (BPM).
MIDI Command
Interpreter
Voice Synthesizer
Tempo Counter
Tick Counter
Music Synthesizer
Ver: 1.6
8
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
5.11. DAC
Two 10-bit current type digital-to-analog converters are built-in SNC88340. The
relationship between input digital data and output analog current signal is listed in
the following table.
Input data
0
1
…
N
…
1023
Typical value of output current (mA)
0
3/1023
n*(3/1023)
3
Recommended application circuits are illustrated below.
VCC
VCC
VO2
1K
VCC
VO2
VO1
1K
1K
Two Speaker Application
Ver: 1.6
VO1
Single Speaker Application
9
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
6 APPLICATION CIRCUIT




Power Supply: 3.0V
System Clock: Rosc with calibration or RTC function
Low Clock: 32768
Voice output: Direct Drive Output
VDD
VDD
SNC88040
10
CVDD
VDDVR
10
REGOUT
0.1uF
GNDVR
VDD
P00
VDD
51K
10uF
VDD
P01
VDDPP
P02
0.1uF
RST
P03
XOUT
P04
P05
P06
P07
P10
XIN
P11
20pF
32768
20pF
LXOUT
P12
LXIN
P13
P14
P15
P16
P17
P20
P21
P22
P23
P24
P25
P26
P27
TESTM
VDD
VO1
VO2
CKSEL
BN0
BP0
GND
GNDPP
Notice: If system clock is ROSC, please leave Xout and Xin as “no connect”.
Ver: 1.6
10
Sep. 8, 2006
VDD
SNC88340
24-Channel MIDI/Speech Controller




Power Supply: 4.5V
System Clock: Rosc with calibration or RTC function
Low Clock: R-Type
Voice output: DA output With Stereo
VDD
SNC88040
10
CVDD
VDDVR
100
GNDVR
VDD
VDD
P00
VDD
51K
10uF
P01
VDDPP
P02
0.1uF
RST
P03
VDD
XOUT
LXOUT
P04
P05
P06
P07
P10
LXIN
P11
TESTM
P12
XIN
VDD
91K
200pF
VDD
CKSEL
P13
VO1
VDD
1K
P14
P15
P16
P17
P20
P21
P22
P23
P24
P25
P26
P27
BN0
BP0
VO2
GND
1K
GNDPP
Notice: If system clock is ROSC, please leave Xout and Xin as “no connect”.
Ver: 1.6
11
VDD
REGOUT
0.1uF
10
4.7uF
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller



Power Supply: 4.5V
System Clock: 16.384M Crystal
Voice output: DA output
VDD
SNC88340
10
CVDD
VDDVR
REGOUT
0.1uF
10
GNDVR
VDD
VDD
51K
4.7uF
P00
VDD
10uF
P01
VDDPP
P02
0.1uF
RST
P03
P04
P05
P06
P07
P10
LXOUT
20pF
LXIN
16.384
MHZ
20pF
VDD
XOUT
P11
XIN
P12
TESTM
P13
CKSEL
P14
P15
P16
P17
P20
P21
P22
P23
P24
P25
P26
P27
VO1
VO2
1K
BN0
BP0
GND
Ver: 1.6
12
GNDPP
Sep. 8, 2006
VDD
SNC88340
24-Channel MIDI/Speech Controller
7 ABSOLUTE MAXIMUM RATING
Items
Supply Voltage
Input Voltage
Operating Temperature
Storage Temperature
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
8 ELECTRICAL CHARACTERISTICS
Item
Operating Voltage
Standby Current
Operating Current
(Push-Pull Turn On)
Operating Current
(Push-Pull Turn OFF)
Input pull low impedance of
P0~P2
Sym. Min. Typ. Max. Unit
Condition
VDD 2.4
5.5
V
3
VDD=3V
ISBY
uA
5
VDD=4.5V
6
VDD=3V, no load
IOPR
mA
12
VDD=4.5V, no load
4
VDD=3V, no load
IOPR
mA
5
VDD=4.5V, no load
Ri
-
0.8M
-
2
2
4
8
6
10
3
3
4
4
Ω
I/O port Drive Current
IOD
I/O port Sink Current
IOS
D/A Output Current
IVO
Push-Pull current
IPP
-
70
-
mA
Push-Pull current
IPP
-
100
-
mA
IR Carrier Frequency
Fir
-
38.5
-
KHz
Ver: 1.6
13
mA
mA
mA
VDD=3V
VDD=3V, VO=2.6V
VDD=5V, VO=4.2V
VDD=3V, VO=0.4V
VDD=5V, VO=0.8V
VDD=3V, VO=0.7V
VDD=5V, VO=0.7V
VDD=3V, Output
1Khz Sin wave.
VDD=4.5V, Ouput
1Khz Sin wave.
Sep. 8, 2006
SNC88340
24-Channel MIDI/Speech Controller
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.6
14
Sep. 8, 2006