OKI OKI VOICE , SYNTHESIS LSI DATA BOOK ~n!:!~!! rio n repreSentative (408) 988-6300 3350 Scott S IVd" Sldg 44 ' , Santa Clara, CA 95054 FIRST EDITION ISSUE DATE: AUG" 1987 OKI VOICE SYNTHESIS LSI DATA BOOK INTRODUCTION DATA SHEET APPENDIX ©Copyright 1987, Oki Electric Industry Company, Ltd. OKI makes no warranty for the use of its products and as- sumes no responsibility for any errors which may appear in this document nor does it make a commitment to update the information contained herein. OKI retains the right to make changes to these specifica- tions at any time, without notice. CONTENTS INTRODUCTION INTRODUCTION .............................................................. 3 PRODUCT LINE-UP ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 8 COMPARATIVE FUNCTIONS BLOCK DIAGRAM................................... 9 PACKAGING ................................................................. 10 USEFUL INFORMATION ....................................................... 16 DATA SHEET MSM5205 ................................................................... 21 MSM5218 ................................................................... 27 MSM6295 ................................................................... 36 MSM5248 ................................................................... 47 MSM6243 ................................................................... 60 MSM6212 ................................................................... 79 MSM6308 ................................................................... 91 MSM6309 ................................................................... 100 MSM6258/MSM6258V ......................................................... 110 MSC1161 .................................................................... 148 APPENDIX APPLICATION NOTES ......................................................... 163 VOICE SYNTHESIS LSI LIBRARy ............................. , ................. 184 a & A ...................................................................... 185 INTRODUCTION ----, INTRODUCTION • The Voice Synthesis LSI In regular tape recorders where sound is stored as analog signals on magnetic tape, the subsequent amplification of those signals to drive a speaker is referred to as sound "reproduction". It cannot be called sound "synthesis". If the amount of information stored (which is 100% in the above tape recorder) is reduced, the amount of storage medium (memory) can also be reduced for greater economy. Where the amount of information is reduced (compressed) on the basis of a certain principle, the restoration of the original sound is called "synthesis". • Voice Synthesis Methods Voice synthesis methods can be divided into three major types:- waveform encoding, parametric synthesis, and synthesis by rule. Each type is briefly outlined below. (1) Waveform coding methods This type includes differential PCM (DPCM), adaptive delta modulation (ADM), and adaptive differential PCM (ADPCM). The original sound wave amplitude is sampled at fixed intervals, digitized, and the volume of data then reduced on the basis of the principles mentioned above. (2) Parametric synthesis methods Characteristic information included in voice waveforms is extracted as parameters for synthesizing purposes. The PARCOR method is a typical example. In this method where models of the human vocalization mechanism are used, voiced and voiceless consonant sounds are discriminated, and voiced sound pitch and amplitude data is extracted together with filter characteristic of vocal tract. Voice synthesis is then achieved by passing this data to hardware consisting of digital filter circuits etc. (3) Synthesis by rule method This synthesis method is an ideal method where groups 'of phonemes expressed by small quantities of data are skillfully linked together to reproduce any desired words. However, since further elucidation of linguistic laws taking intonation, accents, and length sounds into consideration is required to achieve a highly natural voice, this method must still be considered to be in the research stage. • Basic ADPCM Method Oki voice synthesis LSls are based on adaptive differential PCM (ADPCM) which is an improved form of the DPCM method. The PCM and ADPCM methods are described below. 3 .- .,., '-_.,----- (1) Pulse code modulation (PCM) Voice waveforms and other analog data can be PCM encoded (into digital data) by sampling and quantization in S&H (sample and hold) and AD converter stages. The SIN ratio in this case is determined by the following expression (N - 1) x 6 dB where N is the number of output bits from the AD converter assuming that the maximum waveform amplitude is equivalent to full scale in the converter. For example, if the sampling frequency is 8 kHz and the number of AD converter output bits is 12, the required amount of data (number of bits) per second is 8 kHz x 12 bits = 96K bitslsec This is called the bit rate. The SIN ratio is this case is obtained as (12 - 1) x 6 = 66 dB (2) Adaptive Differential PCM The ADPCM method was devised as a means of reducing the bit rate without sacrificing the SIN ratio too much. In this method, the amount of data is reduced by quantizing and encoding the differential (dn) between adjacent signal samples. A feature of this method is the ability to make adaptive changes to the quantization width c.n when quantizing the differential dn. (In the DPCM method, the quantization width is fixed.) In other words, c.n is enlarged when the differential dn is large, and reduced when dn is small. (3) ADPCM analysis If the input at the nth sampling pOint is Xn, and the waveform reproduction value at the (n-1 )th sampling point is Xn-1, the differential dn between the two is 1\ dn = Xn - Xn-1 (Differential calculation) This is then encoded by the quantization width c.n at the present point of time (the nth point of time). Ln = dnl c.n (Encoding: Ln = ADPCM data) And if this is then quantized and the waveform subsequently reproduced, qn = (Ln + 1/2)c.n (Quantization) 1\ 1\ Xn = Xn-1 + qn (Reproduction) The quantization width for the next (n+ 1)th item of data is then changed from c.n to c.n+ 1. 4 .6.n+1 = .6.n·M(Ln) (Quantization width change) (where M(Ln) is the Ln function. format) The quantization width is thus determined according to the previously accumulated data. (n+1 )th sample (n-1 )th sample nth sample (n+2)th sample Input waveform Fig. 1 ADPCM method computation process (4) ADPCM data The ADPCM data Ln is expressed as M bits of data including the polarity bit. For example, a 4-bit expression is given as Ln = {B3' B 2 , B1 , Bol where B3 (polarity bit) indicates the polarity of the (begin-ind)differential dn, B2 (MSB) indicates the presence of a 4.6.n digit in the changed portion, B1 (2SB) indicates the presence of a 2.6.n digit in the changed portion, and BO (LSB) indicates the presence of a .6.n digit in the changed portion. (5) ADPCM reproduction ADPCM reproduction can be expressed as part of the ADPCM analysis. The reproduction for the nth ADPCM input data Ln is given as 5 qn = (Ln + 1/2)6n (Quantization) = (-1 x B3) (46nB2 + 26nB1 + 6nBo + '126n) A A Xn = Xn-1 + qn (Reproduction) And 6n+1 is calculated for the (n+1 )th item of ADPCM data. 6n+1 = 6n·M(Ln) In other words, in addition to serving as data used for calculating new PCM values for previously set quantization widths, the ADPCM code also serves as the data for calculating the quantization width to be set next. Furthermore, if Xn is set to 12 bits, and Ln is set to 4 bits, the quantity of ADPCM encoded data is compressed by 4/12. Note: The 1/2 element in quantization qn = (Ln + 1/2)6n serves as a means of linear equalization for changed polarity. • Oki ADPCM Types Although the ADPCM method is the basic method adopted by Oki, a few modifications have been made, and two analysis/synthesis methods are now in use. These are outline briefly below. (1) Straight ADPCM: This is the basic unmodified ADPCM method where the quality of sound is better than the two methods described below. This method is also suitable for sound effects. (2) Compressed ADPCM: The compressed ADPCM method is the straight ADPCM method subject to unvoice elimination processing Note 1and waveform repetition processing Note 2. The bit rate, therefore, can be reduced to 1/3 of the straight ADPCM bit rate. Furthermore, the degree of data compression can be changed for each word. Note 1. Unvoice elimination processing: Extensive reduction of unvoice interval data by replacing unvoice intervals (which exceed a certain length) with unvoice data. Note 2. Waveform repetition processing: Data volume reduced by repeating a single item of waveform data in voiced waveforms such as vowels which are repeated periodically. 6 • Features of Oki Voice Synthesis LSls The major features of Oki voice synthesis LSls are summarized below. (1) Quality and object of synthesis (i) Good quality sound with high degree of naturalness (ii) Synthesis of sound effects, musical instruments, and animal sounds also possible (2) Hardware (i) Easy to handle built-in ROM 1-chip devices prepared for application in simple sets (ii) Range of voice synthesis LSls with varying built-in ROM sizes to meet diversified market needs (iii) Low power requirements due to CMOS with low fundamental oscillating frequency - ideal also for battery operated applications (3) Software (i) Simple and precise analysis for broader range of user selected sounds (ii) Comprehensive range of anlilytical tools to enable synthesis to be executed by user Because of the fine quality of sound achieved in a wide range of applications,Oki voice synthesis LSls are used by a great many users in many different applications. 7 PRODUCT LINE-UP ~ 6258 Functions 5205 5218 6295 5248 6243 6212 Stand- MPU 6308 6309 alone Inter- and Specifications I.", Straight 0 0 0 0 0 0 0 0 0 ADPCM Method Compressed - - - - 0 0 - - - ADPCM 3 bit 0 0 - 0 - 0 0 - - Bit Length 4 bit 0 0 0 - 0 - 0 0 0 Oscillation 384 -738K 384 -768M 1 - 5M 10- 50K ,30-t32K 30- 132K 4-8 M 4-6 M , Frequency (Hz) 4-6 M Maximum Vocalization Time Determined by external Deternubed by external ·f 90 sec ·f 3 sec ., 20,.., ., 40 sec Determined external Determined external OeterlTltned external connectIOns connections connectionS connections connectIons Maximum Number Determrned Determined Deter· of Vocalized Words by external connectIOns by external connections f27 7 f2. 12. 7 mIned byex- ternal • 4 connec- tionS Analytical Functions - 0 - - - - 0 0 0 BUilt-in ROM (Kblts) - - - 48 192 288 - - - BUIIt·1n DA Converter Voltage Voltage Voltage Voltage Current Voltage Voltage Voltage VOltage !ype Iype type type type Iype type type !y.' Budt-In AD Converter - - - - - - 0 0 0 External Memory Interface - - 0 - - - 0 0 0 Input SW Input - - - 0 0 0 0 - 0 0 Interface Microcomputer Control 0 0 0 0 0 0 0 0 DA A class 0 0 0 - 0 0 0 0 0 Output B class , - - - u 0 0 - - - MSCl161 Connection - - - - 0 0 - - - Power Supply Voltage (V) 5 5 5 3 3 or 5 3 or 5 5 5 5 Power Consumption 4 mA 4 mA 5 mA 05 rnA Note 3 NOle 3 • mA 10 rnA IOmA (in standby mode) (-) (-) (-) {1 O/ 8 - AD12-bit ¢ converter Analysis ¢ [JOM or RAM ¢ I Synthesis ¢ _ F 10-bit DA converter ?C:J ~ SP 0- -I Z en 1 MSM5218 1LJ Amplifier • IT])) OJ r 0 0 ~ MSM6258 -»C C) MSM6308 :D MSM6309 » i: co Fig. 2 PACKAGING ~ Plastic DIP (RS) Plastic Flat (GS) Chip Device 18 pin 24 pin 40 pin 24 pin 32 pin 44 pin 60 pin MSM5205 0 MSM5218 0 0 MSM6295 . 0 MSM5248 0 0 0 MSM6243 0 0 0 0 MSM6212 0 0 0 0 MSM6258V 0 0 MSM6258 0 MSM6308 0 MSM6309 0 MSC1161 0 0 0 10 Oki's Package Types Through-hole and surface-mount IC package types are described as a function of the board Below are Oki's IC package types and features. mounting method. PACKAGE TYPES Package Type Package Types Symbol Pin Count ~ 8,14,16,18,22,24, Standard RS 28,40,42,48 DIP Skinny ~ RS 20,22 . ~ () .;:; Shrink SS 42,64 '" 1i: ~ ., SIP RS 8 (5 :I: -§, ::l e .s:: I- PGA Q - *1 88,120,132.176, 208 ~ Standard 14,16.18,22,24,28. AS DIP 4tl,42,48 ~ () ·E Cer DIP 8,14,16,18.22,24. AS '" , ~ 28,40 ~ ~ 72,88,120,132, PGA AS 176,208 * 1. In development 11 Type Package Package Type Pin Count Symbol SOP MS 8,16,24,32 FP *2 *3 *4 QFP 24,32,44, 56(S), 56(L), GS 60,64,80,88,100 128, 136, 144, 160 . to) .;::l OJ a::: ...c: sOJ JS 26 :::J 0 ~ Q> PLCC to) OJ 't: 18,20,22,28,32, :::J II) PLCC JS 44,68,84 QFP FS 42,60,64,80 .!:! E ~ Q> U CC ES 14,24,28,44 Piggyback VS 40,42 & ~------.-------l-------~~------------4-----+--- ______________~ OJ -" ~ SIMM YS 30 (ij l ~------4-------------------------------4-----+-----------------~ II) SIMP KS 30 *2 Two types of packages are available, thin type and heat· resistant type (with vent hole). *3 Lead Pins of 24- or 32-pin plastic FPs are in two directions. *4 (5) and (L) differ in pin pitch and outside dimensions. 12 FLAT PACK FAMILY For each type of Oki flat pack, the material it is made from, its outline and its pin count are shown here. ~t Pin Pitch Gnm 8 16 24 32 42 44 56 60 64 80 88 100 128 136 144 160 • 0 4P {] i] - 1.27 SP 12P - - - - - - - - - - - - - (4PX21 (SPX21 (12Px21 • • 14P • 14P • 13P [] - 1.00 - - - 16P - :OlD 10 - - - - - - - u (16P X 21 114px 41 ( ~:~~~I (~~~;~I .~ 0: • lIP • 16P 32P 0.80 - - - - - [J J11p X 41 - - - 2D ~~~~~I - - ~O (32PX41 - - - • 14P • lSP • 20P 34P 36P 40P ,:U 0.65 - - - - - - (14PX41 - - - 20 ~~~~~I 0 3O~'1 1I"1'" ~ - sg~~~1 0 D ~O (34PX41 (36P X 41 (40PX41 lOP 15P 16P 20P u 'E ~ u" 1.27 - - - - ;CJ - - 000 II - - -- - - - - (:~~~~I 115PX41 (16Px41 (20Px41 I e: Two type of packages are available, thin type and heat-resistant type ..... (with vent hole), which shall be used depending upon board assembly method . W PACKAGE OUTLINES AND DIMENSIONS • PLASTIC STANDARD DIP 18PIN 24PIN (UNIT: mm) (UNIT. mml 254:!:02S B O~15° Seabng Plan'! .. ~~ )~~r\~()~,~~~r-~~~~ ~ NI , 0·-15' Seatm Plane ~ • PLASTIC QFP 40PIN 24PIN (UNIT: mm) (UNIT: mml 22±02 0·-10· Seating Plane 14 • PLASTIC QFP 32PIN 44PIN (UNIT. mm) (UNIT' mm) 15%02 22;t02 0.1-0.3 In"" mark CLUlter. Index mark CLUlter) 60PIN (UNIT mm) 15 USEFUL INFORMATION BUILT-IN ROM VOICE SYNTHESIS LSI DEVELOPMENT FLOWCHARTS (MSM,5248, MSM6243, and MSM621 2) User Oki Note 1. Record the source sound on an open-reel tape deck. Recording assistance and studio/announcer can also be arranged where required. Note 2. The voice analysis flowchart is divided into two paths as Analyze the data by analyzer indicated. and input the analyzed Where analysis is to be ADPCM data into EPROM performed by the user, suitable ADPCM data can be readily gene- rated by analyzer. Fig. 3 16 USER ANALYSIS SUPPORT TOOLS • OSA·1 (OKI Speech Analyzer) OSA-1 enables user to make a straight/compressed ADPCM data for MSM6243 and MSM6212 instantanuously by inputting the voice from the line input via microphone or tape deck player. OSA-1 also can output the analyzed ADPCM data. The analyzed data can be stored into the EPROM by connecting OSA-1 via RS232C interface. The OSA-1 enables the user himself to change the degree of compression voice analysis purposes, thereby enabling sounds preferred by the user to be generated. Furthermore, if EPROMs generated with the OSA-1 are used together with a simulator (described later) the quality of the sound when the LSI is formed can be evaluated. OSA-1 is available to users on a loan basis. Tape deck EPROM writer (Compressed RS232C ADPCM data OSA -1 input EPROM '--:>''----r-----' generation) rr1 (Sound quality L1-J evaluation) MSM6243/ MSM6212 simulator Fig.4 Voice analysis and evaluation block diagram where OSA-1 is used 17 • Speech Analyzer The speech analyzer set using MSM5218RS is used to make an ADPCM data on real-time basis by inputting voice from microphone or tape deck player etc. Analyzed data is stored in a built-in RAM, and can be written into an EPROM by a built-in EPROM writer. This EPROM can be used as the voice simulator's data or as ROM data for MSM5248 etc. For further details, please contact Nihon Denso Kogyo Co., Ltd. 3-14-19 Shibaura, Minato-ku, Tokyo, Japan TEL. (03) 452-2351 • MSM5248 Simulator The MSM5248 simulator has the same functions as the MSM5248. When the EPROM, in which the analyzed data is stored, is mounted on this simulator, this simulator can synthesize the same quality voice data as that of MSM5248. • MSM6243 Simulator, MSM6212 Simulator When the EPROM, in which the analyzed data by using OSA-1 is stored, is mounted on the simulator these simulators can synthesize the same quality voice data as that of MSM6243, MSM6212 respectively. 18 DATA SHEET---------. OKI semiconductor MSM5205 ADPCM SPEECH SYNTHESIS IC GENERAL DESCRIPTION The MSM5205 is a speech synthesis integrated circuit which accepts Adaptive Differential Pulse Code Modulation (ADPCM) data. The circuit consists of synthesis stage which expands the 3- or 4-bit ADPCM data to 12-bit Pulse Code Modulation (PCM) data and a D/A stage which reproduces analog signals from the PCM data. The MSM5205 is fabricated using Oki's advanced CMOS process which enables low power consump- tion. The single power supply requirement and its availability in 18-pin molded DIP allow the MSM5205 to be ideally suited for various applications. FEATURES • 3 or 4 bit ADPCM system • Single +5V supply • 12 to 32 kb/sec with INT VCK • Wide operating temperature • On-chip 10-bit D/ A converter (Ta = -30°C to +70° C) • Low power consumption (10 mW typical) • 18-pin molded DIP FUNCTIONAL BLOCK DIAGRAM Vee 0-- Vss 0 - ~~ ,---------------------,I D -t 4 bit 4 -{) t+- Reset 2 I Input ADPCM synthesis stage 1 D, ~ register - --0 1 48/38 ~~ I 1 12 1 XT 1 1 XTI I D I ;..;1 1 - - I Timing 12 bit 10 bit 1 Circuit shift 10 5, ~IO---~ DA I-DA OUT register S.-tlo---~ 1 I 1 VCK -l:O-----I I L..-_---' I L_ _ _ _ _ _ _ _ _ _ _C2.- _________ J 1 21 PIN CONFIGURATION 18 Vee XT XT RESET VCK T2 T, NC 10 DA OUT ABSOLUTE MAXIMUM RATINGS Parameter Symbol Conditions Ratings Unit Power supply voltage Voo Ta = 25° C -0.3 to +7.0 V Input voltae V1N Ta = 25°C -0.3 to Voo V Power dissipation Po Ta = 25°C 200 max mW Storage temperature Tstg - -55 to +150 °C Note: Stresses above those listed under ABSOLUTE MAXIMUM RATINGS may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect cl€vice raliability. OPERATING CONDITIONS Parameter Symbol Conditions Ratings Unit Power supply voltage Voo - +3 to +6 V Operating temperature Top - -30 to +70 °C 22 D.C'!A.C. CHARACTERISTICS (VDD = 5V±5%; Ta = -30°C to +70°C, unless otherwise noted) Parameter Symbol Conditions Min. Typ. Max. Unit Input High Voltage VIH All inputs except T" T2 4.2 - VDD+·3 V Input Low Voltage V IL All inputs except T" T2 V ss-·3 - 0.8 V Input High Current IIH V IN = VDD - - 1 JlA Input Low Current IlL V IN = OV - - -1 JlA Output High Current IOH VCK pin: Vo = 4.2V -50 - - JlA Output High Current IOL VCK pin: Vo = 0.4V +50 - - JlA Oscillator Frequency fosc Specified Oscillator - 384 768 kHz Operating Current IDD fosc = 384 kHz - 2 4 mA V DD = 5V D/A Accuracy VE Full Scale; VDD = 5V - ±4 - LSB (Internal 10-bit D/A) DAoUT V OR - 100 - KO Output Impedance PIN DESCRIPTION Pin Name Terminal Number 1/0 2 These inputs select the sampling frequency according to Figure 1. 4B/3B 3 o Specifies whether 3-bit or 4-bit ADPCM data is to be processed. 4 5 6 7 ADPCM data inputs. For 3-bit ADPCM data, Do input is not used and shduld be connected to ground. Vss 9 Ground (0 V) DAouT 10 o Output for synthesized analog signal. Peak-to-peak swing is proportional to Voo. Typical connection scheme is shown Figure 2. 23 PIN DESCRIPTION (continued) 12 13 IC test pins used at the factory for testing purposes only. During normal operations, Tl is grounded and T2 is left open. Pin Name Terminal Number 1/0 VCK 14 o This pin outputs a signal whose frequency is equal to the sampling frequency selected by the S1, S2 inputs. See note *1. RESET 15 An active high input which initializes the internal circuitry. Internally, the reset pulse is synchronized with the VCK signal. To be effective, it must be true for at least twice VCK time. XT 16 1/0 XT 17 1/0 Oscillator input and output for a 384 kHz crystal or ceramic resonator (Figure 3). 'Voo 18 Power supply pin (Typical + 5 V) S1 S2 Sampling Frequency L L 4 kHz (384 kHz/96) L H 6 kHz (384 kHz/64) L 8 kHz (384 kHz/48) Note: "1 The 384 kHz oscillator must H be used whether 4 kHz, H H Prohibited See Note *1 6 kHz, 8 kHz. Figure 1 Functional table AMP Speaker DAOUT --~~O ~I LPF H>1 Cut off frequency fc of LPF should be related to the selected sampling frequency f sample by, fc = f sample/2 x 0.85 Sound quality is strongly dependent on the sharpness of thE' low pass filter. *If the 5205 is sent a stream of ADPCM data that causes greater than full scale output, the D/A output will wrap around: +5 0.0 +5. Figure 2 24 XT(16)IN X-384 KHz {MUrata Corporation CSB 3840 Or as required to C, -220pF ( match crystal or C2-220PF} ceramic resonator load specifications. XT and X1(Osciliator connector pins) Figure 3 TIME CHART I..!2-J :I EXTERNAL RESET !OVER TWICE AS TO.!-!--...;..4_.-_-i--...;.-illl-------1 I- "I [IC INTERNALI _ _ _ _ _ _ _ _..... RESET TIMING L...-+-...;.......-4_I-_....._~III--------_! 00-0, INPUT TIMING I I I I g0-0, c INTERNAL] _____________ i t_ _ I t ....j.,~ t t t ~IL----L--~I!~I-~---~-----L-~-- t DATA CAPTURE TIMING -..j j..- I I 15.6psec. I~~ oAOUT ---------------~I~~··· -..jj;: ... 5.2lAsec. Figure 4 DISTINCTION BETWEEN MSM 5218 AND MSM5205 Both Synthesis stages (MSM5218 and MSM5205) work with the same method. However, with the excep- tion that MSM5218 is equipped with an overflow protection. In other words, when all 12 PCM bits become '1' any further exceeding analog input would cause a data overflow which is catched and re-routed as the MSB in case of MSM5218. MSIjII5205 returns to 'all bits zero' when a data overflow sets in. Therefore, the OA output of M~M5205 is distorted badly. When MSM5218 is being used to generate AOPCM data for playback on MSM5205, the peak to peak input lel1el to the A to 0 converter should be limited to 80% of the converters maximum input range. The use of an automatic gain control (AGC) amplifier or a hard limiter is recommended. 25 TYPICAL APPLICATION MSM5~5 to Centronics Interface Circuits (fSAMPLE =8kHz) BUSY STROBE RESET lOOK lOOk 18 14 15 D. Voo VCR RES D, 5 D, 3 7 D, D, 1 12 6 D, DAOUT AUDIO MSM5205RS LPF SPEAKER D. 6 4019 11 5 D, D, 4 10 400 2 D, 15 Vss a ':" Voo Figure 5 MSM5205 to Centronics Timing Diagram RESET~~ ___________________________________________ RES ~"'.---MIN 250psec--_~I'---------------- DATA _ _ _ _ _ _ _ _ _I~___________I~~F~IR~S~T~B~Y~T~E~_ __ STROBE ____~---------J I \~ ___..J'-- BUSy ____________________ --JJ Figure 6 26 OKI 5eft1iconductor MSM5218 ADPCM SPEECH ANALYSIS/SYNTHESIS IC GENERAL DESCRIPTION The MSM5218 is a complete speech analysis/synthesis LSI featuring the Adaptive Differential Pulse Code Modulation (ADPCM) method of data compression. The MSM5218 contains an analysis stage where serial PCM data is compressed to 3- or 4-bit parallel ADPCM data. In addition, a synthesis stage synthesizes PCM data from ADPCM data. This PCM data can be output directly or routed to the internal 10-bit DAC for analog signal output. In addition to simplifying speech analysis and simulation, this circuit enables users to develop their own speech analysis and synthesis systems. FEATURES • One-chip speech analyzer/synthesizer • Low power consumption CMOS process (15 • 3- or 4-bit ADPCM system mW typical) • ADPCM data compatible with Oki's • Built-in 10-bit 0/ A converted for analog synthesis LSI MSM5205RS output • Single power supply • Handshaking signals provided for • Variable sampling frequency (4 kHz, 6 kHz, synchronous operation with an external AID 8 kHz) converter. • 24 pin plastic DIP, 32 pin plastic fiat. FUNCTIONAL BLOCK DIAGRAM Voo 0---- Vss 0---- BIN/TOC ------------------------, t - - -____+<.l D3 t-----1t---+___+<""l D2 ADPCM analysis stage t----1>-1-+___+<~ D1 HH-I-+---<:lDo ---d 4B/38 ADSI....,.-_ _ -+--Q Anal I syn SCaN l . r - - - - - , I 10 bit I DAOUT DAC XT I APCM synthesis I _ stage ~MS8/S0 ~-.:L..., I 12 bit I Shift VCK I Rese1 p .- L _______________ _ _.f. __~ Register I SOCK T1 T2 DAS 27 PIN CONFIGURATION (Top View) 24 Lead Plastic DIP (Top View) 32 Lead Plastic Flat Package ABSOLUTE MAXIMUM RATINGS Parameter Symbol Conditions Ratings Unit Power supply voltage V DD Ta = 25°C -0.3 to +7.0 V Input voltage V rN Ta = 25°C -0.3 to V DD V Power dissipation PD Ta = 25°C 200 max mW Storage temperature Tstg - -55 to +150 °C Note: Stresses above those listed under ABSOLUTE MAXIMUM RATINGS may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may after device reliability. OPERATING CONDITIONS Parameter Symbol Conditions Ratings Unit· Power supply voltage V DD - +3 to +6 V Operating temperature Top - -30 to +70 °C 28 D.CJ A.C. CHARACTERISTICS (V oo =5V±5%, Ta= -30 o e to + 70 o e, unless otherwise noted) Parameter Symbol Conditions Min. Typ. Max. Unit Input High Voltage V IH All input except 4.2 - - V T 1 , T2 Input Low Voltage VIL All inputs except - - 0.8 V T 1 , T2 Input High Current(1) IIH VIN = Voo - - 1 JiA Input Low Current IlL VIN =OV - - -1 JiA Output High Current IOH SCON, VCK, SOCK, -50 - - JiA MSBJSO, 00-03 Vo = 4.2V Output Low Current IOL SCON~CK SOCK, 50 - - JiA MSBJ ,00 - 03 Vo = OAV Oscillator Frequency fosc Specified Oscillator - 384 768 kHz Operating Current 100 fVCK = 8 kHz - 3 6 mA Operating Current 100 fVCK = 16 kHz - 6 12 mA DA. OUT Output Impedance VOR 100 - kO DJ A Accuracy Ve Full Scale - ±4 - LSB (Internal 10-bit OJ A) Voo = +5V SICK Clock Frequency f SICK - - 500 kHz Input High current (2) IIH2 VIN = Voo Note 1 20 - 400 JiA Note1: Applicable for Reset 29 PIN DESCRIPTION Terminal Number Pin Name I/O 24 DIP 32 FLT VCK 1 1 0 This pin outputs a signal whose frequency is equal to the sampling frequency selected by S1, S2 inputs. Do 2 2 I/O D1 3 3 I/O D2 4 5 I/O D3 5 6 I/O Data I/O port for the ADPCM data. For 3-bit ADPCM data, Do input is not used. ANAISYN 6 8 I/O Analyze/synthesize function selector. Controls data I/O port direction. When high, data I/O are outputs and simultaneous analysis and synthesis occur. When low, data I/O are inputs and no analysis occurs. 4B/3B 7 9 o Specifies whether 3-bit or 4-bit ADPCM data is to be used. High = 4-bit. 8 10 9 11 These inputs select the sampling frequency according to figure 1. SICK 10 12 Clock input for clocking in serial PCM data from an external ADCinto the internal 12-bit shift resister. ADSI 11 14 Serial PCM data input. VSS 12 16 Ground (OV) SCON 13 17 0 Output which signals the start of conversion. SOCK 14 19 0 When serial PCM data output mode is selected (DAS = H), this pin provides a 192 kHz signal which is synchronized with the output of the serial PCM data through the MSB/SO pin. Each bit of the 12-bit PCM data will be valid before the positive edge of this 192 kHz signal. DAS 15 20 o Selector for analog signal output (DAS =L), or serial PCM data output (DAS =H). 30 Terminal Number Pin Name 1/0 24 DPI 32 FLT T1 17 21 T2 16 22 Ie test pins used at factory for testing purposes only. During normal operation, T1 is grounded and T2 is left open. DAOUT 18 24 o Analog signal output pin. MSB/SO 19 25 o MSB/serial data output pin - MSB of the data in the internal10-bit DAC will appear at this pin if analog signal output mode (DAS =L) is selected. When serial PCM data output mode is selected (DAS =H), seri- al PCM data can be clocked out of this pin. BINITOC 20 27 Specifies whether the input serial PCM data is in binary or 2's complement form. RESET 21 28 An active high input which initializes the MSM5218RS internal circuitry. To be effective, must be held true for at least one VCK time. XT 22 29 XT 23 31 Oscillator inputs for a 384 kHz crystal or ceramic resonator (Figure 2). VDD 24 32 Power supply pin. (typical + 5V) 31 S1 S2 Sampling Frequency Note: The 384 kHz oscillator must be used whether 4 kHz, 6 kHz, 8 kHz. L L 4 kHz (384 kHzl96) With 384 kHz oscillator. Other oscillator L H ,6 kHz (384 kHzl64) frequencies are possible and will proportionately modity the sample rate. H L 8 kHz (384 kHzl48) H H Prohibited Figure 1 X-384 KHz Murata Corporation CSB 384P C,-220pF } Or as required to C2-220pF match crystal or ceramic resonator load specifications. Xl and XT (Oscillator connector pins) Figure 2 32 ANALYSIS WITH SIMULTANEOUS SYNTHESIS (fSAMPLE = 8kHz) I- 125IJsec--+<~1 VCK .J I r - I- - - : "_ _ -1 : 7.8IJsec(3x 1/384kHz) I I RESET!1 Latch timing I note 1 + :I tI I Internal reset ""1lL_no_te_1_ _ _ _ _ t--______~:'___________ I 13iJSec(5x 1/384kHz) I SCONilJ I ~ u u I 111111111111 note 2 111111111111 111111111111 m SICK I I I AOSI Valid PCM, ~ Valid PCM, ~ Valid PCM c=x= 3 I !--57 3iJSec..j (22x1/384kHz) : (AOPCJ'~;T~) \\\\\\\\\\\\\\\\\\\\\\\\\SX 0, XI...___O';""_ _ r-: 13lJsec(5 x 1/384kHz) (g:so=u~) t"T\\""\\~\\M"\'\""I\\~\"r"'I\\~\"'t""O\\~\"'t""O\\i"T\~\\\'I:\~\'r:\\~\"'t""O\\i"T\'\'\\\'I:\~\'r:'3~I\X 0, I SOCK -----------------~~nnnnnnnnnnn~nn (OAS = H) I;:::jJUUUUUUUUUUU UUL iJSec 192 kHz Note 1: The state of the RESET input is strobed into the internal reset latch by the reset latch timing pulse. Analysis begins on the H to L transition of internal reset Note 2: Up to 12 bits of PCM data may be strobed into the device bl SICK. If more than 12 SICK pulses occur in a given VCK cycle, only the last 12 are regarded as valid. The cycle of SICK pulses must be completed before the next SCON- pulse. PCMn: nth input PCM data (12 bits) SYNTHESIS ONLY (fSAMPLE = 8kHz) VCK - ' 17.8iJSec(3x1/384kHz) I RESET 11 :t Internal Reset -n Latch timing I I 49.5iJSec (19 x/384kHz) : I I I On Incorporate I"' .1 I timing I ' I On ~ I 0, ¥1_------.....X,..--------."..-- 0, x\..__ 03 I +l '- (O~~o=U~ \\\\\\\\\\\\\\\\\\\\X~====O=,=====X\..__. =;O,:. . . __ x== On: nth AOPCM data. Qn: Analog output corresponding to input nth AOPCM data. Figure 3 33 BLOCK DIAGRAM - ANALYZER _ _ +- Data output v ROM or EPROM Cutoff frequency fcof LPF should be related to the selected sampling frequency f sample by fc = 085 x fsample 2 Figure 4 BLOCK DIAGRAM - SYNTHESIZER Figure 5 DISTINCTION BETWEEN MSM5218 AND MSM5205 Both Synthesis stages (MSM5218 and MSM5205) work with the same method. However, with the excep- tion that MSM5218 is equipped with an overflow protection. In other words, when all 12 PCM bits become '1' any further exceeding analog input would cause a data overflow which is catched and re-routed as the MSB in case of MSM5218. MSM5205 returns to 'all bits zero' when a data overflow sets in. Therefore. the DA output of MSM5205 is distorted badly. When MSM5218 is being used to generate ADPCM data for playback on MSM5205, the peak to peak input level to the A to 0 converter should be limited to 80% of the converters maximum input range. The use of an automatic gain control (AGC) amplifier or a hard limiter is recommended. 34 >- Z >- IJ ~ ~4 ~;o~ ~;- II 1CU~~E:rfTREQ I: ---=~7~(S2) r I ~ 2 10 VA VOD087 ~~ND 6 ~~ 9 2 0 ",,- 7Lo,/6 :"'"' ' en ANA SYN -< N m ::D t~ AGND ~ -< 5204ARS 2 17 CS MSM 6 5 z-I ~-----------'-'-ICLKIN 1 4 AUDIO ~_ _ _ _ <{ ~ < ~ .:£ A'6 A4 A'7 0 Aa A2 10 A, 11 Ao 12 Voo Ia 07 14 06 15 05 16 @) 04 17 Oa en en I- en l- e 0 en 0 II: II: 3: () X I~ en en w 0 Ci > w II: PIN DESCRIPTION Pin Symbol Pin No. 110 Function 10 37 1/0 h 38 110 Data bus and condition output 12 39 110 These terminals are inputs of phrase 13 40 1/0 specification. Maximum number of phrases is 127. 14 41 I Also, 10 -13 terminals are outputs of Is 42 I operating state, busy state, for 1 - 4 channel. Is 43 I 17 44 I WR 3 I Writing input Write the data on the data bus of 10 -17. The data is written by the setting-up of WR. - RD 2 I Reading out input Output busy state of 1 - 4 channel on the data bus of 10-13. "L" level or "H" level is output while RD is "L". When it becomes "H", busy state is output. 37 PIN DESCRIPTION (continued) Pin Symbol Pin No. I/O Function CS 4 I Chip selection input Input "L" level either when WR signal is input or when RD signal is input. RESET 8 I Reset input Reset condition is available by inputting "L" level. All functions are suspended during reset. Ao 18 I Address output S A17 S S 35 I These terminals are to addresses the external ROM in which original voice data is stored. Do 9 I Input of original voice data S 07 S S 16 I Input the data from external ROM which stores original voice data., SS 7 I Sampling input Selecting sampling frequency. When oscillation frequency is 1.18 MHz or 4.13 MHz, following choices are available by inputting "H" level or "L" level into SS. SS="H" SS="L" Oscillation frequency 1.18 MHz 8 kHz 6.4 kHz Oscillation frequency 4.13 MHz 32 kHz 25.6 kHz DAo 36 0 Voice synthesis output Voice synthesized analog signal is output from this terminal. XT 5 I Crystal oscillator connector terminal. XT 6 0 Same as above VDD 17 I Power supply terminal VSS 1 I Ground 38 FUNCTION EXPLANATION 1. Phrase Specification Phrases are specified and read into the 2 byte data which is made up of 10 - 17 data bus. The phrases specification data are latched when WR goes high while CS keeps low (L). Format of phrase specification input is as follows. 17 Is J 15 1 I 14 13 I 12 J 11 I 10 1 Byte 1 Phrase specification data 2 Byte Channel specification I Reduction specification As shown in the above chart, 17 of the first 1 byte data is 1. 10 - Is of the first 1 byte data specifies the phrase. Phrase specification data has a selection of 127 phrases which corresponds to 0000001 -1111111. The phrase specification data is equivalent to A3 - A9 address outputs, and specify both start and stop address which are stored in the external out ROM. CORRESPONDENSE BETWEEN PHRASE SPECIFICATION DATA AND ROM ADDRESS Phrase specification - Is 15 14 13 12 11 10 - - - data External ROM A17-A10 A9 As A7 As A5 A4 A3 A2 A1 Ao address Specification Not Valid 0-0 0 0 0 0 0 0 0 0 0 0 Phrase 1 0-0 0 0 0 0 0 0 1 0 0 0 Phrase 2 0-0 0 0 0 0 0 1 0 0 0 0 Phrase 3 0-0 0 0 0 0 0 1 1 0 0 0 Phrase 127 0- 1 1 1 1 1 1 1 0 0 0 • Phrases cannot be specified with all Os. The second byte of data specifies the synthesis operation channel as well as channel specific reduc- tion of playback synthesis sound. As to the format of channel specification, please refer to the follow- ing chart for channel specification format. CHANNEL SPECIFICATION Channel 17 Is 15 14 o o o 2 o o o 3 o o o 4 o o o It is impossible to specify multiple channels at the same time. For example, it is impossible to specify channel 1 and channel 3 simultaneously. 39 REDUCTION SPECIFICATION All 0 is considered as 0 dB, the analyzed sound itself. The reduction is made through 8 levels from about - 3 dB to - 24 dB with the steps of about - 3 dB. As to the format for reduction, please refer to the following chart. REDUCTION SPECIFICATION Reduction rate 13 12 11 10 o dB 0 0 0 0 - 3.2 dB 0 0 0 1 - 6.0 dB 0 0 1 0 - 9.2 dB 0 0 1 1 -12.0 dB 0 1 0 0 -14.5 dB 0 1 0 1 -18.0 dB 0 1 1 0 -20.5 dB 0 1 1 1 -24.0 dB 1 0 0 0 2. Channel Voice Synthesis Suspension Voice synthesis operation of any channel can be suspended. Its data consists of 1 byte of data. To suspend a channel, make 17 = O. And 13 - Is represent the channel which should be suspended. Suspended channel 17 Is 15 14 13 12 11 10 0 0 0 0 X X X 2 0 0 0 0 X X X 3 0 0 0 0 X- X X 4 0 0 0 0 X X X Channel suspension occurs even if multiple channels are specified. For example, if 13 - Is are all 1, channels 1 - 4 are suspended simultaneously. 40 3.Data ROM 1. ADDRESS DATA This specifies start and stop address of AOPCM sound source data. One sound address data con- sists of 8 bytes. The first 3 bytes show start address while the last 3 bytes show stop address. The other 2 bytes are empty. By specifying the first address in which the start address is stored, the sound source which should be synthesized is selected. Address 0 SA1 SA2 2 SA3 3 EA1 4 EA2 5 EA3 6 EMPTY 7 EMPTY Start address (SA1 - SA3) and stop addresses (EA1 - EA3) are stored according to the chart shown below. Os 05 04 03 02 01 Do SA1, EA1 0 0 0 0 0 0 A17 A1S SA2, EA2 A15 A14 A13 A12 An A10 As As SA3, EA3 A7 As A5 A4 A3 A2 A1 Ao 2. ADPCM SOUND SOURCE DATA AOPCM sound source data consists of 1 sample for every 4 bits. So, 1 byte stores data of 2 samples. Data arrangement proceeds from higher rank bits (04 - 07) to lower rank bits (Do - 03). The construction of sound source data should always be ended with lower rank bit. So, construct it with even number of samples. 07 Os 05 04 03 02 01 Do Start address SING MSB 2SB LSB SING MSB 2SB LSB .... - - End address - v ====== -----y----. Final data Sound source data is compatible with the data which is analyzed by MSM5218 or MSM6258. In addition, - i "' the data which is analyzed by analyzer is usable, too. 41 3. STRUCTURE OF SOUND SOURCE DATA ROM Following chart shows the memory map of the sound source data ROM. OOOOOh Empty 0OOO8h Address data OOOOOh 0OO10h Address data section ( 003FFh (maximum address data) ADPCM ADPCM ADPCM sound data data source data section 3FFFFh ( -- ( 3FFFFh (maximum ROM) When the maximum 127 phrases are selected in address data section, the data is written up to ROM address 003FFh. When 1 phrase is selected, address data is written from ROM address 00008h to OOOOFh, and the rest is used as the ADPCM data section. 42 FUNCTIONAL DESCRIPTION 1. Phrase Specifying Input This procedure is to input phrase specifying data onto the data bus input 10 - 17. The data is latched inside when WR goes "L" to "H" while CS remains "L". Voice synthesis operation does not start till the second byte is fully latched. XT,xr-{ \'-------- RESET-----,I cs \,--_r- WR 10-17 (Phrase +-__-'-lJ.J.J.1JI.J1JJ.u.w.1JJ '-_ _ _ speclflcatlon) _ _ _ _ _ --.J DAo I-----------No sound----------l Phrase specifying input is from channel 1 to channel 4 continuously. '1 An interval of 15 Tcyc (max.) is needed between phrases. . 43 EX) r--1Ch~ ;---2ch~ CS - - - - - - - , ,------ WR 10-17 1 byte data 2 byte data 1 byte data 2 byte data • 2 Oscilliation frequency = 1.18 MHz SS = "L" Voice synthesis operation can be started from any channel, 1 to 4. The arrangement of each channel is of no concern. 2. Reduction of Synthesized Sound This procedure is made by the second byte of phrase specifying data. Considering a" 0 data of 10 - 13 as 0 dB, synthesized sound is reduced between approx. - 3 dB and - 24 dB with the steps of - 3 dB. When reduction rate is 0 dB ------11/2vDD-v\/VVVW l·~ '00" When reduction rate is - 24 dB -'~1n-VD-D--------~~ I Max. 1116 VDDP,P, 44 3. Channel Voice Synthesis Suspension This is accomplished by inputting synthesis suspension data onto data bus input 13 - 17. The data is latched inside when WR goes from "L" to "H" while CS remains active (L). Since syn- thesis suspension data is 1 byte data, synthesis operation is suspended right after WR is input. Multiple channels can be specified. Therefore it is possible to make suspended channels 1 - 4 simultaneously. C5 --------~\~_ _ _ _ _ _~/ WR - - - - - - - - - - - - - - - - - - - , Approx 156"5 10-17 ------------------< VOIce syntheSIS suspension data DAo • OSCillation frequency IS 1 18 Mhz 55 = "L" 4. Reading-out of Busy State While CS is "L" and RD is "L", each operation state, busy state of channels 1 - 4 is output on 10 - 13. "H" is output during the operation. / 10-13 ./ "- I " ./ i Busy output of each channel "H" or "L" level 45 s. Output of Voice Synthesized -Sound MSM6295 has a 12 bit A class (voltage type) OA converter on chip. So, analog signal is availa- ble from OAo terminal. OAo turns approx. 112 VOO (when no sound is output) right after power supply is on. This termi- nal outputs the amplitude of max. VOOP.p. To output sound connects LPF and AMP to OAo terminal. OAo APPLICATION CIRCUIT Interface with Mlcrocontroller SS VOO 10-17 Ao-A14 Ri5 A'5-A17 WR 256K 00-07 Microconlroller CS M6295 ROM RESET XT XT OAo n) 46 OKI semiconductor MSM5248 48K BIT ROM ADPCM VOICE SYNTHESIZER GENERAL DESCRIPTION The MSM5248 is an ADPCM voice synthesizer LSI using the CMOS technology process. Its internal circuit consists of the voice synthesis stage, the ROM which stores the speech data, 10-bit D/A converter and the control circuit. It can be used in the variety of systems by connecting with the speaker via the simple interface. The sampling frequency, etc. can be optionally selected by the user. FEATURES • COMS single chip • Maximum length of speech: 3 sec • 48K bit ROM for the user's program (Sampling frequency: 5.46 kHz) • Single power supply: 3 V • Built-in 10-bit D/A converter • Low power consumption: 0.2 rnA (typical) • 32.768 kHz crystal oscillation • Maximum number of words: 7 words • Chip form, 18-pin plastic DIP or 24-pin flat package available BLOCK DIAGRAM .---_ _--1>--_ _ _ oJ SD, VDD VSS ~--_+__--..Jo SD1 Ao I ~ r Address Select 0-_---+1-__..---1 3·bIt r-r-l ROM 8 x 28 bit I SDo A2 LOAD ~.: .--t.:=t 14 END Stage Address ADPCM Address Detec- /" SyntheSizer Counter tor ~ 1--.- 12 14 Test Test ()....... CIr· CUlt 1---+ H 12-bIt Latch Speech Data ROM MSB 9 214 x 3 ~ 48K bit - MSB ~ MSB t C SPG) ~1 XT 10·blt DAC Tlmtng C.Jntrolier spG XT 1 AC 47 PAD LAYOUT PAD LOCATION Position Pad No. Symbol X y 1 TEST -2445 -1197 2 SDo -2445 -1377 3 SD1 -2445 -1585 4 SD2 -2265 -1585 x 5 AC 893 -1585 6 MSB 2143 -1585 7 MSB 2445 -1289 8 SP <±> 2445 -987 9 VSS 2445 -511 10 SP8 2445 221 11 VREF 2445 567 12 XT 2445 1585 13 XT 2265 1585 14 LOAD 789 1585 15 Ao -2265 1585 16 A1 -2445 1585 17 A2 -2445 1317 Note: • Chip size: 5.2 mm x 3.48 mm 18 VDD -2445 1137 • Pad size: 110 IJm x 110 IJm min PIN CONFIGURATION (Top View) 18 Lead Plastic DIP (Top View) 24 Lead Plastic Flat Package Test VOO SOo A2 S01 A1 S02 Ao NC NC NC NC AC LOAD NC NC MSB XT MSB XT 11 VREF Spe VREF VSS SpG SP8 48 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings Table 1 (VSS = 0 V) Parameter Symbol Conditions Limit Unit Supply Voltage VOO -0.3 to +3.6 V Ta = 25°C Input Voltage VI -0.3 to VOO V Power Oissipation Po 200 max mW Storage Temperature Tstg - -55 to +150 °C Operating Range Table 2 Parameter Symbol Conditions Limit Unit Supply Voltage VOO - +2.4 to +3.6 V Operating Temperature Top - -10 to +60 °C External Reference Resistor RREF Applicable for VREF Min 100 kQ DC Characteristics Table 3 (VOO = 3.1 V, VSS = 0 V, Ta = 25°C) Parameter Symbol Conditions Min Typ Max Unit "H" Input Voltage VIH - 2.5 - - V "L" Input Voltage VIL - -, - 0.5 V "H" Input Voltage *1 IIH VIH = 3.1 V - - 1 IlA "L" Input Voltage IlL VIL = 0 V - - -1 IlA "H" Input Voltage *2 IIH1 VIH1 = 3.1 V 7 - 200 IlA "H" Output Voltage *3 IOH VOH = 2.5 V -0.1 - - mA "L" Output Voltage *3 IOL VOL = 0.5.V 0.1 - - mA Power Consumption (1) 1001 Active - 0.2 1.0 mA Standby Power Consumption (2) 1002 (no oscillation) - - 1 IlA Power Consumption (3) 1003 Standby (oscillation) - 10 20 IlA OA Synk Current *4 ISYNK Note 1 260 400 600 IlA 0.75 1.25 OA Accuracy *4 IE Note 2 1 IlA x1 x1 Notes: *1 Applicable for Ao, A1, A2, when pull down resistor is not provided. * 2 Applicable for LOAO, AC and Ao, A1 and A2 when pull down resistor is applied. * 3 Applicable for MSB, MSB. e. * 4 Applicable for SP <±> ' SP 49 Table 4 (Value of resistor VREF is 2 MQ) MSB LSB Pin o SP@ o o o o o o o o o SP8 Note 1: Lower 2 bit in output of 12 bit latch is disregarded, and data with 10 bit is input to D/A converter. The characteristics indicates the value of the pin SP @ and SP 8 when the value as shown below is input to D/A converter. Table 5 Actual Measurement Input Data to 1Q-bit D/A Converter Value MSB LSB Pin h = 0 0 0 0 0 0 1 0 0 0 SP@ MSB LSB Pin 10 = 0 0 0 0 0 0 0 1 0 0 SP8 Note 2: 0.75 x 210 < h < 1.25 x 210 This Formula is applied on following condition. AC Characteristics (VDD = +2.4 to +3.6 V, 1a = -10to +60 0 C) Table 6 (Timing Chart) Parameter Symbol Conditions Min Typ Max Unit Oscillator Frequency fosc - 32 32.768 35 kHz AC Input Pulse Width tACW - 10 - - IlS Load Input Pulse Width tLW - 65 - - IlS D/A Output Delay Time tLO f(OSC) - - 305 Ils = 32.768 kHz Full-address Zero Interval tow 2 - - IlS 50 PIN DESCRIPTION Terminal Number Pin Name 1/0 CHIP 18 DIP 24 FLT Ao 15 15 21 I Al 16 16 22 A2 17 17 23 I Address selection input Maximum 7 words or 3 words are determined according to Ao, Al, and A2 H/L combinations -, except that Ao = Al = A2 = "L" is prohibited for users because of the test code for LSI. LSI operation starting method is selected by masking option, too. CD One method is to- apply appointed pulse- to either- Ao, Al or A2. ® The other method is to apply 10ad pulse to LOAD pin after determining Ao, Al or A2. When the voice starting method CD is selected, repeated operation or one time operation is selected by masking option. (See timing chart) Existence of pull-down resistor of Ao, Al and A2 is selected by masking option. Starting method of IC with Ao to A2 pins. Ao Al --------II----'-~ A2----------~I----~~---~I------ VOice output (SPIj). SPG) VOice start of VOice start of the first word _-i-~t""ow the second word Figure 1 IC is activated by setting only one of Al to A2 pins in "H" level. When switching to the voice start of another word, be sure to set full-address "L" interval (tow). The maximum number of words in three in case this starting method is selected. LOAD 14 14 18 Pulse input pin for LSI starting LOAD pin is a pulse input pin for voice start. Load pin is pulled down inside. • When the voice is started by either Ao, Al or A2, LOAD pin should be used as open. • Either repeated operation or one time operation is selected by masking option. (See timing chart) 51 PIN DESCRIPTION (Continued) Terminal Number Pin Name 110 CHIP 18 DIP 24 FLT XT 12 12 15 I XT 13 13 16 I Pins for crystal Either external clock input or crystal oscillation can be selected by masking option. • External clock input XT 32kHZJL.JL Q-C>o J. ~ Open 0- Figure 2 • Crystal oscillation ~,.-------<~ n ~ """H, !lD~~~-----' Crystal Figure 3 AC 5 5 7 All clear input pin All functions of LSI are stopped by input of "H" level voltage to AC pin, and status of LSI turns to stand- by. AC pin is pulled down inside. The built-in P.O.A. (Power on reset) function is deSignated by masking option. 11 11 14 This pin is an input pin for the constant-current control of low impedance D/A converter. The volume of speaker can be controlled by external resistor (variable) whose value is more than 100 kO. More than 100 kO Figure 4 52 PIN DESCRIPTION (Continued) Terminal Number Pin Name 1/0 CHIP 18 DIP 24 FLT SP~ 8 8 11 10 10 13 0 SP8 These are output pins for 10-bit OIA converter (low impedance type). When LSI is at standby, SP e±:> and SP e turn to high impedance. MSB 6 6 9 o MSB 7 7 10 o These are output pins for the most significatiant bit signal and the inverted signal. TEST 1 1 1 I SOo 2 2 2 o S01 3 3 3 o S02 4 4 4 o As test pin is pulled down, this pin should open. SOo, S01, S02 are 3-bit AOPCM data output pins, these pins should be open. VSS 9 9 12 This is a ground input pin. VOO 18 18 24 This is a supply voltage input pin. 53 TIMING CHART REPEATED OPERATION 2 3 4 5 6 7 8 9101112 abc d e f g h I j k j m fosC AC LOAD or ~r--r------r~---+--~I~~----~__________~__ Ao to A2 I. Built-in ROM Address Timing I I I END Address START Address I I Output :----~---------- '''--~~--~t.== I (SP@.SP8) Figure 5 ONE TIME OPERATION 6 7 8 9 1011 12 abcdefghljklmno fosc AC ~L-----~----4-~Hf------~------------ I LOAD or Ao to A2 ! I II I BUiltlnROM Address Timing _ -------~:~, ~~ START Address: ~-------------- END Address Output _____________________ir--ilr----1J---___________________ (SP@.SP8) L--(f Figure 6 54 TYPICAL APPLICATION CIRCUIT VOO VOO RE VREF System SOo SOl S02 O.1~F Test SP8 MSB MSB VSS -=- VOO Tr1: 2SA 1237 (hfe: 250-) Tr2: 2SC3064 (hfe: 500-) Figure 7 55 Combination in MSM5248 and MSM5041 (Melody chip) This circuit is applied to Voice & Melody card and Toy, etc. 22P 32768 kHz Crystal 22 OSCIN R01~1~7_ _ _ _ _ +-4-__ 16 ~ A1 spG 10 spEB 8 C] 100 kO 11 Vref M1 39 A, Ms8 MO, VDD 38 VSS MSB S1 19 MSM5248-01 MO, (18 PIN DIP) Pezo transducer - MSM5041-11 (40 PIN DIP) • c; 0.1 IlF Figure 8 OPTION LIST Table 7 No. Items Selection 1 Package Chip I 18p DIP I 24p FLAT 2 Sampling frequency 8.19 kHz 5.46 kHz OP·1 Pull-down for Ao Yes No OP-2 Pull-down for Al Yes No OP-3 Pull-down for A2 Yes No Anti-chattering when Ao-A2 of starting OP-7 Yes No method is selected. OP-9 Oscillation X'tal External clock OP-10, 11 Starting method of LSI Ao-A2 LOAD OP-12 One time or repeatable One time Repeatable OP-14 Power on reset Yes No 56 ~ ( 8.19 kHZ) 2) 9 (OP-12) -0- « ( Repeatable) ( 5.46 kHZ) Figure 9 Ao G T t(OP-l l A1 1 i(OP-2) 6 RFB (OP-9) XT XT A2 T f(OP-31 Start with SW Input (OP-10,11) ---0---. LOAOGo-~----------------~1L..-_ _- - ' Start with LOAD Input A.C.o- ~ ~T---:-;---j)-­ t VOO I -" (OP-l.j Figure 10 :c Ao, A1, A2 o-----<:r- Anti-chattering --------------~~--.~ (OP-7) 2J Figure 11 57 STANDARD VERSION LIST Selection Type No. Contents Ao A1 A2 MSM5248-01 "Happy Birthday" L H L MSM5248-04 Fanfare Sound H L L "Merry Christmas & a Happy New Year" H L L MSM5248-05 --- "Merry Christmas" L H L OPTION LIST OF STANDARD VERSION MSM5248·01 No. Items Selection 1 Package Chip I 18p DIP I 24p FLAT 2 Sampling frequency 8.19 kHz OP-1 Pull-down for Ao Yes OP-2 Pull-down for A1 No OP-3 Pull-down for A2 No Anti-chattering when Ao-A2 of starting OP-? Yes method is selected. OP-9 Oscillation X'tal OP-10, 11 Starting method of LSI Ao-A2 OP-12 One time or repeatable One time OP-14 Power on reset Yes 58 MSM5248-04 No. Items Selection 1 Package Chip I 18p DIP I 24p FLAT 2 Sampling frequency 8.19 kHz OP-1 Pull-down for Ao No OP-2 PUll-down for A1 Yes OP-3 Pull-down for A2 Yes Anti-chattering when Ao-A2 of starting OP-7 Yes method is selected. OP-9 Oscillation X'tal OP-10, 11 Starting method of LSI LOAD OP-12 One time or repeatable Repeatable OP-14 Power on reset Yes MSM5248-05 No. Items Selection 1 package Chip I 18p DIP I 24p FLAT 2 Sampling frequency 8.19 kHz OP-1 Pull-down for Ao No OP-2 Pull-down for A1 No OP-3 Pull-down for A2 Yes Anti-chattering when Ao-A2 of starting OP-7 Yes method is selected. OP-9 Oscillation X'tal OP-10, 11 Starting method of LSI Ao-A2 OP-12 One time or repeatable One time OP-14 Power on reset Yes 59 OKI semiconductor MSM6243 SPEECH SYNTHESIS LSI WITH 192 KBIT ROM GENERAL DESCRIPTION The Oki MSM6243 is a single-chip, CMOS, speech synthesis LSI for AOPCM systems. It contains 192k bits of speech data ROM storage. This IC has an input interface, a timing generation circuit, and a 10 bit OA converter. Therefore, voice output systems may be constructed easily by connecting the voice output circuit consisting of a simple input circuit, filter, amplifier, and speaker to the chip. FEATURES • CMOS single chip • Oscillator frequency: 30 to 132 kHz (5V • Low power consumption system). • Custom ROM • Chip, 40 pins plastic DIP, 44 pins or 60 pins • Selection of supply voltage: 3V system or 5V plastic flat package. 2 types of plastic flat system. package are provided depending on terminal • AOPCM bit length: 4 bits pin bending or not bending. • Maximum word number: 124 words Terminal pin not bending • Maximum speaking time: 20 seconds MSM6243-XXGS (compressed AOPCM) Terminal pin bending • Selection of class A or class B analogue MSM6243-XXGS-K output is possible. When placing an order, specify the type. • Built-in 10 bit OA converter • Word selection through an internal random number circuit is possible (maximum 32 words). BLOCK DIAGRAM VOD VDO ' Vss tr >------ SD, SD, r- SO, 1 -- ~1 Address Select SDo ROM 124x14 bit J ... 15 t'4 14 bit ,. ADPCM Synthe· sizer Address Counter LOAD I T t'4 ,--- t'2 ~ 12 btt SIP BUSY/NAR c>-- 192 kblt - Latch MSB DATA ROM -~ ~=§ - I 1 10 (214X12 bit) ~:. - 10 bit ---<~ DAU 12 DAC - ---<~ DAL i ~ I SPE XT Control CIrCUIt Xl' VCK AC 11 SLA SLB T" T2 , SIP and S03, SD2 , SO" SOo are test pins. 60 PAD LAYOUT PAD LOCATION Position Pad No. Symbol X Y 1 SLB -2300 -1125 2 VDD' -2300 -1425 3 SLA -2300 -1725 4 MSB -2300 -2000 5 DAU -2300 -2570 6 DAL -2110 -2615 7 SPE -1560 -2615 8 VCK -675 -2625 9 SIP -395 -2625 10 VSS 885 -2625 11 SDo 1075 -2625 12 SD1 1480 -2625 13 SD2 1660 -2625 14 SD3 2060 -2625 y 15 T2 2295 -2325 x 16 T1 2295 -1925 (0.0) 17 LOAD 2295 -1745 18 Ao 2295 -1345 19 A1 2295 440 20 A2 2295 745 Note: • Chip size: 4.91 mm x 5.57 mm 21 A3 2295 1145 • Chip thickness: 350 ± 30 11m 22 A4 2295 1325 23 As 2295 1730 24 As 2295 1910 25 AC 2295 2310 26 BUSY/NAR 2295 2625 27 VDD 1965 2625 28 XT 1650 2625 29 XT 1345 2625 61 PIN CONFIGURATION (Top View) 40 Lead Plastic DIP Vss SIP VCK SPE DAL DAU MSB SLA VOOI SLB NC NC NC A. NC As NC As NC AC NC BUSY/NAR NC Voo NC Xi- NC XT NC Note: This pinout applies to the MSM6243-XXRS. 62 (Top View) 44 Lead Plastic Flat Package T2 MSB 0 SLA VDD SLB A, NC NC NC A4 NC NC A,; NC AC NC cr: Q I!K u 0 0 z 0 0 z 0 z « Q > !K z Q Q Z z Z > ): (f) ::::J co Note 1. This pinout applies to the MSM6243-XXGS and -XXGS-K. Note 2. Since 17 and 39 pin (Voon) is substrate continuity, short-circuits with Voo and Voo' in the outside. 63 (Top View) 60 Load Plastic Flat Package lc: W ...J :;) 0en 0 0 0 Q. >'" () () () () () Q. en en en '" z z z en > z en C'i C'i T2 MSB T, 0 SLA Voo ' SLB NC NC NC NC NC NC A, NC A2 NC ~ NC Ai NC As NC ~ AC a:: «z 0 0 I~ ~ z () () z . 0 () z () z () z () z () z () z () z > ~ :;: en :;) III Note 1. This pinout applies to the MSM6243-XXGS and -XXGS-K. Note 2. Connect pin 23 (Voo") with Voo and Voo' externally. This pin is con'ducted to the substrate. ELECTRICAL CHARACTERISTICS 3V System (Voo = 3.1 V TYP) • Absolute maximum rating (Vss = OV) Parameter Symbol Conditions Ratings Unit Supply Voltage Voo -0.3 - +5.0 V Ta = 25DC Input Voltage VI -0.3 - Voo V Storage Temperature T5tg - -55 - +150 DC • Operating range (Vss = OV) Parameter Symbol Conditions Ratings Unit Supply Voltage Voo - +2.4 - 3.6 V Operating Temperature Top - -10 - +60 DC DAU, DAL Output Level Voo No-load 0- Voo V • DC characteristics (Voo = 3.1V, Vss= OV, Ta = 25DC) Parameter Symbol Conditions Min. Typ. Max. Unit "H" Input Voltage VIH - 2.6 - - V "L" Input Voltage V IL - - - 0.5 V "H" Input Current"1 IIHI V IH = 3.1V - 0.01 0.5 p..A "H" Input Current"2 IIH2 V IH = 3.1V 10 - 150 p..A "L" Input Current IlL VIL = OV - -0.01 -0.5 p..A "H" Output Current IOH VOH = 2.7V -200 - - p..A "L" Output Current IOL VOL = O.4V 200 - - p..A Operating Power Consumption 1001 - - 0.1 0.5 mA Class B output Standby Power 1002 selection and - 0.01 0.5 p..A Consumption oscillation stop. Power Consumption' 3 Standby and class B in the case of oscillation - 4 30 p..A 1003 output selection. No-load and class A DA Output Precision I VE I output selection. - - 100 mV DA Output Impedance VOR - - 50 - kO Notes: *1. This applies to the AC, LOAD and Ao to As pins. *2. This applies to the input pin except AC, LOAD and Ao to As pins. For SLA, and SLB pins, this applies in the case of AC input "H". (In the case of AC input "L", this conforms to Note 1 .) *3. This applies when RFB exists and fose = 32.768 kHz. 65 SV System (Voo = S.OV TYP) • Absolute maximum rating (Vss = OV) Parameter Symbol Conditions Ratings Unit Supply Voltage Voo Ta = 25°C -0.3 ~ +7.0 V Input Voltage VI -0.3 ~ Voo V Storage Temperature T'19 - -55 ~ +150 °C • Operating range (Vss = OV) Parameter Symbol Conditions Ratings Unit Supply Voltage Voo - +4.5 ~ +5.5 V Operating Temperature Top - -30 ~ +70 °C DAU, DAL Output Level Voo No-load o ~ Voo V • DC characteristics (Voo = 3.1V, Vss = OV, Ta = -30~+700) Parameter Symbol Conditions Min. Typ. Max. Unit "H" Input Voltage VIH - 4.2 - - V "L" Input Voltage VIL - - - 0.8 V "H" Input Current'l IIHI VIH = 5.0V - - 1 p.,A "H" Input Current'2 IIH2 VIH = 5.0V 20 - 400 p.,A "L" Input Current IlL VIL = OV - - -1 p.,A "H" Output Current 10H VOH = 4.SV -1 - - mA "L" Output Current IOL VOL = O.4V 1 - - mA Operating Power Consumption IDOl - 0.2 0.7 mA Class B output Standby Power Consumption 1002 selection and - 0.01 10 p.,A oscillation stop. Power Consumption'3 Standby and class B in the case of oscillation 10D3 output selection. - 15 100 p.,A No-load and class A DA Output Precision IVel output selection - - 130 mV DA Output Impedance VOR - - so - kO Notes: *1. This applies to the AC, LOAD and Ao to A6 pins. *2. This applies to the input pin except AC, LOAD and Ao to A6 pins. For the pins of SLA and SLB, this applies in the case of AC input "H". (In the case of AC input "L", this conforms to Note 1 .) *3. This applies when RFB exists and fose = 32.768 kHz. 66 AC CHARACTERISTICS (Voo = +2.4 to +5.5V are common for 3V system and 5V systems. Ta = -30 to +70°C, fose = 32.768 kHz.) Parameter Symbol Conditions Min. Typ. Max. Unit Oscillator fosc1 3V system 30 32.768 35 kHz frequency (1) Oscillator fosc2 5V system 30 32.768 120 kHz frequency (2) Oscillator duty-cycle fduty - 40 50 60 % In the case of LOADinpu(1 tL fsample = 8.19 kHz 1 - 40 ILS pulse width and CPU interface AC input pulse width tW(AC) - 1 - - ILS Sampling frequency (1) fS1 fosc/4 - 8.192 - kHz Sampling frequency (2) f52 fosc/5 - 6.554 - kHz Sampling frequency (3) fS3 fosc/8 - 4.096 - kHz NAR minimum "H" In the case of level width tMN fS1 selection 1 - - ILS Hold time for In the case of LOAD tH fS1 selection 1 - - ILS *1. tL(MAX) in the case qf SW input interface is equal to the speaking time of a specified word. 67 PIN DESCRIPTION Terminal Number Pin Name 1/0 CHIP 40 DIP 44 FLT 60 FLT AC 25 16 11 16 I All clear LSI comes to standby state by "H" input, and SLA and SLB pins are pulled down to "L" level. Since this pin is started by LOAD input, pulse input can be used. In this LSI, since power on clear circuit is not built-in, apply AC pulse when power is turned on. Ao 18 9 4 5 I Al 19 10 5 10 I A2 20 11 6 11 I A3 21 12 7 12 I A4 22 13 8 13 I As 23 14 9 14 I As 24 15 10 15 I Address These pins are used to specify the speaking word code. Speaking word code is latched into inside by the LOAD pulse rise. LOAD 17 8 3 3 Speaking word code is latched into inside by the LOAD pulse rise. When the system is reset by previously applied AC signal, the system reset is cancelled in the case of LOAD pulse rise, and LSI is started. And when NAR output mentioned later is in the "H" level, LOAD signal comes to effective. BUSY/NAR 26 17 12 17 o Next address request BUSY/NAR can be switched in an LSI, and an either of them may be specified on the occasion of order. In the case of NAR use, LOAD input comes to effective with "H" level, and in the case of BUSY use, LOAD input comes to effective with "L" level. XT 29 20 15 20 Crystal This is crystal input pin for internal clock oscillation. This also becomes input pin when an external clock is used. Xi 28 19 14 19 This is crystal input pin for internal clock oscillation. DAU 5 36 34 47 0 DAL 6 37 • 35 48 0 DA upper, DA lower The output of 10 bits DA converter is connected to these pins directly. Since output impedance of these pins are great and LPF is not built in, connect the LPF through a low impedance output buffer outside. In the selection of class A mode, output pin is only DAU. 68 PIN DESCRIPTION (Continued) Terminal Number Pin Name 1/0 CHIP 40 DIP 44 FLT 60 FLT SLA 3 34 32 45 I SLB 1 32 30 43 I Selecter A, selecter B Switchover of DA converter output condition to class A mode or class B mode. SLA SLB Mode Output Pin Open (L) Open (L) Class B x 2 DAU, DAL VDD (H) Open (L) Class B x 1 Same as above Open (L) VDD (H) Class B x 4 Same as above VOD (H) VOO (H) Class A DAU MSB 4 35 33 46 1/0 In the case of class B mode, this pin becomes as follows: • In the case of MSB = "L" output, OAU output is effective. • In the case of MSB = "H" output, DAL output is effective. In the case of class A mode, this pin becomes as follows: • In the case of MSB = "L" output, DAU output value is VDD/2 or more. • In the case of MSB = "H" output, DAU output value becomes VDD/2 or less. In the case of internal circuit test, this pin is used as input pin. SPE 7 38 36 49 1/0 Speaker enable In the case of "H" level output, DA output is effective. In the case of internal circuit test, this pin is used as input pin. VCK • 8 39 38 51 o Voice clock Sampling frequency is output through this pin. SDo 11 2 41 57 I/O SDl 12 3 42 58 1/0 SD2 13 4 43 59 1/0 SD3 14 5 44 60 1/0 These pins are used for internal circuit test. These pins carry out 1/0 of 4 bits ADPCM data. Usually, set them to open. SIP 9 40 38 52 Serial/parallel These pins are used for internal circuit test. Usually, set them to GNO level. Tl 16 7 2 2 T2 15 6 1 1 Test These pins are used for internal circuit test. Usually, set them to GND level 69 TIMING CHART Power On Voo AC NAR _____ J r--:-ff' LSI Start and No Operation (Standby) 1. Start In the case of CPU interface _ _~I~ ~} --!IH~ LOAD ____ ~---JI tL --! tMN ~/r/----------- NAR I=--:: Approx. r---l 1.1 msec -----=j I Irl ,..----------- BUSY ----~I ~1~___________ Approx. SPE -1.0msec-/ DAUor DAL output r-----i~~:r-----~ ____---t-__~Sta~ndb~Y::::J-- , ~. ~===I Silent -Approx. 1.5 msec ---I 1 Approx. 0.4 msec ---- (for 3 samples) First word Second word speaking speaking 2. Transfer to standby in the case of CPU interface _____ ~A~ __ E_N_D_co_de_ _ _ _ _ _ _ _ _ _ _ _ ___ LOAD ___________ ~rl~ _________________ NAR BUSY SPE DAUor DAL output - - - - - - - - - Last w o r d - - - - - - - -... • t;1 =::::.:...:S~ta~n~d~by speaking "- Speaking completed When END code (Ao to As = "L") is accompanied with LOAD, LSI comes to the same state as standby because of AC input. 70 Start of SW input interface and standby 1. Single word speaking Aa-~ ==x LOAD I I '" NoLOAD NAR I I \ BUSY I I SPE 1/ DAU or DAL output Standby .,. Voiced speaking -b / Standby 2. Repetition of word speaking Aa-~ =x I~ ~ / 1/" LOAD -.-J Approx. ~ 1.lmsec. NAR • -j BUSY SPE spe~' ~ ) DAU or DAL Standby output Speaking Standby 1 I--l 2 Approx. 0.4 msec (3 samples) 71 FUNCTIONAL DESCRIPTION Speaking Word Code Specification User can specify word codes set by Ao - Pte and can select either CPU interface or SW input interface. 1. CPU Interface In this case, user specified words are maximum 124 words. For Ao to As, the following 3 codes, "1111111", "0111111", "1011111", are test codes, and the code "0000000" is an END code, therefore, these 4 codes can not be used. The procedure up to the LSI operation start is as follows: Input Ao to As - LOAD pulse apply - latched inside, also LSI operation starts simultaneously. LOAD pulse is effective when NAR output is "H". 2. SW input interface By the reason described in clause 9.1.1. CPU interface, number of words is set to maximum 124 words with combination of Ao to Pte. After the code is set by Ao to As, when "H" level LOAD input is switched by push switch, etc., the specified word starts speaking. (From standby to operation state). When speaking of the specified word is completed, if the LOAD input is set being "H" as it is, repeat speaking of the same word, and if the LOAD input turns to "L", LSI moves to standby state automatically. Therefore, for example, so far the push switch is being pushed as it is, speaking of the same word is repeated. When the push switch is released, the repetition is stopped at the same time of the speaking ends. To make speaking of different words continuously, change the codes of Ao to As before the first word speaking comes to end, and keep the LOAD in "H" state. -.J / LOAD 1--- ------.41---· Start Restart End ~~~--------- ~---Start-------l'1 1""1 End .... Standby Sampling Frequency Specification An user can specify available sampling frequency for each word when ordering. Relation between sampling frequency and oscillator frequency is as follows: In the case of f(osc) = 32.768 kHz Selection 1. 32.768 kHz ·.8.2 kHz 4 32.768 kHz Selection 2. ·.6.55 kHz 5 32.768 kHz Selection 3. ·.4.1 kHz 8 72 Straight ADPCM and Compressed ADPCM 1. Straight ADPCM Features of the straight ADPCM are as follows: 1) ADPCM bit length .....~ .. Fixed in 4 bits. 2) Deletion of silent component is possible. 3) High bit rate, high tone quality. 4) Suitable for a sound effect Bit rate (B'A) example: AMPLE = 8.2 kHz U ADPCM bit length = 4 bits Deleted silent data'=; 1/5 (voice) B·A '=; 8.2x4x4/5 '=; 26.3 kbits/sec 2. Compressed ADPCM Features of the compressed ADPCM are as follows: 1) ADPCM bit length ........ Fixed in 4 bits 2) Deletion of data by repeated detection of speech waveform. 3) Deletion of silent component is possible. 4) Low bit rate 5) Mainly applies to speech. Bit rate example: fSAMPLE = 8.2 kHz ADPCM bit length = 4 bits { Number of average waveform repetition = 3 (deleted data = 2/3) Deleted silent data,=; 1/5 B·A '=; 8.2x4x1/3x4/5 '=; 8.8 kbits/sec Sampling Frequency and Band 1. Simple relation between sampling frequency and band fSAMPLEX1/2 = fBANo(uL) Here, fBANo(uL) means upper limit of the band. fSAMPLE fBAND Characteristics 8.2 kHz DC - 4.1 kHz Clear comprehending almost all tones of voice. 6.55 kHz DC - 3.2 kHz High tone female voice sounds usual. 4.1 kHz DC - 2.0 kHz Both male and female voices sound nasal and unclear. 2. Relation between sampling frequency and LPF (Low Pass Filter) is as follows: fSAMPLEX1/2 = fc (cut-off frequency of ideal filter) Practically, according to the skirt characteristics of filter, fc shall be designed to be lower than the above mentioned equation. That is, the band will be further narrowed according to filter characteristics. As an example, the fc and skirt characteristics of filter used for speech analysis by OKI are shown as follows. fSAMPLE fc Skirt character fBAND J 8.2 kHz 3.4 kHz -48 dB/oct Dc - 3.4 kHz 5.55 kHz 2.7 kHz -48 dB/oct DC - 2.7 kHz 4.1 kHz 1.7 kHz -48 dB/oct DC -1.7 kHz 73 ., .... -.-.--.. ~-- ... ~-~~~---.----- _ ...-.- . ,-- ,..... ... Precautions in Use 1. Relation between LOAD and NAR A LOAD pulse input is effective when NAR output is "H" state, and at the LOAD pulse rise NAR output transfers to "L" state which will be held till the completion of the former word speaking. Therefore, use of NAR output is capable of speaking smoothly of the sentence composed of some words. Example: "Today's" "Weather is" "Fine" "END" Correspond- + + + + ing codes 0100010 0100100 0000100 0000000 by Ao to A6 Ao - A6 0100010 -> 0100100 -> 0000100 -> 0000000 LOAD NAR Speaking (DAoutput) Standby_.+I....- - - - - - - LSI IS bemg----------.II-o.>--standbY started. 2. Internal random number circuit Use of internal random number circuit may be specified on the occasion of order, but the specification prohibits external code input by Ao - A6 and maximum word number is limited to 32 words. 3. Analog output (DAU, DAL) The output of 10 bits DA converter is connected to DAU and DAL pins directly. Since this output impedance is great and LPF is not built-in, it is necessary to connect outside LPF through the low impedance output buffer. Circuit example: MSM6243 ( } - - - - - - - j For output status, the following modes of class A and class B are obtained by 2 pins of SLA and SLB. SLA SLB Mode Output pin Open (L) Open (L) Class Bx2 DAU,DAL Voo (H) Open (L) Class Bx1 Same as above Open (L) Voo (H) Class Bx4 Same as above Voo (H) Voo (H) Class A DAU 74 Voo MSB "1" 3/4Voo Class A DAU 1/2Voo t ----r------ 1/4Voo MSB "0" voo=ov Voo Class Bx1 ( DAU vss MSB "1" (9 bit DAC) voo \ DAL vss MSB "0" (~ MSB "1" Class Bx2 (8 bit DAC) \ '" MSB "0" MSB "1" MSB "0" 75 EXAMPLE OF OUTPUT INTERFACE • In the case of class B use, output interface is connected with MSC1161GS (provided, for only 3V system) voo Voo VCK SPE ~ DAU DAL MSM6243 VCM Vss SLA Voo' SLB Vss Note: Cs are all 0.1 /LF. • Output of class A Voo VCK SPE MSB DAU 0------1 MSM6243 DAL Open Vss SLA voo' SLB Vss 76 USER SPECIFIED PARAMETER No. Item User specification Remarks I I I Flat Pin without I I I (60 pin) bending for GS -( >- I DIP 1 Shipping form Chip I (40 pin) I GS I GS-K Pin bending I I I I I I for GS-K Jf. >-t- I I I I I I Package side view I Supply voltage 3V system I 5V system 2 I (2.4 - 3.6V) I (4.5 - 5.5V) Operational °C _ 3 °C temperature -- I Interface SW input I CPU input 4 I condition interface I interface I 5 BUSYINAR BUSY I NAR I Internal 6 Word code input External I Refer to circuit 1. I random number I I Other than In the case other than 32.768 kHz, 7 Oscillator 32.768 kHz I I 32.768 kHz specify the oscillator frequency I in the range of 30 to 132 kHz. I I I I When oscillator frequency is other Sampling 8.2 kHz 6.55 kHz I 4.1 kHz 8 I than 32.768 kHz, specify dividing frequency (1/4) I (1/5) I (1/8) I I ratio within a parenthesis. I I Exists -> Connect the resonator to XT RFB of internal I and XT. 9 oscillation circuit Exists I Not exists Not exists -> Apply external clock to TX I I Refer to circuit 2. , Specification I of correspond- I I When specified, attach corresponsing ence between I 10 Specify Not specify table with this paper speaking word I I When not specified, OKI decides it. and word code I (Ao to A6 ) I , I In the case of editing, attach an Editing of 11 Editing I No editing example sentence with this paper. speaking words I I Ex. 3 o'clock 10 minutes Note 1. For parameters of No.4, 5, 6, 8, 9, 10, and 11, corresponds with ROM mask. Note 2. When an user creates a voice data, never write the voice data in 256 words x 126 bits (3 kbits) from the top. 77 Circuit 1. The following chart shows simple circuit when the word is specified. LSI Inside Ao ) J: u Ae ~ .is .... Ae Circuit 2. The following charts show the interface examples for XT and XT. 1 RFB inside 78 OKI semiconductor MSM6212 ADPCM 288K ROM VOICE SYNTHESIZER GENERAL DESCRIPTION MSM6212 is a single-chip ADPCM speech synthesizer incorporating 288K bits ROM to store speech data. In addition to ROM and speech synthesizer circuits, MSM6212 contains an input interface, timing generator circuit and a 10-bit DA converter. Therefore it is possible to configurate a speech output sys- tem easily merely by connecting a simple circuit to the speech output consisting of a filter, an amplifier and a speaker. FEATURES • Low power consumption • Class A and Class B analog outputs • On-chip 288K ROM selectable • 2 power supply selectable: 3 V or 5 V • Built-in 10-bit DA converter systems • Oscillator frequency: 32,768 kHz • Maximum No. of syllable words: 124 words • Available in 40 pin plastic DIP, 60 pin plastic • Maximum speaking time: 40 sec flat package, or die form. (compressed ADPCM) BLOCK DIAGRAM T, T2 VDD vss SD2 SD, Ao A, SDo A2 A3 LOAD cs DATA ROM NAR SIP 2'5 x 9 = 288K bit BUSY :m:mtHEE~-? MSB DAU DAL XT XT Timing Controlier ~==~--~~-+~--oSPE L-__ ________________________ ~ J--------t--i-~~VCK AC V - - - - - - - - - ' VDD' SLA SLB T" T2, SIP \ T t . SD2, SD" SDo es pin 79 PAD LAYOUT PAD LOCATION +y Position I Pad No. Symbol X Y 1 SLA -2699 -1063 2 VDD' -2699 -1365 3 SLB -2699 -1545 x 4 MSB -2699 -2091 5 DAU -2699 -2363 1 6 DAL -2699 -2849 2 3 7 SPE -2199 -2849 4 5 8 VCK -1635 -2849 6 9 CS -381 -2849 10 LOAD -201 -2849 11 Ao 201 -2849 12 A1 381 -2849 13 A2 2121 -2849 14 A3 2301 -2849 15 NAR 2699 -2849 16 BUSY 2699 -2123 17 AC 2699 -1577 18 XT 2699 -1397 19 XT 2699 -995 Note: • Chip size: 5.7 mm x 6.0 mm 20 VDD 2699 -815 21 VSS 2699 -635 22 SDo 2699 2263 23 SD1 2699 2443 24 SD2 2699 2623 25 SIP 2699 2849 26 T1 2519 2849 27 T2 2339 2849 80 PIN CONFIGURATION (Top View) (Top View) 40 Lead Plastic DIP 60 Lead Plasti.c Flat Package (MSM6212GS) (MSM6212RS) () ~ 1m ~ ~8::s u u u u () U U () () () z o ~ 00 > 00 Z Z Z Z Z Z Z Z Z Z Ao LOAD A1 CS VCK DAL NC SPE SPE NC DAL VCK NC BUSY OAU AC NC NC XT NC NC VOo' CS NC SLA LOAD NC NC Ao NC Voo NC A1 NC NC NC NC NC NC NC NC NC NC NC T2 NC A3 T1 NC a: >- () o 00 () () () () () 0 c.. « 00 « ~ I~ o 00 Z Z Z Z Z 0 Q 0'" iii Z => > > 00 00 00 '" Note: Connect pin 23 (VOO") with VOO and VOO' externally since this pin is conducted to the sub- strate. ELECTRICAL CHARACTERISTICS 3 V System (VOO = 3.1 V Typ) Absolute Maximum Rating (VSS 0 V) Item Symbol Conditions Ratings Unit Power Supply Voltage VOO -0.3 to +3,6 V Ta = 25°C Input Voltage VI -0.3 to VOO V Storage Temperature Tstg - -55 to + 150 °C Recommended Operating Range (VSS = 0 V) Item Symbol Conditions Ratings Unit Power Supply Voltage VOO - +2.4 to +3.6 V Operating Temperature Top - -10 to +60 °C OAU and OAL Output Level VOO No load o to VOO V 81 DC Characteristics (Voo = 3.1 V, VSS = 0 V, Ta = 25°C) Item Symbol Conditions Min Typ Max Unit "H" Input Voltage VIH - 2.5 - - V "L" Input Voltage VIL - - - 0.5 V "H" Input Current *1 IIHl VIH = 3.1 V - - 1 IlA "H" Input Current *2 IIH2 VIH = 3.1 V 10 - 150 IlA "L" Input Current IlL VIL = 0 V - - -1 IlA "H" Output Current IOH VOH = 2.7 V -50 - - IlA "L" Output Current IOL VOL = 0.4 V 50 - - IlA Operating Current Consumption 1001 - - 0.1 0.5 mA Standby current When selecting Consumption 1002 class "B" output - 0.01 0.5 IlA OA Output Accuracy IVEI No Load - - 100 mV OA Output Impedance VOR - - 170 - kQ Notes: * 1 Applied to AC, LOAO and Ao to A3 terminals * 2 Applied to input terminals other than the above. However, terminals SLA and SLB are applied when AC input is set to "H" (Conform to Note 1 when AC input is set to "L"). 5 V System (Voo = 5.0 V Typ) Absolute Maximum Rating (Vss = 0 V) Item Symbol Conditions Ratings Unit Power Supply Voltage VOO -0.3 to +5.5 V Ta = 25°C Input Voltage VI -0.3 to VOO V Storage Temperature Tstg - -55 to +150 °C Recommended Operating Range (Vss = 0 V) Item Symbol Conditions Ratings Unit Power Supply Voltage VOO - +4.5 to +5.5 V Operating Temperature Top - -30 to +70 °C OAU and OAL Output Level VOO No load o to VOO V 82 DC Characteristics (Voo = 5.0 V, VSS = 0 V, Ta = - 30 to + 70°C) Item Symbol Conditions Min Typ Max Unit "H" Input Voltage VIH - 4.0 - - V "L" Input Voltage VIL - - - 1.0 V "H" Input Current *1 IIH1 VIH = 5.0 V - - 1 iJ A "H" Input Current *2 IIH2 VIH = 5.0 V 40 - 400 iJA "L" Input Current IlL VIL = 0 V - - -1 iJA "H" Output Current IOH VOH = 4.6 V -1 - - mA "L" Output Current IOL VOL = 0.4 V 1 - - mA Operating Current 1001 - - 0.2 0.7 mA Consumption Standby current Consumption 1002 - - 30 100 iJA OA Output Accuracy IVEI No Load - - 130 mV OA Output Impedance VOR - - 150 - kQ Notes: * 1 Applied to AC, LOAO and Ao to A3 terminals * 2 Applied to input terminals other than the above. However, terminals SLA and SLB are applied when AC input is set to "H" AC power. (Conform to Note 1 when AC input is set to "L"). AC Characteristics (Common to VOO = +2.4, +5.5 V, 3 V system and 5 V system) Ta = - 30 t0+ 70°C T(OSC) f = 32768 kH z Item Symbol Conditions Min Typ Max Unit Original oscillation f(OSC1) 3 V system 30 32.768 35 kHz frequency (1) Original oscillation f(OSC2) 5 V system 30 32.768 65 kHz frequency (2) Original oscillation fduty - 40 50 60 % duty cycle ~- When Load Input Pulse Width tL f sample = 1 - 45 iJs 8.19 kHz AC Input Pulse Width tW(AC) - 1 - - iJs Sampling Frequency (1) fS1 f(OSC)/4 - 8.192 - kHz Sampling Frequency (2) fS2 f(OSC)/5 - 6.554 - kHz Sampling Frequency (3) fS3 f(OSC)/8 - 4.096 - kHz NAR minimum "H" Level Width tMN When fS1 is selected 1. - - iJS Input Change Standby Time tA When fS1 is selected 1 - - iJs Load Pulse Interval tNL When fS1 is selected 5 - 1000 iJs 83 ACTUATION AND NON·OPERATION OF SW INPUT INTERFACE 1. Single Speaking AO to A3 ::::x~ ............................................................................- No LOAD LOAD ................_.J1 1 It NAR ....................... \ 1 J \ BUSY _ _ _ _ --'1 I SPE-.......................................... J 1,-,1 7 __ DAU or DAL Silent _ ! - - W o r d . Output _ ........................................---1 speaking _1-- Silent (standby) 2. Repeated Speaking Ao to A3 =:x........................-,(-l Il" ),t No LOAD LOAD --.J if NAR ~L.._---I f(:- r----1{(: BUSY --....l ~--~f~~------~ SPE _ _...._ - I DAU or DAL _ _ _.... _.J~ting _I I_spe~klng :::J_Sllent (standby) Output 1 2 Approx 1.1 msec 84 PIN DESCRIPTION Terminal Number Pin Name 1/0 CHIP 40 DIP 60 FLT LOAD 10 40 53 I The LOAD pulse can be applied when NAR level (see below) is "H". When LOAD is set to "H': the code at Ao to A3 is transferred into the latch. A single pulse or a pair of pulses switches the LSI from standby mode to active. NAR 15 5 o Next address request NAR indicates whether the LOAD pulse (see above) can be applied or not. "H" level enables while an "L" output disable. NAR outputs a "H" when the speaking of the current addressed word begins and indicates the next address code can be entered. CS 9 39 52 Chip select This pin enables the use of multiple LSI's. It is open when a single LSI is used because it has an internal pull-down resister. If "H" is applied to CS, the LSI is retained in "standby" mode. BUSY 16 6 2 o This pin is used for CPU interface, outputting "H" level during the speaking time. AC 17 7 3 o All clear A "H" pulse to this pin stops all internal functions and the LSI switches to standby mode. No power ON clear circuit is built in the LSI. Therefore, make sure that AC pulse is applied when the power supply is made. DAU 5 35 45 o DAL 6 36 47 o These pins (DAU and DAL) are connected to the output of the 10-bit DA converter. These pins have no built-in LPF because of high output impedance. Use them connected to LPF through the buffer of exter- nal low-output impedance. Example of circuit: MSM6212 0 - - - - - - - 1 The following class A and class B modes can be obtained from two pins. SLA SLB Mode Output Pin Open (L) Open (L) Class B x 2 DAU, DAL VDD (H) Open (L) Class B x 1 DAU, DAL Open (L) VDD{H) Class B x 4 DAU, DAL VDD (H) VDD{H) Class A DAU 85 TIMING CHART 1. Power on Sequence VDD~f AC 'n' :tW(AC) f----- NAR-- __ ~f 2. LSI Starting and Non-operation (Stand-by) OPERATING SEQUENCE FOR CPU INTERFACE Ao to A3 X ,\ '-----...I~--~v~I------------ --~-- LOAD ff,I,-------- NAR '--~H~ BUSY ~-------~5-----...,L-._ __ SPE ~--~~---------------- r---,---«--,.-----..., DAU or DAL _ _ _ _ _+-_____--' Generation - 1 - Generation --1 of first of second L-._ __ Output _Approx _ I word word 17 msec FROM OPERATION TO STANDBY IN THE CASE OF CPU INTERFACE AO to A3 _ _ _ _ _~A~E_N_D_c_od_e_ _ _ _ _ _ _ _ _ _ _ ___ --------~~---------------- LOAD NAR BUSY SPE _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ~ Output DAUorDAL :==============~~~~=============t==~~~ .1- Silent (standby) Speaking of final word Note: tA ............. Address hold time t N L ............. Double LOAD pulse interval t L ............. LOAD pulse width tMN ............. NAR "H" width 86 FUNCTIONAL DESCRIPTION Input Ao to A3 -+ apply "LOAD" pulse -+ data is latched internally and at the same time, the DESIGNATION OF SYLLABLE CODES LSI is actuated. User can designate syllable codes by Ao to A3 b) Two "LOAD" pulses (The max No. of words is and can select either CPU interface or simple in- 124) terface. Input Ao to A3 -+ apply first "LOAD" pulse -+ data is latched internally and LSI retains in 1. CPU Interface "STANDBY" status. -+ Input Ao to A2 (A3 ig- In this case, the maximum number of user's nored) -+ apply second "LOAD" pulse -+ data designated words (syllables) is 124. All "L"s is latched internally and at the same time, the represent "END" code. Ao to A3 and "LOAD" LSI is actuated. pulse are related to each other as shown below. For the timing of "LOAD" pulse application, ap- ply it when "NAR" output is at "H" level. For a) Single "LOAD" pulse (The max No. of words the application of "END" code, conform to the is 14) above a) and b). LOAD -------D I .. --- ----a) ~ I---Start ~~ ------b) 2. Simple Interface "LOAD" input is set at "L" level, LSI is automati- The maximum No. of words is 14. Ao to A3 = cally shifted to "STANDBY" status. "H" is a test code. Therefore, as long as the push switch continues If "LOAD" input is set at "H" level by means to be depressed, the same word is repeated. If the of a push switch after setting of a code by Ao to As, push switch is released, the repetition is stopped the designated word is spoken (from "Standby" sta- simultaneous with the ending of speaking. tus to "operation" status). If the continuous speaking of different words If "LOAD" input is set at "H" level when the is desired, change codes by Ao to A3 and retain speaking of the designated word has ended, the "LOAD" input at "H" level, before the speaking of same word is repeated. On the other hand, if first word is ended. ~ / f---- Start .\ • Restart LOAD End ~~--------- I---- --I Start End __ Standby 3. Designation of Sampling Frequency Selection 1 32.768 kHz = 8.2 kHz It is possible for the user to designate the sam- 4 pling frequency for each word. The relationship between a sampling frequen- Selection 2 32.768 kHz = 6.55 kHz cy and the crystal oscillator frequency is as follows: 5 Selection 3 32.768 kHz = 4.1 kHz When f(OSC) = 32.768 kHz 8 87 STRAIGHT ADPCM AND COMPRESSED ADPCM SAMPLING FREQUENCY AND BAND WIDTH 1. Straight ADPCM 1. Simple Relationship between Sampling The features are enumerated below. Frequency and Band Width 1. Length of ADPCM bits ..... fixed in 3 bits. fSAMPLE x 1/2 = fBAND (UL) 2. Deletion of silent component is possible. Here tBAND (UL) ..... Upper limit of band 3. High bit rate and high tone quality. 4. Suitable to imitation sound. fSAMPLE fBAND Quality Example of bit rate fSAMPLE = 8.2 kHz Clear maximum in- 8.2 kHz DC to 4.1 kHz Length of ADPCM bits = 3 bits telligibility Deleted silent component ~ 1/5 (speech) B.R :; 8.2 x 3 x 4/5 =. 19.7 Female speech of kb/sec 6.55 kHz DC to 3.2 kHz high tone sounds nasal 2. Compressed ADPCM The features are enumerated below: Unclear both male and female 1. Length of ADPCM bits ..... fixed in 3 bits 4.1 kHz DC to 2.0 kHz speeches sound 2. Deletion of data by repeated detection of nasal speech waveform 3. Deletion of silent component is possible. 4. Low bit rate. 2. The Relationship between a Sampling 5. Mainly applied to speech. Frequency and LPF (low pass filter) Example of bit rate The relationship between a sampling frequen- fSAMPLE = 8.2 kHz cy and LPF (low pass filter) is fSAMPLE x 1/2 = Length of ADPCM bits = 3 bits fc (cutoff frequency of ideal filter). However, realisti- Frequency of average repetition ~ 3 cally it is necessary to design' 'fc" to be lower than (Deleted data component the above equation according to the skirt charac- of waveform ~ 1/3) teristics of filter. That is, the band will be further nar- Deleted silent component =: 1/5 (speech) rowed according to filter characteristics. B.R lr 8.2 x 3 x 1/3 x 4/5 =. 6.6 kb/sec As an example, the fc and skirt characteris- tics of L.P.F. used for speech analysis by Oki are shown as follows. Skirt fSAMPLE fc Charac- fBAND teristics 8.2 kHz 3.4 kHz -48 dB/oct DC to 3.4 kHz 6.55 kHz 2.7 kHz -48 dB/oct DC to 2.7 kHz 4.1 kHz 1.7 kHz -48 dB/oct DC to 1.7 kHz 88 EXAMPLE OF OUTPUT INTERFACE When connected to MSCl161 for Class B (for 3 V system only) VDD VDD VCK DAU VCK SPE MSB 16 DAU DAL MSC1161 6212 SP@ SP8 12 VDD VSS SLA VDD' SLB VDD Note: C's are all 0.1 IlF. Class A Output VCK SPE MSB 6212 DAU DAL Open VSS SLAVDD'SLB VSS 89 VOO MSB "1" 3/4 VOO t 1/2 VOO ~ Class A OAU MSB "0" 1/4 VOO VSS=O V VOO ( OAU VSS MSB "1" VOO OAL MSB "0" VSS ( Class B x 2 OAU MSB "1" (8-bit OAC) \ OAL MSB "0" ( DAU MSB "1" Class B x 4 (7-bit OAC) MSB "0" \ DAL (An abbreviated name of the type is sometimes used as an indication representing an actual product) 90 OKI semiconductor MSM6308 ADPCM SPEECH PROCESSOR FOR SOLID STATE RECORDER DRAM INTERFACE GENERAL DESCRIPTION The Oki MSM630a is a ADPCM speech processor LSI for solid state recording which is manufactured using Oki's low power CMOS silicon gate technology. A maximum of 256K Dynamic RAM is used to store the ADPCM data. The MSM630a has internal LPF and amplifier for a microphone. So, by connecting microphone, speak- er, speaker driving amplifier and 256K DRAM, recording and playback of voice can be implemented in the same manner as a tape recorder. FEATURES • 4-bit ADPCM algorithm • Sampling frequency: 4 kHz, a kHz • Built-in a-bit AD converter (@ 4 MHz) • Built-in a-bit DA converter • Recording phrase: 1, 2, 4 selectable • Amplifier for microphone on chip • Vocalization time: 16 sec. maximum • LPF (Low Pass Filter) on chip (@ 4 kHz) • 256K DRAM direct drive capability • Supply voltage: + 5 V • Oscillation frequency: 4 MHz - 6 MHz • 44 pin plastic flat package BLOCK DIAGRAM VOD1 V002 V003 Analog voltage RESET o----~ VSS, XT o---~ VSS2 Analog ground Xl' ( ) 4 - - - j Timing VCK ( ) 4 - - - i and As Control A7 NCR ( ) 4 - - - j I SAM o---~ A, START o----~ Ao BUSY 0.---1 REC/PLAY 0 - - - " RAS CAS WE CSEL, AOPCM 01/0 AnalysIs! CSEL20---" Channel Systtiesis Control CA, CA2 o------<~ SG SGC TEST, TEST2 z 10 to z >- ::J ..:J ..::l 15 :::> u: u: u:: <: o<: o 91 PIN CONFIGURATION ~ I- a:: <1: I~ enw en enen enen 0:: () I- I- :::> I~ I- x < en en a:: a:: u.. >0 :;;: <1: <1: I- W W () ~ NCR AMP10 BUSY AMP21 VCK AMP20 RAS FILPO WE FILRO OVOO VOO CAS AVOO 0110 SG A6 AOIN A3 Ao 0 OAOUT SGC J. .;;: .:;: .i{ ~ '" <1: () is en'" en.:i enw enw~ ....J W () W () ~ l- I- ABSOLUTE MAXIMUM RATINGS (VSS1 = VSS 2 = OV) Parameter Symbol Conditions Value Unit Power Supply Voltage VOO Ta = 25°C -0.3 to 7.0 V Input Voltage VIN Ta = 25°C -0.3 to VOO + 0.3 V Storage Temperature Tstg - -55 to + 150 °C RECOMMENDED OPERATING CONDITIONS Parameter Symbol Conditions Value Unit Power Supply Voltage VOO VSS1 =VSS 2 =OV +4.0 to +6.0 V Operating Temperature Top - -40 to +85 °C Oscillation Frequency losc - 4.0 to 6.0 MHz 92 DC CHARACTERISTICS VDD=4.5 to 5.5 VSS 1 =VSS2 =OV TA= -30 to 70°C Parameter Symbol Conditions Min Typ Max Unit "H" Input Voltage ·1 VIH - 3.6 - - V "H" Input Voltage ·1 VIH - 0. 8xVOD - - V "L" Input Voltage VIL - - - 0.8 V "H" Output Voltage VOH 10H= -40pA 4.2 - - V "L" Output Voltage VOL IOL=2mA - - 0.45 V "H" Input Current ·3 IIH1 IIH=VOD 1 - 100 pA "H" Input Current ·4 IIH2 IIH=VDD - - 10 pA "L" Input Current IlL VIL=VSS -10 - - pA Note: ·1 Apply to input terminals except XT ·2 Apply to XT terminal ·3 Apply to start terminal ·4 Apply to terminal without pull down resistors PIN DESCRIPTION Pin Symbol Pin No. 1/0 Function DVOD 39 I Digital power supply terminal VDD' 17 I Digital power supply terminal AVDD 16 I Analog power supply terminal OVSS 25 I Digital ground terminal AVSS 24 I Analog ground terminal SG 15 I Signal ground terminal Connect condenser for stabilization SGC 12 I Connect condenser for stabilization AMP11 23 I Input terminal for amplifier 1 AMP10 22 0 Output terminal for amplifier 1 93 PIN DESCRIPTION (continued) Pin Symbol Pin No. 110 Function AMP21 21 0 Input terminal for amplifier 2 AMP20 20 0 Output terminal for amplifier 2 This terminal is connected to built-in LPF. ADIN 14 I Voice input terminal DAOUT 13 0 Output of DA converter This terminal is connected to built-in LPF. FILPO 19 0 Output of LPF Synthesized sound is output from this terminal. FILRO 18 0 Output of LPF Analyzed sound is output from this terminal. Connect this terminal to ADIN RESET 27 I By inputting "H" level, the inside of the circuit returns to the early stage. REC/PLAY 28 I Selection terminal for recording or playback "H" = recording START 29 I By inputting "H" level, recording or playback is started. ' BUSY 35 0 This terminal outputs "H" level while recording or playback. CSEL1 9 I Terminal for selecting number of recording words CSEL2 8 I Same as above CA1 7 I Terminal for specifying channels when select- ing 2 words or 4 words CA2 6 I Terminal for specifying channels when select- ing 4 words SAM 30 I Terminal for determining the sampling frequency D 110 41 1/0 InpuUoutput terminal for 4 bit ADPCM data Ao 44 0 A1 4 0 A2 2 0 A3 43 0 A4 1 0 Address terminals of 256K DRAM As 3 0 A6 42 0 A7 5 0 As 31 0 RAS 37 0 Row address strobe for a 256K DRAM CAS 40 0 Column address strobe for a 256K DRAM WE 38 0 Write enable signal to the DRAM device 94 PIN DESCRIPTION (continued) Pin Symbol Pin No. I/O Function XT 32 I Crystal osciliiator connector terminal - XT 33 0 Same as above VCK 36 0 Outputs sampling frequency NCR 34 0 This terminal is used when playbacks contents of different channels continuously. FCUTS 26 I Terminal for selecting the cut-off frequency of the built-in LPF TEST 1 10 I Terminal for inhouse testing TEST 2 11 I Same as above 95 FUNCTIONAL DESCRIPTION The number of recording words of MSM630B is selectable either a single word, 2 words or 4 words. When selecting 1 word, themaximum memory capacity will be 256K bits. When selecting 2 words, 12BK bits are allocated to each channel. When selecting 4 words, 64K bit are allocated to each channel. So each recording length is limited depending on the capacity of each DRAM. 1. Selection of .the Number of Recording Words and the Way to Specify Channel (CSEL1, CSEl2, CAl, CA2) Number Capacitance CSELl CSEL2 CAl CA2 Channel of Words of Channel L - 4 L L CH1 L H CH2 H 64K bit L CH3 H H CH4 H L 2 - L CH1 12BK bit - H CH2 H H 1 - - CH1 256K bit 2. How to Select the Sampling Frequency (SAM) Following is the relationship between oscillation frequency and sampling frequency. SAM L H fsamp fosc/1024 (4 kHz)' fos c /512 (8 kHz)' , When oscillation frequency is 4.096 kHz. 3. How to Select the Cut-off Frequency of LPF The cut-off frequency of LPF is controlled by FCUTS terminal. Please refer to the following chart Vo,ice Sampling FCUTS SAM I VCK (Hz) "H" "L" L 4K 2.3 K 1.95 K H I 8K 3.B K 2.9 K When oscillation frequency is 4.096 kHz. 96 4. Function of REC/PLAY and Start Terminals RECORDING 1. REC/PLA Y = "H" When Recording Using Partial Memory Capacity of the Channel' START BUSY Recording Not being used Capacity of channel 2. REC/PLAY = "H" When Recording Using Entire Memory Capacity of the Channel START Automatically stops BUSY Recording Capacity of channel PLAYBACK 3. REC/PLAY = "L" to Playback the Recorded Contents Once Pulse which is shorter than recording time START ~ Playbacks only BUSY the recorded length Play back .1 97 4. REC/PLAY = "L" to Playback the Recorded Content Repeatedly and Continuously START I I BUSY I I CH, playback CH2 playback CH2 playback .1 NCR I ,W ,L.j ,W - , ,, ,, , ,, : Don't care I CA" CA2 CH, X CH, 'X CH2 Continuous playback and repeated playback are acheived by maintaining Start terminal at "H" level. Writing to channel is done when NCR goes low, or when starts playinh back each word. So chen nels will be changed, if "START" is high, when NCR goes from low to high. 5. Interval of Recording Time As described up to now, by maintaning REC/PLAY terminal high, recording is achieved for the length of time of Start terminal is high. Recording time could be longer because the interval of recording time is for 4K bit. The interval of recording time can be figured out by the following formula. (The interval of recording time) '" 4K bitl(bit rate (KbitlsecJ)[sec] EXAMPLE When sampling frequency is 8 kHz, bit rate is 4 bit x 8 kHz '" 32K bit/sec. The interval of recording time is 4 bitl32K bitlsec '" 0.125 (sec) So, the recording time becomes a maximum of 0.125 msec. I' START~' ReCOrd!d longer INTERNAL~r--------------------------------------------~____ START Recording time interval I. 4K bit 'I' "I 1 r I 1 " I • ' - 0.125 (sec) when sampling frequency is 8 kHz • Recording (Actual recording time) 98 APPLICATION CIRCUIT VOO1 Voo, VCC As As ~PF AMP11 VOO, A7 A7 5 mV AMP10 A6 A6 ~ As « cr: As 0 A4 A4 ~ A, <0 AMP,I A3 Lt) A, A2 ~ FIL1N A1 A1 « CD FIL,O ADIN RAS CAS Ao Ao RAS CAS -In N .... ::E (J) ::E WE WE RESET GO DIN 0 CO) START 01/0 CD °OUT VSS ::E (J) CSEL1 ::E CSEL, CA1 CA, REC/PLAY ~I)) FIL10 SAM I -=- =l FCUTS XT TEST1 0 TEST2 Xl FIxing "L" or "A" level determlns Sampling frequency, number of words and cut-off frequency. 99 OKI semiconductor MSM6309 ADPCM SPEECH PROCESSOR FOR SOLID STATE RECORDER SRAM INTERFACE GENERAL DESCRIPTION The Oki MSM6309 is a ADPCM speech processor LSI for solid state recording which is manufactured using Oki's low power CMOS silicon gate technology. 64K or 256K static RAM is used to store the ADPCM data. The MSM6309 has internal LPF and amplifier for microphone. So, by connecting the microphone, speaker, speaker driving amplifier and SRAM, recording and playback of voice can be easily implement- ed in the same manner as a tape recorder. FEATURES • 4-bit ADPCM algorithm • Recording phrase: 1, 2, 4 selectable • Built-in a-bit AD converter • Vocalization time: 16 sec maximum • Built-in a-bit DA converter (@ 4 kHz) • Amplifier for microphone on chip • Supply voltage: + 5 V • LPF (Low Pass Filter) on chip • 60 pin plastic flat package and • Direct drive capability for SRAM: 64K 4 pes or 256K 1 pce • Oscillation frequency: 4 MHz - 6 MHz • Sampling frequency: 4 kHz, a kHz (@ 4 MHz) BLOCK DIAGRAM . A•• Ao RESET o---~ XT o---~ Xfo.--~ Timing VCK ()4----i and 1108 NCR ()4----i Control 1107 SAM o---~ V02 START o---~ I/O 1 BUSY o.--~ ROM RECJPlJiV o---.j CE2sa WE CEo CE, CSEL. o---~ ADPCM CE, AnalYSIs! CSEL2 o---~ Syst~eslS CE4 Channel CA. o---~ Control CM o---~ DVDD TEST. AVDD TEST, DVSS AVSS SG SGC z g 0u.~ Ii: is < 100 PIN CONFIGURATION 60 pin Flat Package ~ a: :E en !U f!! 0 III enen ::ii0:: ::ii0:: ::ii~ I~ >0'" => => 0 ID Z I~ ~ ~ w a: 0 LL I~ I~ 1) ~ « « « START AMP20 CA, FILPO CII:! FILRO CSEL, SG CSEL2 SGC ROM ADIN DVDD BAOUT 1/08 AVDD 1107 TEST2 1/06 TEST, 1105 REC/PLAY 1/04 CE2.. INDEX MARK 1/03 A,. 1/02 cf A'3 g ~ « ~ ~ ~ < .:l! .l! .< I~ .l! ~ I~ « ~ « 0 N 101 ABSOLUTE MAXIMUM RATINGS (VSSl = VSS2 = OV) Parameter Symbol Condition Value Unit Power Supply Voltage VOO Ta = 25 DC -0.3 to 7.0 V Input Voltage VIN Ta = 25 DC - 0.3 to VOO + 0.3 V Storage Temperature Tstg - -55 to + 150 DC RECOMMENDED OPERATING CONDITIONS Parameter Symbol Condition Value Unit Power Supply Voltage VOO VSS1 =VSS2 =OV +3.5 to +6.0 V Operating Temperature Top - -40 to +85 DC Oscillation Frequency fosc - 4.0 to 6.0 MHz DC CHARACTERISTICS VOO=4.5 to 5.5 VSS 1 =VSS2 =OV Ta= -40-85 DC Parameter Symbol Condition Min Typ Max Unit "H" Input Voltage " VIH - 3.6 - - V "H" Input Voltage '2 VIH - 0. 8xVOO - - V "L" Input Voltage VIL - - - 0.8 V "H" Output Voltage VOH IOH= -40pA 4.2 - - V "L" Output.Voltage VOL IOL=2mA - - 0.45 V "H" Input Current IIH1 VIH=VOO 20 - 400 pA "L" Input Current IlL VIL=VSS -10 - - pA Note: " Apply to input terminals except XT '2 Apply to XT terminal 102 PIN DESCRIPTION Pin Symbol Pin No. 110 Function OVOO 53 I Oegital power supply terminal AVOO 23 I Analog power supply terminal OVSS 35 I Oegital ground terminal AVSS 34 I Analog ground terminal SG 27 I Signal ground terminal Connect condenser for stabilization SGC 26 I Connect condenser for stabilization of SG AMP11 33 I Input terminal for amplifier 1 AMP10 32 0 Output terminal for amplifier 1 AMP21 31 I Input terminal for amplifier 2 AMP20 30 0 Output terminal for amplifier 2 This terminal is connected to built-in LPF. AOIN 25 I Voice input terminal OAOUT 24 0 Output of OA converter This terminal is connected to built-in LPF. FILPO 29 0 Output of LPF Synthesized sound is output from this terminal. FILRO 28 0 Output of LPF Analized sound, original sound is output from this terminal RESET 39 I By inputting "H" level, the inside of the circuit returns to the early stage, viz. stand-by stage REC/PLAY 20 I Selection terminal for recording or playback "H" = recording START 47 I By inputting "H" level, recording or playback is started BUSY 44 0 This terminal outputs "H" level during recording or playback CSEL1 50 I Terminal for selecting number of recording phrase CSEL2 51 I Same as above CA1 48 I Terminal for specifying channels when select- ing 2 phrases or 4 phrases CA2 49 I Terminal for specifying channels when select- ing 4 phrases SAM 40 I Terminal for determining the sampling frequency 103 PIN DESCRIPTION (continued) Pin Symbol Pin No. I/O Function I/O 1 1 I/O I/O 2 60 I/O I/O 3 59 I/O I/O 4 58 I/O I/O 5 57 Input/output terminal for 4-bit ADPCM data I/O I/O 6 56 I/O I/O 7 55 I/O I/O 8 54 I/O Ao 2 0 A1 3 0 A2 4 0 A3 5 0 A4 6 0 As 7 0 As 8 0 A7 9 '0 Address terminals of SRAM As 11 0 A9 12 0 A10 14 0 An 15 0 A12 16 0 A13 17 0 A14 18 0 CE1 10 0 CE2 13 0 Control terminals for external 64K SRAM CE3 36 0 CE4 37 0 CE2ss 19 0 Control terminals for external 256K SRAM WE 46 0 Write enable signal to the SRAM device ROM 52 I Make "H" level when EPROM is equipped externally XT 41 I Crystal oscillator connector terminal XT 42 0 Same as above VCK 45 0 Outputs sampling frequency NCR 43 0 This terminal is used when playbacks contents of different channels continuously FCUTS 38 I Terminal for selecting the cut-off frequency of the built-in LPF TEST 1 21 I Terminal for inhouse testing TEST 2 22 I Same as above 104 FUNCTIONAL DESCRIPTION The number of recording words of MSM6309 is selectable either 1 word, 2 wordS or 4 words. When selecting 1 word, the maximum memory capacitance will be 256K bit. When selecting 2 words, each 128K bit is allocated to each channel. When selecting 4 words, each 64K bit is allocated to each channel. So each recording length is limited according to the capacitance of each SRAM. 1. Selection of the Number of Recording Words and the Way to Specify Channel (CSEL1, CSEL2, CA1, CA2) Number Capacitance CSEL2 CSEL1 CA2 CA1 Channel of Words of Channel L - 4 L L CH1 L H CH2 64K bit H L CH3 H H CH4 H L 2 - L CH1 128K bit - H CH2 •- - H H 1 CH1 256K bit 2. How to Select the Sampling Frequency (SAM) Following is the relationship between oscillation frequency and sampling frequency. SAM L H fsamp fosc/1024 (4 kHz)' fos c /512 (8 kHz)' , When oscillation frequency is 4.096 kHz. 3. How to Select the Cut-off Frequency of LPF The cut-off frequency of LPF is controlled by FCUTS terminal. Please refer to the following chart. Voice Sampling FCUTS SAM VCK (Hz) "H" "L" L 4K 2.3 K 1.95 K H 8K 3.8 K 2.9 K When oscillation frequency is 4.096 kHz. 105 4. Function of REC/PLAY and Start Terminals RECORDING 1. REC/PLAY = "H" When Recording Using Partial Memory Capacity of the Channel START _ _....oJ BUSY - - - - I Recording Not being used _I Capacity of channel I 2. REC/PLAY ="H" When Recording Using Entire Memory Capacity of the Channel START--....oJ Automatically stops BUSY --:~:=====R=eco=rd~ing:======::1 Capacity of channel PLAYBACK 3. REC/PLAY = "L" to Playback the Recorded Contents Once --1----+'-- Pulse which IS shorter than recording time START - - - - - ' Playbacks only BUSY the recorded length I. Play back .1 106 4. REC/PLAY = OIL" to Playback the Recorded Content Repeatedly and Continuously STAR1 I I , BUSY CH, playback CH2 playback CH2 playback I I NCR I ,W ,W W - ,, ,, ,I ,, ,, : Don't care CA1, CA2 CH, X CH, X CHz Continuous playback and repeated playback are made by maintaining start terminal at "H" lev- el. Writing channel is done when NCR falls down, or the time when starts playbacking each word. So, changing channel is made by turning it with the time when NCR stands up. 5. Interval of Recording Time As described up to now, by maintaning REC/PLAY terminal high, recording is made for the length of time the start terminal is high. Strictly speaking, recording time could be longer by the reason of the fact that the interval of recording time is for 4K bits. The interval of recording time can be figured out by the following formula. (The step of recording time) = 4K bitl(bit rate [K bit/sec])[sec) EXAMPLE When sampling frequency is 8 kHz, bit rate is 4 bit x 8 kHz = 32K bitlsec. The step of recording time is 4 bitl32K bitlsec = 0.125 (sec) So, the recording time becomes 0.125 msec longer at most. START~ INTERNAL~'--------------------------------------------~____ START Recording time interval I_ 4K bit -I- 'I' "" I, -I ' - 0 125 (sec) when sampling frequency IS 8 kHz Recording (Actual recording time) 107 APPLICATION CIRCUIT I Interface with a single 256K SRAM VOO, vo02 AMP11 A14 A14 AMP10 An , A'3 : ~ « II: AMP21 (J) ~ A1 A1 <0 on f;!.. FILIN Ao Ao "- Il) FILO 07 1/08 ... N Il) :E 06 1/07 en :E AOIN , ...,'"C 0, 1/02 RESET CD Do 110, :E START en WE WE :E r CSEL1 CE256 CE OE I CSEL2 VCK VSS I NCR I CA, BUSY I CA2 RFC/PLAY ~ll) I FIL10 d ~ I SAM I FCUTS XT J TEST, 0 I TEST2 XT I VSS2 - = 1= SGC SG Following circuit is recommended if enhanced volume and sound quality are desired. _ _ .J -- - -= AMP FLI,Q I)) Becomes fixed "H" level or "L" level by selection. 108 APPLICATION CIRCUIT II Interface with 4 64K SRAMs Voo, VDO, A" , A" VCC A" VCC A12 VCC Ay VCC ~ , , I I ,, AMP,I I I I ~ I ~ I ~ I ~ I ~D6 48/38 k'---------->>{j) D7 SAMl SAM2 ~-r------------------------------------~~RECM VCK ~~------------------------~PLAYM XT ~~----------------------------_(j)RAMSl XT ~-r-----------------------------------_(j)RAMS2 FRST (I)---;;..~~ ST-SP OVF(FST) VSS2 VSSl VDO REC/PLAY B. MPU INTERFACE VERSION VIN(SICK) DAOUT VR(ADSI) IAD/EAD ( I } - _ - - - ' ~-=====----.4 DASO ~ .............,..,.......~--------------~~SOCK AC i---------..O(])D4 D/C tE---------;.0(]) D5 PAUSE ~------;~ D6 48/38 ~-------i>{]) D7 SAMl SAM2 ~~-----------------------~RECM MPU ~~--------------------------------------~PLAYM XT ~~--------------------------~OVF XT ~~---------------------------~MCK ST·SP VCK TDS TRS1TRS2 VDS VDO VSSl VSS2 REC/i'DiY 112 PIN CONFIGURATION Stand-Alone version MSM6258GSK (GS-K) 6O-LEAD PLASTIC FLAT PACKAGE (bottom) 02 VI(SICK) 01 VR(ADSI) A6 VSS2 DO CA1 A7 CA2 VSS1 CA3 SAM1 FRST SAM2 VDD A8 PAUSE A9 ST'SP A10 RAS(OE) XT A18 XT CAS D/SRAM A17 60 17 16 MPU Intenace verSion MSM6258VRS 40-LEAD PLASTIC DUAL-IN-L1NE PACKAGE (top) 40 04 05 VCK 06 RECM 07 REC/PLAY IAD/EAD 03 VDS 02 VI(SICK) 01 VRlADSI) DO VSS2 VSS1 VDD SAM1 PAUSE SAM2 ST·SP MCK ole XT RD Xl CS MPU WR TDS DAOUT TRS2 AC TRS1 PLAYM OVF SOCK 46/36 DASO 20 21 113 MPU interface version MSM6258VGS (GS-K) 44-LEAO PLASTIC FLAT PACKAGE (top) £L ilj !.: 0 I~c 0 o:wu-v I-cc>o ~~~Bb :$ ~ 44 34 33 03 NC 02 0 VI(AOSI) 01 VR(AOSI) DO VSS2 VSSI VOO SAMI MSM6258VGS-K PAUSE SAM2 TSP MCK DIG XT RO XT CS MPU WR 11 23 12 22 iX en !:l; l[!l 0 0 !.: :::;; U ~ (J) r=~~o~~~g~ 2 > 3 > 4 > 5 > 6 > 7 CHANNEL CAl CA2 CA3 0 L L L 1 H L L 2 L H L 3 H H L 4 L L H 5 H L H 6 L H H 7 H H H The MPU ifF version omits the phrase channel provision. 120 PIN FUNCTIONAL DESCRIPTION, continued TERMINAL NUMBER LSI VERSION PIN NAME 1/0 40DIP 44FLT 60FLT 68PLCC SA MPU AO 33 63 0 0 X Al 35 65 0 0 X A2 37 67 0 0 X A3 39 2 0 0 X A4 41 4 0 0 X A5 44 7 0 0 X A6 49 14 0 0 X A7 51 16 0 0 X A8 55 20 0 0 X A9 - - 56 21 0 0 X Al0 57 23 0 0 X All 1 28 0 0 X A12 2 29 0 0 X A13 6 33 0 0 X A14 8 35 0 0 X A15 11 39 0 0 X A16 13 41 0 0 X A17 17 45 0 0 X A18 19 47 0 0 X Address outputs to external RAM. Depending on which type of RAM and RAM capacity is used, the bus provides the number of required addresses, while not required lines operate as chip select outputs (Active = 0). In other words, the pins RAMS1 and RAMS2 program the add tess bus AO to A18 MEMORY TYPE ADDRESSES CHIP SELECT DRAM 64k AO TO A7 A8 TO A18 DRAM 256k AD TO A8 A9 TO A16 DRAM 1Mb AO TO A9 Al0 TO All SRAM 64k AO TO A12 A13 TO A18 SRAM 256k AO TO A14 A15 TO A18 Maximum configuration of memory chips: MEMORY TYPE 4-BIT ADPCM 3-BIT ADPCM DRAM 64kxl 11 SETS OF 8PCS [88J 11 SETS OF 6PCS [66J DRAM 64kx4 11 SETS OF 2PCS [22J 11 SETS OF 2PCS [22J DRAM 256kxl 8SETS OF 8PCS [64J 8SETS OF 6PCS [48J DRAM 256kX4 8SETS OF 2PCS [16J 8SETS OF 2PCS [16J DRAM 1Mbxl 2SETS OF 8PCS [16J 2SETS OF 6PCS [12J SRAM 64k 6 PIECES 6 PIECES SRAM 256k 4 PIECES 4 PIECES The MPU IfF version omits the address bus AO to A 18. 121 PIN FUNCTIONAL DESCRIPTION, continued TERMINAL NUMBER - I/O LSI VERSION PIN NAME 40DIP I 44FLT I 60FLT I 68PLCC SA I MPU VDD 32 I 29 I 23 I 52 I 0 I 0 Power supply pin, nominally 5 Volts. VSS1 9 5 52 17 o o Digital ground pin, nominally 0 Volts. VSS2 33 30 28 58 o o Analog ground pin, nominally 0 Volts. 122 PIN FUNCTIONAL DESCRIPTION FOR MPU IIF ORIENTED 1I0s TERMINAL NUMBER LSI VERSION PIN NAME 110 40DIP I 44FLT I 60FLT I 68PLCC SA I MPU MPU 15 I 11 I - I - I X I 0 Selects the MPU interface. When H, the internal circuitry is set to communicate with an external CPU. Since the input is internally pulled-down, make sure to apply a H. CS 27 23 x o A chip select input. When receiving a L, the MSM6258 can communicate with the CPU. When set to H, the data bus goes on high impedance, thus disabling read & write functions. MCK 12 8 o X o Synchronization signal to the CPU. During recording and playback, a frequency of fsample/2 is output here. RD 28 24 46 X o When this pin is L, the CPU can read the ADPCM coded data or status data of the MSM6258. WR 26 25 48 X o At the L to H transition, the CPU can write ADPCM data or command data into the MSM6258. D/C 29 26 X o When selected H, the data bus provides ADPCM data; when L, command or status data can be accessed. TDS 16 12 I X 0 TRS1 17 14 I X 0 TRS2 18 13 I X 0 TSP 30 27 - - I X 0 TRP 4 44 I X 0 TVD 36 34 I X 0 These are test inputs for factory testing. The three terminals must be grounded during normal operation. 123 HOW TO CONTROL EXTERNAL ADC & DAC Internal and external modes are related to signal conversion: MODE IAD/EAD = H (INTERNAL) IAD/EAD = L (EXTERNAL) VI (SICK) VI (Voltage Input) SICK (Serial Input Clock) VR(ADSI) VR (Reference Voltage) ADSI (Analog/Digital Serial Input) External DAC The straight binary (PCM-coded) data is fed into the MSM6258 through terminal ADSI, while the data clock must be applied to SICK. As a result, every bit coming from the external ADC is shifted into the speech chip at the raising edge of every clock-in pulse. In case less than 12 bits are provided, the remaining lower order bits (LSB) must be clocked in as zeros. However, usually an external ADC of more than 8 bits will be employed to boost up the speech quality. Timing charts (fosc = 4.096MHz) External Analogue-Io-Digital converter VCK DATA LATCHED L . . . - - - - - - - - - - f INTO MSM6258 ADSI MSB LSB 2SB 3SB4SB 10SB11SB SICK >2us >2us External Digital-to-Analogue Converter VCK ----.J L DASO SB MSB2SB3SB 10SB11S SOCK 7.8 us -!--""*""""'foo!- 3.9 u s (lose = 4.096 MHz) External DAC During playback, recuperated straight binary PCM coded data is output by terminal DASO, while the data clock is available at SOCK. Every bit of the PCM pulse train is valid upon the falling edge of the clock-out pulses. The effort that an external DAC involves is worth while only under the condition that an external ADC of a higher resolution than 8 bits is used at the input. MSM6258 does not accept u-LAW or A-LAW companded PCM data, and also does not satisfy CCITT G.721 recommendation. Therefore, the device cannot fully replace an ADPCM CODEC. 124 RECORDING INSTRUCTIONS (For Stand-Alone Version) 1. Select the desired sampling frequency at pins SAM1 and SAM2. 2. Set the REC/PLAY pin to "H" to determine the recording mode. 3. Set the phrase select pins CA1 to CA3 in accordance with the channel priority. 4. The flag of the selected channel is output at pin OVF(FST) (Note). 5. Commence recording by pressing the ST·SP momentary button. NOTE: When the selected channel flag if "H", it is indicated that the channel is already recorded. The available recording time for a new input is identical to the duration of the previous recording length, and ends automatically when the pre-recorded data boundary has been reached, followed by an internal reset. The ST·SP input has no effect during recording. In other words, the recording operation cannot be suspended intermediately once commenced. When the selected channel flag is "L", (can also be set to L by applying a H pulse to the input), recording time is freely available until ST·SP is pressed again. However, if the recording merges into another already recorded channel, playback of this intruded channel becomes impossible since its flag is reset (L). In brief: FST=H FST=L RECORDING 1 2 PLAYBACK 3 4 1 = The recording time is the same as the previous. 2 = Recording time is variable. 3 = Playback time as previously recorded. 4 = Playback impossible when data from previous channel has merged. PLAYBACK INSTRUCTIONS 1. Set REC/PLAY to 'L'. 2. Select the desired channel to be reproduced. 3. Make sure that the OVF (FST) pin outputs 'H'. If 'L', playback is not possible (see table above). 4. Input a pulse through ST·SP to commence playback. 5. Playback stops automatically when the time of the recording has elapsed, or can be interrupted any time by another pulse to ST·SP. 125 START/STOP/PAUSE TIMINGS 1.) RECORDING (FLAG = L) a: START and STOP START STOP ST·SP ~ • I -: fI I FLEXIBLE RECORDING TIME b: TWICE PAUSE DURING OPERATION START STOP ST·SP !l n PAUSE I.fI n .. : RESTART TEMPORARY c: ONCE PAUSE DURING OPERATION START STOP (PRIORITY) !l ST·SP PAUSE f. I f1 I .. ! STANDBY TEMPORARY STOP d: PAUSE DURING STAND BY START STOP ST·SP !l 11 PAUSE !l 11 INVALID INVALID 2.) REC/PLAY = H (recording), FLAG = H STOP ORIGINAL LENGTH OF SELECTED CHANNEL AUTO-RESET ST·SP 11 STOP & RESET STOP START INVALID 3.) REC/PLAY = L (PLAYBACK), FLAG = H START ORIGINAL LENGTH OF SELECTED CHANNEL ENDOF PLAY ST·SP 11 STOP START STOP ST·SP ~iIE . STANDBY MODE NOTE: PAUSE timings at 2.) and 3.) are identical with 1.) b,c,d. 4) REC/PLAY = L (PLAYBACK), FLAG = L The LSI is in Stand by condition, and does not permit playback. 126 POWER-DOWN REDUCTION MODE During stand by, the internal oscillation circuit automatically stops the operation and validates the power-saving mode. This mode can be entered under the condition that the SRAM interface is set (D/S = L).when the master clock is 4.096MHz, the start-up period after cancellation of the power-saving mode by a START pulse lasts 20 to 30 ms until the oscillator stabilizes. HOW TO USE PHRASE CHANNEL "0" (Stand-Alone Version) [1]. Phrase channel "0" is effective for reading EPROM resident ADPCM coded speech data into the MSM6258. The EPROMs may have been programmed previously by a SAS1A or AW101 development system. When channel "0" is selected (CA1 to CA3 = L L L), all address outputs from AO to A18 are initialized to all "0", and commence counting up the ~na;gaddresses upon receipt of a pulse to the START input. Condition: RAMS1 = L, RAMS2 = H, 0/ RA = L; refer to pin descriptions. Playback of certain words or word groups can be implemented by external individual control of the CE inputs of the EPROMs. However, this demands adequate editing of speech data prior to writing the EPROMs. In the interest of best reproduction, the MSM6258 should be set at the same sampling rate at which the data was recorded and stored in the memories. When channel "0" is selected VDS (voice detector) input goes to L. PLAYBACK INSTRUC'rIONS: a. Set "REC/PLAY" to "L". b. Select channel 0 by setting CA 1 to CA3 to "L L L". c. Make sure that "OVF/FST" output is H, otherwise playback is impossible. If necessary, reset the chip. d. Apply a pulse to "ST·SP", and playback commences. e. Suspend playback with another pulse to START/STOP. [2]. When DRAM or SRAM memories are interfaced with MSM6258, the selection of channel 0 gives the user the totally available memory area without channel separations. SPEECH DEVELOPMENT SYSTEMS Right top: SAS1 A records, replays, edits speech 00010203 04050607 data, and writes ADPCM coded data into 64 to 128k EPROMs. It also copies written EPROMs. n II n+1 A microphone and a line input are provided. }M6258 Right bottom: The latest development system n+2 II n+3 AW101 performs the same functions as SAS1 A, but can be linked with a floppy drive, and has a n+1 I! n } SAS HEX keyboard for comfortable operation. It writes EPROM's from 64k to 512k. n+3 II n+2 127 SWITCHING CHARACTERISTICS MPU IIF VERSION (VDD =4.SV to S.SV, Ta = -40 to +8S·C, fose = 4.096MHz, fsample = 8.0kHz) PARAMETER SYMB MIN TYP MAX UNIT VCK high period note 1 tVH - 1lfs x 0.5 - p.S VCK low period note 1 tVL - 1lfs x 0.5 - us MCK high period note 2 tMH - 39.1 - ~s MCK low period note 3 tML - 210.9 - ~s VCK raise to MCK raise time note 2 tVM - 19.5 - p.S Set up time in respect to MCK fall tRMS 15 - - ~s (when reading ADPCM data) note 2 Hold time in respect to MCK fall tRMH 55 - - p.S (when reading ADPCM data) note 2 Set up time in respect to MCK fall tWMS 70 - - ~s (when writing ADPCM data) note 2 Hold time in respect to MCK fall tWMH 2 - • - p.S (when writing ADPCM data) note 2 RD pulse width tRR 250 - - ns D/C set up time in respect to RD fall tDCR 50 - ns D/C hold time in respect to RD raise tRDC 100 - - ns CS set up I hold time in respect to RD tCR 50 - ns Data stabilization time after RD fall tORE - - 200 ns Data floating time after RD raise tDRF 10 - 200 ns WR pulse width tWW 250 - - ns D/C set up time in respect to WR fall tDCW 50 - - ns D/C hold time in respect to WR raise tWDC 100 - - ns CS set up I hold time in respect to WR tCW 50 - - ns Data set up time in respect to WR raise tOWS 100 - - ns Data hold time in respect to WR raise tDWH 150 - - ns AC fall to START command input note 2 lAS 16 - - ms START command input set up time tWVS 4 - 120 us in respect to VCK raise note 2 STOP command input hold time tWVP 4 - 120 ~s in respect to VCK raise note 2 VCK fall to RECM raise tVRR 0 - 2 ~s VCK fall to RECM fall tVRF 0 - 2 ~s AC fall to DAOUT = 1/2VDD note 2 tDAS - 15.6 - ms START command inputto PLAYM raise tWPR 0 - 4 ~s STOP command input to PLAYM fall note 2 tWPF 0 - 2 ~s Time from STOP command input to START command input note 1 tspt 260 - - p.S NOTES: 1.) Directly proportional to fsamp 2.) Directly proportional to fosc 3.) Sampling frequency x 2 - tMH 128 STAND-ALONE VERSION (VOO =4.5V to 5.5V, Ta = -40 to +85·C, fosc 4.096MHz, fsample = 8.0kHz) PARAMETER SYMB MIN TYP MAX UNIT AC pulse width tACP 2.0 - - ~s ST·SP pulse width tSTP 2.0 - - ~ PAUSE pulse width tPAP 2.0 - - ~ FRST pulse width tFRP 2.0 - - ~s ST·SP input to RECM raise (DRAM I/F) tORR - 16.3 - ms Oscillation start to RECM raise (SRAM) tSRR 5&>2 - 70 ms Oscillation start to DAOUT active (SRAM) tXDS - 40 - ms STOP input to RECM fall tSRF 0 - 32 ms VSS to 1/2VDD transition time at DAOUT tDAR - 16 - ms RECM/PLAYM "L" to DAOUT = VSS tDAF 0 16 32 ms START pulse input to PLAYM raise tSPR 0 - 4 ~ STOP pulse input to PLAYM fall tSPF 0 - 4 ~s PLAYM "L" to next replay START pulse tPRS 35 - - ms 129 TIMING CHARTS MPU interface version VCK ________~I j ... tVM iii> TMH I~----~I IE' tMl ",I L MCK - - - - - - - - ' I I ~~. tRMS _ !-1.-...,t:;.;;RMrT.H..,.----------~ i F:~:~~:~ IVO!/!/Owl/lili .. -ValkJ 1----------'C OIC _ _ _ _ _ _ _ _ _ _../ )--_ _ _ _-:''-'w.Lu..LLI...1..I..J.../..I..J.../...LJ..J...LJ..J...LJ..J..LLI...LJ..J...LLJ..I..J.../.~l.L RO _ _ _ _ _ _ _ _ _~t~OC~R~=t~tRrnR~~~~-------------- WR ~-----------+-~~---------------- 00-07 _ _ _ _ _ _ _ _ _ _ _--{ READ TIMING (recording or status data output) I_ tVH _I" tVL ,I I.. VCK - - - - - - - - l ItVM I I I tMH I L tML ~~~-.~E======~·tIE~-----~~-----_1. ---r;~~~~;;;;'~I==~~~I~~~~::;::::::===~r-- MCK ~t. ~~p~::~~ WiA_____ . I tWMS ~f..OIV7!OO0l701111JX'-v_al_ld ______ --'V.::;:all.:..d _ _ _ ~ tWMH OIC - - - - - - / 1 ' - - - , - + - - 1 ' ' - - - - - - - - - - - - - - 1 '--_ _ _ __ WR 00-07 WRITE TIMING (playback or command data Input) 130 AC lAS VCK O/C ViR AD MCK FECM DO 01 02 03-07 OAOUT DAOUTvaild IDAOUTvalld RECORDING TIMING AC lAS VCK DlC ViR AD H MCK PLAYM DO 01 02 03-07 OAOUT tOAS DAOUTvahd OAOUTvalid PLAYBACK TIMING 131 --- -------. --------~------- ---------------- Stand-alone version 1.Recordlng Timing, DRAM IIF, VDS ~ "l" SPSP STOP ISRF -,,/---1-- RECM VCK - - - - - -JUUL- ----------------------------ft --------- VDD--~-------------------------------4---------- DAOUT GND'-4~---4-----------------------------------4~--~~-- IDAR IDAF NOTE: When "VDS" IS H, the pIn RECM outputs a 2-Hz pulse during voice delection. 2. Playback TimIng (DRAM IIF) SPSP START ---+t----ISPR ISPF --.....-+<---------1 PLAYM I r------------------------------------~~ ~----- VCK - - - - - -JUUl- ----------------------- c- - - -JU1ll ------------------- VDD--4--------------------------------------4------------------ DAOUT GND---*----~------------------------------------+_~~~~~~------ IDAR IDAF 132 3. Recording Timing, SRAM IIF, VDS ~ L tSTP "j I' ST'SP ~L.S_T_A_RT_ _ _ _ _ _ _ _ _ _ _ _~ ~ STOP OSCSTART XT,Xl __ --------------------------r---~~-~ : OSCSTOP tSRF RECM VCK VDD------~----------------------_+--+__r_+-------- GND-----~~-+_---------_+~~~~~----- IOAR lOAF 4. Playback Timing, SRAM IIF tSTP ST'SP ~ "j I" n I________________________ START ~I. r , LI______________ STOP ~. . nRE-START OSCSTART XT,Xl __ -----------------~--_r_.-~ OSCILLATION OSCSTOP tSPF ~O+-+<--+--+--+--------__I tPRS PLAYM VCK VDD·'----------r---------------------------+_-+~--+_----------------------- DAOUT GND---------1L----+----------------------~~~-'~----------------~------ tDAR lOAF 133 • HOW TO USE THE DATA BUS (MPU IIF Version) 1. The data bus designations are explained by the following table: CS D/C RD WR Operation L H L H ADPCM data output L H H L ADPCM data input L L L H Status data output L L H L Command data input , H X X X High impedance 2. ADPCM data composition on the bus: BUS LINES: DO D1 D2 D3 D4 D5 D6 D7 4-BIT ADPCM: BOn B1n B2n B3n BOn+1 B1n+1 B2n+1 83n+1 3-BIT ADPCM: XX BOn B1n B2n XX BOn+1 B1n+1 82n+1 4-BIT ADPCM 3-BIT ADPCM 83 = Sign Bit 82 = Sign bit B2=MSB B1 = M S B B1 = 2 S B BO=LSB BO=LSB Sign bit = 1: Waveform descending Sign bit = 0: Waveform ascending 3. Command input structure on the data bus: DO D1 D2 D3 D4 D5 D6 D7 SP PLAY REC P4 P3 P2 P1 PO ST ST CONDITION: CS = L, D/C = L, RD = H, WR = L SP: terminates recording or playback PLAY ST: commences playback REC ST: commences recording PO to P4: set the initialization pOinters. (Normaly set to "L") NOTE: Do not input SP command during PAUSE. 4. Command data direction: command CPU • MSM6258 5. Status output structure on the data bus: DO D1 D2 D3 D4 D5 D6 D7 r:'O P1 P2 P3 P4 XX VOICE RECI PLAY CONDITION: CS = L, D/C = L, RD = L, WR = L PO to P4: set initialization pointers VOICE: L = mute ' H = voice present REC/PLAY: H = during recording operation L = during playback operation 6. Status data direction: status CPU • MSM6258 134 HOW TO MEASURE IDD VDD A 1 100 VIH (36V) L VR VI VDD A18 A17 A16 A'S A14 A13 REC/PLAY --~ A12 ( 1= n ST'SP 1 PAUSE AO f- I AC D7 Open en VDS C!l ClO It) l f- f- '"<0 ::;: DO f- IAD/EAD en ::;: DIS RAM 5Ef- RAMSI WE RAMS2 FRST DAOUT CAl CA2 CA3 tl= XT XT -=- SAMI SAM2 VSSI VSS2 VIL (08Vj }--=--=-I ~-------36V AC ST'SP _____ ~n-- • --- --3.6V _ _ _ _ _ _ _ _ _ _ _ 08V L. o 8V , - - - _ v -___ J PERIOD TO MEASURE 100 135 PACKAGE DIMENSIONS 68-pln QUAD PLCC (MSM6258JS) PIN 1 45'~ 1,45 INDEX MARK B-C 0,177 I 0,66 0,81 ·--r-1-:'·~1~-'--_-1- O,50lYP 3 PLACES 25,020 25,270 12,510 12,635 24,130 FooT·PRINT LAYOUT 88-LEAD PLCC 'fl-fI-B- 23,12 R1h (JA) 53'C/W Lead frame:CUIAIIoy ALLDIMENSIONS ARE IN MILLIMETERS ~ 136 CONNECTION DIAGRAM AND CONTROL TIMING FOR DRAM A. How to connect DRAM The are 5 kinds of DAM's that can be connected to the MSM6258: 64K x 1-bit, 64K x 4-bit, 256K x 1-bit, 256K x 4-bit and 1M x 1-bit. However plase connect as follows: Type of ADPCM bit length Input/Output X 4-bit DRAM 1-bit DRAM 4-bit Use pin 8 Every even number A multiple of 8 3-bit Use pin 6 - A multiple of 6 B. DRAM REFRESH - The way to referesh DRAM is by RAS only refresh, and so almost all DRAM's can be used with the MSM6258. The MSM6258 has AD to A18 address pin and if a specific type of DRAM is selected, upper order address bits (A8 to A 11) are used as CAS signal. They also playa role of chip select. DRAM driving timing of selection of 64K DRAM is shown below. (diagram 1 to 3) Timing for DRAM memory A1O------------------------------~OTrrO~O~O.----nD'Dno~-------- A9--------------------~O~O~O~O~--~D~O~O~--------------------- M--------U~O~U~D~~U~D~O~~----------------------------I-- ''''NO'' t ,. , ",c. Jtf '" "'C *' '" '"C >• < 64K DRAM SELECTION IOSC = 4.0MHZ ISAM = 78KHZ DIAGRAM 1, TIMING OF HIGHER RANK ADDRESS I.,. 64 ~I .. 64 ~I VCK A10 I I L "H" A9 "H" As o I hn ~ ~~ UNIT.U SEC. DIAGRAM 2, ENLARGED TIMING OF DIAGRAM 1 137 VCK AS 4 RAS AO-A7 ___~ '-.:.::..:_./ ,-...:..::..:..:..:..-/ REFRESH ADDRESS CHANGE I- 8 12 ~I WE 8 (WHEN RECORDING) I- ~ INTERNAL TIMING (WHENP~Y~I~NG~B~A~CK~)--------------------~L------------- ~ REFRESH DATA READIWRITE REFRESH DIAGRAM 3, DATA READ TIMING OF MSM6258 C. RAM selection and DRAM type that can be used. Following chart shows the combination between DRAM Type and addresses when D/SRAM terminal is "H" level and DRAM is selected. RAMSl RAM2 DRAM Type Oki's equivalent Address Chip Select parts No. Terminal Terminal 64K xl-bit MSM4164 L L Ao-A7 A8-A18 64K x 4-bit MSM41464 256K x l-bi! MSM41256 H L Ao-A8 Ag-A16 256K x 4-bit MSM414256 L H 1M xl-bit MSM411000 Ao-Ag AlO-All 138 CONTROL TIMING FOR SRAM Timing for SRAM Memory A15 -------------------.1 A14 I A13 ~I STAND BY 2 SEC. 2 SEC. 2 SEC. 64K SRAM SELECTION DIAGRAM 4, CHIP SELECT TIMING lose = 4.0MHz Isam = 7.8kHz vcK----~~1----~I----~I----~----~ I. .1 60 AO-Al-2---~--~~~_ _ _ _ _ _ _ _ _ _ _ _ _~~~_ _ _ _ ___ I ~Oi--I"_____---, 48 8 WE" (WHEN RECORDING) U MSM6258 DATA READ TIMING 52 t UNIT: MICROSEC OE "H" WHEN RECORDING "L" WHEN PLAYING BACK DIAGRAM 5, DETAILED TIMING 139 HOW TO RE-RECORD MSM6258 has protection function for each recorded channel. So to re-record, and to extend the length of recording, the protection function has to be turned off for each subsequent channels. For example, if CH-1 is to be extended then CH-2 protection flag is cancelled by activating, the "flag reset" pin (FRST = H). Below is a sequence to record over and change the recording lengths 6f channel 2-4 after the channel links and lengths had been established. Please note that each channel has an override priority. That is, if CH-2 protection flag is reset and the new length of CH-2 is longer than before, it will extend into CH-3 area even if CH-3 protection flag is set. 1. Select channel 2 and reset the "flag" of channel-2 by "FRST" «b» 2. Record again on channel 2. At this time, FST is low and so input beginning and ending pulse for ST/SP pin is need- ed. At this stage, recording time of channel 2 is prolonged, FST signal of channel 3 will automatically be low but at the same time, channel 3 will not be able to be recorded, «c». 3. (2) is an example where channel 3 was selected and that it was recorded again so as not to extend into channel-4. 4. (e) is an example where channel 4 is reset and recorded over. EXAMPLE SHOWING CHANGE OF RECORDING LENGTH EXTERNAL RAM CAPACITY CH.1 2 3 4 (a) FST="H" "H" I, "H" "H" l RESET FLAG OF CH.2 CH.1 2 3 4 (b) FST="H" -"H" "H" "H" l RECORD AGAIN TO CH.2 CH.1 2 3 4 (c) FST="H" "H" °H" "H" ~ RECORD AGAIN TO CH.3 CH.2 2 3 4 (d) FST="H" "H" "H" "H" j RESET CH.4 FLAG AND RECORD AGAIN TO CH.4 CH.2 2 3 4 (e) FST="H" "H" I· "H" "H" 140 As shown above, all channels of MSM6258 can be used for external RAM efficiently. OVF PIN OF MSM6258 OVF pin of MSM6258 outputs "H" level when input signal exceeds 80% of dynamic range. However, human voice peak has extremely large amplitude as compared with the average, so even if "H" level is outputed from OVF pin, average power of voice is occasionally too small and the playback signal is noisy. Therefore, usage off OVF pin be avoided. Vee GND PIN CONNECTION FOR MPU INTERFACE Following pins Must Be Grounded for MSM6258VRS 1. ST.SP 5. TRS1 2. RECIPLAY 6. TRS2 3. VDS 7. PAUSE 4. TOS 141 -- - - - ---~-~~--.---~-----".-~~- it 2Mb DRAM MODULE L-----f----I!START/STOP r---------r---1°D DDOD DDD MSC2304-15 1 1 E 11111 liE YSBlKSB I ~ I t II~~ D7~-------------- i ~.~~ I +---= !REC/PB MIC PRE-AMP OVF/FST ~ M~===------------------ VIN SWITCH FUNCTIONS SWI: RECORDING OR PLAYBACK SAMPLING YCK PWR-AMP SPEAKER SW2ISW3' SAMPLING FREQUENCY SW4/SW5ISW6: CHANNEL SELECT PBI' COMMENCES START OR STOPS OPERATION PB2: SETS THE PAUSE MODE PB3: CAUSES FLAG RESET CLOCK OUT FIOpF IOpF= XT _ XT DAU PB MON PB4: INITIALIZES THE CHIP 4.096MHz REC M3N Decoupllng capaCItors (C) 0 I uF en CAl -CA3 ~-----­ L..:r---..:r--,gi;...J 2 x 4069 ~---- START/STOP ---IL-.JL.IL _ REC/PLAY --~_ /. REC '1_ PLAY ~I MSM6258 INTERFACED WITH DRAM MODULE (MINIMUM CONFIGURATION) OPERATION TIMING H C L-------t--lSTART/STOP ~ 111111 II~: AO S Ij • I I~c/PB ~ rh 07 06 05 04 4 A MIC SWITCH FUNCTIONS PRE·AMP LPF OVF/FST VIN I D3.~~~~02 01 DO SWl RECORDING OR PLAYBACK SAMPLING SW2ISW3' SAMPLING FREQUENCY SW4/SW5/SW6 CHANNEL SELECT F. CLOCK Ou,.·<::f---IVCK PB1' COMMENCES START,OR STOPS OPERATION PB2 SETS THE PAUSE MODE PB3. CAUSES FLAG RESET 10pF 10pF = XT XT - PWR·AMP SPEAKER PB4 INITIALIZES THE CHIP 4096MHz 00 '" 1 qJ l ,,- ~ _ Decouphng capacitors (C) 0 1uF ----....-------- --- ~ ~ CA1·CA3 ------------ --- --- START/STOP ~- REC/PLAY L--_ I, REC ,I, PLAY 1 MSM 6258 INTERFACED WITH 64K x 4 DRAM (MINIMUM CONFIGURATION) OPERATION TIMING .j>. eN t SWll sW21sW31sW41 swsl SW6 PAUSE START/STOP 6x lOOk CAl CA2 CA3 S2 SI REC/PLAY "., (/) C!J 4069/\ "' '" OVF/FST "' ::; (/) ::; Al~~1~~~- VIN SWITCH FUNCTIONS ~~~;~i~~~~~~::~6~~~~y SAMPLING (fJ::;::;:;' w ,....N(J) 4B/38 - r 1-l?>-f-f-f->a:(fJ>(fJ(fJa. LPF I I I I I I I I I I I ~ INTERFACE EXAMPLE WITH MSM80C85A REMARKS TO THE APPLICATION CIRCUITS 1. All by-pass capacitors (C)0.1 uF; should be mounted in close proximity to the relevant IC. 2. If the 4.096 MHz crystal were replaced by an SMHz type, the sampling frequency adjusted at pins S1 and S2 is proportionately increased up to the possible maximum of fs = 15.6kHz. 3. When various sampling frequencies are to be used, the cut-off frequency of the LPF's must be related individually to fs: fc = fs/2 x 0.S5. For sampling frequencies up to S.O kHz, the hybrid filters, type number ALP3B (fc = 2.6kHz) and ALP4B (fc = 3.5kHz) manufactured by SOSHIN may used. TIME TABLE for application circuits @fosc = 4.096MHz, 4=Bit ADPCM TOTAL I/O TIMES OF APPLICATION CIRCUITS S1 S2 fsample BIT-RATE SRAM DRAM x 1 DRAM x 4 EPROM L L 4.0kHz 16.0kb/s 23 sec. 128 sec. 64sec. 40 sec. H L 5.3kHz 21,2kb/s 18 sec. 97 sec. 48sec. 30 sec. L H 8.0kHz 32.0kb/s 12 sec. 64 sec. 32sec. 20 sec. H H invalid -/- -/- -/- -/- -/- 4. The analog ground shall be separated from the digital and bonded together at a well chosen system ground position. Use VSS1 and VSS2! The power rail to VDDNIN (MSM625S) and the memory supply line should as well be separated in the interest of improved noise immunity, especially when usinQ DRAMs. High level and low level signal lines should be located as far from each other as possible. 147 OKI semiconductor MSC1161 SPEAKER DIRECT DRIVE AMPLIFIER GENERAL DESCRIPTION MSC1161 is a speaker drive amplifier IC designed specifically for watches and also for similar small system having a limitted space and power supply restriction. This IC is used together with a speech syn- thesizer LSI. It receives a high impedance analog signal generated from D-A converter section of the voice synthesizer LSI and directly drives a low impedance voice coil of a speaker. FEATURES • Driven by a single power supply of + 3 V. • Bi-CMOS device technology. • Input impedance higher than 1 MO. • Class B amplification • Output impedance lower than 10 O. • Input terminal pins and levels are compatible • Speaker output enable function. with those of MSM6202. • Two built-in voltage doublers for - VDD and • Chip, 18-pin plastic DIP, 24-pin plastic flat 2 VDD. (Four external capacitors higher than 0.1 IlF are required.) BLOCK DIAGRAM Voo Speaker VSS ~(] »)) ~~:~~; $OUT oAU -T T eOUT VSS -r-oAL VSS ~O»)) (Double- wound) Voo eOUT vssT MSB VSS SID ? VSS SPE VCK BO LOUT VDo LD Co = 0.1 IlF or higher. 148 PAD LAYOUT PAD LOCATION y Position Pad No. Symbol X y 16 1 DAL -1325 -655 2 DAU -1325 -835 11 3 MSB -1325 -1175 10 + -865 -1175 --x 4 SID 9 5 Veo +365 -1175 8 6 VCP +925 -1175 7 VCM +1325 -1175 4 567 8 2VDD +1325 -755 9 VSS +1325 -295 10 VDD +1325 +23 11 -VDD +1325 +203 12 sp8 +945 + 1173 13 SPc±) +325 +1173 14 BD -925 + 1173 15 LD -1125 + 1173 Note: • Chip size: 2.95 mm x 2.65 mm 16 LOUT -1325 +1173 17 VCK -1323 +355 18 SPE -1323 +133 PIN CONFIGURATION (Top View) 18 Lead Plastic DIP (Top View) 24 Lead Plastic Flat Package SPE OAL 0 1 SPE OAU 2 VCK VCK LOUT NC 3 LOUT MSB 4 LO LO SID 5 BO NC 6 NC BO Vco 7 spe Spe Vcp 8 spG VCM 9 NC Spe NC NC -VOO 2VOO -VOO VOO Vss Voo 149 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings Characteristics Symbol Test Conditions Ratings Unit Power Supply Voltage VDD Ta = 25°C -0.3 to +5 V Ta = 25°C Digital Input Voltage VIND MSB, SID, SPE, -0.3 to VDD V VCK, BD, lD Ta = 25°C Analog Input Voltage VINA -0.3 to VDD V· DAUDAl Output Current lout Ta = 25°C o to 150 mA Storage Temperature Tstg - -55 to + 150 °C Power Dissipation Po Ta = 25°C 200 max mW Operating Ranges Characteristics Symbol Test Conditions Range Unit Power Supply Voltage VDD - +2.4 to +3.3 V Operating Temperature Topr - -10 to +60 °C Analog Input Frequency fiN - o to 8 kHz Effective Analog Input load dependent Voltage VCl per graphs of Fig. 1 o to VDD V and 2 Output Current lout VAIN = 0 to VDD o to 80 mA VCK Input Frequency fVCK - 2 to 8 kHz 150 DC Characteristics (Ta = -10 to +60°C, VOO = 3.0 V, Typ is at 25°C) Characteristics Symbol Test Conditions Min Typ Max Unit MSB,SPE, VCK Input High Voltage VIH BO, LO 2.5 - - V MSB, SPE, VCK, Input Low Voltage VIL BO, LO - - 0.5 V MSB, SPE, VCK, Input High Current IIH BO, LO - - 1 IlA MSB, SPE, VCK, Input Low Current IlL BO, LO - - -1 IlA . Input vs. Output Error VIN < VCL - - 30 mV Voltage VE RL = 100 n Analog Input Current IINA VIN = VOO - - 3 IlA Switching Transistor Serial Resistance 'Ys - - - 10 n LOUT ON Output Voltage VOL ISINK = 10 mA - 0.4 V LOUT OFF Output Leak Current lOR Vo = VOO - 1 IlA Active at Current Consumption 1 100 (1) 8 kHz fVCK - 1 mA Standby Current Consumption 2 100 (2) VCK=SPE=O V - 1 IlA PIN DESCRIPTION Terminal Number Pin Name I/O CHIP 18 DIP 24 FLT VOO 10 10 13 I VSS 9 9 12 I Power supply In general, a 3 V line is connected to pin VOO and a 0 V line to pin VSS. Note that the power supply current needed is determined in most part by the current flowing through the external load. It should be also noted that the internal impedance of the power supply must be sufficiently smaller than the load impedance. OAU 2 2 2 o OAL 1 1 o MSB 3 3 4 I/O The former two pins correspond to the positive half wave and negative half wave of the analog signal output of the O-A converter in a speech synthesizer LSI (for example, Oki's MSM6202) respectively. It should be stressed to note that in using any LSI, the VOO and VSS must be in common with the preced- ing LSI. The OAU means the positive half wave of the output analog signal and the OAL is the negative half wave. The following illustration shows a relationship of the MSB pulse with the OAU and OAL waves. 151 Original Signal MSB -+ "H" Positive ~ /\ / (MSB -+ "L") Negatlve~'\;'-'i~ ~ Center MSB -+ "L" I I I I (MSB -+ "H") I I I I I I I I I I I I I I I u I I I I I I I I I I VDD :I~I: 1/ l DAU II I I (Positive ~ I VSS half side) I I I I I I i VDD I I I I: I I DAL VSS MSB SPE 18 18 24 Speaker enable input Used to make the internal circuit active when voice is produced. This feature is so effective for power saving that the internal circuit is designed to fairly reduce power consumption when no voice is produced. To enable the speaker at all times, make the pin level high by connecting pin SPE to VOO or "H" as shown in the truth table below. Truth Table Ie state High Active Low Standby 152 Terminal Number Pin Name 110 CHIP 18 DIP 24 FLT VCK 17 17 23 I Voltage doubler clock input Has a 2 to 8 kHz pulse input. This input is not needed when no voice is produced. It, however, is required for a period of time for at least eight VCK pulses before starting voice input from the pins DAU and DAL. The reason is that the 2 VDD and - VDD voltages of the internal voltage double circuit should be stabi- lized previously. SPE _ _ _ _ _ _...1 ~_ ~f Input s t a r t t\---~-E-nd- I VC~-- - - - - - ---ff----iJlJL I" 8 ~~K ~I 2VDD 8 8 11 I VCP 6 6 8 I VCO 5 5 7 I VCM 7 7 9 I -VDD 11 11 14 I Two voltage doublers Additional capacitors should be externally connected as shown in the preceding "Block Diagram and 18-Pin Terminal Identification" figure. With a specific frequency input from the pin VCK, a doubled vol- tage (2 VDD) and negative voltage (- VDD) will be obtained. It should be noted that the both voltages are for internal use only. BD 14 14 20 Buzzer drive input Has a usual square waveform input when no voice is produced, to make the voice speaker sound as a buzzer. For this purpose, should be as follows. SPE Input: Low (standby state) ® nnn BD Input: ©---.-J/U U L- / Specific frequency when buzzer mode Normal (no buzzer) level Connection Diagram (for Single-wound speaker) MSC1160 "L" "L" JU1JlIL 153 Terminal Number Pin Name 1/0 CHIP 18 DIP 24 FLT LD 15 15 21 I LOUT 16 16 22 0 Lamp drive input, lamp drive output A simple independent lamp drive circuit for watch is built in. If a high signal is applied to pin LD, it turns on the NPN transistor, the open collector of which makes low output signal at pin LOUT, thereby turning on the lamp. vss SP (f) 13 13 18 o SP8 12 12 17 o SID 4 4 5 I Speaker output singleldouble wind select The former two pins are connected to the speaker to directly drive in class B amplification. For a speaker having double-wound voice coil with a center tap, a voltage of VSS is applied to pin SID as shown in the preceding figure of the" Internal Block Diagram and 18-Pin Terminal Identification" . The voltage lev- el to be applied to pin SID is charted below. Speaker Used Voltage Input Level at SID Single-wound type High (or open) Double-wound type Low 154 RELATION BETWEEN INPUT VOLT AGE AND VOICE COIL CURRENT EElOUT DAU (Vin) (Vout) LOAD (Voice cOil) r .., : : )' coil (DC impedance) I coil L ...J )'5 gOUT )'5: Internal serial resistance C SW.Tr of the sWitching transistor VSS STEP 1: Relation between Vin and Vout The class B amplifier shown in the equivalent circuit above can satisfactorily follow up the input sig- nal because its frequency is relatively low. a. If Vin is lower than VOO Vin = Vout + Voffset ........................................................... (1) where Voffset represents the offset voltage of the amplifier which is lower than 10 mV. In view of the fact that IlSB (input least significant bit level) of Vin (D-A converter output) is 10 mV, the offset voltage, Voffset, can be ignored. (The IlSB is given as IlSB = 2.5 V/2 8 = 10 mV.) Hence, Eq. 1 can be regarded as Vin = Vout ........................................................................... (2) b. If Vin approaches to VOO As long as Vin < Vel, Eq. 2 can be held. If Vel ~ Vin ~ VOO, the following relationship is given. Vin corresponds almost to Vout in the amplification as described in a. If Vin is made to approach VOO, the upper limit of the output voltage, Vout, of the amplifier fixes to the clipped value, Vel. Hence, in the region of Vel ~ Vin ~ VOO Vout = Vel ......................................................................... (3) This equation means that Vout has no relation to Vin. 155 c. Graphical illustration The two operational cases, a and b, mentioned above are illustrated in graph below. Vou! VCl A = B VCl Voo Vin d. Relation between VOO and VCl The clipped voltage, VCl, for a specific power voltage, VOO, can be determined according to the characteristics of the driver elements in the amplifier. The MSC1160 is designed to have such load characte~istic lines as in Figs. 1 and 2. According to the load characteristic lines, VCl can be determined uniquely together with Icoil (denoting the current flowing the voice coil) with a serial resistance of the voice coil as part of a parameter. The designer should take the condi- tion for Icoil and Vout in designing the voice coil. The condition will be explained in the follow- ing paragraphs. Step 2: Relation between Vout and Icoil a. If Vout is lower than VCl,J.e., Vout < VCl If Vin is rather small, Vout is not clipped by VCl yet. Relationship between Vout and Icoil is given as Icoil = 'Yco~o~t 'Ys ........................................................... (3) Where 'Ys is the internal serial resistance of the switching transistor, and 'Ycoil is the serial resistance of the voice coil. Since 'Ys is around 5 n as the switching transistor characteristic, if 'Ycoil can be ignored in comparison with 'Ys, then Eq. 3 can be modified as Icoil = vou.t .................................................................... (4) 'Ycoll b. If Vout is clipped to VCl, i.e., Vout = VCl The voice coil current, Icoil, can be given by Icoil - VCl .................................................................... (5) - 'Ycoil 156 c. Graphical illustration The two operational cases, a and b, are shown in Figs. 1 and 2 for obtaining the voice coil cur- rent, Icoil. For using the graphs, refer to the illustration below. tcoil Vout (=VtN) Region 1 corresponds to Eq. 3 or 4. Region 2 is a range where Vout and Icoil are clipped to VCl and ICl. 157 t rnA [lcoll[ 100 90 80 70 Example 1 For 50 n load 60 Vout = VCl = 25V Icoll = ICl = 50 mA 50 Example 2 For 66 n load Vout = V Cl = 2 6 V Icoll = ICl = 39 3 rnA 40 -------- 30 20 10 10 15 20 V~ [Vout] Fig. 1 Determination of Icoil vs. Vout with parameter of 'Ycoil plus 'Ys at 2.4 V of VDD 158 mA t [leo,II) 100 90 80 70 60 50 Example 1 For 50 0 load Vout = VCL = 1 9 V leoll = lei = 38 mA 40 Example 2 For 66 0 load VOU! = VCL = 20V 30 Icoll = Icc = 30 mA 20 10 10 15 4 ~-_V [Vaut] Fig. 2 Determination of Icoil vs. Vout with parameter of 'Ycoil plus 'Ys at 3.0 V of VDD 159 APPENDIX APPLICATION NOTES • MSM5205 Voice Synthesis Circuit Example An example where four 2764 devices are used linked together is shown in Figure 1. The timing chart for this example is provided in Figure 2. 100" 220" -::- L -....... _1 47P 680P 470 (MSM4556) + 470" 20K< ..--l:'>------' + 47 " Note: The 2764 data conforms with (MSM4025) the data analyzed and written by speech analyzer. The power supply is 5 V for the 4000 series, and for 5205 and 2764. Fig. 1 MSM5205 voice synthesis circuit example 163 M5 205 VCK JlJ1.J1J"L ---------------------------llflf START SW -.JlL--_____________________ M4013 SI 1 . . ___________ -------~ M4013 QI (M5205 RESET) I '------------------ ----- __--'I M401 3 ~ n n n n - -_______ - _____ n (4 low order bits) - - l LJ LJ LJ L -.-.J L- (4hlghOrd!fzbltS)~--------------~ M4040 0 1 -------------~ 02 L-- -------.:r--L 012 r--L ___ S---~ M4520 Q1A i---l Q1B i---L .. J'··L Q2B I----·~ Q3B L M4556 Q;; ,----1.- QI L ___ S----- Q2 L__ S--- Q3 L_r Fig. 2 MSM5205 application circuit example time chart 164 eg_s: • < (f) ~~»cs:: S- '" ::J Xl (f) 11 ..... (Oc.s:: -- CD X _ U1 CO OlOl I\) ~::J3 .... 5l 0."2. __ "0 :::l II) en "0 en -- :::T(") i 00l :Ett ~ (f) ::JO S-(") ::J - '< :::l :::T -o 11""' --(") (I) COc en C -- iii' .... (0_ wO ~' - ""' --1< c :::TO ::;: CD 0- ttCD m 30l CD::J ~ (")~ 3 :::T'< 'tJ Olen .... -- c;" c;ren _Ol 0::J .... 0. i:::T (I) ~AM SEL -en :::T,< :::l A 5l::J CD- s:: :::T (f) RAM SEL B ! • (")(0 -- s:: ~.(J) (") cen U1 I\) IUOK Fig,3 MSM5218 Voice analysis/synthesis circuit example ;::t:c g en en (when MSM5204 is used) ... Ol Ol S- COCO iii' (11 Power ON Jr---~ff I . Re set -1'Il..-----JH Internal res~ $I.... 5218Re set--1r - - - - - i VCK Start Q, Q2 Q, ....J Q; .....J Q5 u u U- il U U-- u U ~ _ _~nl..~~~~n,~_ _~~_ _ _~n.~____~ 12 pulses _ _ _ _--ff-_ _ _ _"I1UII'(450kHZ) 11---1 11-·-1 11---1 11_ 1 00 111---112 pulses 11 000 1 11 .1 00 liml 11- 1 00 ~_ _ _ _O~O~O~O~A~_ _ _~Xl.. ___~XL_ _ _~XL_ __ H t H L -_ _ _---Ir t L t L L r----~S~---,---------------~.~~-----------~ L Fig.4 MSM5218 Voice analysis time chart 166 Power ON ~ INITIAL 1\ Reset ---.J ' - - - Internal reset --.J ~h,-- 1______________ r----~{'rf--------~ 5218Reset ~ Start VCK Q, -------iff---~ ---~~~------------~~ ll-f_ _ _ --'I 1 I L---I_ ¢, = ¢, , _____~t~--~I t~--~~ ff- / "--------t+ RAM Address If 0 I 17 ~ Do - Da fJl//!I////lIJlIlJA'--_--'X'--_X'-------'~ r----- DAOUT :Output - - - -_ _ _ _ _~I AEI _______--'1 i H ~_~'i H L AE2 I It '----------' L 1 - 1_ _--'ffL Fig.5 MSM5218 Voice synthesis time chart 167 • MSM5218 Voice Analysis/Synthesis Circuit Example (When 12-bit AD Converter is Used) . An example of an application circuit for voice analysis and synthesis using MSM5218 and a 12-bit AD converter (ADC-80AG is manufactured by *MN Co.) is shown in Figure 6. The time charts for these circuits are given in Figures 5 and 7. * Micro Network Corp. 168 ~~ +15V ~5V ,:t;h~t ~~)j)( '1 '1'i'i'i'i 'i'i'i'" 'I AoAlAeA3"'AsAoAo jl~ ~ I MSM5128111 Voo I/06 I/04 V~~I VSS ~I/03 I/jl:: t JJJ Ws ) ) ) n 2 ) -= CS MSM5128 121 ISS:SSSSSS:i~ 6 MSM5128 131 ~ 7 w 8 .... SO )))11]) - 1~5JSJ5::ill MSM5128 141 ~ INITIAL RESET 1a: e:;r11 32 Voo 4 B2 B3 B4 5 ~ B5 6 ~ B6 7 CJJ B7 LJ)))) - 8 ..". B8 RESET i! to MSM5 12 8CS SO A/S A/ll _ - ~ It --. )(5)(6)(7)(8) VSSAE ¢ i (1)(2)(3)(L )(3)(4 ' ~ lOOK T77 RAMSEL~ o I 2 3 4 'j 6 7 - VOO INHIBIT SlROBE MSM4515 (A) GND I A C f) ,.~ I I {" - ~ lOOK ~ - RAM SEL (B) .1 AIlA1A?AiAtm~/v,!:.AiO II ]Jj [lOOK 0] ()2(}JQj O:JQjOr{~,Oj OlP1l0 12 ~~ fll OJ ()20:1 ..... J"¢ .N" MSM4 040 I Fig.6 MSM5218 Voice analysis/synthesis circuit example VIm .""" ¢ MSM4040 1 ",,' J ) JJ - m (when 12-bit AD converter is used) Power~ InitIal A Reset---1 ~ '---_r 111---1 111---1 ~___---Jr ____________~-----H----~ I L L L..-----II ------1r-----~----------------~1 Fig.7 MSM5218 Voice analysis time chart (when 12-bit AD converter is used) 170 • Example of Interface between MSM5218 and an External DA Converter An example of an interface circuit between MSM5218 and an external DA converter is shown in Figure 8. The time chart for this circuit is given in Figure 9. Note 1 Connected to 12-bit external DA converter MSBr,----------------~------------------LSB MSM5 2 1 8 VDD O.E MSM4094 S. INI-------l MSB/SO GND STROBE CLK SOCK ~----~~~------~ (c) '-".h....,../L~-.J 1-_+____________----, Q3 Q, CL·~>---~ VCK MSM4 0 1 5 RESET GND DATN-----< Reset input Note 1. The 12-bit output is in regular straight binary code. Fig.8 MSM5218 to external DA converter interface example Reset lnput VCK 5218 Reset ------~====~~r----~ (a) Q 3 (b) OR output (c) S TRO BE ----'-____-'--__--'____---'-___If.L-____L -__--L____....L____. J - _ Expanded time chart for lnterval A ~External DA converter operation interval XT (3 8 4 k) ~----- I I I ' ,: ~:~____________~==============:: VCK -.-J : SCON --------,LJ-: : MSB/SO ------------, , ____________ ~L~S~B ___ _ SOCK Fig.9 MSM5218 and external DA converter time chart 171 • Example of MSM6258 Application Circuit An example of an application circuit which MSM6258 is used with six 64K SRAM devices for voice recording and reproduction is shown in Figure 10. Fig. 10 MSM6258 application circuit example The time chart for Figure 10 is given in Figure 11. CAI-CA3 =:::::x== -- ________ START~"STOP -----It-__-~ ______ ~ REC/PLAY Recording .1 ReproductIon Fig. 11 MSM6258 time chart 172 • MSM5248 and LM380N (Power Amplifier) Interface Example An example of interfacing with LM380N to achieve a high volume output from MSM5248 is outlined in Figure 12. 3V 12V PUSH 10k 10k sw O.lu ..J... LOAD SP+ 5248 SP- TEST O.lu AC Al A2 7.3-5.10-12 GND Dtl-:32.768 kHz 22P I 1 22P . Fig. 12 MSM5248 and LM380 interface example Note 1. The MSM5248 and LM380N ground pins are connected to a common ground terminal. 2. Use SP and SP- pull-up resistances of about 20 kohm when an external Vref resistance of 500 kohni VR is used. 3. LM380N is manufactured by the National Semiconductor Co. 4. The MSM5248 outlined in Figure 12 shows LOAD input activated with no AO pull-down resistance. 173 • MSM6243 Switch Input Interface Example An example of MSM6243 switch input interface is shown in Figure 13. and the time chart for repeated vocalization of a single word is shown in Figure 14. VDD Ao VDD TJ Al . T2 A2 SD 3 SD 2 A3 " "- "- A4 SD I '- SDo "- A5 S/P A6 MSM6243 MSB TVDDcr- SPE LOAD VCK BUSY/NAR DAU t;~ VSS DAL AC V . XT XT Vss SLA DDSLB Vss When A class is selected Note: Unused input pins from among AO thru A6 are to be connected to Vss. Vss Fig. 13 MSM6243 Switch input interface example =x " )f ff T# LOAD -.Jr-----~bAD applied Ll_ _ ~'~---f::...-LO_A_D_not appliil d Approx. 1.1 msec. ( r-----~rf_+--- NAR ---r: :J O.15msec APJrox.1.0~I_m~se~c~{~~~_ _ _ _ _ _ _ff-~~ BUSY SPE b:=::I No sound DAU or DAL output StandbY~f~ vocalizl~dbY IE'., ~ Approx. 1.5 msec Approx. 0.4 msec (equivalent to three samples) Fig. 14 MSM6243 Switch input timing diagram 174 • Example of MSM6243 and MSM5055 (Watch CPU) Interfacing with MSC1161 An example of MSM5055 interfacing when MSM6243 is used in time announcing watches is outlined in Figure 15. OPEN f--------t-+-f++~--- -------, USDO SD2 SD3 BondIng MSM5055L-18 M4f-------<>~AO SOl SLA op t IOn M31---_-lA VDD 5LB ~~ M21------i>--iA XT MII---~-lA SO LO L21---_-iA MSM6243-02 32168 kHz Cl LII---_-lA SPEI---+-....jSPE 5-35 pF Lof--->~ ~~~ v~: MSC 1161 DAUI--+~~ DALI--+-~ Lamp COB example Note: If bonding on chip, make sure that MSC1161 is (begin-ind) isolated from MSM5055 and MSM6243. ~ \\SJ (See accompanying diagram.) Fig.15 Example of MSM6243 and MSM5055 interfacing with MSC1161 175 • MSM6243 Microcomputer Interface Examples MSM6243 has been designed with due consideration given to microcomputer interfacing, thereby enabling simple voice editing etc. The method for interfacing MSM6243 to a microcomputer is described here using the well-known Centronics parallel interface as an example. Normal Centronic interfaces consist of "handshaking" by BUSY and STROBE lines where seven or eight bits of data are passed via the 00-07 data line for accurate transfer from microcomputer to external device (such as a printer). That is, the microcomputer first places the data to be sent on the Do -- D 7 line, and after checking that the external device is not busy (BUSY line at L level). applies positive pulses to the STROBE line. The external device subsequently detects pulses on the STROBE line and proceeds to accept that data. An H level signal is passed to the BUSY line until the external device completes acceptance of the pulses and is prepared to accept the next set of pulses. In this way, a single item of data is transferred, and where necessary the next item of data is transferred in the same way. MSM6243 is equipped with a LOAD pin and a BUSYINAR pin (user selecta- ble) which correspond to the above STROBE and BUSY pins. Furthermore, MSM6243 is equipped with Ao - As pins which correspond to the above data line. Vocalized syllable codes are applied to the Ao ~ As pins. The microcomput- er is notified whether this input code has been enabled or disabled at this time via the BUSY/NAR pin (enabled when H, and disabled when L if NAR has been selected). When enabled, a positive input pulse is applied to the LOAD pin. Upon input of this code, the BUSY/NAR output is switched to L (if NAR has been selected) thereby disabling subsequent input. And almost at the same time, the sound corresponding to that syllable code is vocalized. And if input of the next code during vocalization of that syllable is enabled, the BUSYINAR output is switched to H (if NAR has been selected) in readiness for input of the next code. Do- D7 ~____O_A_T_A__~~~____O_A_T_A__~~~_______ STROBE BUSY Fig. 16 Centronic interfaces in/out timing 176 ' In this way, sounds can be vocalized by MSM6243 in much the same way that characters are printed by a printer. The flow for vocalization of a single syllable code is outlined in Figure 17. And since MSM6243 is equipped with two buffers for storing syllable codes, editing without interrupting syllables is possible. Single syllable vocalization output routine flowchart Assume that RESET has been cancelled by main routine. Assume that syllable codes are obtained from the main routine. ( START) ~--------- NAR output monitoring (1/0 status input) Wait until NAR becomes H NO Syllable code output to Ao~ As pins "H" applied to LOAD pin (STROBE output to control board) 1 "L" applied to LOAD pin Load pulse application (STROBE output to control board) _ _ _ _--oJ ~ Fig. 17 Single sound output routine flow chart 177 • Example of MSM6212 Interfacing with an OP amp. (Class B Operation) An example of MSM6212 interfacing with an OP amp. Used in class B operation is shown in Figures 18 and 20. 1) Example of circuit where the OP amp. +power supply is used apart from the MSM6212 power supply VDD DAU~-------1-0-k----~ 10k DAL·I---+--I '>--+--Y-I--.() Connection to LPF Vss 10k Fig. 18 MSM6212 and OP amplifier interface example 1 2) DAU and DAL output waveforms and the LPF input waveform in the above example DAU OV t\ f\ n DAL OV C\ d\ LPF OV CVf\P Fig. 19 Class B operation output and input waveforms 178 3) Example of 5 V single phase power supply circuit for both MSM6212 and OP amp. LPF Vss Fig. 20 MSM6212 and OP amp interface example 2 Note: Ensure that the OP amp is operated in this case (begin-end) with an input voltage above 0 V. 179 • MSM6212 Switch Input Interface Example An example of MSM6212 switch input interfacing is shown in Figure 21, and the time chart for repeated vacalization of a single word is shown in Figure 22. VDD VDD Tl Ao Al T2 A2 SD 2 A3 SD l SDo cs S/P MSM6212 MSB LOAD SPE VCK Vss NAR DAU I------~ BUSY DAL V DDl....J---O--+-___ ---l AC VDD' XT XT Vss SLA SLB Vss VDD v ss Fig. 21 MSM6212 Switch input interface example Ao - A3 .:=:x )f. ; )t LOAD _I If LOAD applied l LOAD not applied NAR ---, ~ ~f BUSY ---.J SPE ~ DAU or DAL output StandbY~~~f!ationJ-:.StandbY' E ... Approx. 1.1 msec (equivalent to nine samples) Fig. 22 MSM6243 Switch input timing diagram 180 • Example of MSC1161 Interfacing with Voice Synthesis LSI An example showing how Oki voice synthesis LSls (MSM6212, MSM6243) are connected to MSC1161 (speaker driver IC) is given in Figure 23. Note that a speaker with mpedance of at least 30 ohms should be used. VDD SPE VCK VCK LO SPE LD MSB DAD 5 TEST rs BD ..... \0 MSM6212 DAL vc1> .......... or MSM6243 VCP 0 Cf) nJ (30 ohm VCM ~ min.) 2VDD -VDD Vss VDD \'ss SLA VDD SLB DD Vss Note: All capacitors are 0.1 JLF min. Fig.23 Example of interface between MSC1161 and voice synthesis LSI 181 • Examples of Inexpensive Voice Synthesis LSI Output Circuits The following circuits are examples of inexpensive voice synthesis LSI systems constructed with fewer components in the output circuit. (1) MSM5248 output circuit example An output circuit example is shown in Figure 24, and the waveform of the output from the SP(+) pin is shown in Figure 25. A good degree of clarity is obtained with the waveform shown in Figure 26. lk S P (B "--""'''---' 2SA1015 / 2SA952 etc. MSM5248 Vss Fig. 24 Output circuit example -------------------------- VDD Fig.25 Output waveform from SP (+) -----------------------------VDD ~~------~~vss Fig. 26 Output waveform from SP( +) when DA converter accuracy is set to 9 bits 182 (2) Example of voltage type DA converter output circuit An MSM6243 output circuit is shown in Figure 27 as a typical example of a voltage type DA converter. The LPF cut-off frequency (see 010) can be changed by changing resistance and capacitance. VDD MSM6243 DAU I--J\I'o,~--' Fig.27 MSM6243 output circuit example (for class A operation) (3) Example of interfacing with regular audio amplifiers An interface example where the speaker is driven by a regular audio amplifier (to achieve volume levels greater than that achieved by MSC1161) is shown in Figure 28. Although the circuit shown here includes a CR type LPF (see 010), resistance in excess of 500 kohm is to be inserted beteween DAU and the audio amplifier input terminal even if the filter is removed. The reason for this is that the DAU output impedance varies considerably from -50% to +100% of the typical value due to ambient temperature conditions etc. The purpose of the resistance is to protect the audio amplifier output volume level from the effects of these changes. The audio amplifier used should have a voltage gain of at least 40 dB. Audio amplifier examples LA4140/ LA4180 / M51501L1 M51180L etc. MSM6243 330k 330k DAU~-J\AJ\~-+--~~----~ Audio amplifier Vss '----y----J CR type LPF Fig. 28 Example of interfacing with regular audio amplifier 183 - ... -.---~--.---.~~--~-~. VOICE SYNTHESIS LSI LIBRARY Apart from custom-order devices for specific user requi rements, the following library of general-purpose voice synthesis LSls (with built-in ROM) is available from Oki. Oki plans to further expand this library, and welcomes suggestions from its customers. Voice synthesis LSI library (as of August 1987) Device Vocalized phrase MSM5248-01 Happy Birthday (English) I~"a~ W=~ 1':'1 MSM5248-04 " Fanfare sound •• I ~ ~ II Merry Christmas And A Happy New Year MSM5248-05 (English) "Irasshaimase - Arigato gozaimashita" MSM5248-09 (Japanese) (Welcome - Thank you) MSM6243-02 Time announcement in Japanese. MSM6243-21 (under development) Time announcement in English 184 Q&A IQ11 What is the relationship between the vocalization time and quality in built- in ROM voice synthesis LSls ? IA1 I Parameters involved in determining vocalization time and quality include the sampling frequency, ADPCM word length, and the degree of data reduction when a compressed ADPCM method is used. These parameters are described below. (1) Sampling frequency: The vocalization bandwidth where voice can be synthesized is determined by the sampling frequency. According to the sampling theorem, fBAND= fSAMPLE x 1/2 where f BAND is the upper limit of the frequency passband and fSAMPLE is the sampling frequency The effective bandwidth (fBAND eff) where the ADPCM method response (see Figures 33 and 34) and the LPF used are considered can be stated as: f BAND eft = f SAMPLE X 112 x 0.85 The hearing evaluation for different fSAMPLE values are listed in Table 1. Table 1 fSAMPLE Bandwidth Hearing evaluation 8.2 kHz DC - 3.49 kHz Very clear sound including almost all vocalized sounds 6.55 kHz DC - 2.78 kHz High tone female voices sound as if the nose is blocked up 4.1 kHz DC -1.78 kHz Both male and female vOices sound as if the nose is blocked up The "blocked up nose" sound is due to elimination of high frequency components normally included in the human voice. Since high frequency components are prevalent in constants (and in the" i" vowel), the effect is stronger at lower sampling frequencies. In determining the sampling frequency, it is better to decide the most suitable value after listing to the source voice passed through a LPF. 185 (2) ADPCM word length: The ADPCM word length is related to the SIN ratio. The 4-bit ADPCM method is beUer than the 3-bit ADPCM method by about 6 dB. (3) Degree of data reduction in compressed ADPCM methods: The quality of sound varies according to the degree of compression in compressed ADPCM methods. In compressed ADPCM, data can be compressed to 1/3 of the data used in straight ADPCM. Needless to say, the greater the degree of compression, the poorer the quality of sound becomes. The degr.ee of compression is selected according to the intended purpose. (4) Vocalization duration and quality of sound An example of the relationship between vocalization duration and the quality of sound as determined by the above parameters when MSM6243 is used is outlined in Figure 29. 8.2 kHz sampling in straight ADPCM method 8.2 kHz sampling in compressed ADPCM method "0 C '"o (/) '0 .£ m a'" 20 vocalization duration (sec.) Fig. 29 Relationship between vocalization duration and quality of sound The quality of sound is depicted as a range in the compressed ADPCM method in Figure 29. This is because the quality of sound is also dependent on the quality of the source sound vocalized statement specifications. And since the quality of sound cannot be expressed in absolute terms, it is shown here in relative terms. 186 (5) Examples of calculating the vocalization duration: An example of calculation of the maximum vocalization duration in straight ADPCM for MSM6243 at a sampling frequency of 8.2 kHz is given below. 193,584 [bits] -7- (8.2 [kHz] x 4 [bits]) = 5.90 [sec.] 1 1 1 Built-in ROM fSAMPLE ADPCM word length capacity The reason why the built-in ROM capacity is not 196,608 bits = 192 kbits x 1,024 bits/kbits is because the user will have a certain amount of area where use is disabled. 187 IQ21 Although there is a certain amount of variation in the precision of the MSM5205 and MSM5218 DA converters, are there any methods for improving the SIN ratio? IA21 for Yes. In terms of configuration in the above two DA converters, it is possible the voice waveform precision to fall in the vicinity of the center waveform. Therefore, the SIN ratio can be improved by displacing the center of the waveform either up or down. This method is particularly effective in improving the SIN ratio for low level signals and in minimizing the residual noise during silent periods (such as the intervals between successive words). In practice, the waveform center can be shifted by adding additional data before or after the current ADPCM data (voice data) as indicated in Figure 30. Section (A) Section (8) o 0 0 0 1 000 o 0 0 0 1 000 100 items of data (Example where the ADPCM bit length is 4 bits) Since an offset of about 5 mV per 2 items of data can be obtained in this case, shifts case, shifts of about 250 mV will require input of some 100 items of data. The shift is upwards in (A), and downwards in (8). The number of data items should be equal in (A) and (8). The output waveform obtained when (A) isadded at the start of the voice data and (8) is added at the end is shown in Figure 30. Note that in since the dynamic range is compressed in the shifted sections, overflow may occur in some cases depending on the data, and this can result in clipping of the output sound. Reduce the sound pressure by about20% and repeat the analysis. (See 03 for additional information about overflow.) I TVDD (25V) Voice data section Fig. 30 DA converter output waveform Note: There must be less voice data immediately prior to section (8). Input of some 20 to 30 msec of silence prior to the beginning of the voice is recommended. 188 IQ31 When ADPCM data analyzed by MSM5218 was used invoice synthesis by MSM5205, noise was generated in the synthesized voice. How can this be overcome? There was no noise in the output from the MSM5218 DAOUT pin. IA31 This The analysis must be repeated. is because MSM5205 is not equipped with the overflow prevention circuit featured in the MSM5218 internal computing circuits. Although sound synthesized by MSM5218 may be normal, overflow can occur during synthesis by MSM5205 resulting in the generation of noise. In this case, the data must be re- analyzed and the ADPCM data regenerated. An example of a waveform where overflow has occurred, and a method for avoiding this overflow are outlined below. (1) Waveforms where overflow occurs Observation of the MSM5205 DA converter output waveform by oscilloscope shows the occurrence of an overflow. (see Figure 31). Overflow section Fig. 31 Output waveform when overflow occurs (2) Method used to avoid overflow Even where the input waveform does not exceed the dynamic range when analyzed by MSM5218, output overflow can be generated by internal calculation error. Therefore, even if the input amplitude level reaches a maximum when analyzed by MSM5218, keeping the level within 80% of the dynamic range (see Figure 32) will ensure that no overflow occurs in the MSM5205 output and no noise is generated in the synthesized sound. 189 VDD 9 - - - - 10 VDD 1 Z-VDD 1 10 VDD o Fig. 32 Waveform with amplitude kept within 80% of the dynamic range 190 What kind of frequency response is achieved in the output waveform in respect to Oki ADPCM input waveforms? IA41 The frequency response achieved in output waveforms when sinewave input waveforms are applied is outlined in Figures 33 and 34. Since these diagrams show the frequency response when 4-bit ADPCM data is used with an 8 kHz sampling frequency, an increase in the sampling frequency will result in a shift of the frequency response to the right. (1) When input waveform is a 1/2 scale sinewave (1/2VDD Vp-p) 0 " iii' ~ -2 \ Q) en c: 0 a. en -4 Q) cc -6 ...; 100 200 300 500 700 1k 2k 3k 4k Frequency (Hz) Fig.33 Oki ADPCM frequency response (1) (2) When input waveform is a full scale sinewave (VDD Vp-p) 0 -......., iii' ~ -2 1\ \ Q) en c: 0 a. -4 en ~ Q) cc -6 f--- ::: 100 200 300 500 700 lk 2k 3k 4k Frequency (Hz) Fig. 34 Oki ADPCM frequency response (2) 191 1 osl What does it mean to say that the DA converter output from MSM6243 etc is a "class A output" or "class B output"? 1 Asl MSM6243 and other devices are equipped with two DA converter output pins DAU and DAL. In class A output mode (the normal mode), the output waveform only appears at the DAU pin with the VDD/2 potential at the amplitude center to obtain maximum amplitude for Vss thru VDD. Class B output mode is used in interfacing with MSC1161 (note). The upper half of the waveform above the class A output amplitude center appears at the DAU pin and the lower half of the waveform appears at the DAL pin with the main amplitude direction as the positive direction. The comparative waveforms are shown in Figure 35. Where class B is multiplied by 1, the amplitude scale istwicethe class A level, and likewise class B multiplied by 2 and 4 result in class A multiplied by 4 and 8 respectively. In waveforms where the VDD level is exceeded, however, the output is clamped at Voo· Note: The method described in MSM6212 Switch Input Interface Example at page 174. 192 VUD MS H • 0 • 3/4 VUIJ - 1 1/2 Vou ----j Class A DAU _ _ _ _ _ ~lSB·l· 1/4 VI)[) v" OV -+--------+-- - - -- MSB ' 0 ' Class B x 1 v" (9-bit DAC) VIlIJ \"':" Class B x 2 (8-bit DAC) \'" Class B x 4 (7-bit DAC) Fig. 35 Comparative waveforms 193 1 QSI What is the best way to form a sinewave wit~ MSM5205? fA"I;ls By input of the following data values. The corresponding output . ~ waveforms are also shown. The data used is 4-bit data (in hexadecimal notation). (1) To obtain an output of 1.5 Vp-p Use the following input data. 0,0,0,3,3,3,7,F,7,F,4,C,4,C Then 4,0,9,C,8,1 repeatedly. Fig. 36 1.5 Vp-p output (2) To obtain an output of 0.85 Vp-p Use the foll,owing input data. 0,0,0,B,B,B,7,F,7,F,4,C,0,0 Then 4,0,9,C,8,1 repeatedly. ~VDDI-~t---- Fig. 37 0.85 Vp-p output (3) To obtain an output of 2.6 Vp-p Use the following input data. 0,0,0,0,7,F,7,F,7,F,4,C,0,0 Then 4,0,9,C,8,1 repeatedly. Fig. 38 2.6 Vp-p output 194 1 Q71 How should the MSM5205 and MSM5218 reset input timing be best set? IA71 The MSM5205 and MSM5218 reset should be input according to the following timing. InternaIIC _ _ _ _ _ _ _-i RESET timing L-'--'--'--'--'---'---jJJ~----------I Fig. 39 MSM5205 reset timing r----- 1 25/1 sec -----1 VCK J 1 ;""'1- - - , I ; 78,usec(3Xl/384kHz) I L--_ _- l Reset latch timing ~ Note ; ! ~ I I I I ! I Reset I~,I ______~_______~___________ ! I ! I I I Internal reset --n I I Note Fig.40 MSM5218 reset timing (8 kHz sampling example) Note: The reset signal is latched within the LSI by the reset latch timing. Analysis is commenced by switching the external reset signal from H to L before this timing. Switching is probably best achieved by the leading edge of the VCK signal. 195 IQSI Why is a low-pass filter required in the voice synthesis output? IAsl Low-pass filters (LPF) are designed to pass only those frequency components below a certain frequency when the input contains a number of different components. Since the voice synthesis output is obtained from a DA converter output, the output waveform is a stepwise waveform as indicated in Figure 41. Fig. 41 DA converter voice output waveform This waveform contains certain high frequency noise components, and since the sampling theorem states that sampling is not effective unless only frequency components below half the sampling frequency are obtained, the unwanted high frequency components are removed by the LPF. The LPF output waveform is as shown in Figure 42. Fig. 42 LPF output waveform 196 Iosl How is the LPF cut-off frequency best determined? fAft.ls' In an ideal LPF, all frequencies above a certain level are filtered out. In ~ practice, however, frequencies are attenuated at a certain rate (slope) from a particular level. This slope is usually expressed in terms of dB per octave (dB/oct). For example, in a filter with a slope of-12 dB/oct, the output is attenuated by -12 dB (that is, reduced to 1/4) for each octave increase of the frequency (that is, each time the frequency is doubled). The frequency where the attenuation commences is called the cut-off frequency (note). The best cut-off frequency for any situation will depend on the sampling frequency, the attenuation slope, and the frequency components in the source sound. The usual design criteria is the degree of attenuation (that is, how many dB) at half the sampling frequency (fSAM)' A number of reference values are listed in Table 2. Since the optimum value as determined for the frequency components in the source sound varies considerably, ddit is best to decide on the basis of actual listening. Table 2 Relationship between filter attenuation characteristics, cut-off frequency, and sampling frequency Filter attenuation Cut-off Gain at Diagram characteristics frequency 0.5 fSAM (dB) number (dB/oct) -12 0.3 fSAM - 8.7