OKI ... «> ~ < 0 '94 Data Book for - 0 m VOICE SYNTHESIS LSI en -< z -4 ::c m en e-n r en -c ~ l> Distributed by ~STERLING Cl 0 e§ ELECTRONICS WALLINGFORD, CONNECTICUT 06492 0 (203) 265-9535 " FIFTH EDITION ISSUE DATE: MAR., 1!*l4 OKI VOICE SYNTHESIS INTRODUCTION LSI DATA BOOK DATA SHEETS 1994 CONTENTS INTRODUCTION 1. VOICE SYNTHESIS LSI PRODUCTS .................................................................................. 3 2. PRODUCTS AND TYPICAL CHARACTERISTICS.......................................................... 4 3. FLOWCHART FOR BUILT-IN ROM VOICE SYNTHESIS DEVELOPMENT.............. 13 4. USER ANALYSIS SUPPORT TOOLS.................................................................................. 14 5. PACKAGING .......................................................................................................................... 22 6. RELIABILITY .......................................................................................................................... 31 DATA SHEETS IIJ VOICE SYNTHESIS MSM5205 .................................................................................................................................. 37 MSM6585 .................................................................................................................................. 49 MSM6295 .................................................................................................................................. 59 MSM6372-XXX/ 6373-XXX/ 6374-XXX/ 6375-XXX ............................................................. 75 MSM63P74-XX ........................................................................................................................ 119 MSM6376 .................................................................................................................................. 143 MSM6378A/6379 .................................................................................................................... 169 MSM6652-XXX/ 6653-XXX/ 6654-XXX/ 6655-XXX/ 6656-XXX ......................................... 183 MSM66P54-XX ........................................................................................................................ 285 MSM6650 ........................... ............................................................ ........................ ............ ....... 309 [l] VOICE RECORDER MSM5218 .................................................................................................................................. 415 MSM6258/MSM6258V ........................................................................................................... 433 MSM6310 .................................................................................................................................. 491 MSM6388 ... ........ ...... ................................................................................................ ................. 509 MSM6588 ............................. ........ .................................................................................. ........... 565 MSM6688 ................................... ........................ ........................................ .... ........................ ... 663 MSM6788 ... ........................................ ........................................ ................ ............................... 815 [I] VOICE REGISTER/ROM MSM6389 ........... ...... ...................................................................................... ........................... 955 MSM6587 .................................................................................................................................. 961 MSM6586 ............................................................................................................... ................... 967 MSM6595-XXX ........................................................................................................................ 973 MSM6596-XXX ........................................................................................................................ 981 MSM6597-XXX ........................................................................................................................ 997 @]INTERFACE LSI MSM6690 .................................................................................................................................. 1007 MSM6691 .................................................................................................................................. 1017 MSM6791 .................................................................................................................................. 1035 [[] PITCH CONTROL MSM6322 .................................................................................................................................. 1055 MSM6722 .................................................................................................................................. 1069 [Kl SPEAKER AMPLIFIER MSC1191/1192 ........................................................................................................................ 1073 II] DEMONSTRATION BOARD MSM6375 .................................................................................................................................. 1085 MSM6376 .................................................................................................................................. 1087 MSM6654 .................................................................................................................................. 1092 MSM6650 .................................................................................................................................. 1096 MSM6378A .............................................................................................................................. 1100 MSM6388 .................................................................................................................................. 1102 MSM6588 .................................................................................................................................. 1106 MSM6596 .................................................................................................................................. 1111 MSM6322 .................................................................................................................................. 1114 I INTRODUCTION---~ OKI Semiconductor INTRODUCTION 1. VOICE SYNTHESIS LSI PRODUCTS OKI SPEECH LSI PRODUCTS ~SYNTHESIZER MSM6652 288Kbit I Internal Mask-ROM MSM6372 128Kbit nternal Mask-ROM MSM6653 544Kbit -MSM6375 FAMILY-MSM6373 256Kbit -MSM6650 FAMILY-MSM6654 1.0Mbit MSM6374 512Kbit MSM6655 1.5Mbit MSM6375 1Mbit MSM6656 2.0Mbit Internal OTP MSM63P74 MSM66P54 6375 Family 6650 Family J MSM6379 MSM6378A for Voice Card External ROM MSM6376 MSM6650 6375 Family 6650 Family J MSMA?Qfi _4~~honn•I mivinn IPrototype MSM5205 MSM6585 I ./ ·RECORDER Special memory Type MSM6388 4 bit AD PCM MSM6588 3 or 4bit AD PCM MSM6688 3 or 4bit ADPCM MSM6788 SBC Special memory for MSM6388 , MSM6588 , MSM6688 , MSM6788 Serial Voice Register MS 5 6 256Kbit MSM6587 512Kblt MSM6389 1Mbit MSM6684 4Mbit MSM6685 SM bit Serial Voice ROM MSM6595 1Mbit MSM6596 2Mbit IStandard memory Type MSM6258 MSM6310 I Prototype MSM5218 ·PITCH CONTROL MSM6322 MSM6722 ·SPEAKER AMP MSC1191 MSC1192 ·DEVELOPMENT SUPPORT TOOL Analysis/Editing Tool AR761 Working on PC9801 Japanese AR76-202 Working on IBM-PC English Support Tool for M6378A Ana writer Buckup Unit Parawriter IDemonstration Board 'l INTRODUCTION OKI Semiconductor 2. PRODUCTS AND TYPICAL CHARACTERISTICS 2-1) VOICE SYNTHESIS LSI PRODUCTS (Fixed message type) There are various types of voice synthesizer's Oki's voice synthesizers have many com- suitable for a large number of applications, mon characteristics, such as the ADPCM such as: A) Built-in ROM synthesizers tai- method, internal D/ A converters, a wide lored for mass production of "fixed mes- range of sampling rates to choose from, and sages". B) An OTP(One Time Program- excellent sound fidelity. mable) device which adds versatility in ap- plications where low volume, multiple mes- Furthermore, the mask ROM synthesizers sages, and field programmability are needed. contain a LPF (Low Pass Filter), 2-channel C) Voice synthesizers using external memory mixing capability, echo reproduction, and for extended playback requirements. variable Beep Tone functions. MSM6375 Block Diagram 10 0---r--i 11 12 8 13 ROM ~ ~ !---------, 14 217 x8blt 8 :Oz;: 15 (Address ROM 4096 bit) 1------~ 16 v-"-<---' AD PCM Synthesizer 2CH ST DATA 17 stage Address Count WSY Controller /NAR OSC1 OSC2 OSC3/CS Timing Controller SG VDD GND AOUT PRODUCT CONFIGURATION Sampling frequency (kHz) 32 (Mask ROM built in) •Chanell 2 mixing •Echo playback • Beep '"r----.--~---.---.----,.----r---r-\------ 2 4 8 16 32 64 128 256 Playback time (sec) 4 ::;! ~ Product name MSM6372 MSM6373 MSM6374 MSM6375 MSM63P74 MSM6378A MSM6376 MSM6295 MSM5205 MSM6585 "ti Coding 4-bit ADPCM method 3/4-bit ADPCM 4-bitADPCM ~r- "" ~ ROM type Mask ROM built-in Built-in OPT External - - ~· 0 ROM capacity 128K bits 256K bits 512K bits 1M bits 512K bits 256K bits Up to 16M bits ~to 2 bits - - ~ Synthesis time }sampling 8 sec (4kHz) Ssec (6.4kHz) 16 sec (4kHz) 32 sec (4kHz) 64 sec (4kHz) 32 sec (4kHz) 16 sec (4kHz) 17 min (4kHz) 128 sec (4kHz) 1Osec (6.4kHz) 20 sec (6.4kHz) 40 sec (6.4kHz) 20 sec (6.4kHz) 8 sec (8kHz) 1Omin (6.4kHz) 16 sec (32kHz) By external circuit ~m §g. requeny) 2 sec (16kHz) 4 sec (16kHz) 8 sec (16kHz) 16 sec (16kHz) 8 sec (16kHz) 4 sec (16kHz) 256 sec (16kHz) :a Sampling 4.0, 6.4, 8.0kHz (fosc = 64kH~ 4.0kHz- 4.0kHz- 8.0kHz - 4.0, 6.0 4.0, 8.0 ~ frequency 8.0, 12.8, 16.0kHz(fosc = 128k z) 16.0 kHz 32.0 kHz 32.0 kHz 8.0 kHz 16.0, 32.0kHz 0CJ) Clock 64 - 128kHz ~PF selected) 64 - 256kHz 64 -128kHz 1- 4MHz 384kHz 640kHz frequency 64 - 256kHz ( AC selected) (RC oscillation) D-A converter 12-bit 10-bit 12-bit Low-pass filter -24dB/oct None None -40dB/oct Supply voltage 2.4 - 5.5V (DAG selected) 2.7 - 5.5V 2.4 - 5.5V 4.5-5.5V 3.0-6.0V 4.5-5.5V 2.7 - 5.5V (LPF selected, fosc = 64kHZ) Operating current 10mA 20mA 10mA 4mA 10mA Standby current 10µA 100µA 10µA - - - Package Chip, 18-pin DIP 20-pin DIP 16-pin DIP 64-pin QFP 44-pin QFP 18-pin DIP 24-pin SOP 40-pin DIP Voice analysis tool AR76-202 ANA WRITER AR76-202 z -I AR76-202 :a 0 Other Channel 2 mixing, echo playback Power ON MSM6373/74/ 4 Channel c characteristics beep tones start 75 evaluation mixing, - - c: echo playback £l - 5 Jl z INTRODUCTION OKI Semiconductor SELECTION GUIDE Start M6378A M6376 M6295 M6258 M6388 M6376 NO M6258 M6388 Top priority should be General sound quality, Inexpensive and long given to sound quallty. appropriate price. play back is required. o SAMPLING FREQUENCY 0 fS=6.4kHz 0 fS=4.0kHz fS=8·16kHz o High quality playback o Playback of low o High quality music or voice frequency or voice playback Less than 5 sec: M6372 Less than 8 sec: M6372 Less than 2 sec: M6372 Less than 10 sec: M6373,M6652 Less than 16 sec: M6373,M6652 Less than 4 sec: M6373,M6652 Less than 20 sec: M6374,M6653 Less than 32 sec: M6374,M6653 Less than 40 sec: M6375,M6654 Less than 64 sec: M6375,M6654 Less than 8 sec: M6374,M6653 More than 40 sec:M6376,M6655 More than 64 sec:M6376,M6655 Less than 16 sec: M6375,M6654 M6258,M6656 M6258,M6656 More than 16 sec:M6376,M6655 M6295 M6295 M6258,M6656 M6388 M6388 M6295 M6388 6 OKI Semiconductor INTRODUCTION 2-2) RECORDING AND PLAYBACK LSI LINE-UP GENERAL DESCRIPTION There are two basic types of record/play- back devices which use external memory for data storage, LSI's using ADPCM pro- ator) for input and output, and microphone and line amplification. These devices di- rectly address from 256-bits to 16Mega bits I cessing, and LSI' s using PCM processing. of external memory. Under processor con- trol and with additional external circuitry, The ADPCM processors incorporate an A/ almost any external memory requirement D and D/ A of up to 12-bits, LPF (Low Pass can be met. Filter) up to-40dB/ octave (outband attenu- PRODUCT CONFIGURATION Sampling Frequency (kHz) 32 16 8 4 4 8 16 32 64 128 256 playback time (sec) SELECTION GUIDE Start MSM6310 7 INTRODUCTION OK.I Semiconductor TYPICAL CHARACTERISTICS I I Product name Coding Memory type to be connected (capacity) MSM6258(V) MSM6388 3/4-blt ADPCM 4-bltADPCM DRAM(16Mb) SRAM(4Mb) method MSM6588 3/4-blt ADPCM Sertal Voice register Serial Voice ROM (4Mb) MSM6310 8-bit PCM DRAM (512Kb) MSM5218 3/4-blt ADPCM - Maximum recording DRAM 17 min (4kHz) 256 sec (4kHz) 256 sec (5.3kHz x 3blt~ 16 sec (4kHZ) By external time SRAM 256 sec (4kHz) 128 sec (8kHz) 170 sec (8kHz x 3bit) 8 sec (8kHz) circuit (sampling frequency) Number of 7 words •1 8 words *1 1 word Determined words/phrases (Delay by external playback) circuity Sampling 4.0kHz- 4.0kHz - 4.0kHz - 4.0,6.0 frequency 15.6kHz 16.0kHz 16.0kHz 8.0kHz Clock frequency 4MHz-8MHz 1.5MHz - 4MHz- 4MHz- 384kHz 4MHz 8.192MHz 8.2MHz Micronhone/line External Built-in Built In Line None ampli ier amplifier A-D converter 8 bits 12 bits 8 bits None D-A converter 10 bits 12 bits 8 bits 10 bits Low-pass filter None -40dB/oct -24dB/oct None Supply voltage 3.5-6.0V 3.5-5.5V 4.5- 5.5V 3.0- 6.0V Operating current 4mA 10mA 6mA Standby current 1011A 1011A - Package 40-pin DIP 44-pin QFP 24-pin DIP 44-pin QFP 60-pin QFP 44-pin PLCC 68-pin PLCC *1 During MCU or microprocessor control, the number of words depends on the MCU and its associated circuity driving the speech chip. 8 OKI Semiconductor INTRODUCTION 2-3) VOICE PITCH CONTROL LSI GENERAL DESCRIPTION MSM6322 is a voice pitch control LSI pro- viding a voice pitch changer function. This LSI provides a 17-step voice pitch conver- functions to realize a voice changer, such as A-D conversion, D-A conversion, LPF, mi- crophone amplification, and line amplifica- I sion function using the PCM method. This tion. single chip solution contains all necessary FEATURES • 17-step voice pitch conversion using • 8-bit A-D converter, 9-bit D-A con- the 8-bit PCM method verter, LPF, microphone amplifier, and • Sampling frequency: Input 8 kHz, line amplifier built-in output 4 to 16 kHz • 24-pin flat package VOICE PITCH CONTROL LSI Product name MSM6322 Function 17-step voice pitch conversion Coding method 8-bit PCM method Sampling frequency Input BkHz, Output 4k-16kHz Clock frequency 4MHz Built-in analog circuit 8-bit A-D converter, 9-bit D-A converter, LPF, microphone amplifier, line amplifier Supply voltage 4.0-6.0V Operating current 10mA Standby current 10µA Package 24-pin flat 9 INTRODUCTION OKI Semiconductor MSM6322 BLOCK DIAGRAM MICIN LOUT LIN FIN1 DAO FIN2 LPF 9 bit DAC SG 8 bit AVoo SG SG ADC Circutt DVoo SGC ~----< , AOUT AGND 1 kbit DGND Timing RAM Conttol ' ' ' ' ' ' i'=.·· XT Circuit XT MS STB/ACT TEST1 TEST2 10 OKI Semiconductor INTRODUCTION 2-4) DIRECT DRIVE SPEAKER AMPLIFIER GENERAL DESCRIPTION MSC 1191 /1192 is a speaker drive amplifier voltage, and directly drives a speaker with- IC for Oki's voice LSis. This is a power out a coupling capacitor. amplifier with low consumption at a low FEATURES • Operating at a low voltage • The speaker can be directly connected • A voice analog signal input pin and a between the differential output pins. digital signal input pin such as an • Standby function provided alarm signal is provided DIRECT DRIVE SPEAKER AMPLIFIER Product name MSC1191/MSC1192 Function Speaker drive amplifier Supply voltage 2.0 ~ 6.0V Maximum output current 250mA No-load operating current 1.5mA (TYP) Standby current 1mA(MAX) Package Chip, 8-pin DIP, 8-pin SOP MSC1191/1192 BLOCK DIAGRAM Vee STBY Din GND SP VR SP Ain Note: MSC1191: Standby mode is activated by "H' level to the input STBY MSC1192: Standby mode is activated by "L" level to the input STBY 11 INTRODUCTION OKI Semiconductor Features of Oki Voice Synthesis LSls (ii) A range of voice synthesis LSis with various built-in ROM sizes to meet The major features of Oki voice synthesis diversified market needs. LSis are summarized below. (iii) Low power requirements due to CMOS with low fundamental os- (1) Quality of Synthesis cillating frequency-ideal also for (i) Good quality sound with a high battery operated applications. degree of naturalness. (3) Software (ii) Synthesis of sound effects, musical (i) Simple and precise analysis for any instruments, and animal sounds customized sound/voice. also possible. Because of the fine sound quality achieved (2) Hardware for a wide range of applications, Oki voice (i) Easy to handle (built-in ROM) synthesis LSis are used worldwide by a SINGLE-chip devices ready for large number of client in numerous applica- simple application. tions. 12 OKI Semiconductor INTRODUCTION 3. FLOWCHART FOR BUilT-IN ROM VOICE SYNTHESIS DEVEL- OPMENT (MSM6372, MSM6373, MSM6374, MSM6375, and MSM6376) CUSTOMER ORDER OKI FIXED VOICE CONTENT FIXED VOICE CONTENT IN WRITTEN FORM ARRANGE ARRANGE RECORDING STUDIO, RECORDING STUDIO, ANNOUNCER ANNOUNCER RECORDING RECORDING RECORDED TAPE (OPEN REEL TAPE) VOICE ANALYSIS VOICE ANALYSIS EVALUATION BOARD PROM VOICE Yes EVALUATION ACKNOWLEDGE- MENT No EVALUATION RESULT REPEAT ANALYSIS REPEAT ANALYSIS (APPROVAL) VOICE QUALITY CERTIFICATE E/S FABRICATION E/S10PCS EIS EVALUATION E/S APPROVAL M/P 13 INTRODUCTION OKI Semiconductor 4. USER ANALYSIS SUPPORT TOOLS 4-1) SPEECH DEVELOPMENT SYSTEM OUTLINE OF AR76-202 AR76-202 is fully PC supported. Included runs under DOS 3.2 and higher on a 640K with the shipment is a standard 16-bit PC machine. However, for speech phrases of slot card, an EPROM programmer, a soft- more than 15 seconds, EMS expansions are ware driver and an English manual. strongly recommended in order to record long phrases in one piece without concat- The host environment should consist of a enations. A tape deck or cassette player is PC-AT® or 100% compatible machine needed as an analog source which can be equipped with a harddisk, VGA® graphic connected directly to the installed board as adaptor and serial mouse. A printer is use- well as a loudspeaker. ful but not essential. The driver software TARGET LSls MSM6372/73/74/75MSM6585 MSM6378A MSM6595 MSM6376 MSM6295 MSM5205 MSM6596 MSM63P74 MSM6258 SYSTEM CONFIGURATION ... AR76-202 I. -1 Voice Data Programmer Software ONSAKU . PERFORMANCE What AR76-202 does for you comprises all -Silencing/Silence insertion essentially demanded functions from record- -Fading/Cut/Copy /Paste ing all the way up to EPROM programming, • HEX-file or BIN-file generation plus a few extras. In detail: • EPROM/OTP programming • EPROM duplication • Recording into host memory through • Random access playback of speech an audio line input files • Playback of a recording from host • Covers all OKI speech LSis, including memory via speaker OTP synthesizers • Editing of a recorded voice file, including • Makes full use of Expanded Memory -Amplitude manipulation System 14 OKI Semiconductor INTRODUCTION HARDWARE Measuring approximately 284(L) x 107(W) circuits are provided through to analog in- mm, the slot card is designed around OKI puts and outputs for direct connection of a Electric's MSM5218 speech recorder LSI in tape deck and a speaker. Likewise, the connection with external 12-bit converters external EPROM/OTP writer is linked to plus low pass filter featuring -48dB attenu- the card's interface. ation per octave. Both analog and digital SOFTWARE The software driver, "ONSAKU", is fully using a modern word processor. A recorded graphics oriented and operable with keys or waveform is displayed on the graphic screen preferably with a mouse. The primary ap- in three scales allowing for precise editing at plication of the software is for editing raw any point. speech recordings. This includes amplitude amplification and attenuation, cutting, copy- "ONSAKU" can be started with a variety of ing and insertion of selected excerpts. Addi- option switches in order to adjust operating tionally, the auto-face in/fade out function parameters for more convenience and easier helps to save time. Using this software is like further processing. 1 i:: INTRODUCTION OKI Semiconductor GENERAL FLOW OF OPERATIONS (Operations flow) (Commands to be used) Start ANALYZING Enter speech from tape deck - - - - Record Check waveforms and speech - - - - - - - Play No :---- Edit ' (Examples of editing) ' - - -• [ ~ the unnecessary portions. Sample waveforms ____ -__ ISilencing Ithe noise. Balance amplitudes - - - - - --[ Speech files to be aligned are connected using ~~~lf11~Q.;, reproduced to be evaluated and amplitude-balanced by Adjust timing IAmplifying I. Combine speech sounds - - - - - - - - - ISilence insertion Iis attemped following the speech waveforms on Main Screen. IReference files Iare used to Erase speech read out th espeech data on to the reference screen and to Align combination ICopying Ia specified range of speech data to be combined. The result is repalyed to check and if the timing is of speech sounds inappropriated, the blank portions are adjusted by either Emphasize speech IErasure Ior ISilence insertion I. Play Check waveforms and speech -- - - - - - - Combination Play No Prepare burning in of the EPROM - - - - ROM File Burn in EPROM ·- - - - - - - - ROM Writer Evaluate synthesized sounds (Speech is confirmed on actual equipment or on an evaluation board.) No End ANALYZING 16 OKI Semiconductor INTRODUCTION 4-2) ANAWRITER, PARAWRITER, BACK-UP SYSTEM (FOR MSM6378A) ANAWRITER 6378 MARK II GENERAL DESCRIPTION The ANAWRITER 6378 MARK II is a tool Programming time in a MSM6378A is 8 dedicated to voice analysis for the Oki seconds, including time for verify. MSM6378A 256 Kbit OTP (one-time pro- grammable device.) A ROM (EPROM) master can be made by preparing a backup using an external I/F. If It can run on 90 to 250 V AC. Therefore, it can a PARAWRITER is used with the master be used in any country without voltage ROM, write and verify for ten MSM6378A modifications. can be simultaneously completed within 11 seconds. It has two input jacks: microphone input (with built-in ALC) and line input jacks. FEATURES • Voice analysis: Oki ADPCM • Functions: REC, PLAY, WRITE, MSM6378A PLAYBACK FROM • Microphone input: PROGRAMMED 600 n, with built-in MSM6378A ALC • Options: Backup (master ROM • Line input: 10Kn, -10dB generation tool), • Recording monitor: PARAWRITER (ten- Input level is ROM parallel writing displayed on a bar tool) graph LED • Supply voltage: 90 - 250V AC • Play monitor: Reproduced sound • Write and verify time: can be heard from a 8.0 seconds for one built-in speaker device, 11.0 seconds (PARA WRITER) for ten devices. RECORDING TIME Sampling Recording time frequency (kHz) (sec) 4 15.6 6 10.4 8 7.8 10 6.2 12 5.2 14 4.5 16 3.9 17 INTRODUCTION OKI Semiconductor OPERATION a. Power-on again. Connect the AC power supply (1), and turn on the power switch (2). d. Play (checking of recorded voice) • The power lamp (11) is lit up. Pressing the switch (17) begins voice re- • "88" is displayed on the indicator (14). production. Sound volume can be ad- Then, it is changed to "4". justed using the monitor control (5). Dur- ing play, the lampfortheplayswitch (17) • The sampling lamp (9) is lit. is lit. b. Switching of sampling frequency e. Writing to 6378 • Pressing the sampling frequency se- Check the direction of 6378 with the lever lector switch (15) selects another sam- of TEXTOOL®(20) raised. Place the 6378 pling frequency. in TEXTOOL® socket, and lower the le- • The indicator (14) shows the selected ver. sampling frequency. Make sure that 6378 is placed horizon- • Each time the sampling frequency tally. switch (15) is pressed, the sampling Pressing the 6378 write switch starts writ- frequency changes as follows: ing. c 4 6 8 10 12 f4 16 ~ ~ ~ ~ ~ ~ During writing, the 6378 busy lamp (12), and write lamp (18) are lit. In eight seconds, write and verify are completed. • While a sampling frequency is indi- cated on the sampling indicator (14), If the error lamp (13) comes on when the sampling lamp remains on. writing is over, it means writing has not been done normally. In this case, the indicator (14) shows an c. Recording error code. Insert the microphone connector into the EO : 6378 is not in the TEXTOOL®socket, microphone input jack (6), or set a sound or is not in the socket correctly. source to the input jack (7). When sound E3: An error occurred during writing. is entered, the level meter (4) works. So, writing was aborted. Pressing the record switch (16) starts re- Any other error: cording. May mean a failure has occurred At the same time, ADPCM analysis is with the ANA WRITER. performed. If any key is pressed when the indicator • The lamp for the record switch (16) is (14) is displaying an error, the display is lit. changed to a sampling frequency. • During recording, the lamp (10) re- mains on. f. Reproduction from 6378 • The indicator (14) shows the residual Check the direction of the 6378 with the recording time. lever of TEXTOOL ®(20) raised. Place it in When recording is complete, the indica- TEXTOOL® socket, and lower the lever tor (14) shows a sampling frequency to fix it. 18 OKI Semiconductor INTRODUCTION Sound volume can be adjusted using the During voice reproduction, the lamp for monitor control (5) in play. the 6378 play switch (19) and the 6378 busy lamp (12) are lit. MECHANICAL DIMENSION = = = == = = === (6) (7) I I :'\:$$7- 1lr L14J ifiR } 230 19 INTRODUCTION OKI Semiconductor PARAWRITER GENERAL DESCRIPTION The PARA WRITER writes data for up to ten MSM6378As at a time using a master EPROM (27256), which is prepared with the EPROM BACKUP writer. SPECIFICATIONS Master ROM : 27C256 or 27256 Programmable : MSM6378A device Writing time : 11 seconds (with data written to ten MSM6378As simultaneously) Function keys : LOAD Reads data from EPROM. WRITE Writes data to MSM6378A RESET Resets an error lamp. Buzzer : Write error Beep Normal end of writing Beep Upon loading Beep Upon resetting Beep FUNCTION KEYS LOAD key Loads data from a master EPROM (27256) to PARAWRITER. WRITE key Writes data to up to ten MSM6378As simultaneously. RESET key Resets any error lamp 1 through 10. FUNCTION LAMP BUSY lamp Lit during loading/writing. LAMPS 1THROUGH10 Any of the lamps 1 through 10 is lit if in MSM6378A is not placed in the 16-pin TEXTOOL socket, or if a write error occurs. More precisely, a lamp for the position where the MSM6378A is not placed is lit upon completion of writing. If an error occurs during writing to the MSM6378A, the lamp for the position where the error has occurred is lit. Pressing the RESET switch turns off the lamp. 20 OKI Semiconductor INTRODUCTION BACK-UP UNIT GENERAL DESCRIPTION BACKUP is an EPROM writer for a 27256 EPROM. It loads the EPROM with voice and other data, which are generated using the ANA WRITER 6378 MARK II. BACKUP is connected to the 6378 ANA WRITER through a 40-pin flat cable. FEATURES • Applicable EPROMs: 27C256 or 27256 • Functions switches : LOAD PLAY BLANK Blank check WRITE EPROMwrite VERIFY EPROM verify • Function lamps BUSY FAIL FUNCTION SWITCHES CONTINUED LOAD Loads data from EPROM to 6378 ANA WRITER. PLAY Reproduces voice data loaded into 6378 ANAWRITER. The switch has the same function as the 6378 play switch. BLANK Used for blank check of EPROM (27256). WRITE Write voice data generated in 6378 to EPROM (27256). This switch invokes three modes: blank, write, and verify modes. VERIFY Compares data in 6378 ANA WRITER with those in EPROM for verification. FUNCTION LAMPS CONTINUED BUSY lamp : It is lit during LOAD, BLANK, WRITE, and VERIFY. It is not lit during PLAY. FAIL lamp : If this lamp is lit, an error lamp is also lit. • Upon blank check, the data in the EPROM was found not to be blank. • A write error occurred during writing. • A verify error occurred during verify. 21 INTRODUCTION OKI Semiconductor 5. PACKAGING Product No.of Die DIP SOP/QFP QFJ(PLCC) name Pins Form RS MS-K GS-K GS-VK GS-V1K JS MSM5205 18 0 MSM6585 18 0 MSM6295 42 0 44 0 0 MSM6376 64 0 MSM6372 18 0 24 0 MSM6373 18 0 24 0 MSM6374 18 0 24 0 MSM6375 18 0 24 0 MSM63P74 20 0 MSM6378A 16 0 MSM6379 16 0 MSM6652 18 0 24 0 MSM6653 18 0 24 0 MSM6654 18 0 24 0 MSM6655 18 0 24 0 MSM6656 18 0 24 0 MSM66P54 20 0 24 0 MSM6650 64 0 MSM5218 24 0 MSM6258 60 0 0 68 0 MSM6258V 40 0 44 0 0 0 22 OKI Semiconductor INTRODUCTION Product No.of Die DIP SOP/QFP QFJ(PLCC) name Pins Form RS MS-K GS-K GS-VK GS-V1K JS MSM6310 44 0 MSM6388 44 0 MSM6588 44 0 MSM6688 56 0 MSM6788 80 0 MSM6389 16 0 18 0 MSM6586 18 0 MSM6587 18 0 MSM6595 18 0 0 24 0 MSM6596 18 0 0 24 0 MSM6597 24 0 MSM6690 42 0 44 0 MSM6691 44 0 MSM6791 44 0 MSM6322 24 0 MSM6722 24 0 MSC1191 8 0 0 0 MSC1192 8 0 0 0 23 INTRODUCTION OKI Semiconductor PACKAGE OUTLINES AND DIMENSIONS • PLASTIC STANDARD DIP SPIN DIPS-P-300 16PIN DIP16-P-300-Wl ~ 'i o.s:rn~ 0.53TYP. ~ 18PIN DIP18-P-300 18PIN DIP18-P-300-Wl 24 OKI Semiconductor INTRODUCTION •PLASTIC STANDARD DIP 20PIN DIP20-P-300-W1 24PIN DIP24-P-600 ® @ @ 0 PLANE~ ~ SEATINGu'i 0 SEATING ' ~~~~~~-++~---' ~ ~'""""-"'!---N¥¥¥¥yo,,-¥¥¥¥..-~o @ ~ "'fl~ 0.46:~~~ o,;·:~ o.,,. 40PIN DIP40-P-600 51.98' 0.3 INDl'X M/\RK (i) @J x "'" ~ 1.21 11s.241 0 U') j----,-~~~~~~~~~~-++~~-,---1 SEATING PLANE z ~ ° (") 1.86 TYP 0 . 46 +0.\3 -0.08~ 25 INTRODUCTION OKI Semiconductor • PLASTIC STANDARD DIP 42PIN DIP42-P-600 51.98• 0.3 N 0 INDEX MARK x )) Cut off frequency (fcur) of LPF should be related to the selected sampling frequency (f sample) by, (fcur) = f sample/2 x 0.85 Sound quality is strongly dependent on the characteristic of the low pass filter. * If the MSM5205 is sent a stream of ADPCM data that causes greater than full scale output, the D/A output will wrap around: from the most positive rail (+5V) to the most negative rail (O.OV) Figure 2 XT(16)1N { Murata Corporation CSB 3840 (ceramic resonator) Or as required to } { match crystal or ceramic resonator load specifications. XT and XT (Oscillator connector pins) Figure 3 40 OKI Semiconductor MSM5205 DA converter SN ratio improvement Since an offset of about 5 m V can be ob- method tained for each 2 samples of data, it is recom- mended that about 100 samples of data be The accuracy near center of the voice wave- entered to shift the waveform center about form of this LSI may be worse due to the 250mV. configuration of the DA converter. There- fore, the SN ratio can be improved by shifting For3-bitdata, an offset of about5mV can be I the waveform center up or down. This is an obtained for each data.Therefore, about 50 extremely effective method for improving samples of data is required to be entered to the SN ratio of a small signal or improving shift the waveform center about 250 m V. residual noise during silence (between 2 speech patterns.) In the (A) section, the waveform center should be shifted up. In the (B) section, the To put it concretely, by adding data before waveform center should be shifted down. or after the current ADPCM data (voice The number of data in the (A) section should data), the waveform center can be shifted as be the same as that in the (B) section. shown in Figure 4. When (A) is added before voice data and (B) Adding data is as follows: is added after the voice data, the output waveform is as shown in Figure 4. (A) section (B) section Since the dynamic range is narrowed by the 0 0 0 0 1 shifted area, some data may overflow, causing the voice to be distorted. 0 0 0 0 1 0 0 0 0 ") 0 100 data If this occurs, decrease the sound level about 203 and analyze the data once again. (For anoverflow,seetheprecautionsfor ADPCM (The ADPCM bit length is 4-bit.) data creation on the next page.) (Note 1) / ,: 1 VDD 2 (2.5V) (A) Figure 4 Waveform the DA Converter Note 2: Voice data should be sufficiently small just prior to (B). For voice editing, insert a silence of about 10msec. 41 MSM5205 OKI Semiconductor Precaution for ADPCM data creation the data. If this occurs, analyze and create the ADPCM data once again. When voice is synthesized by the MSM5205 using ADPCM data analyzed by the An example of a waveform when an over- MSM5218, noise may be generated in the flow occurs and the overflow protection synthesized voice. method is as follows : The MSM5205 is not equipped with an (1) Waveform when an overflow occcurs overflow protection unit in the internal op- eration circuit even though the MSM5218is. The observation of the output waveform Therefore, although the MSM5218 produces from the DA converter of the MSM5205 on normal voice, the MSM5205 may cause noise an oscilloscope shows that an overflowed in the composite voice due to an overflow in waveform is looped as shown in Figure 5. VDD j_ VDD 2 ov Overflow section Figure 5 Output Waveform When an Overflow Occurs (2) Overflow protection method Therefore, if the maximum amplitude level of the input waveform when the ADPCM Even if an input waveform is not beyond the data is analyzed by the MSM5218, is con- dynamic range when the ADPCM data is trolled toabout803 of the dynamic range or analyzed by the MSM5218, the output less (see Figure 6), the output waveform of waveform may overflow due to an internal the MSM5205 will not overflow, causing no operation error. noise in the composite voice. - - - - - - - - - - - - - - - - VDD 9 1o VDD 1_ VDD 2 _! VDD 10 - - - - - - - - - - - - - - - - ov Figure 6 Waveform When the Maximum Amplitude Level of the Input Waveform is about 80% of the Dynamic Range. 42 OKI Semiconductor MSM5205 Figure 7 shows the time chart for MSM5205. TIME CHART VCK(O) RESET (I) [IC INTERNAL] f:!ESET TIMING At least twice To I I I I I 1,-----.,--___,~~.~~ I Do- DJ (I) ~~~~~~~~~~·~~-~-M~1~~-P_CM_2,_~_P_C_M3J~--i~ INPUTTIMING I I I I I I [IC INTERNAL] I I I I I Do-D3 DATA CAPTURE TIMING -I I l- I 15.Gµsec I i DAOUT(O} ~~~~~~~~~~~~~~pacM~1Yl~~MM:2>Y'~ -i.- 5.2µsec Note 3: See the RESET pin description about RESET timing of the IC internal. Figure 7 41 MSM5205 OKI Semiconductor THE FOLLOWING TIMING SHOWS HOW TO APPLY THE RESET iJCK (0) RESET (I) I [IC internal] _ _ _ _ _ _ _--; RESET timing Figure 8 MSM5205 Reset Timing f-- 125 µsec ---I i-----~ VCK(O) :,_,7.8 µsec (3x1/384 kHz) ' ' Reset latch timing ' '' ', Note4 :+ :' RESET (I) [IC internal] RESET timing Note 4 '-----------'----------'---------~ Figure 9 MSM5218 Reset Timing (8 kHz Sampling Example) Note 4: 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. DISTINCTION BETWEEN MSM5218 AND MSM5205 Both Synthesis stages (MSM5218 and Therefore, the DA output of MSM5205 is MSM5205) work with the same method, distorted badly. however, with the exception that MSM5218 is equipped with an overflow protection. When MSM5218 is being used to generate ADPCM data for playback on MSM5205, In other words, whenall 12-bitPCMbecome the peak to peak input level to the AD '1' any further exceeding analog input would converter should be limited to 80% of the cause a data overflow which is caught and converters maximum input range. re-routed as the MSB in case of MSM5218. The use of an automatic gain control (AGC) MSM5205 returns to 'all bits zero' when a amplifier or a hard limiter is recommended. data overflow occurs. 44 OKI Semiconductor MSM5205 TYPICAL APPLICATION MSM5205 TO CENTRONICS INTERFFACE CIRCUITS (fsAM = 8kHz) Figure 10 shows the MSM5205 to centronics shows that timing chart. interface circuit (fsAM = 8kHz), and Figure 11 BUSY STROBE I RESET 100K -RES 18 14 15 Do VDD 'i7CK RESET 01 02 03 AUDIO DATA 04 MSM5205RS OAOUT LPF SPEAKER Os Os 07 15 XT JCT vss 017 384kHz 16 Io +5 1~F+: T O.M VOD ~ /l' 1 220pF 220pF - l Figure 10 MSM5205 to Centronics Timing Diagram RESET (I) RES ---t== MIN.250µsec ~-------------- STROBE _ _ _ _ _ _ ___,.,__ _ _ _ _ _ _ _,'-~fi=rs~tb~e----~ VCK (0) high nibble KB ~~----------~ BUSY Figure 11 411 MSM5205 OKI Semiconductor • MSM5205 VOICE SYNTHESIS CIRCUIT linked together is shown in Figure 12. The EXAMPLE timing chart for this example is provided in Figure 13. Anexamplewhere256k-bitEPROMareused I I 11 MSM27256 A,, A,, A,. CE Oo O, 01 O, 02 O, 03 O, 81 A, 82 A, 83 A, B, A. KB MSM4019 KA D D D Do D, D2 VCK MSM5205 220 pF 1 kO J 1000 pF START SW ) (MSM4025) Figure 12 46 OKI Semiconductor MSM5205 M5205 VCK (0) J1I1J1J1 --------------------------------------------J1J1f START SW M4013 S1 ___________ _J M4013 01 r-- (M5205 RESET) ---------- _ _ _ J (41ow~~~;ti~l ~-------------------------IL ~ (4 high order bits) -------i r-1 r-1 r--i i--=---------------------------=-1 LJ LJ LJ LJ r--- LJ M4040 01 ~---------------------~ 02 ~--------------~ 012 ----L. __ r--1_r-1_J-L M4040 03 -------L_ Figure 13 OKI Semiconductor MSM6585 ADPCM SPEECH SYNTHESIS LSI GENERAL DESCRIPTION The MSM6585 is an upversion product of the elude a control circuit to drive an external MSM5205 voice synthesis LSI. Mainly im- memory similar to the MSM5205. Therefore, proved points are improvement for the preci- the MSM6585 can be connected with not only sion of an internal DA converter, a built-in semiconductor memories, but other memory low-pass filter, and expansion on the sam- media (CD-ROM, etc.) by the control of CPU. pling frequency. The MSM6585 does not in- FEATURES • 4-bit ADPCM system • Original oscillation frequency • Built-in 12-bit DA converter (ceramic oscillator): 640kHz • Built-in LPF (-40dB/ oct) • Package: 18-pin DIP (DIP 18-P-300) • Sampling frequencies: • Voice data synthesis: 4k/8k/16k/32kHz Support by voice analysis editing tool AR76-202 DEFFERENCES BETWEEN MSM6585 AND MSM5205 MSM6585 MSM5205 • Original oscillation frequency: 640kHz 348kHz • Sampling frequency: 4k/8k/16k/32kHz 4K/6K/8kHz • ADPCM bit length: 4-bit 3-bit/ 4-bit • DA Converter: 12-bit 10-bit • Low pass filter: Included (-40dB/ oct) Not included • Overflow preventing circuit: Included Not included • Power supply voltage: 4.5 - 5.SV 3.0- 6.0V • Operating current consumption: 10mA 4mA • Operating temperature: -40 - +85°C -30-+70°C • D3 to DO input timing VCK (o) nsLf1_fL nsLf1_fL 03-DO it d it d i ti t: t: t crr=c= crr=c= input timing ADPCM Data AO MSM6585 OKI Semiconductor PIN CONFIGURATION (Top View) 18 Lead plastic DIP S1 VDD S1 VDD S2 XT S2 XT T3 XT 48/38 XT M M DO s RESET s RESET M M D1 6 VCK D1 5 VCK 5 2 8 T2 0 T2 5 T1 5 T1 T4 DAO NC NC GND AOUT vss DAOUT BLOCK DIAGRAM VDD GND D3 D2 4-bit 4 AD PCM 12 D1 LATCH Synthesizer DO 12-bit DAC osc Timing Controller TEST CIRCUIT XT XT S1 S2 RESET T1 T2 T3 T4 50 OKI Semiconductor MSM6585 ELECTRIC CHARACTERISTICS Absolute Maximum Ratings (GND = OV) Parameter Symbol Conditions Ratings Unit Power supply voltage VDD Ta= 25°C -0.3 - +7.0 v Input voltage V1N Ta= 25°C -0.3 - VDD +0.3 v Storage temperature Tstg - -55- +150 oc Operating Conditions (GND = OV) Parameter Symbol Conditions Ratings Unit Power supply voltage VDD - +4.5- +5.5 v Operating temperture Top - -40- +85 oc Original oscillation lose oscillator connection 640 kHz frequency DC Chracteristics (VDD= 4.5 - 5.5V, GND = OV, Ta= -40 - +85°C) Parameter Symbol Conditions Min. Typ. Max. Unit "H" input voltage V1H - 0.8xVDD - VDD+0.1 v "L" input voltage V1L - -0.1 - 0.2xVDD v "H" output voltage VoH VCK: loH = -40µA VDD-0.4 - - v "L" output voltage Vol VCK: loL = 40µA - - 0.4 v "H" input current iiH1 T1, T2, RESET: V1H = VDD 20 150 400 µA "H" input current iiH2 S1 ,S2, DO-D3, T3: V1H = VDD - - 10 µA "H" input current liH3 XT: V1H = VDD - - 20 µA "L" input current l1u T3: V1L = OV -400 -120 -20 µA S1 ,S2, DO-D3, T1, T2, "L" input current iiL2 -10 - - µA RESET: V1L = OV "L" input current liL3 XT: V1L = OV -20 - - µA Current consumption loo lose = 640kHz, No load - 5 10 mA DA output relative error IVoAE I No load - -- 40 mv DA output impedance RoAo - 10 - 40 kQ LPF load resistance RAO UT - 50 - - kQ t:;1 MSM6585 OKI Semiconductor AC Characteristics Prameter Symbol Conditions Min. Typ. Max. Unit Original oscillation duty cycle fduty - 40 50 60 % RESET input pulse width tw(RST) fsAM = 4kHz ··· tvcK = 250µs = 8kHz ... = 125µs 2xtvcK - - jJS Data setup time ts =16kHz... = 62.5µs - - 3 jJS Data hold time tH =32kHz... = 31.2511s tvcKl2 - - jJS When the MSM5205 and data are commonly used, note that the D3 to DO selection timings of the MSM6585 and MSM5205 are different. (Refer to DEFFERENCES BETWEEN MSM6585 AND MSM5205.) TIMING CHART VCR' (0) RESET (I) IC internal D3 - DO ---------+_._,._....__"lt.~1 _ _,f.____..f_ __._f-+--- selection timings AOUT, DAO(O) 52 OKI Semiconductor MSM6585 PIN DESCRIPTION Pin Name VO Function S1,S2 I Pins to determine the sampling frequency. The sampling frequencies of 32k, 16k, Bk, and 4kHz can be selected by combinations. (See the sampling frequencies of the functional description on the selection of combinations.) T3 I Pin to test the internal circuit. Set this pin to a high level or make it open because it has a built-in pull-up resistor. DO-D3 I Input pin for ADPCM data. T4 0 Pin to test the internal circuit. Make this pin open. GND - Ground pin AOUT 0 Pin to output the analog voice from the low-pass filter. Connect a 0.01 µF capacitor to this pin. (See the AOUT connecting circuit of the functional description on the connecting circuit.) DAO 0 Pin to output the analog voice form the DA converter. T1, T2 I Pins to test the internal circuit. Set these pins to a low level or make them open because pull-down resistors are included. VCK 0 This pin outputs the sampling frequency selected by the combinations of S1 and S2. The voice synthesis starts or stops by synchronizing with VCK. RESET I Reset pin. The voice synthesis circuit is initialized by synchronizing with VCK. If this pin is set to a high level, the DO to D3 data inputs are disabled by synchronizing with VCK. The AOUT and DAO pins output 1/2 VDD and become the state of no voice. XT I Pin to connect an oscillator. When the external clock is used, input it from this pin. XT 0 Pin to connect an oscillator. When the external clock is used. make this pin open. VDD - Power supply pin. 53 MSM6585 OKI Semiconductor FUNCTIONAL DESCRIPTION 1. Sampling Frequency The relationship of the sampling frequencies on Sl and 52, and the cutoff frequencies are listed below. 51 52 Sampling frequency (fsAM) Cutoff frequency (fcur) L L 4 kHz 1.6 kHz H L 8 kHz 3.2 kHz L H 16 kHz 6.4 kHz H H 32 kHz 12.8 kHz 2. AOUT Connecting Circuit Connect a 0.0luF capacitor to the AOUT pin. The circuit diagram is as shown below. MSM6585 AOUT l 0.01µF Even when the DAO pin is used, connect a 0.0lµF capacitor to the AOUT pin. This capacitor is used for the improvement of a voice quality. 3. Voice Output The MSM6585 has two voice output pins. The DAO is direct output pin from the internal DA converter. The AOUT is a pin to output a voice after which the DAO output passed a built-in LPF. 3-1. DA Converter Output Waveform The output amplitude from the DA converter is max. (4095/ 4096) xVDD and becomes a stair step waveform synchronized with the sampling frequency. The DAO output impedance varies in the ranges from 1Okilto40kQ Therefore, determine the filter constant so that the resistor variation does not have influence on the cutoff frequency of the filter. 54 OKI Semiconductor MSM6585 3-2. Low-pass Filter Output The cutoff frequency of the low-pass filter varies in proportion to the sampling frequency. The following figure shows the low-pass filter characteristics in the sampling frequency 8kHz. 0 !\ iii' ~ -20 ~ .... ~ \ ~ CJ) c: ·c. -40 \ E "' 0 V1 ~t- v~ -60 100 1k 10k Frequency (Hz) 4. Oscillation The external circuit that used a ceramic oscillator KBR-6408 (640kHz) of Kyosera, manufacture is as shown below. XT 640kHz 0 55 MSM6585 OKI Semiconductor TYPICAL APPLICATION DIAGRAM Centronics Interface Circuit (sampling frequency BkHz) +5V 4 14 0.1µ~ 1 3 18 01~ BUSY 1 10 S1 T3 VDD 10 6 MSM4013 2 15 RESET AOUT STROBE 3 11 14 VCK RESET ro.01µF 5 8 T4 8 12 T1 MSM6585 DAO 11 7 2 S2 17 =i XT 12 9 13 9 GND 13 T2 XT 16 9 14 D3 D2 D1 fO 640kHz 7 7 6 5 DO D1 5 D2 3 MSM4019 13 12 D3 6 11 D4 4 10 D5 2 D6 D7 15 8 16 0.1µF Centronics Timing Chart RESET RES ----t MIN250µsec ~ DATA x ~-------~ X First byte STROBE VCK KA llllll \'-_ _ ______,/ High nibble ~e _.......,~----------~/ \ ;- BUSY KB ™ 56 OKI Semiconductor MSM6585 Example of Interface Circuit with 256Kbit EPROM The circuit example and timing chart that used the 256K-bit EPROM are shown below. MSM27256 CE A11 A12 A13 A14 Oo 04 01 Os 02 Os 03 07 11 Oo- 011 012 81 A1 82 A2 83 A3 84 A4 MSM4040 KB MSM4019 RESET KA D1 D2 D3 D4 640kHz ))) CL RESET (MSM4025) M6585 VCK (0) J1JU1Jl------------------------------------------------JLM START SW M4013 S1 ' - - - - - - - - __________ _ _ J M4013 01 (M6585 RESET) '------------------__J M4013 02 ~-------------------------__IL (Lower 4-bit) 02 ~--------------------------LJ (Upper 4-bit) ~------------------------Jl_ M4040 01 --------------------s--L ---i_ __ J--l_flJL ----1_ M4040 03 57 OKI Semiconductor MSM6295 4-CHANNEL MIXING ADPCM VOICE SYNTEHSIS LSI GENERAL DESCRIPTION The Oki MSM6295 is a 4-channel mlXlng bytes. ADPCM voice synthesis LSI which is fabri- cated using Oki's low power CMOS silicon The MSM6295 has a 4-channel synthesis stage gate technology. which allows the simultaneous playback of four different channels. It is used to have a The MSM6295 can access an external ROM, voice with BGM (Back Ground Music) effect, where speech or sound effects data is stored. instrumental sound, echo etc. The maximum external ROM size is 256K FEATURES • Oki straight ADPCM algorithm • Number of words: 127 maximum • Number of bits/sample: 4 • Vocalization time: 60 sec maximum • 18 address lines for external ROM (@8 kHz, straight) • 8-bit control bus for mode setting • Built-in DA converter: 12-bit • External memory capacity 2Mbit • DA output format: A-class • Interface with common CPU and MPU • Voice level attenuation: OdB ~ -24dB • Clock frequency: 1 MHz to 5 MHz on each channel (9 steps) • Sampling frequency: -3dB/step 6.5 kHz and 8 kHz • Low power CMOS process (@1.056 MHz clock) • 5 V single power supply 25.6 kHz and 32 kHz • 44-pin plastic QFP (QFP44-P-910-V1K) (@4.224 MHz clock) (QFP44-P-910-K) • 42-pin plastic DIP (DIP42-P-600) MSM6295 OKI Semiconductor BLOCK DIAGRAM RD WR RESET CS 4-Channel Input Word 7 l4-l7 Register Control Circuit Specifying 1 Re ister 4-Channel Input Word 4-Channel lo-13 Register Specifying Busy 2 Re ister Register 4-Channel ------ 4 Voice D/A DAO 4 Synthesis Converter Circuit Address 18 18 Counter 4-Channel Ao-A11 Start Address Register 18 Address Do-D1 18 Compare 4-Channel Stop Address VDD VSS SS XT XT PIN CONFIGURATION (Top View) 44 Lead Plastic OFP ~6 ~ ~7 ~ ~ ~ lo A1 11 Ao 12 VOO 13 01 J4 Os J5 05 ls 04 h 03 60 OKI Semiconductor MSM6295 (Top View) 42 Lead Plastic DIP 13 12 l4 11 Is lo Is DAO l7 Arn vss A15 WR A14 cs A13 XT A12 XT A11 SS A10 RESET Ag Do Ag D1 A1 D2 Ag D3 As D4 A4 Ds A3 Ds A2 D1 A1 VDD Ao 61 MSM6295 OKI Semiconductor ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings Parameter Symbol Conditions Value Unit Power supply voltage VDD Ta= 25·c -0.3 - +7.0 v Input voltage V1N Ta= 25·c -0.3 - VDD +0.3 v Storage temperature Tstg - -55 - +150 ·c • Recommended Operating Conditions Parameter Symbol Conditions Value Unit Power supply voltage VDD vss = ov 4.5 - +5.5 v Operating temperature Top VSS = OV -40 - +85 oc Oscillation frequency fosc vss = ov 1- 5 MHz • DC Characteristics (VDD = 4.5-5.5V, VSS = OV, Ta= -40 - +85°C) Limits Parameter Symbol Conditions Unit Min. Typ. Max. "L' input current l1L V1L =VSS -10 - - µA "H" input current hH V1H = VDD - - 10 "L" input voltage V1L - - - 0.8 v "H" input voltage V1H - 2.4 - - 'L" output voltage VoL loL = 0.8 mA - - 0.45 v "H" output voltage VoH loH = -40 µA 3.7 - - Output leakage current ILO vss ~ VouT ~ VDD -10 - 10 µA Operating current loo fosc = 5.0MHz - 5 10 mA DA output relative error IVoAEI No load - - 20 mv DA output impedance RoAOUT - - 15 - kQ 62 OKI Semiconductor MSM6295 • AC Characteristics (VDD = 4.5-5.5V, VSS = OV, Ta = -40 - +85°C) Parameter Symbol Min. Typ. Max. Unit Clock cycle tcvc 200 - - ns Clock duty cycle fourv 40 50 60 % RESET pulse width IREL 100 - - ns CS pulse width tcsL 250 - - ns WR pulse width IWRL 200 - - ns RD pulse width IRDL 300 - - ns RESET fall to CS fall lRc 250 - - ns CS fall to WR fall tcwL 50 - - ns WR raise to CS raise tcwH 0 - - ns Data set up time of lo-11 in respect to WR raise ts1 80 - - ns Data hold time of lo-11 in respect to WR raise IHI 80 - - ns RD fall to stable output of lo-'3 !RIZO - - 120' ns RD raise to flow status output of lo-13 !RIOZ 0 - 120 ns CS fall to RD fall ICRL 20 - - ns RD raise to CS raise !CRH 0 - - ns Address stable (Ao-A11) to data input of Do-D1 IAO - - 5•tcvc+90 ns MSM6295 OKI Semiconductor • Timing Chart ---tcvc XT (I) RESET (I) CS(I) WR(I) lo-h (I, 1/0) tcRL iCRH iRDL RD (I) iRIZO iRJOZ lo-la (1/0) AtJ-A11 (0) Do-D1 (I) 64 OKI Semiconductor MSM6295 PIN DESCRIPTION Pin Name Pin No. 1/0 Function lo 37 1/0 Instruction bus and condition outputs 11 38 1/0 These pins are inputs for phrase specification. Maximum number 12 39 1/0 of phrases is 127. lo-ls pins are also outputs of the operating la 40 1/0 state, busy state, for channels 1-4 and are further used to select the 14 41 I channel attenuation rate. Is 42 I Is 43 I 17 44 I WR 3 I Write enable input Data is written on the data bus of lo-11. The data is written when WR goes low. RD 2 I Read enable input The output busy state of channels 1-4 on the data bus of lo-la. Can be read using this input. A high level indicates busy. cs 4 I Chip select 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 outputs l l l These pins are to address the external ROM in which voice data A11 35 I is stored. Do 9 I Voice data inputs I I I D1 16 I SS 7 I Sampling frequency select input When oscillation frequency is 1.056 MHz or 4.224 MHz, the following choices are available by inputting "H" level or "L" level to SS. SS="H" SS ="L" Oscillation frequency 1.056 MHz 8 kHz 6.5 kHz Oscillation frequency 4.224 MHz 32 kHz 25.6 kHz DAO 36 0 Voice synthesis output Voice synthesized analog signal is output from this pin. XT 5 I Crystal oscillator pin XT 6 0 Crystal oscillator pin VDD 17 - Power supply pin vss 1 - Ground 65 MSM6295 OKI Semiconductor FUNCTION EXPLANATION 1. Phrase Selection The phrase selection data is latched when WR goes high while CS is low (L). Phrases are specified and read into the 2 byte data which consists of 10-17 data bus. The format of the phrase specification input is as follows. I, •• ] 1, ] 14 I la J 12 J 1, ] lo 1st Byte 1 Phrase selection data 2nd Byte Channel specification I Reduction specification As shown in the above chart,~ of the first 1 phrase selection data is used for to A3-A9 data byte is always 1. 10 -16 of the first 1 data address outputs, and they specify both start byte specifies the phrase. Phrase selection and stop address which are stored in the data has a selection of 127 phrases which external ROM. corresponds to 0000001-1111111. The Relation between Phrase Selection Data and ROM Address Phrase selection - •• 1, 14 la •2 •1 lo - - - data External ROM A11-A10 Ag As A, As As A4 A, A2 A, Ao address Selection 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 inputs ="O" 66 OKI Semiconductor MSM6295 The second byte of data specifies the syn the- It is not possible to specify multiple chan- sis operation channel as well as specific nels at the same time. For example, it is not channel reduction of the synthesized play- possible to specify channel 1 and channel 3 back. The channel selection format is shown simultaneously. below. Channel Specification Channel 17 1, 1. 1. 1 0 0 0 1 2 0 0 1 0 3 0 1 0 0 4 1 0 0 0 REDUCTION SELECTION 9 levels from about 0 dB to - 24 dB with the steps of about - 3 dB. Reduction format is All O's is considered as 0 dB of the analyzed shown below. sound itself. The reduction is made through Reduction Specification Attenuation level 13 12 11 lo 0 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 MSM6295 OKI Semiconductor 2. Voice Synthesis Channel Suspension pended. Voice synthesis operation of any channel Channel suspension occurs even if multiple can be suspended. Channel suspension is channels are selected. For example, if 13 -16 controlled by bits 13-1 6 of data bytes 10-lr To are all 1 and 17 =0, then channels 1-4 are suspend a channel, make 17 =0, while 13-1 6 suspended simultaneously. represent the channels which should be sus- Suspended channel 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 3. DataROM bytes show start address while the last 3 bytes show stop address. The other 2 bytes 1) ADDRESS DATA are empty. This specifies start and stop address of By selecting the first address in which the ADPCM speech data. One phrase start and start address is stored, the selected speech end address consists of 8 bytes. The first 3 data is played back. Address O SA1 SAz 2 s~ 3 EA 1 4 EA2 5 EA3 6 EMPTY 7 EMPTY Start addresses (SA1-SA3 ) and stop addresses shown below. (EA1 -EA) are stored according to the chart SA/EA1 0 0 0 0 0 0 A11 A16 SA,/EA2 A15 A14 A13 A12 An A10 Ag Aa SAJEA3 A1 As A5 A4 A3 A1 A1 Ao 68 OKI Semiconductor MSM6295 2) ADPCM SPEECH DATA ended with the lower rank bit. So, always store an even number of samples. ADPCM speech data consists of (2) 4-bit samples. So, 1 byte stores 2 samples. Data Speech data is produced by Speech Devel- arrangement proceeds from higher rank bits opment Tool AR76-202. (D4 -D7) to lower rank bits (D0 -D3). The storage of speech data should always be D1 Ds Ds D4 D3 D2 D1 Do SIGN MSB 2SB LSB SIGN MSB 2SB LSB Start Address ' End Address I- I- ~ I- ~ I Final Data - - - ~ 3) DATAROMSTRUCTURE The following chart shows the memory map of the source data ROM. OOOOOh Empty 00008h Address data 00010h OOOOOh Addtress data section ~ 003FFh (maximum address data) ADPCM ADPCM ADPCM speech data data data section 3FFFFh 3FFFFh (maximum ROM) When the maximum 127 phrases are se- When 1 phrase is selected, address data is lected in address data section, the data is written from ROM address 00008h to written up to ROM address 003FFh. OOOOFh, and the rest is used as the ADPCM data section. 69 MSM6295 OKI Semiconductor FUNCTIONAL DESCRIPTION 1. Phrase Selection Input to "H'', while CS remains "L''. This procedure is to input phrase selection Voice synthesis operation does not start till data onto the data bus inputs I -I . The data the second byte is fully latched. is latched internally when WR ~is~s from "L" tcvc XT, XT (1,0) RESET (I) 'CS(I) '1 ~ 500ns WR(I) lo-11 (I) (Phrase specification) No sound DAO (0) 1/2 VDD Note: Phrase selection is from channel 1 to channel 4 continuously. *1 An interval of 75 Tcvc (max.) is needed between phrases. 70 OKI Semiconductor MSM6295 CS (I) *2 Approx. 71 occr WR(I) v 0 Q v lo-17 (I) 1 byte data 2 byte data 1 byte data 2 byte data Note: *2 Oscillation frequency= 1.056 MHz SS= "L" Voice synthesis playback can be started The second byte of the phrase selection data from any channel, 1 to 4. The arrangement contains the phrase attenuation data in bits of each channel can be in any order. DO - 03. Synthesized data is attenuated in -3 dB steps from 0 dB to -24 dB. 2. Attenuation of Synthesized Speech When attenuation rate is 0 dB ---.---,/\ ~ I t1/2VDD v~ _ MAX.VDD.., When attenuation rate is -24 dB -~f-1-12-v-oo---~vJWW\/\/V\ t MAX. 1/16 VDD p-p 71 MSM6295 OKI Semiconductor 3. Speech Synthesis Channel Suspension remains active (L). Since synthesis suspen- sion data is 1 byte data, synthesis operation This is accomplished by writting synthesis is suspended right after the rising edge of channel suspension data onto data bus in- WR. Multiple channels can be specified, puts IL!z:. The data is latched internally making it possible to suspend channels 1-4 when WR goes from "L" to "H" while CS simultaneously. CS (I) WR (I) Approx. 156 µs Voice synthesis suspension data No Sound DAO (0) 1/2 VDD Note: • Oscillation frequency= 1.056 MHz SS= "L" 4. Reading the Busy Status state, the busy state of channels 1-4 is out- put on 10 -1 3• "H'' is output during synthe- While CS is "L" and RD is "L", each operation sized playback. CS (I) RD (I) l J1 lo-ls (1/0) _J_ L Busy output of each channel "H" or "L" level. 72 OKI Semiconductor MSM6295 5. Start and Stop of 1 Channel :-.-1 Sample-: Sample rate '"4------ No voice - - - - - - - - - '' Vol·ce "' o " "' o: vvvv: Stop Start WR(I) LJ u-LJ :-48 x n clock number-: :--1 sample rate: : : ' More than ' , ~----'-'_ _ _ _ __ Busy(internally) :.__ 15 x n ___.: : clock number : 1 sample rate : 33 x n clock number SS= H : n = 4 I SS= L: n = 5 Start and Stop of Signal Channel When a single channel (either of channels 1- next sample and BUSY becomes "L". 4) starts again after it has stopped, the first write for start must be input with a delay of When start is entered again, voice is output more than one sample rate from the stop after 48 x n clock from the second byte write. write as shown in the figure above. When BUSY becomes "H" after 15 x n clock inter- stop is entered, voice playback stops all the nally. :----1 Sample - - : Sample rate ' '-max 2 sample rate+ 15 n clock number----: Voice Stop Start + The voice of start channel begins from here. WR (I) ~ : - - More than u-u ___; , 1 sample rate, : Busy( internally) : _ 15xn ___: : clock number : :.__ 48 x n ----: : clock number Start and Stop in Plural Channels When channels are operating, the first byte input is output after a maximum 2 samples write for start must be input with a delay of = 15 x n clocks from the preceding sample more than one sample rate from stop write. point. The channel where stop was input, stops at BUSY becomes "H" during the 48 x n clock every sample. time. Voice off the channel where stop was again 73 MSM6295 OKI Semiconductor 6. Application Circuit SS VDD A11 A16 Ao-A1s lo-17 CE CE Ao-A15 Ao-A15 MPU ROM ROM WR Oo- - Oo- - RD 01 OE 01 OE cs RESET Do-D1 XT XT vss DAO D LPF ))) ~ ~ 74 OK.I Seiniconductor MSM6375/4/3/2-XXX 1 M-bit/512K-bit/256K-bit/128K-bit MASK ROM SPEECH SYNTHESIZER GENERAL DESCRIPTION The MSM6375 series is an ADPCM speech making applications with BGM (Background synthesis LSI utilizing a CMOS speech pro- Music) and voice with echo possible. Addi- cessor circuit in conjunction with a built-in tionally 8 beep tones are available at four MASK ROM for speech data storage. Since it selectable durations for use as prompts into a has a built-in 12-bit DA converter and low message. pass filter, speech output can easily be ac- complished by connecting an external power The MSM6376 is an evaluation LSI for the amplifier and speaker. Two sounds can be MSM637X series. synthesized and reproduced simultaneously FEATURES Speech period Device ROM size fs::4.0kHz fs=6.4kHz fs=8.0kHz MSM6375-XXX 1M-bit 64 sec 40 sec 32 sec MSM6374-XXX 512K-bit 32 sec 20 sec 16 sec MSM6373-XXX 256K-bit 16 sec 10 sec 8 sec MSM6372-XXX 128K-bit 8 sec 5 sec 4 sec (Note) fs=Sampling frequency • Single-chip CMOS • Built-in 12-bit DA converter • ROMCustom • Built-in LPF • 4-bit ADPCM system • Standby function • Echo or 2-channel mixing functions • Oscillation: RC or crystal • Maximum number of words: 111-word • Packages: 18-pin DIP (DIP 18-P-300) 24-pinSOP (SOP 24-P-430-VK)Chip fosc fs fcur Beep LPF DAC [kHz] [kHz] [kHz] Tone Voltage Voltage 4.0 1.5 1kHz 2.7V 64 6.4 3.0 & I 8.0 3.0 2kHz 5.5V 8.0 3.0 2kHz 4.5V 2.4V 128 12.8 6.0 & I I 16.0 6.0 4kHz 5.5V 5.5V 16.0 - 4kHz 256 25.6 - & - 32.0 - 8kHz 75 MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX OKI Semiconductor PIN CONFIGURATION (Top View) 18 Lead Plastic DIP 14 1 18 13 15 2 17 12 16 3 16 11 2CH 4 15 10 RESET s 14 ST BUSY/NAR 6 13 OSC3/CS SG 7 12 OSC2 AOUT a 11 OSC1 GND 9 10 VDD Note: Applicable to the MSM6375-XXX-RS, MSM6374-XXX-RS, MSM6373-XXX-RS, MSM6372-XXX-RS 24 Lead Plastic SOP VDD 1 0 24 GND OSC1 2 23 AOUT OSC2 3 22 SG NC 4 21 NC OSC3/CS 5 20 BUSY/NAR NC 6 19 NC NC 7 ST 8 10 9 Note: Applicable to the MSM6375XXXGS-VK, MSM6374XXXGS-VK, MSM6373XXXGS-VK, MSM6372XXXGS-VK. 76 OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX MSM6375/MSM6374/MSM6373/MSM6372 BLOCK DIAGRAM 10 t>-_...----, 11 12 ROM 13 MSM6375: 217 x 8-bit 14 MSM6374: 216 x 8-bit MSM6373: 215 x 8-bit 15 MSM6372: 214 x 8-bi1 16 v-~.,____, MSM6375: 17 ffi~ffiffi (Adress ROM 4096-bit) MSM6374: 16 ili'"ilP' ~~~~m: 1~ ,.:11,.:11 nusv MSM6375: 17 s1age Address Cowit NAR MSM6374: 16 stage Address Count MSM6373: 15 stage Address Count MSM6372: 14 stage Address count OSC1 OSC2 osc3/CS" Timing Controller SG voe GND AOUT 77 MSM6375-XXX/6374·XXX/6373-XXX/6372-XXX OKI Semiconductor ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings (GND=OV) Parameter Symbol Conditions Rating Unit Supply voltage VDD -0.3 - +7.0 v Ta= 25"C Input voltage V1N -0.3 - VDD + 0.3 v Storage temperature Tstg - -55-+150 ·c • Operating Ranges (GND=OV) Parameter Symbol Conditions Rating Unit VDD DAG output +2.4- +5.5 Supply voltage LPF output l40kHz ~fosc ~ 140kHz +4.5 - +5.5 v J fosc ~ 80kHz +2.7 - +5.5 Operating temperature Top - --40 - +85 ·c Master oscillation frequency (Note 1) fosc1 LPF output 40 -140 kHz Master oscillation frequency (Note 1) fosc2 DAG output 40 - 256 kHz Note 1: The precision of the oscllation frequency with the optional RC oscillator depends heavily on the precision of external Cand R. • DC Characteristics (VDD=5.0V, GND=OV, Ta=--40-+85°C) Parameter Symbol Conditions Min. Typ. Max. Unit "H' input voltage V1H - 4.2 - - v "L' input voltage V1L - - - 0.8 v "H' output voltage VoH loH = --40 µA 4.6 - - v "L" output voltage VoL loL = 40 µA - - 0.4 v "H' input current hH V1H =VDD - - 10 µA "L" input current hL V1H =OV -10 - - µA Operating current consumption loo - - 4 10 mA Standby current consumption los - - - 10 µA Relative precision of DA IVoAEI No load - - 40 mV DA output impedance RoAo - 15 25 35 kll LPF load impedance RAOUT - 50 - - kn 78 OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX • DC Characteristics (VDD = 3.1 V, Vss= OV, Ta = 25°C) Parameter Symbol Conditions Min. Typ. Max. Unit "H" input voltage V1H - 2.6 - - v "L" input voltage V1L - - - 0.5 v "H" output voltage VoH loH = -10 µA 2.7 - - v "L" output voltage VoL loL =-10 µA - - 0.4 v "H" input current l1H V1H = VDD - - 1 µA "L" input current l1L V1L = OV -1 - - µA Operating current consumption loo - - 1.5 4 mA Standby current consumption los - - - 1 µA Relative precision of DA output I VoAEI No load - - 20 mV DA output impedance RoAo - 15 25 35 kn LPF load impedance RA OUT - 50 - - kn 79 MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX OKI Semiconductor • AC Characteristics (VDD =5V, Ta =-40 - 85°C, fosc =64 kHz) Parameter Symbol Conditions Min. Typ. Max. Unit Master oscillation duty cycle fwty - 40 50 60 % RESET input pulse width tw(Rsn - 10 - - µs ST input pulse width (Note 3) tw(S'F) - 0.35 - 350 µs 2CH input pulse width tw(2CA) - 0.35 - - µs ST-ST pulse interval tss - 0.35 - - µs 2eR" setup time tCHs - 0.35 - - µs 2CH hold time tscH - 0.35 - - µs Data set time tow - 10 - - µs Data hold time two - 10 - - µs 'CS setup time (Note 1) tcs - 10 - - µs -e8 hold time (Note 1) tsc - 10 - - µs fs1 fosc/8 - 8.0 - kHz Selectable sampling frequency fs2 fosc/10 - 6.4 - kHz f53 fosc/16 - 4.0 - kHz BUSY output time (1) (Note 5) ts BS - - - 10 µs BUSY output time (2) (Note 2) taN At fs = 8 kHz 350 375 400 µs At master BUSY output time (3) (Notes 2 and 6) taF - - 64 ms frequency=64 kHz BUSY output time (4) (Note 3) teA At fs=8 kHz 350 375 400 µs NAR output time (1) (Note 5) tsNS - - 10 µs NAR output time (2) INN - - - 500 ns NAR output time (3) (Note 4) lNAA Atfs=8 kHz 350 375 400 µs NAR output time (4) (Note 4) tNAB At fs=8 kHz 350 375 400 µs NAR output time (5) (Note 4) tNAC At fs=8 kHz 350 - 550 µs At master D/A converter transition time toAR, toAF 60 64 68 ms frequency=64 kHz At master LPF stabilizing time (Note 5) IL 12 16 20 ms frequency=64 kHz Standby transition time At master tsTB 2.9 3.0 3.1 sec (at end of speech output) frequency=64 kHz At master ST-2eR" pulse interval IS2CH frequency=64 kHz 1.0 - - ms ST input wait time tNs - 10 - - µs Note 1: When crystal oscillation is selected as an option. Note 2: When BUSY is selected as an option. The duration is proportional to fs. Note 3: When the CPU interface is selected as an option, the MAX value is proportional to fs. The MAX value when playing one word (using the SW interface) is equal to the speech cycle time. Note 4: When NAR is selected as an option. The duration is proportional to fs. (When fs is high, the cycle is shortened.) Note 5: Applicable at the start of oscillation. Note 6: When playback occurs during the standby transition period (toAF). 80 OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX • AC Characteristics (VDD = 5V, Ta= -40 - 85°C, f0 sc1 = 40 - 140 kHz, fosc 2 = 40 - 256 kHz) Parameter Symbol Conditions Min. Typ. Max. Unit Master oscillation duty cycle fduty - 40 50 60 % RESET input pulse width tw(RST) - 10 - - µs ST input pulse width (Note 2) tw(sf) - 0.35 - a µs 2CH input pulse width tW(2CH) - 0.35 - - µs ST-ST pulse interval tss - 0.35 - - µs 2CH setup time tcHS - 0.35 - - µs 2CH hold time tscH - 0.35 - - µs Data set time tow - 10 - - µs Data hold lime two - 10 - - µs CS setup time (Note 1) tcs - 10 - - µs CS hold time (Note 1) tsc - 10 - - µs fs1 - - fosdB - kHz Selectable sampling frequency fs2 - - fosd10 - kHz fs2 - - fosd16 - kHz BUSY output time (1) (Note 3) tsss - - - 10 µs BUSY output time (2) tsN - a b c µs BUSY output time (3) (Notes 4) tsF - - - e ms BUSY output time (4) ts A - a b c µs NAR output lime (1) (Note 3) tsNS - - - 10 µs NAR output time (2) INN - - - 500 ns NAR output time (3) tNAA - a b c µs NAR output time (4) tNAB - a b c µs NAR output time (5) tNAC - a - d µs DIA converter transition lime (Note 3) toAR, toAF - e-4 e e+4 ms LPF stabilizing time tL - f-4 f 1+4 ms Standby transition time tsrn - g-0.1 g g+0.1 sec (at end of speech output) ST-2CH pulse interval ts2cH - h - - ms ST input wait time tNs - 10 - - µs 8 (kHz) b = 375 x B (kHz) 8 (kHz) d = 550 x B (kHz) a= 350 x fs (kHz) fs (kHz) c = 400 x fs (kHz) fs (kHz) e = 64 x 64 (kHz) f = 16 x 64 (kHz) 64 (kHz) h =1.0 x 64 (kHz) fosc (kHz) lose (kHz) g = 3·0 x lose (kHz) fosc (kHz) Note 1: When crystal oscillation is selected as an option. Note 2: When the CPU interface is selected as an option, the MIN value when playing one word (using the SW interface) is 0.35µS and the MAX value is equal to the speech cycle time. Note 3: Applicable at the start of oscillation. Note 4: When playback occurs during the standby transition period (toAF). Q1 MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX OKI Semiconductor TIMING DIAGRAMS 1. At power-on VDD - - - - - - - - - ' RESET(!) /I ----~~.. tw(liST) BUSY/NAR(O) _ _ _ _ _ _ _ ___, 2. At LSI startup and in standby state 16-10(1) I I I I -~-n~' CS(I) tcs tow .,, k .,; ~1---------------------- I~,.. _..,..., _ I tsc __.J.._ .. _ two ST(I) ------------------------ BUSY(O) tsss NAR(O) tsrn .,, I AOUT(O) toAR lo AF Play end Standby state---i...-.: :.-..:..---- Standby state Standby Standby transition transition 3. Operation in channel 1 only (CPU input interface) 16-10(1) 2CH(I) "H" Si(I) NAR(O) BUSY(O) I I : IL I ~I II I I I -----'I I I I I I AOUT(O) '3rd word' ,_..,_____.,:, ~ : 1st word play: '2nd word ' ~ loAR 82 OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX 4. Operation in Channel 2 Only (CPU input interface) 16-10 (I) ~~--1-st_w_or_d_ad_d_res_s_ _ _~X~ ___ 2_nd_w_o_rd_a_dd_re_s_s- - - - - - 2CH (I) ST(I) NAR (0) "H" BUSY (0) AOUT(O) 5. Operation in Address Designation with No Sound ST (I) NAR (0) BUSY (0) I IL I : AOUT(O) ~ 1~--------------~ ------- r- ' P22 ST Cl) ~ <..:l OSC1/CS P3 1 0 NAR "" 00 1 OSC1 AOUT RESET D OSC2 I I SG Open EA GND 0 I r Figure 16 Application Circuit Example in the Case of Selecting XT, DAC and CPU in Option 99 MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX OKI Semiconductor Table for voice address vs. switch S1 10 S2 16 15 14 13 12 11 10 ADR S3 11 S1 0 1 1 1 1 0 3E S4 12 S2 0 0 0 3C en UJ S3 0 0 3D S5 a: UJ en S4 0 1 0 38 S6 13 U") ..... S5 0 0 0 33 "' '° ::!: $7 14 $6 0 0 37 SB 15 S7 0 0 2F 16 SB 0 1F Figure 17 Application Circuit Example to Output the Voice of 8 Words by Switch Interface 100 > Note: When the LSls are connected as shown below, usable '"O '"E... ~r ::r. s ~ addresses of the MSM6374 are as follows: 0 ::i rn- e. (OO)H (30)H (60)H ...0 g OPEN I (07)H I (37)H I (67)H s. rr §' (70)H (10)H (40)H [ ~ I I 1 } Beep sound (17)H (47)H (77)H (20)H (50)H COM1 N1-N24 T1 T2 T3 T4 Ts I I ~ ~ LO (27)H (57)H 64-word in total (8-word: Beep) BD OPEN x XTO UT .?< 3C I~ AC2 MSM6374-007 M 10 en M4 11 AOUT1-_,•.i-1- - . O.Q1~ 3C 3 MSC1192 12 _ MSM5055L-110 M2 13 OSC1~ --l AIN SP ~ ~ ~ M b i~ 32.768kHz o L1 15 ~ STBY ~ '----11---P-i 16 LD l - - - - - 1 - - ST + .--iVR SP I 0.02µF [ 5-35µF ~ K BUSY/NAR 1µF• 2 RESET + VcM VDD DIN ...... GND VDD ...... +VEE ,j. VEE GND -- - --·. ~-·~-~~~--~-r·-~--~-T--,·-,-,,--,- iS 0.1µF 3V 0.47µF ~ 'f ~ I\) ...... 0 ...... a ...... 0 N ~ s:: ~ ~ "' s:: ~ Note: When the LSls are connected as shown below, usable §" ..... (JI addresses of the MSM6374 are as follows: "'- ~ (OO)H (30)H (60)H 0. .... OPEN ! (07)H ! (37)H ! (67)H S. !T (1 O)H (40)H (70)H } i i i Beep sound ~ ~ I (17)H (47)H (77)H ~ COM1 N1-N24 T1 T2 T3 T4 Ts (20)H (50)H ~ 0 ! ! LO (27)H (57)H 64-word in total (8-word: Beep) 8l BD OPEN ~ ,x c.> XTO UT ~ ~ AC2 MSM6374-006 M4 1 - - - - - . i 10 M3 11 AOUTL:::l ~ MSC1192 MSM5055L-108 M2 1 - - - - - . i 12 0.01µF 13 OSC1 h --I AIN SP ~ ..... XT M1 I 0 I\) L2 14 0 32.768kHz o 5-35µF XT L1 LD t - - - - + - - ST 15 16 VVVL - " + STBY VR SP I 0.02µF .?" $ll g_ s K2 - - - + - - - - < BUSY/NAR ~............ 1µF RESET + Vcp VcM VDD -tlDIN S1 S2S3S4ACVEE.j, +VEE.VEE GND - GND VDD IS •~~ 0.47µF I OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX PAD LAYOUT Product name MSM6372-XXX Function 128K-bit ROM built-in voice synthesis LSI Die size 3.49 x 4.00 (mm 2 ) Die thickness 350µm±30µm Pad size 110µm 2 Substrate voltage GND Pad location diagram 4 3 2 1 Y-LAY 20 19 18 17 • •• • • •• • 5 • • 16 X-LAY 6 • • 15 • • •• •• • • 7 8 9 10 11 12 13 14 Pad Position (the die center is located at X=O, Y=O) (Unit: µm) PAD No. PAD Name X-AXIS Y-AXIS PAD No. PAD Name X-AXIS Y-AXIS 1 14 -555 1830 11 AVDD 107 -1754 2 15 -960 1830 12 DVDD 353 -1830 3 16 -1140 1830 13 OSC1 766 -1829 4 2CH -1545 1830 14 OSC2 1180 -1829 5 RESET -1590 1421 15 OSC3/CS 1590 -644 6 BUSY/NAR -1590 -650 16 ST 1590 1421 7 SG -1509 -1751 17 10 1545 1830 8 AOUT -921 -1752 18 11 1140 1830 9 AGND -513 -1720 19 12 960 1830 10 DGND -281 -1830 20 13 555 1830 103 MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX OKI Semiconductor Product name MSM6373-XXX Function 256K-bit ROM built-in voice synthesis LSI Die size 3.49 x 4.70 (mm 2) Die thickness 350µm±30µm Pad size 110µm 2 Substrate voltage GND Pad location diagram r-LAY 3 2 1 20 19 18 4 •• • • •••• 17 5 • • 16 - r--- X-LAY 6. • 15 • • •••••• 7 8 9 10111 12 13 14 Pad Position (the die center is located at X=O, Y=O) (Unit: µm) PAD No. PAD Name X-AXIS Y-AXIS PAD No. PAD Name X-AXIS Y-AXIS 1 14 -955 2180 11 AVDD 107 -2104 2 15 -1135 2180 12 DVDD 353 -2180 3 16 -1545 2180 13 OSC1 766 -2179 4 2CH -1590 1791 14 OSC2 1180 -2179 5 RESET -1590 1235 15 OSC3/CS 1590 -994 6 BUSY/NAR -1590 -1024 16 ST 1590 1225 7 SG -1509 -2101 17 10 1590 1791 8 AOUT -921 -2102 18 11 1545 2180 9 AGND -513 -2070 19 12 1135 2180 10 DGND -281 -2180 20 13 955 2180 104 OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX Product name MSM6374-XXX Function 512K-bit ROM built-in voice synthesis LSI Die size 3.52 x 6.17 (mm2 ) Die thickness 350µm±30µm Pad size 110µm 2 Substrate voltage GND Pad location diagram 2 1 l Y-LAY 20 19 3 ••• ••• 18 4 • • 17 5 • • 16 f-- X-LAY 6 • • 15 7 •••••••• 8 9 10 11 12 13 14 Pad Position (the die center is located at X=O, Y=O) (Unit: µm) PAD No. PAD Name X-AXIS Y-AXIS PAD No. PAD Name X-AXIS Y-AXIS 1 14 -955 2930 11 AVDD 107 -2854 2 15 -1135 2930 12 DVDD 353 -2930 3 16 -1545 2930 13 OSC1 766 -2929 4 2CH -1590 2541 14 OSC2 1180 -2929 5 RESET -1590 1985 15 OSC3/CS 1590 -1744 6 BUSY/NAR -1590 -1774 16 ST 1590 1975 7 SG -1509 -2851 17 10 1590 2541 8 AOUT -921 -2852 18 11 1545 2930 9 AGND -513 -2820 19 12 1135 2930 10 DGND -281 -2930 20 13 955 2930 105 MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX OKI Semiconductor Product name MSM6375-XXX Function IM-bit ROM built-in voice synthesis LSI Die size 3.52 x 9.16 (mm2 ) Die thickness 350µm±30µm Pad size 110µm 2 Substrate voltage GND Pad location diagram 3 2 1 JV-LAY 201918 • •• 4. ••• • 17 5. • 16 r--x.LAY 6• • 15 •••••••• 7 8 9 1011112 13 14 Pad Position (the die center is located at X=O, Y=O) (Unit: µm) PAD No. PAD Name X-AXIS Y-AXIS PAD No. PAD Name X-AXIS Y-AXIS 1 14 -955 4425 11 AVDD 107 -4349 2 15 -1135 4425 12 DVDD 353 -4425 3 16 -1545 4425 13 OSC1 766 -4424 4 2CH -1590 4036 14 OSC2 1180 -4424 5 RESET -1590 3480 15 OSC3/CS 1590 -3239 6 BUSY/NAR -1590 -3269 16 ST 1590 3470 7 SG -1509 -4346 17 10 1590 4036 8 AOUT -921 -4347 18 11 1545 4425 9 AGND -513 -4315 19 12 1135 4425 10 DGND -281 -4425 20 13 955 4425 106 OKI Semiconductor MSM6375-XXX/6374-XXX/6373-XXX/6372-XXX MSM6375 SERIES GENERAL CODE LIBRARY ROM built-in voice synthesis LSI is based on dard. customer's order by user's request and voice products for general use are ready as stan- The standard products are as follows. Code Name Application Language Sex fs Option MSM6373-329 For an answer phone, a clock English Male 4.0kHz G MSM6374-007 For an answer phone, a clock English Female 6.4kHz G MSM6374-544 For an answer phone, a clock English Female 6.4kHz G MSM6374-545 For an answer phone, a clock Chinese Female 6.4kHz G MSM6373-308 For an answer phone, a clock Japanese Female 4.0kHz A MSM6374-519 For an answer phone, a clock Japanese Female 5.3kHz A MSM6374-006 For an answer phone, a clock Japanese Female 6.4kHz E MSM6374-553 For an answer phone, a clock Japanese Female 6.4kHz G MSM6372-119 For a facsimile Japanese Female 6.4kHz L MSM6372-100 Irasshaimase . Arigatougozaimashita. Japanese Female 6.4/8.0kHz B Refer to next page and after. 107 ...... 0 00 Address Voice Word fs(kH& Address Voice Word fs(kHz) Address Voice Word fs(kH&_ Address Voice Word ~kH&_ s: CJ) 3!:: (/) 00 STOP Code - 20 SIX 4.0 40 FRI- 4.0 60 s: 3!:: 01 ONE 4.0 21 SEVEN 4.0 41 SATUR- 4.0 61 ~ ..... O> c.> 02 TWO 4.0 22 EIGHT 4.0 42 -DAY 4.0 62 c.> ....... I C1'I 03 THREE 4.0 23 NINE 4.0 43 -TEEN 4.0 63 c.> I ~ 04 FOUR 4.0 24 TWENTY 4.0 44 Settl-e DAY and TIME 4.0 64 ~ 05 FIVE 4.0 25 THIRTY 4.0 45 No Voice 30m sec 4.0 65 < 8. f'l 06 SIX 4.0 26 FORTY 4.0 46 66 I'll c.> ....... 07 SEVEN 4.0 27 FIFTY 4.0 47 67 ~ ~ I 0 .... ~ 08 28 48 68 0.. 09 29 49 69 :> OA 2A 4A 6A 0.. 0.. .... ....... OB 2B 4B 6B I'll fl) fl) c.> oc 2C 4C 6C I ~ (') OD 2D 4D 6D 0 .... .... OE 2E 4E 6E I'll fl) OF 2F 4F 6F 'g ....... 4.0 4.0 ::i 10 EIGHT 30 OH 50 70 BEEP Sound Code I\) &. I ~ 11 NINE 4.0 31 AM 4.0 51 71 ::i (fl ()Q 12 TEN 4.0 32 PM 4.0 S2 72 13 ELEVEN 4.0 33 SUN- 4.0 S3 73 o. ~ ] . . ,. 14 TWELVE 4.0 34 MON- 4.0 S4 74 :::: f'l ~ P> 0..., 15 THIR- 4.0 35 TUES- 4.0 SS 7S ::r. 0 tTl ::i 16 FOUR- 4.0 36 WEDNES- 4.0 S6 76 ?. o.s.. r;;· ...~ FIF- 4.0 37 THURS- 4.0 S7 77 'Tj 17 ~ 0 18 38 S8 78 Test Code ~ ::l 19 39 59 79 II s I'll Ul 1A 3A SA 7A °' !:!? .i:. :>;'" ()Q (1) 1B 3B SB 7B :::r: ::i 8. 1C 3C SC 7C N ' 0 c P> g 1D 1E 3D 3E SD SE 7D 7E "O ::r. 0 ::i g. 1F 3F SF 7F () ~ s:: ~ Address Voice Word f~kH& Address Voice Word f~kHz_}j Address Voice Word f~kH&J Address Voice Word ~kH& 00 STOP Code - 20 TY-FOUR 6.4 40 O'CLOCK G.4 60 "'s:: CJ) 01 02 Alarm Setting 6.4 6.4 21 22 TY-FIVE TY-SIX 6.4 6.4 41 42 SIX- SEVEN- G.4 G.4 G1 62 c:.> ..... ~ ""' Ul CD I 03 04 ON OFF 6.4 6.4 23 24 TY-SEVEN TY-EIGHT 6.4 6.4 43 44 EIGHT- NINE- G.4 G.4 G3 64 8 ..... 8- < § OS 06 Hour Minute 6.4 6.4 2S 26 TY-NINE -TY 6.4 6.4 4S 4G TY-ONE TY-TWO G.4 G.4 GS GG 8. n ro g. 07 Second 6.4 27 -TEEN 6.4 47 TY-THREE G.4 G7 :E ~ ~ ..... 08 28 48 G8 0.. 09 29 49 G9 > 0.. OA 2A 4A GA 0.. .... OB 2B 4B GB ro "'"' QC OD 2C 2D 4C 4D GC GD n 0 .... s:: (/) .... s::O> OE 2E 4E GE ro OF 2F 4F GF "' '"Cl c.> 0 !::! ..... 10 NINE G.4 30 ONE 6.4 so OH G.4 70 BEEP Sound Code &. (11 I ~ 11 TEN 6.4 31 TWO G.4 S1 FOR- G.4 71 !::! Cfl (IQ 12 ELEVEN G.4 32 THREE G.4 S2 To Go G.4 72 '"Cl ro c 13 TWELVE G.4 33 FOUR G.4 S3 It's G.4 73 a ;!;. ;:;· ..... ~ c.> ..... 14 ZERO- 6.4 34 FIVE 6.4 S4 No Voice SOms 6.4 74 ~ ;:;. ~ 1S TWEN- G.4 3S SIX G.4 SS No Voice 200ms 6.4 7S s· !:Tl I ~ !::! 1G THIA- 6.4 3G SEVEN 6.4 SG AM G.4 7G .. !::! ~ 17 FIF- 6.4 37 EIGHT 6.4 S7 PM G.4 77 (51 "'!:l" {fl 18 38 S8 78 Test Code n ""3 c.> II §" ..... 19 39 S9 79 ro c.> °' I ~~ 1A 3A SA 7A *'" i)Q" :>;"" ::r: Cfl 1B 3B SB 7B ~" !::! I» 1C 3C SC 7C 0 '-" 1D 3D SD 7D '"Cl ..... 1E 3E SE 7E g· I\) I a !::! 0 1F 3F SF 7F C"l -Cl ...... ...... 3:: 0 Addrass Voice Word I fs(kHz) Address Voice Word ~k~ Address Voice Word fslktf& Address Voice Word fs(kHz) 3: CJ) fl) 00 STOP Code - 20 -TY 6.4 40 EIGHT- S.4 60 SUN- 6.4 3: 3:: 01 ONE 6.4 21 TY-ONE 6.4 41 NINE- S.4 S1 MON- S.4 ~ ~ ...... 02 TWO 6.4 22 TY-TWO 6.4 42 TWEN- 6.4 S2 TUES- S.4 ~I O'I I 03 THREE 6.4 23 TY-THREE 6.4 43 THIR- S.4 63 WEDNES- 6.4 t<: ~ 04 FOUR 6.4 24 TY-FOUR 6.4 44 FOR- S.4 64 THURS- S.4 OS FIVE 6.4 2S TY-FIVE 6.4 4S FIF- S.4 SS FRI- S.4 8. 06 SIX 6.4 26 TY-SIX 6.4 46 SIX- 6.4 66 SATUR- S.4 @ c.> ...... ~ 07 SEVEN 6.4 27 TY-SEVEN 6.4 47 SEVEN- S.4 S7 -DAY S.4 ~ I 0 ~ 08 28 48 68 .... 0.. 09 29 49 69 > 0.. OA 2A 4A SA 0.. .... ro ...... OB 2B 4B SB rlJ rlJ Co> oc 2C 4C 6C I ~ (") OD 2D 4D SD 0 .... .... OE 2E 4E SE ro rlJ 2F 4F "O OF 6F 0 ...... ::I 10 EIGHT 6.4 30 TY-EIGHT 6.4 so IT'S S.4 70 BEEP Sound Code a: ~ 11 12 NINE TEN 6.4 6.4 31 32 TY-NINE OH 6.4 S.4 S1 S2 O'CLOCK AM S.4 S.4 71 72 ::i r.J'l ()Q "O r' a -·-· S.4 S.4 S3 PM S.4 73 ro n -· rr> 13 ELEVEN 33 TEEN ...., ,...., ..... 14 TWELVE S.4 34 TEEN S.4 S4 SET S.4 74 n II> ""' o .... 1S ZERO S.4 3S No Voice 200ms S.4 SS DATA 6.4 7S ::t. tn 0 ::I 16 No Voice SOms S.4 3S No Voice 200ms S.4 SS TIME S.4 76 :=! ~ d1 ::r ~.... 17 No Voice SOms S.4 37 No Voice 200ms S.4 S7 77 rlJ ~ 18 38 S8 78 Test Code /Cl 39 S9 79 II 19 ro en 1A 3A SA 7A °' ~ ~ c: ~- 1D 3D SD 7D "O 1E 3E SE 7E ::t. 0 §' ~ ::I 1F 3F SF 7F ~ l.!!tk~ Address 31: s Address Voice Word Voice Word fs(kH!)_ Address Voice Word fsJ_kH& Address Voice Word fs(kHz) • 0 00 STOP Code - 20 1 !*l S.4 40 •Wff 200ms 4.0 so 31: ~ 1 (~) 01 02 2 (~) S.4 S.4 21 22 2 !*l 3 !*l S.4 S.4 41 42 •Wit 50ms •Wff 30ms 4.0 4.0 S1 S2 w 03 04 3 (~) 4 (~) S.4 S.4 23 24 4 !*l 5 <*l S.4 S.4 43 44 ~..t S.4 S3 S4 ~ < ~- 05 06 5 (Pit) s (~) S.4 S.4 25 2S 6 !*l 7 !*l S.4 S.4 45 46 ..t-¥ 6.4 SS SS 9. @ g. 07 7 (Iii!') S.4 27 8 <*l S.4 47 * 6.4 67 ~ [ 08 09 28 29 48 49 S8 S9 a. OA 2A 4A SA E'Q...: OB 2B 4B 6B ~ oc 2C 4C SC "'() 3:: OD 20 40 60 Sl en 3:: OE OF 10 8 (l!if) S.4 2E 2F 30 9 !*l S.4 4E 4F 50 •• S.4 6E SF 70 BEEP Sound Code 1~Q.. UI ~ 11 9 (~) S.4 31 51 71 s· en OQ 12 10 (~) S.4 32 0 !*l S.4 52 72 '"O r' ro o. -· ~ 13 11 (l!if) S.4 33 10 (*,1JIJ~1X*l 6.4 53 73 ~ ~,,,.......,, 14 12 (~) S.4 34 2 (*,1JIJ~2X*) S.4 54 74 Q ~ 15 . 3 (*,1Jll~3X*l g () i 35 S.4 55 75 4 (*,1JIJ~4X*l ::s ::r 16 36 6.4 56 7S ~ s· 17 m ,,.. roen ~ i 1A 3A SA 7A 1B 3B 5B 7B ::r: -· ~ ~ 1C 3C 5C 7C 0 ~ 1D 30 50 70 '"O 1E 3E 5E 7E §• ........ ........ ........ 1F 3F 5F 7F C) ii ...... ...... Address Voice Word fs(kHz) Address Voice Word fs{kHz) Address Voice Word fs(kHz) Address Voice Word fs(kHz) 31.: 3: N (/) 00 01 Stop Code ~ \ "!; (Pf) - 4.0 20 21 ~'"? "/3/t, (;:J-) (;:J-) 4.0 4.0 40 41 -~ [;19>? 30(ms) 4.0 4.0 60 61 .Y-1>-7" .A?- 4.0 4.0 31.: ~ "'3: O> ...... (.> 02 (;: (Ila'·;:)-) 4.0 22 J: ft, (;:J-) 4.0 42 (;:[;19>') 4.0 62 ;!'-;( 4.0 c.> ...... c.nI g I 03 "/3/t, (Iii!') 4.0 23 43 "13/t,[;19>? 4.0 63 ~ 04 J: (Ila') 4.0 24 9-::i (#) 4.0 44 J:!t, i.; 19>? 4.0 64 B (I:"!;) 6.4 05 ... '- (Iii!'.;:)-) 4.0 25 45 z:i.; 19>? 4.0 65 < 9. 06 ;; < (Pf) 4.0 26 46 i:z;:~ 4.0 66 () Ill ...... 07 f.t.f.t. (Iii!'·;:)-) 4.0 27 ~19>? (-sf) 4.0 47 f-t: 4.0 67 ~ -l=lo I 0 .... ~ 08 28 48 68 0.. 09 29 49 69 OA 2A 4A 6A >- 0.. 0.. OB 2B 4B 6B .... Ill (.> ...... oc "' (.> 2C 4C 6C n0"' I ~ OD 2D 4D 6D .... 2E 4E 6E .... OE Ill OF 2F 4F 6F "' '1j 0 ::i ...... -~ -~ 10 Ii"!; (Pf • -st) 4.0 30 200 (ms) 4.0 50 50 (ms) 4.0 70 Beep Sound Code I'\) 0.. s· I 11 12 13 < [;19>') [;19> ?~'°!'; (!!if) (Iii!') (Iii!') 4.0 4.0 4.0 31 32 33 [;19>-:i (;:[;19>"'.) "13/t,[;19>-:i (-sf) (-sf) (#) 4.0 4.0 4.0 51 52 53 !fjjij !f~ ,~~~ 4.0 4.0 4.0 71 72 73 CJ) '1j ro o. c;;· () C1Q r ::::: .... ~ a 14 [;19> 'j(;: (Iii!') 4.0 34 J: ft, i.; 19>-::> (-sf) 4.0 54 ,),ft, 4.0 74 PJ - :;T• 0.... 15 35 z: i.; 19>-::> (#) 4.0 5S 1'9 4.0 75 0 ?. PJ 16 t!';; (f-t:) 4.0 36 56 76 '1j PJ @ ::s ~ 17 Iii!' 4.0 37 S7 77 Ill 18 19 38 39 S8 S9 78 79 Test Code n II .., "'Ill 1111 1A 3A SA 7A """ ~- °' :>;"' en ([) 1B 3B 5B 7B ::c ::£) .!" C1Q 8. ::i () 1C 3C SC 7C 0 0 '"Q. ~ 1D 3D SD 7D c;· ~ 1E 1F 3E 3F SE SF 7E 7F ::i >- a 0.... Address 00 01 STOP Code L'i; Voice Word (ll, 8- ~-it) ~~- rn, f.IJ fs(kH~ Address - 5.3 20 21 ti c•? Voice Word 10J (IIB) (10j1Jl·l f~H!l_ 3.3 5.3 Address 40 41 El Fl Voice Word f=1kHtj_ Address 5.3 5.3 60 61 Voice Word BEEPi11(64mSec, 883Hz) BEEPi1!(128mSec, 883Hz) f~Htj_ 5.3 5.3 3:: CJ) 3:: 0) c.> ...... .~ tn CD 02 t g 5.3 5.3 22 t (2J)l/l'P) 5.3 42 * 5.3 5.3 62 .p. I ~· 03 ~) ~) 5.3 23 24 43 * 5.3 63 64 UI ..... co 0 04 05 J: ~ (ll-8,~,)t,!'P,f.I) 5.3 25 z: ~) 5.3 44 45 * ~ 5.3 65 < ::s a ~ 0 ;:;· 06 0( (ll, 8-~-!'P) 5.3 26 c•? (2l,ll,'*lli) 5.3 46 ± 5.3 66 (1) 07 IJ:IJ: (ll,8,H;.11,l'PJIJ 5.3 27 c•? (2l,lJACl!'P) 5.3 47 BIEl 5.3 67 ~ 0..... 0 08 l;li; (ll,8,i;,)t,!'P,f.I) 5.3 28 'Fiii 5.3 48 ::.-1'-7" 5.3 68 '1 p.. ( (!l, 8, H~) 09 c~? (1J,8,1~,101t) 5.3 29 'Fil 5.3 49 7';t._~- ;J{'-.A 5.3 69 > p.. OA 5.3 2A H~ 5.3 4A 5.3 6A p.. '1 OB c•'.i•'!i (ll, 8, ~- tt) 5.3 2B -i~/,, 5.3 4B PB 5.3 6B (1) oc c• ?t(ll,8,H;,)t,!'PJf) 5.3 2C ,;,;,, 5.3 4C 6C "'"' n :s:: "' OD 2D l'P 5.3 4D 6D 0 '1 OE 2E C't 5.3 4E 6E '1 (1) :s:: O> OF 2F 4F 6F 'U"'0 c:.> ...... 10 ltL' ~-*-!'Pl 5.3 30 ti lJ (ITT;) 3.3 50 l!!\-E!f 50 J_mtl_ 3.3 70 BEEP Sound Code ::i p.. c.n I 5· -·...,.,-· "'...,.,..... c:.>~...... 11 ''? ()t, ff) 5.3 31 c•?- (11-191M'!) 5.3 51 -ti'-? (i!f) 5.3 71 Cfl ()Q 12 32 1: (ll,8,21-29\1~, 21'!1) 5.3 52 1~~ 5.3 72 'U t""' (1) -· 13 ~/,,(~,8,3.13.23.~.ff) 5.3 33 53 i!f 5.3 73 (") O> ~ 14 J:t., (8.4.14,24,,ff) 5.3 34 54 [, 5.3 74 -... {Fl) (") 0 Q) ~ ~Gl9i?"' (51~) 5.3 55 5.3 ..... I 15 35 Fl J_1f?) 75 5· ~ Q) 16 "i? ()t, ff) 5.3 36 c •?~(21-29,31.00-41~) 5.3 56 El {(: t,) 5.3 76 .. ::i 'U Q) ::i 17 37 57 [, t, (Fl) 5.3 77 "Ti (1) 0 18 38 58 78 Test Code "' (/) n :i c:.> ...... 19 ~~? ()t,!'P,f.I) 5.3 39 59 79 II Ul s c:.> I ~~ (1) 1A 3A 5A .R~Vri'l•J;\" ciQ"Cfl ,N ::l 1C 3C 5C l:"-tc»j~l:;t;!lit, T~L' 5.3 7C Q) .___. 0 1D 3D SD 7D 'U ..... ...... II) 1E 3E 5E 7E 5· I ~ ~ ;.) 1F 3F 5F 7F ::i > a ...... ...... 3:: Address Voice Word j_.!!{_kH~ Address Voice Word fs(kHz) Address Voice Word fsJ_kl-g}_ Address Voice Word fs(kH_& 3:: "'" 00 STOP Code - 20 •'? (;}) S.4 40 so "' 3:: CJ) 3:: (!It) t5 A, (;}) t.;19>? 0) 0) 01 •'t S.4 21 S.4 41 S.4 S1 w 02 1;:: (!It • ;}) S.4 22 J:.A, (;}) S.4 42 i;:: [.; 19>? S.4 S2 .,. ..... I (.> ..... OI I 03 t5 A, (!It) S.4 23 ;?: (;}) S.4 43 t5A,t;19>? S.4 63 § 04 05 OS 07 J:. .... '- -? < t.J:t.J: (~) (!It) (!It) (!It) S.4 S.4 6.4 S.4 24 25 2S 27 -?? t.J:t.J: 1;1:-:i i!IOI? (;}) (;}) (;}) (~) 6.4 S.4 S.4 6.4 44 45 4S 47 J:.A,[;19>? ;?: [.; 19>? {!!: S.4 S.4 6.4 64 65 66 S7 <: 9. n :E i. It) (.> ..... I 0 ~ 08 28 29 48 49 68 S9 a 09 > Q. OA 2A 4A SA Q. .... OB 2B 4B 6B It) (,.) i:l oc 2C 4C 6C I ~ () OD 20 40 60 ~ .... OE 2E 4E 6E It) fll 2F 4F "O OF SF g ..... ~ 10 l;l:t (Hf) S.4 30 50 70 BEEP Sound Code Q. s· c a I 11 < J_~ S.4 31 [.;IOI? (;}) S.4 51 9=-M" 6.4 71 !Jl l)Q 12 [;IOI? _(_~ S.4 32 1;:: [.;IOI? (;}) S.4 52 9=-fl S.4 72 "O 13 [;IOI ?•'t (!It) S.4 33 'l5A,t;IOI? (;}) S.4 53 ,5~A, 6.4 73 o. fll~ It) 14 [.;IOI? 1;:: (Hf) S.4 34 J:.A, [;IOI? (;}) S.4 54 ,5,1a, 6.4 74 ::n n o ~ I» .... 15 :11.•' (Hf) S.4 35 ;?:[;19>-:i (;}) S.4 55 "l'T 6.4 75 ::r. ........ 0 I» 1S 36 56 7S :=! "O I» ::s Q ~ ; 17 ~ S.4 37 57 ;< 'E 6.4 77 It) fll 18 19 38 39 58 59 78 79 Test Code II 3 ... ~- en 1A 3A 5A 7A ~ It) CD 1B 3B 5B 7B ~ aW e. 1C 3C 5C 7C ' N O e ::S I» g 1D 1E 30 3E 50 5E 70 7E "O ::r. g g. $l. 1F 3F 5F 7F tr:I Q f~kH~ Address f~kHz) ~H& Address s:: ~ Address Voice Word Voice Word Address Voice Word Voice Word fs(kHz) 00 01 STOP Code ~\~ (!lif) - 6.4 20 21 ~'? 13 Iv ('3-) ('3-) 6.4 6.4 40 41 l,;19i? 6.4 60 61 "' s:: 0) 1111 Ul 02 t: (~, '3-) 6.4 22 J: Iv ('3-) 6.4 42 t: l,;19i? 6.4 62 ~ CD .r:-. 03 13 Iv (!lif) 6.4 23 .,., <-- ('3-) 6.4 43 13/vl,;19J? 6.4 63 I (.II (.II 8.0 04 J: (!lif) 6.4 24 0-:i ('3-) 6.4 44 J:A,l,;19i'j 6.4 64 c.> 0 05 .... <-- (llif) 6.4 25 f.tf.t ('3-) 6.4 45 ;:'l,;19i? 6.4 65 < 0 ;:;· g.::s 06 07 0< f.tf.t (!lif) (!lif) 6.4 6.4 26 27 ti? !$? ('3-) ('3-) 6.4 6.4 46 47 1i 6.4 66 67 Ill :E n. 0 0 ..... 08 28 48 68 .... 0. 09 29 49 69 :i>- OA 2A 0. 4A 6A 0. .... OB 2B 48 68 Ill f./l oc 2C 4C 6C f./l (') 0 s: (/) OD 2D 4D 6D ........ s: OE 2E 4E 6E Ill f./l O> "O c.> OF 2F 4F 6F 0 ::: ..... (11 10 ti~ (~) 6.4 30 50 70 BEEP Sound Code 0. I s· ~ilii i 11 < (!lif) 6.4 31 l,; l9J? ('3-) 6.4 51 6.4 71 (fl OQ 12 l,; l9J? (~) 6.4 32 t: l,; l9J? ('3-) 6.4 52 ~~~ 6.4 72 "O L' o. [ Ill 13 l,;19i ?~\~ (~) 6.4 33 13 lvl,; l9J? (~) 6.4 53 ,s:1v 6.4 73 c.> 14 l,;19i ?t: (~) 6.4 34 J:/vl,;19J-:i (~) 6.4 54 ,s, Iv 6.4 74 ~ (') ...,._ ~ 0 ..... .,.. .... -- I» 15 :tn' (llif) 6.4 35 ;:'l,;19i-:i (~) 6.4 55 <.'9 6.4 75 g- I ~ I» 16 36 56 76 ~ "O I» 17 llif 6.4 37 57 ;( 'E 6.4 77 'Ti :::Ill 0 f./l O> 18 38 58 78 Test Code ..... II :::l c.> 19 39 S9 79 .,. ~ °' I ~~ 1A 3A SA 7A )':'" (fl 18 38 S8 7B :r: o':::Q' .!" I» 1C 3C SC 7C 0 ~ ..... 1D 3D SD 7D "O ::r. I\) I 0 a 1E 3E SE 7E ..... ::: ..... (Jl 1F 3F SF 7F CJ ...... ...... Address Voice Word fs(kHz) Address Voice Word fs(kHz) Address Voice Word fs(kHz} Address Voice Word fs(kHz} 3:: s:: °' 00 STOP Code - 20 40 60 ~ en s:: ~ 6.4 ~UI 01 fi>'ijVi!JVra•JH 21 41 61 02 77~"" 1)(:-::>f.tfilJ:):i 6.4 22 42 62 I\) 03 ~~/tjlllt,CT~'' 6.4 23 43 63 .... I .... I i 04 24 44 64 ~co ... < 05 25 45 65 ~ 8. ..... () 06 26 46 66 ~ ro 07 27 47 67 -@:::;" ~ 0 I ~ 08 28 48 68 0 .., ::i 0... 09 29 49 69 ro > Ill 0... OA 2A 4A 6A ::i 0... 0....., OB 2B 4B 6B ..,.. ro Ill t"l rJJ rJJ c.> oc 2C 4C 6C ~ f!l.n OD 20 40 60 s0 :::.: ~ OE 2E 4E SE ro ro rJJ rJJ OF 2F 4F SF ~ '2 ::;: ::s 10 30 50 70 BEEP Sound Code t"l 0... I\) :::;" ~· 11 12 13 31 32 33 51 52 53 71 72 73 (j) 'U Ill g'.OCl ro r-< ~()Cl c;;· ..... c: ::i a w0: l"'T"- 14 34 54 74 Ill Ill 15 35 55 75 o--. ::st"l 0 ::i ro 36 56 76 16 ~ s· ~ 17 37 57 77 0 ~ 38 58 78 Test Code W'*1! 8.0 21 41 61 O'> c.> Ul 02 ~ '6-:J[,'\"(. \;l'.lt 6.4 22 42 62 ..... I\) 0.. > OA 2A 4A 6A ::l 0.. 0.. ..... OB 2B 4B 6B ..,., (/) ti> ro (') (/) OG 2G 4C 6G ~. n 3: OD 2D 4D 6D 3 ~ (/) OE 2E 4E 6E =""'f ro ro 3: (/) (/) O> OF 2F 4F 6F :E -g c.> ...... ~ ::t OI 10 30 50 70 BEEP Sound Gode (') 0.. I ::r ::l -· ~ 11 31 51 71 ti> Cfl Cl" ()Q 12 32 S2 72 "Cl ro L' 33 ro (') ()Q (/)-· ....... i= .....,.. 13 S3 73 c.> 14 34 S4 74 ~ 5: ...... .i)o. ti> ti> 15 3S 55 7S ::r. =' I ~ 0 (') ::l ro 16 36 S6 76 ~ 5· 17 37 S7 77 0 ';:;;' 18 38 S8 78 Test Gode n "Clt» en c.> ...... 39 II ::l c.> 19 S9 79 ~ ~ I ~ 1A 1B 3A 3B SA SB 7A 7B "'° ~ro ::r: s- 1C 3G SC 7C 0 1D 3D SD 7D "Cl ...... 1E 3E SE 7E g· I\) I ....... ....... 'l 1F 3F SF 7F ::l o::l s OKI Semiconductor MSM63P74-02/05/07 /12 512Kbit OTP BUILT-IN VOICE SYNTHESIS LSI GENERAL DESCRIPTION The MSM63P74 is a single-chip CMOS This LSI is suitable for applications where ADPCM speech synthesizer LSI that has a on- programming flexibility is needed for mul- chip OTP (One time PROM) for speech data tiple voice codes, further more for medium or storage. This LSI is compatible with the small quantities and for minimum turn around MSM6375 family. In addition to on-chip pro- times. grammable ROM, it contains, a 12bit DA con- verter, LPF, 2-channel mixing function, and If mass production becomes feasible as your beep tone generation. Speech analysis and application matures, our MSM6375 family speech data programming can be easily per- with on-chip mask ROM provides you with formed by the user by means of the develop- the proper compatibility. ment tool, AR76-202 from OKI. FEATURES • Built-in 512Kbit OTP • Standby function • Single-chip CMOS • Oscillation: RC or crystal • 4bit ADPCM algorithm • Data write time (when using AR76-202) • Echo or 2 channel mixing functions Write and verify approx. 55 seconds • Maximum number of words: 111-word Verify only approx. 15 seconds • Built-in 12bit DA converter • Data retention time: 10 years min. • Built-in LPF • Package 20pin DIP (DIP20-P-300-W1) fosc fsam fcut Output Time BEEP VDD for the use [kHz] [kHz] [kHz] (sec) TONE of internal LPF 4.0 1.5 32 1kHz 2.7V --+------- 64 6.4 3.0 20 & ' 8.0 3.0 16 2kHz 5.5V 8.0 3.0 16 2kHz 4.5V 128 12.8 6.0 10 & ' 16.0 6.0 8 4kHz 5.5V 119 MSM63P74-02/05/07/12 OKI Semiconductor PIN CONFIGURATION {TOP VIEW) The pin layout of the MSM63P74 basically gramming function. matches with that of the on-chip mask ROM family but the MSM63P74 has two more These two pins (VPP' PGM) may be left open pins than the MSM6375 family for the pro- during playback after programming. MSM63P74(0TP) MSM6375 Family (Mask ROM) 20-PIN DIP 18-PIN DIP Vpp 1 20 PGM 14 2 19 13 14 1 15 3 18 12 15 2 17 12 16 4 17 11 16 3 16 11 2eH 5 2CH 4 15 10 RESET RESET 5 14 ST BlJSY/NAR 7 BUSY/NAR 6 13 OSC3/CS SG 8 SG 7 12 OSC2 AOUT 9 AOUT 8 11 OSC1 GND 10 GND 9 10 VDD DIFFERENCES BETWEEN THE MSM63P74 AND THE MSM6375 FAMILY • Built-in memory (OTP) • Pin layout • DC characteristics (additional programming pins) • External C and R values at RC • Maximum sampling frequency 16kHz oscillation (partially) • 20pin DIP • Mask bonding options (02/05/07 /12) Refer to CODE OPTION. 120 ""c:z 0m ...~ r- 0 -I 0 PGM 0 c " Vpp Ul 5> r- Q ~- :~ I!~ I m ::ti g r- )> @' 15 ( 16 .~ ~ I 7 I I ~ ' Multiplexer - __. I I OTP 512K4'1 (Address area 4096 bit) s: c: "' ;:;· "~ 0 0 "c5> 3:: $)_ Q Q ~ ::ti . ~ I· I AD PCM )> i l Synthesizer 3:: II i~ i I I BUSYfflAR I I I i I I -- ,.,,~ "'"""' l;;I ~ f!J I OSC1 OSC2 ~I g I I 3:: OSC3/CS I (") I --- [I , :,.. "'"'"'"' 1l I BEEP Tone Generator LPF I ! ...1• SG T "' 3:: .,, ~ RE~ET (:~ ', -' I -..i ~ I VDD GND AOUT -..i ...... ....... .... N I\) ...... MSM63P74-02/05/07/12 OKI Semiconductor ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings (GND =OV) Parameter Symbol Condition Rating Unit Power supply voltage VDD Ta= 25°C -0.3 - +7.0 v Input voltage V1 Ta= 25°C -0.3 - VDD +0.3 v Storage temperature Tstg - -55- +150 oc • Operating Range (GND =OV) Parameter Symbol Condition Rating Unit Power supply voltage VDD LPF 1 fosc 64kHz ..... "T1 en ~ C5 G> z c ::u ~I ~1 j{;:::::::::::::::::::::::::::::::::::::::: ::u =a 0 J> ~ ~ -l::Coq;>QO"'-JO'lCJlJ::o.c.JN....LO s:: s:: )> :D "' 5 OSC2 0 z OSC1 "' () BUSY N.C ~ CR/XT .... A20 0 DGND A9 oo A19 "O O}> A18 N.C AB ~~ A17 AGND A7 < i" ~ A16 '" ~ NI ~ A1S SG A6 !. rn~·H A14 OE ::;· "'or co A13 DAO AS CD A12 AOUT A4 CE ~ l> a. A11 AVDD A3 A10 DGND ~ a. a: !::l A9 DVDD A2 DVDD Q_ ~ AS A1 CPU/SW 3S/STB ~ () 0 A7 A6 c: CRIXT AO CPU/SW AS "'~ A4 OSC1 D7 00 A3 OSC2 D6 A2 ~"§ ,, l Al N.C DS AVDD r AO OSC3 D4 SG -0 I RCS D3 AOUT r I I Sf N.C D2 DAO~ I I I N.C 0 ~ D7 D6 DS ""' Ul () 1--;l" ~ ~~v~ ~~ ~ ~ 00 -· . ~8 03 . 04 D2 s;:~O::::LNW:b:Uia>~j~lg~ :JJ ~I 8. 01 DO 8::s g. Q. 0.... OKI Semiconductor MSM6376 ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings (DGND = AGND = OV) Parameter Symbol Conditions Rating Unit Power supply voltage Voo -0.3-+7.0 v Ta= 25°C Input voltage V1N -0.3 - Voo +0.3 v Storage temperature Tstg - -55-+150 oc • Operating Ranges (DGND = AGND = OV) Parameter Symbol Conditions Range Unit Power supply voltage Voo - +4.5 - +5.5 v Operating temperature Top - -40- +85 oc Master oscillation frequency fosc1 LPF output 40 -140 kHz Master oscillation frequency fosc2 DAG output 40 - 256 kHz DAO output level Voo No load 0-Voo v • DC Characteristics (DVDD = AVDD = 4.5-5.5V, DGND = AGND = OV, Ta=-40-85°C) Parameter Symbol Conditions Min. Typ. Max. Unit 'H' input voltage V1H - p.84x¢.i - - v "L • input voltage V1L - - - 0.16xVDtj v 'H" output voltage VoH loH =-40 µA VOD-0.4 - - v "L" output voltage VoL loL = 40 µA - - 0.4 v "H" input current l1H V1H = Voo - - 10 µA "L" input current l1L V1L = ov -10 - - µA Output leak current ILo 0 ~ Vour~Voo -10 - 10 µA Operating current consumption loo - - 4 10 mA Standby current consumption los - - - 10 µA Relative precision of DA output IVDAEI no load - - 40 mV DA output impedance RoAo - 15 25 35 kn LPF load impedance RAoUT - 50 - - kn 145 MSM6376 OKI Semiconductor • AC Characteristics (VDD = 5V, Ta = -40 - 85°C, fosc = 64 kHz) Parameter Symbol Conditions Min. Typ. Max. Unit Master oscillation duty cycle fduty - 40 50 60 % RESET input pulse width tw(RST) - 10 - - µS ST input pulse width (Note 1) tw(ST) CPU interface 0.35 - 350 µS 2CH input pulse width tw(2CH) - 0.35 - - µS Sf-Sf pulse interval tss - 0.35 - - µS 2CH setup time tcHS - 0.35 - - µS 2CH hold time tscH - 0.35 - - µS Data set time tow - 10 - - µS Data hold time two - 10 - - µS RCS setup time tcs - 10 - - µS RCS hold time tsc - 10 - - µS fsam1 f(osc1V8 - 8.0 - kHz Selectable sampling frequency fsam2 f(osc1)110 - 6.4 - kHz fsama f(oscuf16 - 4.0 - kHz NAR output time (1) (Note 4) tsNS - - 10 µS NAR output time (2) tNN - - - 500 nS NAR output time (3) (Note 2) tNAA At fsam=8 kHz 350 375 400 µS NAR output time (4) (Note 2) tNAB At fsam=8 kHz 350 375 400 µS NAR output time (5) (Note 2) tNAC At fsam=8 kHz 350 - 550 µS BUSY output time (1) (Note 4) tsss - - - 10 µS BUSY output time (2) (Note 2) tBN At fsam = 8 kHz 350 375 400 µS At master BUSY output time (3) (Note 5) tsF - - 64 ms frequency=64 kHz BUSY output time (4) (Note 2) tsA At fsam=8 kHz 350 375 400 µS At master DIA converter transition time (Note 3) toAR. toAF 60 64 68 ms frequency=64 kHz At master LPF stabilizing time (Note 4) tL 12 16 20 ms frequency=64 kHz Standby transition time (Note 3) At master tsrn 2.9 3.0 3.1 s (at end of speech output) frequency=64 kHz At master ST - 2CH pulse interval ts2cH 1.0 - - ms frequency=64 kHz ST input wait time tNs - 10 - - µS Note 1: The MAX value is proportional to Isam. Note 2: The duration is proportional to fsam. Note 3: The duration is proportional to fosc. Note 4: Applicable at the start of oscillation. Note 5: When playback occurs during the standby transition period (toAF). 146 OKI Semiconductor MSM6376 • AC Characteristics (VDD = 5V, Ta= -40 - 85°C, fosc1 = 40 -140 kHz, fosc2 = 40 - 256kHz) Parameter Symbol Conditions Min. Typ. Max. Unit Master oscillation duty cycle fduty - 40 50 60 % RESIT input pulse width tw(RST) - 10 - - µS TI input pulse width tw(Sf) CPU interface 0.35 - a µS 2CH input pulse width tw(2CH) - 0.35 - - µS TI-TI pulse interval tss - 0.35 - - µS 2CH setup time tcHS - 0.35 - - µS 2CR'hold time tscH - 0.35 - - µS Data set time tow - 10 - - µS Data hold time two - 10 - - µS RCS setup time !cs - 10 - - µS RCS hold time lsc - 10 - - µS fsam1 - - foscf8 - kHz Selectable sampling frequency fsam2 - - foscl10 - kHz fsam3 - - foscf16 - kHz NAR output time (1) (Note 1) lsNS - - - 10 µS NAR output time (2) INN - - - 500 nS NAR output time (3) INAA - a b c µS NAR output time (4) INAB - a b c µS NAR output time (5) lNAC - a - d µS BUSY output time (1) (Note 1) tsss - - - 10 µS BUSY output time (2) IBN - a b c µS BUSY output time (3) (Notes 2) tsF - - - 64 ms BUSY output time (4) IBA - a b c µS D/A converter transition time toAR, loAF - e-4 e e+4 ms LPF stabilizing time (Note 1) IL - f-4 f 1+4 ms Standby transition time lsrn - g-0.1 g g+0.1 s (at end of speech output) ST-2CR' pulse interval ls2cH - h - - ms TI input wait time INs - 10 - - µS 8 (kHz) b = 375 x 8 (kHz) 8 (kHz) d = 550 x B (kHz) a= 350 x fsam (kHz) fsam (kHz) c = 400 x fsam (kHz) fsam (kHz) e = 64 x 64 (kHz) f = 16 x 64 (kHz) 64 (kHz) h = 1.0 x 64 (kHz) fosc (kHz) lose (kHz) g = 3·0 x fosc (kHz) fosc (kHz) Note 1: Applicable at the start of oscillation. Note 2: When playback occurs during the standby transition period (toAf). 147 MSM6376 OKI Semiconductor TIMING DIAGRAMS 1. At power-on VDD RESET (I) _ _ _ _ _ _ _ _ Ad:= lw(i'IBT} BUSY/NAR (O) _ _ _ _ _ _ _ _~ 2. At LSI startup and in standby state 16-10 (I) ~ I x I I RCS (I) lcs=H tow •1 :.. i"' .,1 I I 1• two .. 1 I I.. lac I ST(I) lw(Sfl BUSY (0) !sass~~=----------_j NAR(O) lsNs,__,.,__,.___ ~------~ AOUT(O) lsTB IDAR Play end loAF Standby state~ :..-.:..--- Standby state Standby Standby transition transition 3. Operation in channel 1 only (CPU input interface) 16-10 (I) 1st word 2nd word rd wor address address address "H" 2CH (I) ~.,-tN-Aa---,~ 0.------ Sf(I) NAR (0) 1 I I iiiJSl7 (0) ~INAA I I AOUT (0) ~t 1 II I t I I I I I I .,....,______..,, ~ : 1st wordplay: '2nd word' loAR '3rd word' ~ 148 OKI Semiconductor MSM6376 4. Operation in Channel 2 Only (CPU input interface) 16-10 (I) ~.__ _ _1_s1_w_or_d_ad_d_re_ss_ _ ___,X.____2_n_d_w_or_d_ad_d_re_ss_ _ _ _ __ 2CH (I) Sf (I) "H' NAR (0) BUSY (0) AOUT (0) 5. Operation in Address Designation with no Voice ST (I) NAR (0) .LJ. BUSY (0) AOUT (0) I I I I ;.....i loAR 149 MSM6376 OKI Semiconductor 6. Timing Diagram of Echo Playback in Channel 1 16-10 (I) 1st word x 2nd word x Dummy codex 3rd word 2CH (I) '' ts2c~ 4tw(2CR) ,ts2cH ST(I) 1~u u u NAR (0) BUSY (0) AOUT (0) 1st word play 2nd word play 3rd word play I• •I• •I I• •I 1st word play 2nd word play I• •I• •I 1. Input of the 2CH pulse without lower- 3. In continuous play, the echo is applied ing ST starts echo playback. Echo to the next word (continuous play playback is canceled unless play is means playback of another word dur- continuous. ing a single word vocalization.) 2. At echo playback, the waveform is a 4. Input unused code as a dummy code combination of the playback of chan- from the user selectable code at the nel 1 by the ST pulse and a -6dB play- end of echo playback. Without this back of channel 2 by the 2CH pulse. input, the LSI may enter the standby mode without waiting for the 3 sec- onds after the end of playback when the standby option is selected. 150 OKI Semiconductor MSM6376 7. Timing Diagram of Simultaneous Playback in Channel 1 and Channel 2 16-10 (I) 3rd word 4th word 5th word Dummy code 2CH(I) ST (I) NAR (0) I St~rt of channel 2 setting BUSY (0) 3sec :.------.: AOUT (0) 1stwordplay 3rd word play 4th word play ' Play of 2nd word Play of 2nd word Play of 2nd word Play of 2nd word : End of channel 2 ~~~ ~~~ ~~~ I• by~dB ' •1• •I Play of 5th word by-12dB 1. Channel 2 starts playing when the ST 3 Please input an unused code as a pulse is input and 2CH="L". The dummy code from the user selectable sounds volume can be changed by the codes at the end of playback of chan- number of the ST pulses using the nel 2. Without this input, the LSI may table below. enter the standby mode without wait- ing for the 3 seconds after the end of 2 Channel 2 plays a pre-set word each play when the standby option is se- time the 2CH pulse is input with the lected. same sound volume until the LSI goes to the standby state or until channel 2 is reset. Number of ST pulses Attenuation No attenuation 2 -6dB attenuation 3 -12dB attenuation 151 MSM6376 OKI Semiconductor PIN FUNCTIONS Pin Name 1/0 Function 16-10 I Selects and enters a user-specified word corresponding to the vocalized word. The code when the level of the 'Sf pulse goes low is read, and latched as the level rises. A20-AO 0 These are the address terminals for the external connection of memory. The data is output when "RCS' is 'L". 07-DO I These are the pins to input the data from external memory. The data is input when ~is "L". Insert a pull-down resistor of about 100 kn to pins D7-DO. If these pins are used at an open state, the leakage current of hundreds µA may flow to a power supply pin at a standby state. mr I Reproduces echo, or reproduces two different tones simultaneously. lf2CH pulse is entered during operation in channel 1, echo is reproduced. Delay time for the echo can be changed according to the time of input of2m pulse. lf'Si pulse is entered when the level for CH2 is low, reproduction is performed in channel 2. 'Si I Activated at the fall of 'Si. Data on 16 through 10 is read when their level is "L'', and latched at the rise of "ST. Enter an address for channel 1 when the level of NAR is "H". For reproduction in channel 2, sound volume can be changed according to the number of 'Sf pulses when the level of 2CH is "L". In the case of SW input interface, synthesis is repeated while the level of 'Sf is set to "L". 'RCS" I When the level is 'L", this pin enables 'ST' pulse to be input and the address from A20-AO, OE and CE are output. When the level is "H", the address pins of A20-AO, and CE and OE become high impedance. mJSY 0 During playback, "L" level is output. NAR 0 When the level is "H", the next channel address can be input. CR/Xf I Selects RC oscillation or crystal oscillation. If the level of CR/Xi is set to "H", OSC1, OSC2, and OSC3 work as RC oscillation pins; if the level of CR/XT is set to 'L", OSC1 and OSC2 work as crystal oscillation pins, and a resistor with a resistance of about 2 MO is inserted between OSC1 and OSC2. 152 OKI Semiconductor MSM6376 Pin Name 1/0 Function OSC1 I Crystal oscillation and RC oscillaito pins. OSC2 0 To use them for crystal oscillation. leave the OSC3 pin open. OSC3 0 If an external clock signal is to be used, it should be connected to the OSC1 pin with OSC2 and OSC3 left open. CPU/"SW I Pin for selection between CPU interface and SW input interface. "H" level =CPU interface. "L" level =switch interface Note: If SW input interface is selected. echo reproduction, and 2-channel mixing reproduction cannot be performed. 3S/"STB I If the level of the 3S pins is "H", standby state is invoked three seconds after completion of speech synthesis. If the level of the 3S pins is "L". the output from the DA converter remains at 1/2 VDD after completion of speech synthesis. Rt"SEi I If the level of this pins is set to "L", the LSI is put in standby state. Upon RESET, oscillation is stopped, the output from the DA converter is grounded, and put to the initial state. The M6376 has a built-in power-on reset circuit. To make the power- on resetting function reliably, raise the power supply within 1msec. If this is impossible to do, enter the mtr pulse when hte power is turne d on. "Ct 0 A timing output pin that controls chip enable of external memory. The signal is output when the level of RCS is "L". TIE 0 A timing output pin that controls reading from external memory. The signal is output when the level of RCS is "L". DAO 0 A pin that outputs analog voice sent from the DA converter. AOUT 0 A pin for output of analog voice sent from the LPF. SG 0 A pin that improves SN ratio of LPF. To utilize the outpur from the LPF, connect a capacitor of about 1µF. AVDD - An analog power supply pin. AGND - An analog grounding pin. DVDD - A digital power supply pin. DGND - A digital grounding pin. 1S::\ MSM6376 OKI Semiconductor FUNCTION DESCRIPTION 1. Voice Code Selection mum 111-word/ phrases. The setting of IO- I6 is as follows: User selectable words (phrases) are maxi- Table 1 List of User Selected Words 10-16 Code explanation 0000000 STOP code 0000001 User selectable codes (111-word) 1101111 1110000 BEEP codes 1110111 1111000 Test codes (do not use) 1111111 2. CPU Interface and Switch Input Inter- 2-1 CPU interface face If the CPU interface is selected, the ST pulse The CPU interface and the switch in~ becomes valid when the NAR pin is "H''. interface can be selected by the CPU /SW User selected words are then fetched inter- pin. When the CPU pin is high, the CPU nally and vocalized. This interface is effec- interface is on. When the CPU pin is low, the tive for playback of several words continu- switch input interface is on. ously. Please note that when the ST pulse is 16-10 (I) ~~1_s_tw_o_r_d~__.X~~~~~~~~-2n_d_w_o_rd~~~~~~~~~~ ST(I) NAR (0) BUSY (0) AOUT (0) Figure 1 Timing of CPU Interface (ST ~ 350 µS) 154 OKI Semiconductor MSM6376 16-10 (I) Sf (I) NAR (0) AOUT (0) Figure 2 Timing of CPU Interface (ST > 800 µS) kept at the "L" level for longer than 800µS, the ST pulse is within 800 µS after the rise of one word is played twice (at 8kHz sam- BUSY pin. pling). 2-2 SW input interface When the ST pulse width is between 350µS and 800µS, a single word is played once or If the SW input interface is selected, the twice. However, when the ST pulse is input specified word is played repeatedly when from the standby state, a single word is ST is "L"level at the end of play of the speci- played only once if within 80µS. fied word and is finished when it is "H"level. When a ST pulse width of longer than 350µS For example, when this LSI is operated us- (master frequency is 64kHz) is in put and the ing a push switch, the same word is played BUSY option has been selected, make sure repeatedly as long as the switch is pressed 16-10 (I) ~---------1_st_w_o_rd_ _ _ _ _ _ _ ___,X._____ ST(I) NAR(O) BUSY (0) AOUT(O) Figure 3 Timing of SW Input Interface (playing one word) 155 MSM6376 OKI Semiconductor and when the switch is released, playback the "L" level before the play back is com- stops when the currently playing word is pleted. finished. However, note that the playing interrupted When playing different words continuously, if the input level of 16-IO becomes "L" in- change the code of I0-16 and maintain ST at stantly when switching the address. 16~10 (I) ~~~~~~-1_s1_w_o_rd~~~~~~X~~~~~-2_n_d_w_o_ro~~~~~ ST (I) NAR(O) LJ LJ LJ BUSY (0) ~-nl------------+----+-+---------+----------------~ 0 0 0.064 1--1-- 0 1 0.125 1 1--1-- 1.0kHz 1 0 0.250 f--1-- 1 1 0.500 When the code for BEEP tone is input while completion of play. The reverse case also playing either the 1st channel or the 2nd holds true. channel, the BEEP tone is generated after the 16-IO (I) _ _ _u_s_e_rs_e_le_ct_ed_w_o_r_d_co_d_e_ _~X._ _____ B_E_E_P_to_n_e_co_d_e_ _ _ __ ST (I) NAR (0) BUSY (O)---~ AOUT (0) Figure 5 Timing at BEEP Tone Generation 157 MSM6376 OKI Semiconductor 4. Stop Code setting the ST pulse to the "L" level longer than 1 msec (fosc=64kHz) or by the timing Speech playing is finished when the ST pulse shown in Figure 6. is input by setting I6-IO to "0000000" during play. The DA converter becomes 1 /2VDD. The STOP code is not valid during the gen- eration of BEEP tone. When the STOP code The input method of the ST pulse is subject is input, only playback is stopped while the to the AC characteristics when the NAR oscillation and the analog circuitry are still output is "H"level. When theNARoutputis operating. When the RESET pulse is input, at the "L" level, the STOP code is valid by all operations are halted. 16-10 (I) ~~~~-"_o_o_o_o_o_o_o_·_·~~X~~~~~~u_se_r_se_1e_c_tc_o_d_e~~~~~- ST (I) I~I more1mSthan II 1NAc · LJ ~.. •, NAR (0) i ~~~-r,~~-' I n n ~~~~~~~~ BUSY(O) --~ Figure 6 Example of STOP Code Input Timing 5. Sampling Frequencies This function is not available in the SW input interface or during generation of BEEP Sampling frequencies can be specified for tones. each word in the speech data of the built-in ROM. When the 1st and the 2nd channels 6-1 Echo Playback are simultaneously played back, the sam- pling frequency of the 1st channel has prior- Echo playback is performed by combining a ity. speech waveform of the 1st channel with a delayed speech waveform with -6 dB at- Three types of sampling frequencies can be tenuation (half the ampIi tude of the channel selected during speech data analysis. The 1 speech waveform). relationship between the master frequency, fosc, and the sampling frequency, fs, is as The echo delay time is the time until the 2CH follows: pulse is input from the start of play of chan- nel 1. Selection 1 fsaml=fose/8 Selection 2 fsam2=fose/10 However, when starting this operation from Selection 3 fsam3=fose / 16 the standby state, pop noise suppression time is not counted as delay time. 6. Echo Playback and Channel 2 Play- back In echo playback, echo is applied to all the words during continuous play of channel 1 By using the 2CH input, echo or 2-channel (continuous play means playback of the next playback is possible. Because both echo and word during playback.) 2-channel playback use the 2CH pin, switch between modes by returning the LSI to the standby state. 158 OKI Semiconductor MSM6376 6-2 Channel Mixing Playback combinations of instruments. Speech data on channel 2 can remain the same while the Using 2-channel mixing playback, a differ- sound volume may be changed to 1, 1/2 and ent word can be played during the play of 1I4 according to channel 1. The change in channel 1. This has a wide range of applica- sound volume is determined by the number tion such as BGM (back ground music) and of ST pulses when starting the 2nd channel. Table 3 Number of ST Pulses and Attenuation Number of Sf pulses Attenuation No attenuation (100% of speech data) 2 -6dB attenuation (1 /2 of speech data) 3 -12dB attenuation (1/4 of speech data) ST(I) u 2CH(I)~ ~ 1) -12 dB attenuation 2) -6 dB attenuation 3) No attenuation Figure 7 Input Timing of 2 Channel Mixing Once 2-channel mixing is set, it is main- If disabling standby transition as an option, tained until the standby state or until chan- the RESET pulse must be input to set to the nel 2 is reset. Because of this, restart can be standby state. Pop noise may be generated accomplished by the input of the 2CH pulse at the input of the RESET pulse as the output only. level from AOUT becomes GND level in- stantly. 7. Standby Transition 8. Voice Input When standby transition is enabled as an option, the LSI changes to the standby state The voice output pin can be selected by the and halts all operations unless another word output of the DA converter either directly or is played within 3 seconds of the completion through the built-in low-pass filter. of playback of a single word. For this rea- son, it takes approximately lOOmS before 8-1 Output Waveform of DA Converter the next playback is started as the LSI needs to activate the pop noise suppression cir- The output amplitude from the DA con- cuitry. verter is maximum 4095/4096 xVDD of a square wave that synchronizes with a sam- When standby transition is disabled as an pling frequency. When selecting the DA option, the LSI does not go into the standby output, addition of an external low-pass mode even when playback is completed. At filter is highly recommended. this time, the output from AOUT is approxi- mately 1/2VDD and the LSI still draws cur- Because the output impedance of DAO var- rent as oscillation is continued. When re- ies between 15KQ and 35KO, determine the started, the next playback begins after ap- filter constant so that the resistance varia- proximately 350µS. tion does not influence the cut-off frequency of the low-pass filter. 159 MSM6376 OKI Semiconductor Table 4 shows the output level from the output. AOUT pin when selecting an optional DA Table 4 Output Level from DA Converter Condition Minimum level Center level Maximum level Unit 1-channel playback f VDD tVDD f VDD v 2-channel mixing 0.0 tVDD VDD v BEEP tone playback f VDD tVDD f VDD v 8-2 Low-pass filter output When the sampling frequency (fsam) is 1/8 and 1/10 of the master clock frequency, the Since the low-pass filter is composed of cut-off frequency, fcut, is fcut=3 / 64 fosc and is switch capacitors, the cut-off frequency var- fcut=3/128 when fsam is 1I16. Table 5 shows ies proportional to the master clock fre- the relationship between the sampling fre- quency. quencies and the cut-off frequencies. Table 5 Cut-off Frequency of Low-pass Filter Sampling frequency Master clock frequency Cut-off frequency (fsam) (fosc) (fcut) 4.0 kHz 64 kHz Approximately 1.5 kHz 6.4 kHz 64 kHz Approximately 3.0 kHz 8.0 kHz 64 kHz Approximately 3.0 kHz 12.8 kHz 128 kHz Approximately 6.0 kHz 16.0 kHz 128 kHz Approximately 6.0 kHz The low-pass filter characteristics when the from AOUT when selecting the low-pass sampling frequency is 8kHz are shown in filter option. figure 8. Table 6 shows the output level Table 6 Output Level of Low-pass Filter Condition Minimum level Center level Maximum level Unit 1-channel playback tvoo }Voo fVoo v 2-channel mixing 0.7 tvoo Voo-0.7 v BEEP tone playback fVoo tvoo fVoo v 160 OKI Semiconductor MSM6376 0 l\ -20 [\, Attenuation W~1 -40 -60 l'i -- 100 1k 10k Frequency [Hz] Figure 8 Low-pass Filter Characteristics (fs=8 kHz) 8-3 Pop Noise of Low-Pass Filter Output abruptly by approximately 0.7V when se- lecting the low-pass filter output and may Although this LSI has a built-in pop noise generate a "pop" sound. suppression circuit, the voltage of the circled portion in the figure below may be changed Standby transition Standby transition period period Figure 9 Pop Noise of Low-pass Filter Output When connecting a diode at the output from Figure 10 shows the circuit. AOUT, the "pop" sound can be reduced. ___Ao_u_T_,n ~)» ~ Figure 10 Pop Noise Suppression Circuit 1 £1 MSM6376 OKI Semiconductor 9. RC Oscillation The external circuit diagram for RC oscilla- tion is shown below: R1 (150kQ) OSC1 R2 'VVV OSC2 ~c1-- OSC3 Figure 11 RC Oscillation Connection Circuit 9-1 Determination of RC Constant When choosing RC oscillation, the RC oscil- lation frequencies are varied according to The RC oscillation frequency characteristics the fluctuation of the external C and R2 as are shown in Figure 12. If fosc is set to 64 well as the process variations of LSI. kHz, choose the appropriate values for C and R2 using the following as a reference: When using a 50KQ R2, the error due to process variations of the LSI is maximum C=lOOpF, R1=150KQ, R2=50KQ. ±4% so that the fluctuation of the RC oscilla- tion frequency when using a capacitance(C) 9-2 Fluctuation of RC oscillation frequen- of±l % accuracy and a resistance(R2)of±2% cies accuracy is maximum ±7% approximately. 150 Oscillation frequency 100 lose (kHz) 50 30 40 50 Load resistance value R2 (kn) Figure 12 RC Oscillation Frequency Characteristics 162 OKI Semiconductor MSM6376 10. Crystal Oscillation crystal oscillator, KF-38S4-13P0102 (64kHz), made by Kyocera. Figure 13 shows an external circuit using a OSC1 OSC2 I22pF I330pF Figure 13 Circuit Diagram of Crystal Oscillator Connection 11. Connection with MSCl 191 /1192 12. Wiring for Power Supply When using an MSCl 191 and an MSCl 192, Supply the power supply for this LSI from connect the STBY pin to theOSC3 I CS pin an the same power supply as illustrated below the OSC2 pin, respectively. When connect- and divide into an analog section and a logic ing with an MSC1191/1192, set C and R section on wiring. after mounting it to the board as the oscilla- tion characteristics may change. +sv< DVDD AVDD 1 MSM6376 DGND AGND J = J Figure 14 If the analog section and the logic section not provided because there is possibility to are supplied from a separate power supply, bring about a latch-up, etc. make sure that the separate power supply is Not available Not available Power supply for analog +5V~ Power supply for digital ----;i,, DVDD 1 AVDD DVDD AVDD Figure 15 163 MSM6376 OKI Semiconductor 13. External ROM Timing timing under voice playback at fosc = 64 kHz and fsam =8.0kHz. Figure 16 shows the external ROM driving Note * 1) Th is is proportional to lose *2) This is proportional to Isam *3) CE,OE and DO-D? are input and output at the frequency of 250µs or 125µs hereafter. Figure 16 External ROM Timing 164 OKI Semiconductor MSM6376 :s c ll:ll~ ~~ A16 16 ~ A15 ) ~A14§~§ ~~TB~~~~ !:= CPUISWO:: CR/Xi ;'}; +------vw---12CF[ _ _ ___,vv--1 RESET ......_~-~__,sr c z .------~,......,m "' f - - - - - 1 OSC3 ----wv--10SC2 ~---wv---l OSC1 Note: Use a CMOS type 27C256 as an EPROM if possible. If an NMOS type 27256 is used, there are some cases where the power voltage variation of the EPROM becomes a source to generate noise. Figure 17 Example of Interface Using 4pcs. 256Kbit EPROMs 165 MSM6376 OKI Semiconductor :5 ° l~I~ ;,;:: ~ 0 A16 P2) 16 ~ A15 1~~88:: l~I~~~ l~I~~~ l~I~~~ s "- A14 ~ A14 >> ~ ~ 10 -' u.. z a: > >> >> "'"' ~ )~ 10 "- "- C> C> 3SISIB :!; CPU/S\iiz C> C> CRiiIT C:: <.:> <.:> ..;. ..... ..... 2GFI "' AO AO "' "' "' RESET D7 07 Sf ~ ) \ cs "' I'- DO 00 §ii! "' Cl z "' Cl z "' OSC3 "'::;:"' '::" ::- ::- : OSC2 (/) ':: '::" '::" ':: OSC1 ::;: ))) Note: Use a CMOS type 27C010 as an EPROM if possible. If an NMOS type EPPROM is used the power voltage variation of the EPROM becomes a source to generate noise. Figure 19 Example of Interface Using 16pcs. 1Mbit EPROMs 167 OK.I SeIT1iconductor MSM6378A/MSM6379 OTP BUilT-IN VOICE SYNTHESIS LSI GENERAL DESCRIPTION The MSM6378A/MSM6379 is an ADPCM "ANA WRITER" for an exclusive use, through voice synthesis LSI with a built-in one-time a speaker driving AMP and speaker. The PROM (OTP). The MSM6378A/MSM6379 MSM6378A/MSM6379 can be used in voice reproduces the speech data, which the user cards, small-quantity multi-product toy line- has analyzed and recorded using the ups, and personal use devices. FEATURES • CMOS • Speech output: one-shot or repeat • MSM6379: Built-in 512Kbit OTP • Low current consumption (500Kbits for recording) • Largest speech time: • MSM6378A: Built-in 256Kbit OTP MSM6379 32.0 sec. (244bits for recording) (4kHz sampling) • 4bit straight ADPCM method MSM6378A 15.6 sec. • Built-in low pass filter (4kHz sampling) • Built-in 12bit DA converter • Speech phrase number: One phrase only • Data write time: MSM6379 16 sec. • Power supply voltage: MSM6378A 8 sec. DAO pin 2.4 to 5.5V • Oscillation system: AOUTpin 2.7 to 5.5V RIC oscillation or external (fsam $ 8 kHz) clock input 3.5 to 5.5V • Oscillation frequency: 64 to 256kHz (fsam $ 10 kHz) • Sampling frequency: • Shipping package: 4 to 16kHz (original 16pin plastic DIP (DIP 16-P-300Wl) oscillation frequency /16) chip • Activation: Power on start or reactivation after one shot output 169 MSM6378A/6379 OKI Semiconductor PIN CONFIGURATION (Top View) 16 Lead Plastic DIP VDD GND AOUT OSC2 DAO REP CE TEST SCK W/R PGM SA EQL Note: This is applied to MSM6378ARS and MSM6379RS. 170 .,, ADDRESS c z Q a ~ 0 COUNTER z):. 8. _. ~ \_ WI I r- •J..,_ m PGM EQ SC ~ ~ •_.,.... T l/F TO ANAWRI- TER ,... OTP 256kbit (MSM6378A) 512kbit (MSM6379) M41-'-MUX ~ AD PCM SYNTHESIZER r- 0 0 " c c <-- ... ~::0 Vp -- !-- 12 ):. 31:: DAO -- • AOUT .... 1~1l --~ LPF J. 12bit DAG 1 OSC1 "- OSC2 ...... c' ...- . - ... osc .- .... ..... CONTROLLER ~ POWER ON START •...... ... VDD " GND ? OSC3 (- SA ¢ I •• 31:: TEST "'31::~ ....... REP ...... '-l ...... T --- I CD MSM6378A/6379 OKI Semiconductor ELECTRICAL CHARACTERISTICS (VPP=VDD at reproduction) Absolute Maximum Rating Parameter Symbol Condition Rating Unit Power supply voltage VDD Ta= 25·c -0.3-7.0 v Input voltage VIN Ta= 25·c -0.3-VDD+0.3 v Storage temperature Tstg - -55-125 ·c Operating Range Parameter Symbol Condition Rating Unit DAO pin 2.4-5.5 Power supply voltage Voo GND=OV AOUT pin 2. 7-5.5 (fs:-;;8 kHZ) v 3.5-5.5 (fs;:::10 kHZ) Operating temperature TOP - -10-70 ·c Oscillation frequency lose - 64-256 kHZ DC Characteristics (VD0=4.5-5.5V GND=OV Ta=0-70°C) Parameter Symbol Condition MIN TYP MAX Unit "H'' input voltage VIH - 0.8xVDD - Voo+0.1 v "L" input voltage VIL - -0.1 - 0.2xVDD v Applies to CE, SCK, PGM, "H" input current 1 llH1 20 - 400 µA SA,WiR, and TEST pins Applies to OSC1 and "H" input current 2 llH2 - - 10 µA REP pins "L" input current Ill - -10 - - µA Operation current consumption IDD - - 7 20 mA Standby current consumption IDS - - 0.1 10 µA DA output relative accuracy IVDAEI No load - - 40 mv DA output impedance RDAO - 15 25 35 kQ LPF minimum driving resistance RAD UT - 50 - - kQ 172 OKI Semiconductor MSM6378A/6379 AC Characteristics (VDD=4.5-5.5V GND=OV Ta=0-7Q°C) Parameter Symbol Condition MIN TYP MAX Unit ---- - r------ ---·---·------ --t--- ·-·-···-- Oscillation duty cycle fduty - 40 50 60 % - - - - · - - · · - - - - - - - - - r - - - - - - - - - - - c -----+---- -+------- --·------ Sampling frequency ts fosc/16 4 - 16 kHz Oscillation stabilization time lose 32/fosc 128 - 512 ms Upp er offset time !OFU 1K/fsam 64 - 256 ms Lower offset time !OFL 2K/fsam 128 - 512 ms MSM6378A speech output time !OUT1 244KbiV(4bitxfsam) 3.9 - 15.6 s MSM6379 speech output time IOUT2 500KbiV( 4bitxfsam) 8.0 - 32.0 s !SA - 10 - lwR1 *Use ANAWRITER - 8 MSM6379 data write time twR2 ·use ANAWRITER - 16 s * MSM6378A/6379 guarantees the write only by the ANAWRITER or speech analysis editing tools (AR761 and AR76-202). The anawriter is a registered trademark of Oki Electric Industry Co., Ltd. 173 MSM6378A/6379 OKI Semiconductor TIME CHARTS 1. Reactivation after One-shot Output Voo.Vpp REP(!) SA(l) AOUT,DAO(O) lose lour loFL lose lour loFL 14 .. 1.... 1.. ..1 .. •I 14 •1014 .. 1. . . . 1 loFU loFU osc 3(0) Jllllll - - - - - - - - - - -llllllosci7'~tion111111- - - - - - - - - - -111111 osei7'~tion 2. One-shot after Repeat REP(!) SA(I) AOUT,DAO(O) lose lour loFL lour I. . . . . 1. . . . 1. . ..1 . . . . 1.... 1.. 3. Repeat during Speech Output REP(I) SA(I) AOUT,DAO(O) tosc 1.. .-.1 .... 1... tour ~ toFL - lsA tosc _ tour ....... , ..t--~--.. taFL ..+o1• • " - taFu toFU toFU Note: When REP pin is merely set to "H" level, the speech is not output. 174 OKI Semiconductor MSM6378A/6379 4. Reactivation during Speech Output REP(I) SA(I) AOUT,DAO(O) lose lour : I.. "'"1'•0•1 .. No'ise loFu Note: When SA pin goes to "H" level during playback, speech is stopped and a noise is output. 1 '7t:: MSM6378A/6379 OKI Semiconductor PIN DESCRIPTION Pin Name 110 Function REP I Repeat/one-shot selection pin. In power-on or input to SA pin, one-shot is output when REP="L" and repeated speeches are output when REP="H". The speech is not output so long as this pin is merely set to "H" level. This pin does not include pull-down resistance. SA I Pin to be reactivated after one-shot output. When a single pulse is applied to SA pin, the LSI is reactivated on the falling edge. This pin includes pull- down resistance. W/R I Interface pin for the ANAWRITER for exclusive use. Set to "L" or "open" in playback. This pin includes pull-down resistance. PGM I Same as above (W/R). SCK I Same as above (W/R). --·-----·--~- CE I Same as above (W/R). EQL 0 Interface pin for the anawriter for exclusive use. Set to "open" in playback. TEST I Internal circuit test pin. Set to "L" or "open" in playback. This pin includes pull-down resistance. OSC1 I Oscillation RC connection pin or external clock input pin. OSC2 0 Oscillation RC connection pin. Set to open to input external clock through the OSC1 pin. OSC3 0 Same as above (OSC2). DAO 0 DA converter output pin. AOUT 0 LPF output pin. Vpp - Power voltage pin for writing the built-in OTP. Set to Vpp = Voo or "open" in playback. Voo - Power pin. GND - Ground pin. 176 OKI Semiconductor MSM6378A/6379 FUNCTIONS 1. Number of Phrases 2. Relationship Between R, C, Original Oscillation Frequency, and Speech One word only Output Time C(pF) R1(kQ) R2 (kQ) fosc fsam fCUT toun(sec) tour2(sec) 3V 5V 3V 5V 3V 5V (kHz) (kHz) (kHz) MSM6378A MSM6379 100 100 200 200 56.5 60.5 64 4 1.5 15.6 32.0 100 100 200 200 34.5 36.5 96 6 2.2 10.4 21.3 100 100 200 200 23 25 128 8 2.9 7.8 16.0 100 100 200 200 16.5 18 160 10 3.6 6.2 12.8 100 100 200 200 12.5 14 192 12 4.4 5.2 10.6 100 100 200 200 9.5 11 224 14 5.1 4.5 9.1 100 100 200 200 7.5 9 256 16 5.8 3.9 8.0 * toun = __2_4_4K_b_it__ _JJ_J MSM6378A/6379 4bit x Isam IYYY! OSC1 ~OSC2 * touT2 = __5_0_0K_b_it__ Lfr-tOSC3 4bit x fsam The values of C, Rl, and R2 for the above 3. Ceramic Oscillator (fosc=256kHz) tablearefortheMSM6378A 16-pinDIP. The oscillation frequency fluctuates with an ex- • Figure 3-1 shows an external circuit ternal resistance and floating capacity. that used the ceramic oscillator Therefore, since the oscillation frequency CSB256D made by Murata. fluctuates when the board wiring and pack- • Figure 3-2 shows an external circuit ages are different, determine the constant that used the ceramic oscillator KBR- after check with monitoring fosc atOSC3 pin 2568 made by Kyosera. with reference to the above table. osc 1 OSC2 osc 1 OSC2 1MQ D D B7opF I470pF I560pF Figure 3-1 Ceramic Oscillator (CSB256D) Figure 3-2 Ceramic Oscillator (KBR-2568) Connection Circuit Connection Circuit 177 MSM6378A/6379 OKI Semiconductor 4. Pop Noise Prevention 5. Activation To prevent generation of pop noise before The MSM6378A/6379 is activated as soon and after speech output, the MSM6378A/ as the power is turned on (power-on start 6379 contains a 12Kbit offset data area in the function). To reactivate from stand-by mode, built-in OTP. The anawriter for exclusive apply a pulse on the SA pin, and the speech use automatically reads the offset data into is again output. the MSM6378A/6379. Upper offset } 4Kbits data AD PCM ~ ~ 244Kbit, 500Kbits Data Lower offset data } 8Kbits 6. Repeat 8. Speech Output Pin The MSM6378A/ 6379 repeats when the REP The MSM6378A/ 6379 has two speech out- pin is set to "H"level. However, the speech put pins. The DAO pin is for internal DA is not output when the REP pin is merely set converter output, and the AOUT pin is for to "H"level. DAO output via the LPF. 7. Standby Mode 9. LPF Characteristic When the REP pin is set to "L"level, the The LPF cut-off frequency (fcut) is always MSM6378A/6379 outputs one-shot speech proportional to original oscillation fre- and enters standby mode after the power is quency. The following figure shows the turned on or a pulse is applied to the SA pin. LPF characteristic curve at 8kHz sampling While in standby mode, internal oscillation frequency (with the original oscillation fre- stops and the OSC3 pin is set to "H"level. quency set to 128kHz). fosc (kHz) fsam (kHz) fcur (kHz) 2 4 6 8 10 [kHz] 64 4 Approx. 1.5 96 6 Approx. 2.2 -20 128 8 Approx. 2.9 -40 - - - - - - - - - - - - - - - - - - - ------1--------- , ' 160 10 Approx. 3.6 - ___,'________ _ -60 ----- ----- ----- --- '' 192 12 Approx. 4.4 .' 224 14 Approx. 5.1 -80 ----- ----- ----- ---- [dB] 256 16 Approx. 5.8 178 OKI Semiconductor MSM6378A/6379 10. Pop Noise of Low-Pass Filter Output of the circled portion in the figure below may be changed a bru ptl y by approximately Although the MSM6378A/ 6379 has a built- 0.7 V when selecting the low-pass filter out- in pop noise suppression circuit, the voltage put and may generate a "pop" sound. Standby transition Standby transition period period Pop Noise of Low-pass Filter Output When connecting a diode at the output from The following figure shows its circuit. AOUT, the "pop" sound can be reduced. Pop Noise Suppression Circuit 17Q MSM6378A/6379 OKI Semiconductor APPLICATION NOTES I. Playback 1.1 When Used Standard AMP -=- 5V )) I Note: The capacitor connected to the SA pin contributes to noise margin in the case of SA being "open" 180 OKI Semiconductor MSM6378A/6379 1.2 Use of MSC1191 as AMP Note: • MSC1191 is the most suitable amplifier to drive a speaker for the voice LSI. When MSM6378A terminates the reproduction of speech data, MSC1191 is also put into power save mode automatically. 1.3 Use of Tr as AMP -=- 5V Note: If 5V or less is used, change the constant used to divide the resistor in the output stage. 181 MSM6378A/6379 OKI Semiconductor EXAMPLE OF WRITE CIRCUIT (equivalent to the playback circuit) l ON: During playback OFF: During writing l To ANAWRITER: During writing Open: During playbac Voo OSC1 CE SCK PGM EQL Vpp W/R GND • ANAWRITER interface pins Note: • Be careful about noise margin for input pins that are open during playback. 182 OK.I Semiconductor MSM6652-XXX/MSM6653-XXX/ MSM6654-XXX/MSM6655-XXX/ MSM6656-XXX Internal MASK ROM Speech Synthesis LSI GENERAL DESCRIPTION The MSM6650 family is a successor to the MSM6375 family that are speech synthesis LSis with internal mask ROM. Since the PCM Method is added in addition to the ADPCM Method, a 12bit DA converter and a -40dB I oct low pass filter are built in, high quality sound synthesis was made possible. The conventional "BEEP" tone and a 2-channel mixing function are now easier to use, and a melody function, fadeout function and random vocalization function are now included. External control is easier than before due to the addition of an edit ROM that can form sentences by linking phrases. As it is possible to select standalone mode or microcomputer interface mode by the mask option, it can handle various applications. Because microcomputer interface mode has serial inputs, it is possible to reduce the number of ports for controlling microcomputers. We developed an MSM6650 driven by external ROM as an evaluation LSI for the MSM6650 family. 183 MSM6652/6653/6654/6655/6656 OKI Semiconductor The general differences between the MSM6650 family and the MSM6375 family follow. MSM6650 Family MSM6375 Family Interface Standalone/Microcomputer SW input/CPU input ~bit AD PCM I 8bit PCM I Melody PCM Speech Synthesis Method 4bitADPCM BEEP Tone Output Frequency 0.5 kHz/1.0 kHz/1.6 kHz/2.0 kHz 1.0 kHz/2.0 kHz Duration Arbitrary (16 ms-2100 ms) Fixed (64 ms/128 ms/250 ms/500 ms) Sampling Frequency 4.0 kHz/5.3 kHz/6.4 kHz/8.0 kHz 4.0 kHz/6.4 kHz/8.0 kHz (fosc =64 kHz) (fsam) 10.6 kHz/12.8 kHz/16.0 kHz/32.0 kHz ~ 6.0 kHz/25.6 kHz/32.0kHz (fosc =256 kHz) Original Oscillation Frequency 256 kHz (RC)/4.096 MHz (X'tal) 40 kHz - 256 kHz (fosc) LPF Attenuation Factor -40 dB/act -24 dB/act LPF Cutoff Frequency ~ j 1.6J2.6j 2.oj_3.2J4.2j5.1j 6.4j12.8 ~ j 1.5j 3.ol_ 3.0 '·~ 14.o 15.3 I 6.4 I 8.o 110.6l12.8l16.01 a2.o !Am I 4.0 16.41 8.0 fcur (kHz) Maximum No. of Phases 127 111 Pullup/Pulldown Resistance Yes No Standby Conversion Time 0.2 sec 3.0 sec Mask Option 4 types 14 types Edit ROM Fadeout Additional Functions Random vocalization Melody regeneration PCM regeneration Serial input/Port output See the related Data Book for details on differences. 184 OKI Semiconductor MSM6652/6653/6654/6655/6656 This LSI is classified roughly into standalone mode and microcomputer interface mode. Because this data sheet explains the two modes separately, please refer to appropriate items by the index below. Table of Contents Standalone Microcomputer Interface Page Page FEATURES ................................................... 186 FEATURES ................................................... 227 PIN CONFIGURATION ............................ 187 PIN CONFIGURATION ............................ 228 BLOCK DIAGRAM ..................................... 188 BLOCK DIAGRAM .................................... 229 ELECTRICAL CHARACTERISTICS ........ 189 ELECTRICAL CHARACTERISTICS ........ 230 AC CHARACTERISTICS ........................... 190 AC CHARACTERISTICS ........................... 232 TIMING CHART ......................................... 191 TIMING CHART ......................................... 233 PIN DETAILS .............................................. 193 PIN DETAILS .............................................. 239 FUNCTION DETAILS ................................ 194 FUNCTION DETAILS ................................ 241 1. VOCALIZATION CODE SPESIFICATION ....... 194 1. VOCALIZATION CODE SPECIFICATION ...... 241 2. INTERNAL ROM USAGE DISABLED AREA .. 194 2. INTERNAL ROM USAGE DISABLED AREA .. 241 3. PULL UP /PULLOOWN RESISTANCE .............. 194 3. PULLUP /PULLOOWN RESISTANCE .............. 242 4. OPTION(S) .............................................................. 194 4. MODE SETTING .................................................... 242 5. STANDALONEMODE ........................................ 195 5. MICROCOMPUTERINTERFACEMODE ........ 245 6. SAMPLING FREQUENCY ................................... 202 6. COMMAND DATA .............................................. 249 7. SPEECHVOCALIZATIONTIME ....................... 202 7. ADDRESSDATA ................................................... 256 8. CHANNEL STATUS ............................................. 203 8. STOPCODE ............................................................ 257 9. REGENERATION METHOD ............................... 203 9. SAMPLING FREQUENCY ................................... 259 10. EDIT ROM .............................................................. 206 10. SPEECH VOCALIZATION TIME ....................... 259 11. STANDBYCONVERSION ................................... 222 11. CHANNELSTATUS ............................................. 260 12. SPEECH OUTPUT ................................................. 222 12. REGENERATION METHOD ............................... 260 13. RC OSCILLATION ................................................ 223 13. EDIT ROM .............................................................. 263 14. CERMICOSCILLATION ...................................... 224 14. STANDBYCONVERSION ................................... 279 APPLICATION CIRCUIT EXAMPLE ...... 225 15. SPEECH OUTPUT ................................................. 279 16. CERMICOSCILLATION ...................................... 281 APPLICATION CIRCUIT EXAMPLE ...... 282 185 MSM6652/6653/6654/6655/6656 OKI Semiconductor (1) STANDALONE MODE FEATURES Maximum Vocalization Time Type ROM Capacity fsam = 4.0 kH~ fsam =6.4 kH~ fsam =8.0 kHz fsam =16.0 kH MSM6652 288 Kbit 16.9sec 10.5sec 8.4sec 4.2sec MSM6653 544 Kbit 31.2sec 19.5sec 15.6sec 7.Bsec MSM6654 1 Mbit 63.Bsec 39.9sec 31.9sec 15.9sec MSM6655 1.5 Mbit 96.5sec 60.3sec 48.2sec 24.1sec MSM6656 2 Mbit 129.1sec 80.7sec 64.5sec 32.2sec (Actual speech ROM area is less by 22 Kbit) ROM custom 4-bit ADPCM method/8-bit PCM method Melody function Edit ROM function 2-channel mixing function built in Internal random vocalization function Fadeout function (4-step change of sound volume) BEEP tone built in BEEP tones of 0.5 kHz, 1.0 kHz, 1.6 kHz and 2.0 kHz can be generated by specification code. Sampling frequencies 4.0 kHz,5.3 kHz,6.4 kHz,8.0kHz,10.6kHz,12.8kHz,16.0 kHz, 32.0kHz1) Note 1) 32.0 kHz cannot be selected if RC oscillation is selected. Maximum number of phrases : 120 Phrases Internal 12-bit DI A converter Internal LPF attenuation factor : -40 dB I oct Standby function RC oscillation or ceramic oscillation can be selected Package : 18-pin DIP (DIP18-P-300) : 24-pin SOP (SOP24-P-430-VK) :Chip 186 OKI Semiconductor MSM6652/6653/6654/6655/6656 PIN CONFIGURATION (Top View) 18 Lead Plastic DIP AO A1 A2 TEST RESET BUSY XT/CR AOUT GND Note: Applicable to MSM6652-XXXRS, MSM6653-XXXRS, MSM6654-XXXRS, MSM6655-XXXRS and MSM6656-XXXRS 24 Lead Plastic SOP VDD OSC1 OSC2 NC OSC3 NC NC RND swo TEST SW1 A2 SW2 A1 SW3 AO Note: Applicable to MSM6652-XXXGS-VK, MSM6653-XXXGS-VK, MSM6654-XXXGS-VK, MSM6655-XXXGS-VK and MSM6656-XXXGS-VK 187 ...... 00 Ill 3: 00 50 3:en 288Kbit (MSM6652) 544Kbit (MSM6653) " c ~ A2 16 stage (MSM6652) A1 r > - - - - 1Mbit (MSM6654) 17 stage (MSM6653) 1.5Mbit (MSM6655) AO r 1---~ SW3 Address & Switching I 7 ~ 17 stage (MSM6654) 1 -~ 2Mbit (MSM6656) 1--i ~ SW2 Controller 18 stage (MSM6655) ,-------... ROM s:: SW1 t } - - - + i r 18 stage (MSM6656) Multiplexer (Editing ROM & Address ROM I swo l } - - - + ! Contains 22Kbit) }8 ~--~~ n TEST ~ Random 16 stage (MSM6652) I DATA AD PCM Synthesizer RND O ~1 Circuit ~ 17 stage (MSM6653) Controller 17 stage (MSM6654) 18 stage (MSM6655) l , 18 stage (MSM6656) ,~!;J Address Counter. 6.. r BUSY I Melody 12bit 12 Generator DAC J ~:r: ~: ·1 osc X'tal/RC . : Timing Controller y BEEP Tone Generator LPF ~ ~ ~- '-' -,,__,. '-' g. ~ XT/CR RESET VDD GND AOUT OKI Semiconductor MSM6652/6653/6654/6655/6656 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings (GND =OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo Ta= 25°C -0.3 - 7.0 v Input Voltage V1N -0.3 - Voo+0.3 v Storage Temperature Tstg_ - -55 -150 ·c Operation Range (GND = OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo LPF output +2.7 - +5.5 v Operating Temperature Top - -40 - 85 ·c Original Oscillation Frequency (1) fosc When X'tal selected 3.5- 4.5 MHz Original Oscillation Frequency (2) fosc2 When RC selected1l 200-300 kHz Note 1: The accuracy of the oscillation frequency when RC oscillation is selected depends largely on the accuracy of the Rand Cof the external parts. DC Characteristics (Voo = 5.0V, GND = OV, Ta= -40 - 85°C} Parameter Symbol Condition Min. Typ. Max. Unit "H" Input Voltage V1H - 4.2 - - v "L" Input Voltage V1L - - - 0.8 v "H" Output Voltage VoH loH = -1mA 4.6 - - v "L" Output Voltage Vol loL = 2mA - - 0.4 v "H" Input Current 1 iiH1 V1H = Voo - - 10 µA "H" Input Current 2 iiH2 Internal pulldown resistance terminal -200 -90 -30 µA "L' Input Current 1 l1u V1L = GND -10 - - µA 'L" Input Current 2 l1L2 Internal pullup resistance terminal 30 90 200 µA Operating Current Consumption loo - - 6 10 mA Standby Current Consumption los - - - 10 µA LPF Load Resistance RAOUT - 50 - - kQ LPF Output Impedance RLFP IF= 100µA - 1 3 kQ 189 MSM6652/6653/6654/6655/6656 OKI Semiconductor DC Characteristics (Yoo =3.1V,-GND = OV, Ta = -40 - 85°C} Parameter Symbol Condition Min. Typ. Max. Unit "H" Input Voltage V1H - 2.7 - - v "L" Input Voltage V1L - - - 0.5 v "H" Output Voltage VoH loH = -1mA 2.6 - - v "L" Output Voltage VoL loL= 2mA - - 0.4 v "H" Input Current 1 l1H1 V1H = Voo - - 10 µA "H" Input Current 2 IJH2 Internal pulldown resistance pin -100 -30 -10 µA "L' Input Current 1 l1u V1L = GND -10 - - µA "L" Input Current 2 IJL2 Internal pullup resistance pin 10 30 100 µA Operating Current Consumption loo - - 4 7 mA Standby Current Consumption los - - - 1 µA LPF Load Resistance RAO UT - 50 - - kn LFP Output Impedance RLPF IF= 100µA - 1 3 kn AC CHARACTERISTICS (Voo = 5.0V, GND = OV, Ta = -40 - 85°C} Parameter Symbol Condition Min. Typ. Max. Unit Original Oscillation Duty Cycle fduJy_ - 40 50 60 % RESET Input Pulse Width tY{{_RS!l_ - 10 - - µS RESET Input Time after Power on to(RST) - 0 - - µS RND Input Pulse Width twJRAij}_ Function details 5.2 100 - - µS SW3-SWO Input Pulse Width t~'I!)_ - 16 - - ms BUSY Output Time(1) tsss - - - 10 µS BUSY Output Time(2) tsN fsam = 8kHz 350 375 400 µS Chattering Prevention Time tcHA - 14 15 16 ms DA Converter Change Time toAR - 60 64 68 ms LPF Stabilization Time tL - 6 8 10 ms Standby Conversion Time tsrs - 0.15 0.20 0.25 sec Capture Random Address Time tRA Function details 5.2 16 32 48 µS 190 OKI Semiconductor MSM6652/6653/6654/6655/6656 TIMING CHART 1. When Power is Turned ON Voo r , !, to(RST) RESET (I) ---~FU• tw(RST) BUSY (0) ---~ 2. When LSI Starts Up and is In Standby Status tw(SW) SWO (I) !---- Address Data Capture ' ----:.__~tc~HA~_.:--L_ BUSY (0) tsss -,-----,- AOUT (0) toAR tsrn to AF Oscillation Startup Standby Status ~ 4 ~~: !~ Ti~e Standby Status Stan,dby Conversion . 3. Repeat Vocalization Timing Chart SWO (I) BUSY (0) AOUT (0) ________ _,..- 101 MSM6652/6653/6654/6655/6656 OKI Semiconductor 4. Timing Chart When SW 3-SW 0 are Changed During Vocalization A2-AO (I) SW1 (I) SWO(I) BUSY (0) AOUT (0) 1st Phrase 2nd Phrase Vocalization tcHA Vocalization + 1st Phrase Speech Stop 5. Repeat Vocalization Timing Chart of Random Vocalization iiNJ5 (I) BUSY (0) AOUT (0) ------+--- 1st Phrase Same Phrase Vocalization Continuous Vocalization Oscillation Startup 10? OKI Semiconductor MSM6652/6653/6654/6655/6656 PIN DETAILS Pin Name 1/0 Function LSI is in standby status if set to "L". At this time oscillation stops and AOUT output becomes GND, and returns to initial status. RESET I LSI has internal power ON reset. To operate power ON reset correctly startup power within 1 ms If not, apply RESET pulse when power is turned ON. This pin has internal pullup resistance. BUSY 0 Outputs "L" level during vocalization. In "H" level when power is turned ON. X'tal/RC selectable pin. Set to "H" level if ceramic oscillator is used. XT/CR I Set to "L" level if RC oscillation is used. AOUT 0 Speech output pin of internal LPF. GND - Ground pin VDD - Power pin Ceramic oscillator connection pin when ceramic oscillator is selected. OSC1 I RC connection pin when RC oscillation is selected. Input from this pin if external clock is used. Ceramic ocsillator connection pin when ceramic oscillator is selected. RC connection pin when RC oscillation is selected. OSC2 0 Set to open if external clock is used. Outputs "L" level in standby status. Set to open if ceramic oscillator is selected. OSC3 0 RC connection pin when RC oscillation is selected. Outputs "H" level in standby status when RC oscillation is selected. Random vocalization starts if RND pin is set to "L" level. Captures address from random address generation circuit in LSI at fall of RND. RND I Set to "H" level if random vocalization function is not used. This pin has internal pullup resistor. TEST I A test pin. Set to "H" level. This pin has internal pullup resistor. Phrase input pins corresponding to vocalized sound. SW3-SWO I If input changes, SW3-SWO pins capture addresses after 16 mS, and starts speech synthesis. These pins have internal pulldown resistor. Phrase input pins corresponding to vocalized sound. A2-AO I AO input becomes invalid if the random vocalization function is used. 193 MSM6652/6653/6654/6655/6656 OKI Semiconductor FUNCTION DETAILS 1. VOCALIZATION CODE SPECIFICATION The user can specify a maximum of 120 phrases. Table 1.1 shows the settings by A2-AO and SW3-SWO. Table 1.1 User Specified Phrase List A2-AO SW3-SWO Code Description 0000 Forbidden Code 000 0001 I I User Specified Phrase 111 (120 phrases) 1111 2. INTERNAL ROM USAGE DISABLED AREA The last 3 bytes of the internal ROM are notto be used as shown in Table 2. Please do not use those 3 bytes when analyzing speech. For instance, make sure to select only the MSM6652 by analysis tool AR76-202 (do not use MSM6653 for example) when making EPROM for the MSM6652. Table 2.1 shows the addresses that are not to be used for each model. Table 2.1 Internal ROM Layout and Usage-Disabled Area Type Speech Data Area Usage-Disabled Area MSM6652 00800 - OBFFC OBFFD,OBFFE,OBFFF MSM6653 00800 - 10FFC 10FFD, 10FFE, 10FFF MSM6654 00800 - 1FFFC 1FFFD, 1FFFE, 1FFFF MSM6655 00800 - 2FFFC 2FFFD, 2FFFE, 2FFFF MSM6656 00800 - 3FFFC 3FFFD, 3FFFE,3FFFF Note: Addresses are in hex mode. 3. PULLUP/PULLDOWN RESISTANCE The RESET, RND and TEST pins have internal pullup resistors and the SW3-SWO pins have internal pulldown resistors. 4. OPTION(S) In standalone mode the XT /CR pin can be used to select the oscillation circuit. If this pin is set to "H" level the circuit is in ceramic oscillation or X'tal, conversely, if set to "L" level, the circuit is in RC oscillation. In the case of RC oscillation, however, a 32 kHz sampling frequency cannot be used. An option to move to stand-by mode can be selected when rewriting ROM data. 194 OKI Semiconductor MSM6652/6653/6654/6655/6656 5. STANDALONE MODE In standalone mode, the complete SW input interface function and the random vocalization function can be used. 5.1 Complete SW Input Interface With the complete SW input interface, speech synthesis starts when SW3-SWO pins have changed. However, to prevent chattering, the address at 16 ms (tcHA) is captured after SW3-SWO pins have changed. Speech synthesis does not start even if A2-AO pins have changed. Set the RND pin to "H" level if the random vocalization function is not used. At the power supply, SW3-SWO pins are all "L" level. The complete SW input interface is effective when operating MSM6650 using a push switch. Speech synthesis starts when an address is changed by pressing the push switch. If the push switch is released during vocalization, vocalization stops when the current vocalized phrase ends. A2-AO (I) SW3 - SW1 ( I ) "L" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- BUSY (0) t CHA AOUT (0) Oscillation startup Figure 5.1 Complete SW Input Interface 1 Phrase Vocalization Timing Figure 5.1 shows one phrase vocalization timing. If the push switch is continuously pushed, the same phrase vocalization is repeated. Figure 5.2 shows repeat vocalization timing. Figure 5.3 shows vocalization timing when A2 ~AO are changed during vocalization. A2-AO (I) SW3 - SW1 (I )"L" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- SWO (I) BUSY (0) AOUT (0) 1st Phrase 1st Phrase t Vocalization Continuous Oscillation startup Vocalization Figure 5.2 Complete SW Input Interface Repeat Vocalization Timing MSM6652/6653/6654/6655/6656 OKI Semiconductor A2 -AO (I) SW3 - SW1 (I )"L" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SWO (I) BUSY (0) AOUT (0) Oscillation startup Figure 5.3 Complete SW Input Interface Vocalization Timing If SW3-SWO terminals change during vocalization, vocalization stops and the next phrase is vocalized. For the next phrase vocalization, speech is first stopped and is synthesized after 16 mS of chattering prevention. Figure 5.4 shows vocalization timing when SW3-SWO are changed during vocalization. A2 -AO (I) SW3 - SW2 (I) "L" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- SW1 (I) SWO (I) BUSY (0) AOUT (0) 1st Phrase 2nd Phrase Vocalization Vocalization + 1st Phrase Speech Stop Figure 5.4 Vocalization Timing when SW3-SWO Are Changed during Vocalization 1% OKI Semiconductor MSM6652/6653/6654/6655/6656 If speech is started up at a non-used address in the user specified phrase, AOUT reaches 1 /2 VDD, but speech is not vocalized. Figure 5.5 shows the timing. A2-AO (I) SW3 - SW1 ( I ) "L" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- SWO (I) BUSY (0) '' AOUT (O) _ _ ___,+-~~ !,. taN Oscillation startup Figure 5.5 Timing when Speech is Started up at an Address except the User-Specified Phrase In the complete SW interface, addresses (against SW3 - SWO) that do not start up exist without fail. When power is turned ON or when inputted to RESET, the addresses set from SW3 to SWO become the addresses that do not start up. Therefore, when the circuit consists of diode matrixes that use push switches, the maximum vocalized phrases become 120 phrases. Combinations of A2 - AO are 8 kinds. When addresses of SW3 - SWO that do not start up are 0000; 27 - 8=120 (phrases) 197 MSM6652/6653/6654/6655/6656 OKI Semiconductor 5.2 Random Vocalization Function The random vocalization function randomly generates 31 types of addresses corresponding to 5 bits of the addresses of AO, and SW3-SWO pins (except ALL "L") on the LSI, and vocalizes speech. This means there is no external input to AO, SW3-SWO pins. Since the AO pin has no internal pullup/pulldown resistance, permanently set to "L" or "H". Speech may not be vocalized if a phrase is not set to all 31 types of addresses. Caution is advised when creating ROM data. For example, when 4 types of phrases, "sunny", "rainy", "cloudy", and "snowy" are vocalized, set the phrases shown in Table5.1to31 types ofaddresses. The4 types of phrases are then vocalized at random. Table 5.1 Random Address Setup Example A2,A1 AO,SW3-SWO Phrase 00 00001 Sunny 00010 Rainy 00011 Cloudy 00100 Snowy 00101 Sunny l l 11110 Rainy 11111 Snowy Random vocalization starts when the timing shown in Figure5.6 is input to the RND pin. A random address is determined by the "L" level time of the RND pin. When the LSI is in oscillation status random address is determined by the "H" level time of the pin. Random address is captured at the fall of the RND pin, and speech is vocalized. Therefore when power is turned ON, or when RESET is input, the phrase at fixed address "00001" is vocalized while a random counter remains an initial state, and a random phrase is vocalized at a second or later time. 198 OKI Semiconductor MSM665216653/6654/6655/6656 tw(RAN) FiND (I) Random Address Fixed Time BUSY (0) AOUT (0) Speech Output Oscillation startup Figure 5.6 Random Address Capture Table 5.2 Type of Address for Random Vocalization A2,A1 AO, SW3 - SWO (Note) Code Description 00 00001 Random Vocalization Address ! (31 Types) 11111 01 10 Same as above Same as above 11 Note: Address(es) corresponding to AO, SW3-SWO pins. For a random address, 31 phrases can be set to each "00", "01", "10" and "11" of A2 and Al respectively. In random vocalizations, note that the 4 types of "0000000," "0100000", "1000000" and "1100000" in user specified phrases can not be used when ROM data is prepared. By changing the A2andA1 pins as in Table 5.2, probabilities or phrase combinations for 4 types of random vocalizations can be changed .. A random address is set by the "H" level time of the RND pin, therefore if the same pulse length is input by microcomputer, the random address fixed time becomes constant, and a random phrase may not be vocalized. 199 MSM6652/6653/6654/665S/6656 OKI Semiconductor The Pulse ofThis R'f\I[) (I) t--~~~~~~~~~r---l~~~~ln_te_N_a_ll_s_ln_va_li_d.~--..~I lffiSY(O) AOUT (0) Oscillation startup Figure 5.7 Timing when a Pulse Is Input to the RND pin during Random Vocalization lml)(I) BUSY (0) ' AOUT(O)---r---~ f Oscillation startup 1st Phrase vocalization ' ' ' Same Phrase Continuous Vocalization Figure 5.8 Repeat Vocalization Timing of Random Vocalization As shown in Figure 5.7, if a pulse becomes trailig edge at the RND pin during speech vocalization (BUSY is "L" interval.), input to the RND pin during vocalization becomes invalid. If the RND pin is in "L" level and the RND pin is still in "L" level after the 1st phrase vocalization is over, as shown in Figure 5.8, the same phrase is vocalized repeatedly. If SW3-SWO are changed during random vocalization, speech during random vocalization stops, and speech of phrases that correspond to SW3-SWO is vocalized. Figure 5.9 shows the timing when SW3-SWO are changed during random vocalization. 200 OKI Semiconductor MSM6652/6653/6654/6655/6656 SW3- SW1 (I) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- SWO (I) RND (I) BUSY (0) AOUT (0) Vocalization of ·~ Oscillation startup Random Address Speech Stop Figure 5.9 Timing when a Pulse is Input to SWO pin during Random vocalization Table 5.3 and Figure 5.10 show the address settings that quit random vocalization. These settings also stop vocalization when the "infinite repeat" command is in use under edit ROM. Table 5.3 Address for Random vocalization and Addresses for Stop A2,A1 AO, SW3 - SWO {Note) Code Description 00 00001 Random Vocalization l Address 11111 (31 Types) 01 00001 Stop Address Note: Addresses corresponding to AO, SW3-SWO pins. L_J_ swo SW1 SW2 SW3 AO A1 A2 _J_ r RND Figure 5.10 Circuit Example to Stop Random Vocalization 201 MSM665216653/6654/6655/6656 OKI Semiconductor For example Table 5.3 shows that addresses other than random vocalization "0100001" are generated to stop vocalization. A user specified address that is not used is used as a stop address, therefore the status can enter standby without vocalizing speech, also shown in Figure 5.5. 6. SAMPLING FREQUENCY Sampling frequencies can be specified for each phrase in speech data of internal ROM. For channel synthesis, if channels 1 and 2 are regenerated at the same time, the channel 1 sampling frequency has priority. For sampling frequency, the following 8 frequencies can be selected when creating speech data. 4.0 kHz, 5.3 kHz, 6.4 kHz, 8.0 kHz, 10.6 kHz, 12.8 kHz, 16.0 kHz, 32.0 kHz In standalone, RC oscillation and ceramic oscillation can be selected. If RC oscillation is selected however, 32.0 kHz can not be selected. 7. SPEECH VOCALIZATION TIME Table 7.1 shows internal ROM configuration. The actual speech data ROM area is different from the indicated ROM capacity. The speech data management area shown in Table 7.1 is about 6Kbits, and the edit ROM area includes 16Kbits. Table 7.1 ROM Configuration Speech Data Management Area Editing ROM Area Speech Data Area Disabled Area Use the following formula as a guide to compute speech vocalization time. Vocalization Time= (ROM Capacity-16 - 6) x 1024 x 255/256 +Bit Rate (kbps) For example, if data was created at a 4.0 kHz sampling using MSM6652 (288Kbit internal ROM), the vocalization time is (288 - 16-6) x 1024 x 255/256 + 16(kbps) = 16.9(sec.) 202 OKI Semiconductor MSM6652/6653/6654/6655/6656 8. CHANNEL STATUS The BUSY pin outputs the status signals. It outputs "L" level when either channel 1 or 2 is synthesizing speech. "H'' level is output when power is turned ON. 9. REGENERATION METHOD The MSM6375 series has only the ADPCM regeneration method, however to support various speech MSM6650 has 3 types of regeneration methods: AD PCM, PCM and melody regeneration. Respective features and how to select are explained below. 9.1 ADPCM Method With the ADPCM (Adaptive Differential Pulse Code Modulation) method, basic quantization width/!,. is adaptively changed for each sampling, and is encoded to 4bit data each time. This further improves the follow-up properties to speech wave forms. Conversion to ADPDM data is performed by the AR76-202 analysis tool. If the ADPCM method is used for human voices, animal cries and natural tones, the speech data capacity becomes smaller. 9.2 PCM Method The PCM method of MSM6650 uses an 8-bit straight binary format. Of the three methods, PCM is the best for follow-up properties to speech wave forms. This method is appropriate for sound effects where wave forms sharply change, and for pulse shaped wave forms. 9.3 Melody Regeneration Method The AR76-202 analysis tool supports melody regeneration system. The melody data can be composed by using the AR76-202. Therefore, unique sound can be created. 9.4 Bit Rate of Each Method The bit rate shows the degree of data compression and the data amountto synthesize for 1 second. The bit rate is determined by the relationship between the sampling frequency and the data- amount-per-sample. The following formula is used. Bit Rate (kbps) =Sampling Frequency (kHz) x Data-amount-per-sample (bit) 203 MSM6652/6653/6654/6655/6656 .OK.I Semiconductor The bit rate of the three methods are compared below when the sampling frequency is 6.4 kHz. 1) ADPCM Method Bit Rate (kbps) = 6.4kHz x 4bit = 25.6 kbps 2) PCM Method Bit Rate (kbps) = 6.4kHz x Sbit = 51.2 kbps 3) Melody Regeneration Method With the melody regeneration method, the bit rate changes depending on each sound. The formula does not determine the bit rate changes. The average bit rate is 4 kbps. 204 OKI Semiconductor MSM6652/6653/6654/6655/6656 9.5 The Regulations of Channel Synthesis about each Regeneration Methods Melody regeneration and BEEP tones can not be regenerated in 2 channel side,the regeneration of channel synthesis about each regeneration Methods as follows table 9.1. Table 9.1 The Regulations of channel Synthesis 1 Channel 2 Channel Settil1Q_ ADPCMIOdB}_ ADPCM__LOdB--1 BdE!l 0 Notel) ADPCM(OdB--18dB) ADPCMJOdBl 0 Notel) ADPCM}6dB--18dB) ADPCM_i-6dB--18dB}_ 0 ADPCMJ_OdB--1 Bdfil_ MELODY10dB--18dB}_ x ADPCMIOdB--1 Bdlll_ PCM(OdBl 0 Notel}_ ADPCM(OdB) PCM(OdB--1 BdB) 0 Notel) ADPCM}6dB--18dB} PCM}6dB--18dl[ 0 ADPCMlOdB--1 BdB) ADPCM(OdB--18dB) BEEP TONEf_1/2, 1/3, 1/4, 1/8}_ SILENCE x u MELODYIOctl[ ADPCMlOdB--18dl[ 0 Notel) MELODY(OdB--1 BdB) ADPCMJ:Octij 0 Notel) MELODY(-6dB--1 BdB) ADPCM(-6dB--18dB) 0 MELODY(OdB--1 BdB) MELODY(OdB--18dB) PCM(OdB--18dB) K MELOD'([OdB} 0 Notel) MELODY(OdB--1 BdB) PCM(OdB) 0 Notel) MELODY(-6dB--18dB) PCM(-6dB--18dB) 0 MELODYi_OdB--18dBl BEEP TONW/2, 1/3, 1/4, 1/ll..)_ x MELODY(OdB--1 BdB) SILENCE 0 PCM(OdB) ADPCM(OdB--1 BdB) 0 Notel) PCM(OdB--18dB) PCMIOdB) :g: Notel) PCM(-6dB--18dB) PCM(-6dB--18dB) 0 PCM(OdB--18dB) MELODY(OdB--1 BdB) x Notel) PCM(OdB) PCM(OdB--18dB) 0 PCMIOdB--18dB} PCM(OdB) 0 Notel) PCM(-6dB--18dB) PCM(-6dB--18dB) 0 PCM(OdB--18dB) BEEP TONE(1/2, 1/3, 1/4, 1/8) x PCM(OdB--18dB) SILENCE 0 BEEP TONW/2, 1/3, 1/4, 1/8) ADPCM10dl[ 0 Notel) BEEP TON~/2, 1/3, 1/4, 1/ll..)_ ADPCM(-6dB--18dBl 0 BEEP TONE{t/2, 1/3, 1/4, 1/81 MELODY(OdB--18dB) x BEEP TONE(1/2, 1/3, 1/4, 1/8) PCMlOdBl 0 Notel) BEEP TONffi/2, 1/3, 1/4, 1/[l" PCM]_-6dB--18dfil_ 0 BEEP TONE(1/2, 1/3, 1/4, 1/8) BEEP TONE(1/2, 1/3, 1/4, 1/ljl x BEEP TONE(1/2, 1/3, 1/4, 1/8) SILENCE 0 SILENCE ADPCM10dB--18dB}_ 0 SILENCE MELODY(OdB--18dB) x SILENCE PCM(OdB--18dB) 0 SILENCE BEEP TONE(1/2, 1/3, 1/4, 1/8) x SILENCE SILENCE 0 Notel) In case of channel synthesis, confirm the voice quality with the MSM6650 evaluation board. Because occasionally there is possibility of straining the voice by recording level and synthsis phrases. 205 MSM6652/6653/6654/6655/6656 OKI Semiconductor 10. EDITROM The role of edit ROM is to link phrases and build sentences, which makes an external microcomputer unnecessary. The conventional MSM6375 family could not link phrases and synthesis channels in standalone mode, but the MSM6650 family can using edit ROM. For example: The phrase "Today's weather is .... " is used to compare the MSM6375 family and MSM6650. With the MSM6375 family, individual data must be stored to phrase ROM (see Table 10.1) to vocalize each phrase in timing of once as "Today's weather is sunny", and "Today's weather is rainy". On the 0th.er hand, the MSM6650 family can vocalize plural phrases at timing of once by having edit ROM functions. This means that "Today's weather is sunny" will be vocalized by merely specifying address (01] of Table 10.3 in the phrase ROM configuration shown in Table 10.3. If address [02] is specified, "Today's weather is rainy" will be vocalized. Conventionally data must be repeatedly stored to phrase ROM to vocalize "Today's weather is .... ", but overlapped data is not required as shown in Table 10.2 by using edit ROM functions. Table 10.1 Conventional Phrase ROM Configuration Address [HEX] Phrase 01 Today's weather is sunny. 02 Today's weather is rainy. 03 Today's weather is sunny followed by cloudy, some areas are rainy. 7F 206 OKI Semiconductor MSM6652/6653/6654/6655/6656 Table 10.2 Phrase ROM Configuration Address [HEX] Phrase 01 Today's 02 weather 03 is I I 10 sunny 11 cloudy 12 rainy 13 snowy 20 occasional 21 followed by 22 some areas are I I 7F Table 10.3 Edit ROM Configuration Address [HEX] Edit Content [Max. 8 Phrases] 01 [01 )(02)(03)(10] 02 [01 )(02)(03)(12] 03 [01][02][03][10)(21 )(11 )(22][12] 7F 207 MSM6652/6653/6654/6655/6656 OKI Semiconductor Edit ROM makes channel synthesis possible, a feature previously not available in standalone mode with the MSM6375 series. With edit ROM commands, phrase linking, channel synthesis, and "BEEP" tone or "silent" can be set. A maximum of 8 phrases (16 bytes) can be set in 1 edit. Table 10.3 shows the configuration of edit ROM. Table 10.4 Edit ROM Configuration Edit Address ROM Edit Data ROM Phrase ROM 01 1 Phrase Command Phrase Phrase Address ~ 02 i" 1 Phrase Address [HEX] 03 2 Phrase Command 01 Today's 2 Phrase Address - 02 weather ! 3 Phrase Command -- ! 03 is ---- 3 Phrase Address ~ 7E 4 Phrase Command 10 sunny 7F 4 Phrase Address ~ 5 Phrase Command ! 5 Phrase Address ?F 6 Phrase Command 6 Phrase Address 7 Phrase Command 7 Phrase Address 8 Phrase Command 8 Phrase Address " Edit address ROM can process a maximum of 127 user specified phrases. Table 10.4 shows the relationship between phrase ROM, edit data ROM, and edit address ROM. Phrase ROM cannot be directly accessed if edit ROM is used. 208 OKI Semiconductor MSM6652/6653/6654/6655/6656 Edit ROM can be setup using the previously mentioned AR76-202 analysis tool. For regeneration using edit ROM, regeneration may not be the one requested. Be certain to check the speech using either the analysis tool or MSM6650 of external ROM. Figure 10.1 shows the flow chart when creating edit ROM. Edit Start 3 -- --- ------- --- --- ----- ----- -- ------- -- _4 _------ ----- -- --- --- --- -- -- -- -- --- --- ---- --- ---- ----------- Speech Control Code Set BEEP Tone Code Set Silent Insertion Code Set 1. Channel Specify 1. Frequency Specify 1. Channel Specify 2. Fadeout Specify (0.5, 1.0, 1.6, 2.0kHz) 3. Repeat Specify 2. Sound Volume Specify Command Data Input Part (1, 2, 4, infinite) (1/8, 1/4, 1/3, 1/2) 4. Sound Volume Specify (0, -6, -12, -18dB) Phrase Address Specify BEEP Tone Time Set Silent Time Set Address Data Input Part NO End Code Inset Figure 10.1 Edit Data ROM Creation Flow Chart 209 MSM6652/6653/6654/6655/6656 OKI Semiconductor 10.5 Edit ROM Commands Table 11 shows the commands that can be set in edit ROM. Table 10.5 List of Commands that can be Set in Edit ROM 07 06 05 04 03 02 01 00 Command 0 0 0 0 0 0 0 0 End Code ch 0 1 0 0 0 0 0 Silence Insertion Code 1 1 0 0 bl1 blO bf1 bfO BEEP Tone Code ch 1 1 sm rp1 rpO vl1 vlO Speech Control Code The commands of the 4 codes shown in Table 10.5 are explained below. 10.1.1 End Code End code means that one edit data is completed. Although this is necessary at the end of one edit data, since the LSI can recognize the end of editing, it is unnecessary when the maximum number of phrases are used. 10.1.2 Silence Insertion Code Silence insertion code inserts silence to each channel, reducing speech data. 07 ch The channel to insert silence is specified in command data, and silence time is set in address data. The channel to insert silence is set to "07'' command data. If "07'' is "H" channel 1 is set, if "L" channel 2 is set. Silence time is set at the address settings of phrases shown in Table 10.4. Minimum Silence Time ... 16.384 ms Maximum Silence Time ... 2.1 sec. 210 OKI Semiconductor MSM6652/6653/6654/6655/6656 The formula to set the silence time is shown below. tMu = (26x(06)+25x(05)+24x(04)+23x(03)+22x(02)+21x(01)+20x(OO))x16.384ms Table 10.6 Edit Data Example of Silence Insertion Code 07 06 05 04 03 02 01 00 1st Byte 1 0 1 0 0 0 0 0 Silence Insertion Code 2nd Byte 0 0 0 1 1 0 0 0 Silence Time 3rd Byte 0 0 0 0 0 0 0 0 End Code For example, if edit data is set as in Table 10.6, 393 ms of silence is inserted to channel 1. 10.1.3 BEEP Tone Code BEEP tone code vocalizes a BEEP tone without using ADPCM data. The sound volume and frequency of a BEEP tone is set in command data, and the vocalization time of a BEEP tone is set in address data. The BEEP tone can be set only at channel 1. To mix a BEEP tone and channel 2 vocalize an 8 kHz sampling frequency of a phrase at channel 2, this is because the sampling frequency of a BEEP tone is set to 8 kHz. If the sampling frequency of channel 2 differs, speech at channel 2 may be either too slow or too fast. The sound volume is set to 03, 02 and the frequency is set to 01, 00. 07 06 05 04 03 02 01 00 0 0 bl1 blO bf1 bfO 211 MSM6652/6653/6654/6655/6656 OKI Semiconductor Tables 10.7 and 10.8 show the sound volumes and the frequencies that can be set. Table 10.7 Sound Volume Settings Table 10.8 Frequency Settings 03 02 Sound Volume 01 00 Frequency 0 0 1/8 amplitude sound volume of channel 1 0 0 0.5 kHz 0 1 1/4 amplitude sound volume of channel 1 0 1 1.0 kHz 1 0 1/3 amplitude sound volume of channel 1 1 0 1.6 kHz 1 1 1/2 amplitude sound volume of channel 1 1 1 2.0 kHz The BEEP tone time is set to the address setting of phrases shown in Table 10.4. Minimum BEEP Tone Time ... 16.384 ms Maximum BEEP Tone Time ... 2.1 sec. The formula to set a BEEP tone time is shown below. taE = (26 x (06)+25 X (05)+24 X (04)+23 x (03)+22 x (02)+21 x (01)+20 X (00)) x 16.384ms 07 06 05 04 03 02 01 00 1st Byte 1 1 0 0 1 1 0 1 BEEP Tone Code 2nd Byte 0 0 0 1 1 0 0 0 BEEP Tone Time 3rd Byte 0 0 0 0 0 0 0 0 End Code Forexample,if editdataissetasin Table 10.9,a 1.0kHz BEEP tone is vocalized at a 1/2amplitude sound volume at channel 1 for 393 mS. 10.1.4 Speech Control Code Speech control code can set repeat and sound volume. 07 06 05 04 03 02 01 00 ch sm rp1 rpO vl1 vlO The channel is set at "07''. If "07'' is "H", channel 1 is set, if "L" channel, 2 is set. The speech control condition of each channel is set between 04 to 00. 212 OKI Semiconductor MSM6652/6653/6654/6655/6656 1) Setting Number of Repeats The number of repeats is set at 03 and 02, and can be selected from 4 types: 1, 2, 4 and infinite. If infinite is selected, repeat can be stopped by switching to another phrase. Table 10.10 shows the relationship between 03, 02 and the number of repeats. Table 10.10 Number of Repeats Settings 03 02 Number of Repeats 0 0 1 0 1 2 1 0 4 1 1 Infinite 2) Sound Volume Smoothing During Repeat If "04" is set to "H", sound volume during repeat is attenuated from 1to1/2, 1/4 and 1/8. This smoothing, however, is effective only when 2, 4 or infinite is selected at repeat setting. If infinite is selected, speech is vocalized remaining at 1/8 after attenuating from 1, 1/2,1/ 4 and to 1/8. If the initial sound volume setting is other than 1, the sound volume attenuates from that value in 1 /2 units, stopping at 1I8. 3) Setting Sound Volume Speech to vocalize can be changed in 4 steps if speech is vocalized overlapping in channel synthesis. The sound volume is set at 01and00. Table 10.11 shows the correspondence. Table 10.11 Attenuation Volume Setting 01 00 Attenuation Volume 0 0 No attenuation (sound volume is same as speech data) 0 1 -6 dB attenuation (sound volume is 1/2 of speech data) 1 0 -12 dB attenuation (sound volume is 1/4 of speech data) 1 1 -18 dB attenuation (sound volume is 1/8 of speech data) 213 MSM6652/6653/6654/6655/6656 OKI Semiconductor 10.2 PCM Regeneration in Edit ROM For PCM regeneration, edit data is set together with speech cQntrol code. All settable items in speech control code (channel, sound volume smoothing during repeat, number of repeats, and sound volume) can be set. 10.3 Melody Regeneration in Edit ROM For melody regeneration, edit data is set together with speech control code. Channels however cannot be set. Channel 1 is fixed. Channel 2 mixing of melody regeneration/ melody regeneration combination is not possible. All settable items in speech control code can be set except channels. 10.4 Random Vocalization in Edit ROM If the RND pin is used during random vocalization, the 1st edit phrase (consists of edit data ROM up to 16 bytes) is vocalized and the random vocalization of the 2nd edit phrase then starts continuously. However, this occurs only when the channel setting of the 1st and 2nd edit phrase are the same, and when echo regeneration and channel 2 regeneration are not performed. For example, if the 1st edit phrase is echo regeneration, and the 2nd edit phrase channel 1 regeneration, as shown in Figure 10.2 (1), 2 edit phrases overlap. To avoid this, insert silence to channel 1, as shown in Figure 10.2 (2), and set edit data ROM so that channels 1 and 2 end regeneration at the same time. 1st Edit Phrase 2nd Edit Phrase (1) Channel1 -k ' ' "Today's' x "w~ather" > ' Channel2 ~ ' "Today's" > ' 1st Edit Phrae 2nd Edit Phrae Channel 1 "Today's" "weather' '' (2) '' Channel 2 ~ "Today's" Figure 10.2 Example of Random Vocalization Timing 214 OKI Semiconductor MSM6652/6653/6654/6655/6656 10.5 Channel 2 Mixing Function in Edit ROM This function overlaps 2 phrases. By using edit ROM, it is easy to echo a phrase (echo regen- eration) and to vocalize a phrase with a musical instrument sound or BGM (channel2 regeneration). 10.5.1 Echo Regeneration Echo regeneration delays and overlaps -6 dB attenuation (1 /2 amplitude speech wave form of channel 1) to a speech wave form vocalized at channel 1. Echo Regeneration of 1 Phrase Using address [02] of phrase ROM, "weather", an echo regeneration edit data example is explained below. Tabel 10.12 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 1 Speech Control Code (1ch setting, repeat, -6 dB attenuation) 2nd Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat, -12 dB attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 7th Byte 0 0 0 0 0 0 0 0 End code If edit data is set as in Table 10.12, "weather" is vocalized at channel 1, and is overlapped and vocalized from channel 2 with a -6 dB attenuated sound volume 98.3 ms. later. When 2 phrases overlap set the attenuation of the speech control command with attention to sound volume. The silence time by silence insertion code is an element that influences the echo quality. Set the silence time so that the desired echo is created. For channel synthesis in standalone, wave forms may be cramped due to the sound volume of the phrase. Check this with the AR76-202 analysis tool. 215 MSM6652/6653/6654/6655/6656 OKI Semiconductor When performing echo regeneration set the number of repeats of the speech control command to 1. If 2, 4 or infinite is set, timing becomes as shown in Figure 10.3. This figure shows that the number of repeats of the 1st and 5th byte of edit data in Table 10.12 have changed. ' Channel1 -K "W~ather" '' ' >'' Channel2 '' "Weat~er" (1) Number of Repeats: 1 Channel 1 . ' --<~---W-ea-th_e_r·-~*~--.W-ea-th-e-r"-~)r------------- , Channel2 ---------S~-"W_e_a_th_er_·_~><~--·_w_ea_th_e_r"_~)------ (2) Number of Repeats: 2 ' Channel 1 - - ( "Weather")( 'Weather" )(~'W-e-ath-er'~'*~,W-e-ath-er'~' )>-------- ' Channel 2 S "Weather")( "Weather''><=------ (3) Number of Repeats: 4 Channel 1 'Weather'' 'Weather" "Weather''-------------- Channel 1 has infinite regeneration. Channel 2 _______________ ___________ _ Channel 2 does not reproduce. ,. (4) Number of Repeats: infinite Figure 10.3 Vocalization Timing of Echo Regeneration According to Number of Repeats The vocalization timing, when the number of repeats of the speech control command is set for an edit data phrase, is explained below. 216 OKI Semiconductor MSM6652/6653/6654/6655/6656 1 When number of repeats is set to 1 If the same channel is specified for the next phrase, vocalization of.the next phrase starts when vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of vocalization. 2 When number of repeats is set to 2 If the same channel is specified for the next phrase, vocalization of the next phrase starts when the second vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of the second vocalization after the first vocalization ends. 3 When number of repeats is set to 4 If the same channel is specified for the next phrase, vocalization of the next phrase starts when the fourth vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of the fourth vocalization after the 3rd vocalization ends. 4 When number of repeats is set to infinite The next phrase becomes invalid and is not vocalized regardless the channel specification. 217 MSMS(i52/6653/6654/6655/6656 OKI Semiconductor Echo Regenerqation of Multiple Phrases A maximum of 8 phrases (16 bytes) are set to one edit data ROM. Up to 3 phrases are possible for an echo regeneration with 16 bytes. Set the phrase ROM so that the number of phrases do not exceed four. Using 'Today's", "weather" and "is" ofthe phrase ROM in Table 10.2 as an example, Table 10.13 shows a three phrase echo regeneration edit data example, and Figure 10.4 shows vocalization timing. Table 19 Three Phrase Echo Regeneration Edit Data Example 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 2nd Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H 'Today's") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting repeat once, -12 dB attenuation) 6th Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H "Today's") 7th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 8th Byte 0 0 0 0 0 0 1 0 Phrae Address (02H ''weather") 9th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, -12 dB attenuation) 10th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 11th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 12th Byte 0 0 0 1 0 0 0 0 Phrase Address (1 OH "is") 13th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, -12 dB attenuation) 14th Byte 0 0 0 1 0 0 0 0 Phrase Address (1 OH "is") 15th Byte 1 1 1 0 0 0 1 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 16th Byte 0 0 0 0 0 0 1 1 Phrase Address (03H "sunny") Channel 1 - ( "Today's" X "weather" X "is" X "sunny" )>--------- Channel2 "Today's" "weather" "is" Figure 10.4 Vocalization Timing of a Three Phrase Echo Regeneration 218 OKI Semiconductor MSM6652/6653/6654/6655/6656 For the echo regeneration of multiple phrases, set so that the sampling frequency of each phrase is the same. If a phrase with a different sampling frequency is mixed, the speech of channel 2 will become fast or slow because the sampling frequency of channel 1 has priority. Figure 10.5 shows the timing. fsam =6.4kHz fsam = 8.0kHz fsam = 6.4kHz Channel 1 ------tc~~'_T_od_a_y'_s"~~~~~-"w_e_fil_he_r_"~~~~~"-is'_'~~)>--~~~~~~- Channel2 'To ' 1.5 sec o.9 sec Figure 10.6 Vocalization Timing Using Edit Data of Table 10.14 As shown by the timing in Figure 10.6, "is" is echoed by setting the silence time, which is the addition of the vocalization time for "Today's" and "weather" and the delay time for echo to channel 2. If the silence time exceeds 2.1 sec, it is necessary to add a silence insertion setting to 2 bytes of edit data. For the echo regeneration of one arbitrary phrase of multiple phrases, a maximum of 6 phrases are possible if the silence insertion setting is 2 bytes. 10.5.2 Two-channel Regeneration Two-channel regeneration uses PCM, melody and ADPCM methods. Channel synthesis is possible with all combinations except a melody reregeneration/ melody reregeneration combination. Melody regeneration is fixed to channel 1. The sampling frequency of phrases to be overlapped must be the same. Figures 10.7-10.10 show the vocalization timings of two-channel regeneration. 1st Phrase Channel 1 -----l('-________M_e_lo-'dy_T_o_ne_ _ _ _ _ _ _~)>-'------- Channel2 ''Today's" "weather" llis. "sunny" 2nd Phrase 3rd Phrase 4th Phrase 5th Phrase Figure 10.7 Example of Four Phrase Channel Synthesis Timing with Melody Tone as BGM 1st Phrase 4th Phrase Channel 1 -----l(,_____M_e_lo_d_y_T_on_e___)<,_____M_e_lo_d_y_To_n_e___)>-:------- Channel2 'Today's" "weather" "is" "sunny" .,' : 2nd Phrase 3rd Phrase 5th Phrase 6th Phrase Figure 10.8 Example of Four Phrase Channel Synthesis Timing with Melody Tone and 1st and 4th Phrases as BGM 220 OKI Semiconductor MSM6652/6653/6654/6655/6656 1st Phrase Channel 1 ---<~ _______ P_C_M_T_on_e_(A_)_ _ _ _ _ _ __,/r-:- - - - - - Channel 2 -----:- - - - - - : 2nd Phrase : Figure 10.9 Example of Channel Synthesis between PCM Main Melody Tone (A) and PCM Rhythm Tone (B) with 4 Repeats 1st Phrase 3rd Phrase Channel 1 ---< PCM Tone (A) ~-------~ >< PCM Tone (B) ~-------~ ;,_:- - - - - - Channel 2 ----- (.) c: (I.) 300 ::l CT .... (I.) u.. c: 0 ~ 200 '(3 0"' V00 =5V R1=100kW C=30pF 100 10 20 30 40 50 60 70 Load Resistance value R2 (kO) Figure 13.2 RC oscillation Frequency eharacteristics ??".\ MSM6652/6653/6654/6655/6656 OKI Semiconductor 14. CERAMIC OSCILLATION Figure 14.1 shows an external circuit diagram using a ceramic oscillaton. XT XT Figure 14.1 External circuit diagram Figure 14.2 and 14.3 show external circuit diagrams using a cermic oscillator, CSA4.09MGU and CST4.09MGWU made by Murata Seisakusho Co., ltd XT XT D C30pF I I C30pF Figure 14.2 CSA4.09MGU Figure 14.3 CST4.09MGWU Figure 14.4 shows an extend circuit diagram using a cermic oscillator, PBRC 4.00MSA/MKS/ MWS made by Kyocera Co., ltd. Note) In case of using a oscillator, 4.00MHz, vocalization speed is low about 2% than AR76-202 analysis tool and evaluation board. XT XT 33pr Figure 14.4 PRBC 4.00 MSA/MSK/MWS 224 OKI Semiconductor MSM6652/6653/6654/6655/6656 APPLICATION CIRCUIT EXAMPLE I- :::> 0 "' VJ'-' '-' VJ N i5 VJ <( 0 0 0 Cl Cl Cl z 11 > (.!> I"" ;E VJ ~ VJ ~ VJ ~ VJ ~~~ 0 <( < ~ 11 ~ .... ~ "' ~ ~ ;:: 0 ~ O> co ,._ 0 15/SI >: 17 stage (MSM6653) 1.5Mbit (MSM6655) ::D ::i 14 ): 13/PORT1 Address & Command ~ 17 stage (MSM6654) t--- 2Mbit (MSM6656) > g. 12/PORTO >: Controller 18 stage (MSM6655) ROM I--- 3:: & 11 10 ~ ~ ,. 18 stage (MSM6656) Multiplexer (Editing ROM & Address ROM Contains 22Kbit) 8 ..... 1 ~ ~ 1 AD PCM ]~ Synthesizer 16 stage (MSM6652) DATA CH c 17 stage (MSM6653) Controller ST 17 stage (MSM6654) CMD x: 1/0 18 stage (MSM6655) J ~ PCM :( x Interface 18 stage (MSM6656) Synthesizer J l BUSY Address Counter NAR ;::I 12 l H Melody Generator 12bit DAG :!!:: (/) :!!:: m y XT [ osc Timing Controller X'tal BEEP Tone LPF XT c Generator Ii t ' ' ~--y_ '--' N RESET VDD GND AOUT t!5 ~ MSM6652/6653/6654/6655/6656 OKI Semiconductor ELECTRICAL CHARACTERISTICS Absolute Maximum Rating (GND = OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo Ta= 25·c -0.3 - 7.0 v Input Voltage V1N -0.3 - Voo+0.3 v Storage Temperature Ts& - -55 - 150 ·c Operation Range (GND = OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo DAG output +2.4 - +5.5 v LPF output +2.7 - +5.5 v Operating Temperature Top - -40 - 85 •c Original Oscillation Frequency fosc - Min.J Typ. I Max. MHz 3.5 I 4.096 J 4.5 DC Characteristics (Voo =5.0V, GND = OV, Ta= -40 - 85°C) Parameter Symbol Condition Min. Typ. Max. Unit "H" Input Voltage V1H - 4.2 - - v "L" Input Voltage V1L - - - 0.8 v "H" Output Voltage VoH loH = -1mA 4.6 - - v "L" Output Voltage VoL loL= 2mA - - 0.4 v "H" Input Current 1 hH1 V1H = Voo - - 10 µA "H" Input Current 2 l1H2 Internal pulldown resistance pin -200 -90 -30 µA "L" Input Current 1 l1u V1L = GND -10 - - µA "L" Input Current 2 (Note) l1L2 Internal pullup resistance pin 30 90 200 µA Operating Current Consumption loo - - 6 10 mA Standby Current Consumption las - - - 10 µA DA Output Relative Accuracy IVoAE I When DA output selected - - 40 mV DA Output Impedance RDAO When DA output selected 15 25 35 kn LPF Load Resistance RAOUT When LPF output selected 50 - - kn LPF Output Impedance RLPF When LPF output selected IF=100µA - 1 3 kn 230 OKI Semiconductor MSM6652/6653/6654/6655/6656 DC Characteristics (Voo = 3.1V, GND = OV, Ta= -40 - 85°C) Parameter Symbol Condition Min. Typ. Max. Unit "H" Input Voltage V1H - 2.7 - - v "L" Input Voltage V1L - - - 0.5 v "H" Output Voltage VoH loH = -1 mA 2.6 - - v "L" Output Voltage Vol loL = 2mA - - 0.4 v "H" Input Current 1 l1H1 V1H = Voo - - 10 µA "H" Input Current 2 l1H2 Internal pulldown resistance l)n -100 -30 -10 µA "L" Input Current 1 l1u V1L = GND -10 - - µA "L" Input Current 2 (Note) l1L2 Internal pullup resistance pin 10 30 100 µA Operating Current Consumption loo - - 4 7 mA Standby Current Consumption los - - - 1 µA DA Output Relative Accuracy IVoAE I When DA output selected - - 20 mV DA Output Impedance RoAo When DA output selected 15 25 35 kn LPF Load Resistance RAOUT When LPF output selected 50 - - kn LPF Output Impedance RLPF When LPF output selected, lf=1 OOµA - 1 3 kn Note: Applicable to RESET, CMD, ST and CH terminals. 231 MSM6652/6653/6654/6655/6656 OKI Semiconductor AC CHARACTERISTICS (Voo = 5.0V, GND = OV, Ta= -40 - 85°C) Parameter Symbol Condition Min. Typ. Max. Unit Original Oscillation Duty Cycle fduty - 40 50 60 % RESET Input Pulse Width twtRSf) - 10 - - µS Sf Input Pulse Width t(S'f) - 0.35 - 2000 µS Data Set Time tow - 1 - - µS Data Hold Time two - 1 - - µS CMD Setup Time tcs - 1 - - µS CMD Hold Time tsc - 1 - - µS CH Setup Time tcHS - 1 - - µS CH Hold Time tscH - 1 - - µS Serial Clock Pulse Width tw(SCK) When using serial input option 0.35 - - µS Serial Data Setup Time tsos When using serial input option 1 - - µS Serial Data Hold Time ts so When using serial input option 1 - - µS BYSY Output Time (1) tsss - - - 10 µS BUSY Output Time (2) tsN When Is =8kHz 350 375 400 µS BUSY Output Time (3) tsF - - - 64 ms NAR Output Time (1) ts NS - - - 10 µS NAR Output Time (2) tNAA When Is = 8kHz 350 375 400 µS NAR Output Time (3) tNAB When Is = 8kHz 350 375 400 µS NAR Output Time (4) tNAC When Is = 8kHz 350 375 500 µS DA Converter Change Time to AR - 60 64 68 ms LPF Stable Time tL - 6 8 10 ms Standby Conversion Time tsrs - 0.15 0.20 0.25 s (after speech ends) 232 OKI Semiconductor MSM6652/6653/6654/6655/6656 TIMING CHART 1.When Power is Turned ON i -l.,•o- Voo -----=.,.:_, i to(RSf) RESET (I) _ _ _ _ _,Fq• tw(RST) ~--;~-------------------~ __.__.,.__ tcsF BUSY (0) ----~ ~~-< CMD or ST (I) ----~ 2.When LSI Starts Up and is in Standby Status 16 - 10 (I) CMD (I) ----n~: ~ i l I I I I I I I ! tow I rtW!l! *t(Sf) ST (I) :...-----..~: NAR (0) ________,__,Ft- tsNS 4=tNAA BUSY (0) AOUT (0) toAR tsrn to AF Oscillation startup Standby status Standby status 233 ~ So> 0 ~ :T I» s:: :I :I !.. I .... lJ i ~ ~ ~ CD i I CH (I) "H" g I I -I 16-10 (I) 1st Phrase Address X2nd Phrase AddressX 3rd Phrase Address 3· ~- CMD (I) "H" E9 :TI» --u LJ u ~ ::i. I ST(I) ~~ I n +~ ~ ~~ ' : tL : ' n 3 i :I Q. AOUT (0) :--: Iii" ' ' I I I I ·~...-~~~~--.! '' : toAR ' ' ' : 2. ~ 1st Phrase Vocalization 2nd Phrase Vocalization 3rd Phrase Vocalization c en g_ j &S2 ii i: ~- ,,c:; §' .c: ~ ~ (') =r ~ Ill :J :J "" en ~· CQ Cl> :J g. Q. 16 - 10 (1/0) Command Data 1st Phrase (Address Data) 2nd Phrase (Address Data) Cl> iiJ Q .... s· :J GMO (I) -I ST (I) Lr ----u -- - -· -u 3· :;· CQ (') =r Ill NAR (0) ;:i. ~ =r Cl> BUSY (0) :J m AOUT(O) -------------~ . ~ Cl> :J !!!.. ' ' ' ' (') 1st Phrase Vocalization 2nd Phrase Vocalization 0 3: 3 (/) 3 3: 0) Ill If a command is set externally the status set is maintained until the next command is set. :J 0) Therefore, if the 1st and 2nd phrases are vocalized at the timing shown above, speech for Q. c.n iii' ~ both phrases is first vocalized in the status set by that command. To vocalize command c 0) 0) content that was changed, be certain to input command data before inputting address data. en c.n Cl> . i~ The command input can be continuously set many times until address input. However, the Q. setting of the command inputted last becomes valid (common with 1 and 2 channel regen- -:a Ill erations). !!!.. 0) ![ c.n ~ 5' 'C c ..e i c.n 0) N (11 ~ 3: 0 ':I' Ill :::J "' 3: :::J ~ I .... 0 ':I' Ill CH (I) "H" s ~ I\) O> : I :ti 16-10 (I) Command Data X1st Phrase (Address Data))\ Com,mand Data )\2rd Phrase (Address Data)1 ' -3rd -- Phrase --- (Address ---- Data) --- CD ca ,---~~~~~~-1 : : !CD CMD (I) I _.:__._tcHs 4tscH LJ ~ w.--------:1!,lJ LJ i 0 ST(I) LJ :e §' :::J -I NAR (0) n -m- m ':I'-· CD :::J :::J ca BUSY(O) : I y u mo ~':I' CD Ill 3 ;::i. : C - - :- - .............. · ,__ · · ,...._ ....... : !!!.. ' ' 0 AOUT (0) -----------~ : 1st Phrase Vocalization : : : 0 : ,2nd Phrase: 3 Vocalization; 3 Ill _ _ _ _.,'. Vocalization at Channel 2 :::J c. (ii' Since command data is maintained independently, If speech is started up at channel 1 without a command setting, speech is vocalized by the same command set at the 1st phrase. c t/l ~ a en j (j) ~ ![ ,,c 5" !·g. .a ~ 0) :a CD (Q ~ ~ CD ~ ~ 0 :I ~· CH(I) "H" ::! g. ~ 3 1st Phrase Address Serial Input 2nd Phrase Address Serial Input s· (Q 16/SD (I) 0 :::1' tsos ~ _ ~ tsso tw(SCK) II) ;:i. 15/SI (I) :e:::1' -.r,.-: CD :I CMD (I) :"H" ~tss1 #ts1s ST(I) -1 : :: i !!!. 0 0 BUSY (0) : 3 3 II) NAR (0) i :I Q. iii" 3:: ' ' AOUT (0) f' ! 1st Phrase Vocalization ' ' :I 2. c "'3:: I Ill Oscillation Startup CD Q. (ij In serial input, data is transferred to the LSI when the ST signal rises after serial data is input. CD SD is captured at the former edge of SI. ::I. ~ !!!. 0) ,,S' ~ .a N ~ I N s:: (.;J 00 :a"" en s:: c2: I CD CH (I) "H" :I CD 16/SD (I) Silence Command Input Command Serial Input 1st Phrase Address Serial Input aer :I -t O; 3· 15/SI (I) s· ~ O; tC i 0 13/PORT1 (1/0) :r Q) ;:i. 12/PORTO (1/0) ~ CD :I CMD (I) "H" ' ~ 3 ST (I) !:!!. ' ,,'-----f-,~~~~~~__J I I I 1 0 ' I I I 0 3 BUSY (0) ' 3 Q) :I NAR (0) ' Q. ' : r ' I (ii" c Ill AOUT (0) : : : ------- ~ t t t Oscillation Startup t ::; 10 (./) (./) .s:: Q) (..) "C Q) 0 8. Cl (./) c:: _________________ ..._ .::::? _________________ ..,...._ ~ to s (..) 0 0. .= > .s:: e'!: (..) ~ 0. (./) 0 Cl .s:: (..) Q) Q) 0. ~ "C c: "' E E 0 Cl - :::> .e :::> ---------- - 0 s0. t 0 .= c.. '2 0 "-E Q) rJ> .= Q) (..) c:: .!!! § "C c: "' E E 0 Cl ~ ~ s s s sa: s lt5 ~ It:; ~ Cl 0 ~ I- (./) f:: a: ti: <:: :::> if? 0 0 c.. 2 0 <:: ~ ...... ~ Figure 6.3 Port Output and Command, Address Setting Timing {during Serial Input) 252 OKI Semiconductor MSM6652/6653/6654/6655/6656 6.3 BEEP Tone Code BEEP tone code vocalizes a BEEP tone without using ADPCM data. The sound volume and frequency of a BEEP tone is set in command data, and the vocalization time of a BEEP tone is set in address data. The BEEP tone can be set only at channel 1. Do not select the BEEP tone at channel 2. To mix a BEEP tone and channel 2, vocalize an 8 kHz sampling frequency of a phrase at channel 2, this is because the sampling frequency of a BEEP tone is set to 8 kHz. If the sampling frequency of channel 2 differs, speech at channel 2 may be either too slow or too fast. 16 15 14 13 10 0 0 bl1 bfO The sound volume is set to 13, 12 pins, and the frequency is set to 11, IO pins. Tables 6.3 and 6.4 show the sound volumes and the frequencies that can be set. Table 6.3 Sound Volume Settings Table 6.4 Frequency Settings 13 12 Sound Volume (Note 1) 11 10 Frequency 0 0 1/8 amplitude sound volume of channel 1 0 0 0.5 kHz 0 1 1/4 amplitude sound volume of channel 1 0 1 1.0 kHz 1 0 1/3 amplitude sound volume of channel 1 1 0 1.6 kHz 1 1 1/2 amplitude sound volume of channel 1 1 1 2.0 kHz (NOTE1) If 1/2 amplitude of channel 1 is set, and if the maximum amplitude is setto 1 /2 VDD as an option the sound volume of BEEP tone becomes 1I4 VDD· The BEEP tone time is set by address data (16 to IO). Minimum BEEP Tone Time ......... 16.384 ms Maximum BEEP Tone Time ........ (128 - 1) x 16.384 mS = 2.1 sec. 253 MSM6652/6653/6654/6655/6656 OKI Semiconductor Figure 6.4 shows BEEP tone setting timing. 16/SD (I) \ BEEP Tone Time Setting Data 15/SI (I) L BEEP Tone Time Setting Data 14-10 (I) BEEP Tone Time Setting Data CH (I) CMD(I) ST(I) BUSY(O) NAR(O) ' ' ! BEEP Tone Time (tse) i ' ' ~ -- -- - ---- -- - - - - -- - - - - - -•: t t BEEP Tone Command Capture BEEP Tone Time Capture Figure 6.4 BEEP Setting Timing (during Parallel Input) For example, if the BEEP tone time setting data shown in Figure6.4 is set as (16 to IO)= ("0011000"), the BEEP tone time (taE) becomes (26 x 0+25 x 0+24 x 1+23 x 1+22 x 0+21 x 0+20 x 0) x 16.384mS = 393.216 ms The formula to set BEEP tone time is shown below. taE = (26 x (16)+25 x (15)+24 x (14)+23 x (13)+22 x (12)+21 x (11)+20 x (IO)) x 16.384 ms 6.4 Speech Control Code Command data can set repeat and sound volume. 16 15 14 13 12 11 10 sm rp1 rpO vl1 vlO 254 OKI Semiconductor MSM6652/6653/6654/6655/6656 Channel 1 is set if CH terminal is in "H'', channel 2 is set if in "L". Once a command is set, it is maintained as both channels until another command is set. The LSI cannot be maintained command contents as each channels . Conditions of each channel are set by I4 to IO. Three conditions can be set: 1) to 3) . 1) Setting Number of Repeats The number of repeats is set by 13 and 12 terminals. For the number of repeats 4 types can be selected: 1, 2, 4 and infinite. Input stop code to stop speech when infinite repeat is selected. Table 6.5 shows the correspondence between I3 and I2 terminals, and the number of repeats. Table 6.5 Selection of Number of Repeats 13 12 Number of Repeats 0 0 1 0 1 2 1 0 4 1 1 Infinite 2) Sound Volume Smoothing During Repeat If "I4" is set to "H", sound volume during repeat is automatically attenuated from 1 to 1 /2, 1I4 and 1/8 (fadeout function). This smoothing, however, is effective only when 2, 4 or infinite is selected at repeat setting. If infinite is selected, speech is vocalized remaining at 1 /8 after attenuating from 1, 1/2,1I4 and to 1/8. If the initial sound volume setting is other than 1, the sound volume attenuates from that value in 1/2 units, stopping at 1/8. 3) Setting Sound Volume Speech to vocalize can be changed in 4 steps if speech is vocalized overlapping in channel synthesis. The sound volume is set at I1 and IO terminals. Table 6.6 shows the correspondence between Il, IO terminals and sound volume settings. MSM6652/6653/6654/6655/6656 OKI Semiconductor Table 6.6 Attenuation Volume Setting 11 10 Attenuation Volume 0 0 No attenuation (sound volume is same as speech data) 0 1 -6 dB attenuation (sound volume is 1/2 of speech data) 1 0 -12 dB attenuation (sound volume is 1/4 of speech data) 1 1 -18 dB attenuation (sound vlume is 1/8 of speech data) 7. ADDRESS DATA If a user specified phrase is input to I6 to IO terminals by address data, and if an ST signal is then input, speech synthesis starts. Time is set if silence and BEEP tone were set by command. Figure 7.1 shows speech start timing. Figures 7.2 and 7.3 show timing when an address, other than a user phrase, is input. 16 ~ 10 (1/0) ~~---------u_se_r_Ph_ra_se_ _ _ _ _ _ _ _ _ _ __ CMD (I) ST (I) BUSY(O) NAR (0) AOUT(O) Oscillation Startup Speech End Figure 7.1 Speech Startup Timing 256 OKI Semiconductor MSM6652/6653/6654/6655/6656 16 - 10 (I) ~~------A_d_dr_es_s_o_th_e_rt_h_an_u_s_er_p_h_ra_se_ _ _ _ _ _ _ _ _ _ _ __ GMO (I) "H" ST(I) BUSY (0) NAR(O) AOUT(O) Oscillation Startup Figure 7.2 Timing when Address, other than User Phrase, is Input in Standby Status 16 - 10 (I) ~~-----A_d_dr_es_s_o_th_e_rt_h_an_u_s_er_p_h_ra_se_ _ _ _ _ _ _ _ _ _ _ __ GMO (I) "H" ST(I) NAR (0) "H" BUSY (0) AOUT(0)~~-112_V_o_D~~~~~~~~~~~~~~~~~~~~~~~- Figure 7.3 Timing when Address, other than User Phrase, is Input in Status that AOUT is 1/2 Voo 8. STOP CODE If 16 to IO are set to "0000000" during speech vocalization, and if an ST signal is input, vocalization stops and AOUTbecomes 1 /2 V DD· STOP code becomes valid at the leading edge of ST (common with parallel and serial inputs). Use the stop code only at setting "L" BUSY pin. The stop code cannot be used in states of standby- mode. 257 MSM6652/6653/6654/6655/6656 OKI Semiconductor Figure 8.1 shows stop code input timing. 16 ~ 10 (I) --~X~ __"o_oo_o_oo_o_"-~X~____u_s_er_P_hr_as_e_ _ _ _ _ _ _ _ __ CMD (I) "H" ______t~ss~------ (Note) ST (I) BUSY (0) NAR(O) AOUT (0) Speech Stop (Note) tss is also applied for serial input. Figure 8.1 Stop Code Input Timing If an ST signal is input by stop code in standby status, NAR stays in "H" level and AOUTbecomes 1/2 Voo after standby conversion time, as shown in Figure 8.2. If an ST signal is input by stop code in standby status, the status does not follow AC characteristics. 16~10 (I) "0000000" CMD (I) "H" ST (I) BUSY (0) NAR (0) AOUT (0) Figure 8.2 Timing when Stop Code is Input in Standby Status 258 OKI Semiconductor MSM6652/6653/6654/6655/6656 9. SAMPLING FREQUENCY Sampling frequencies can be specified for each phrase in speech data of internal ROM. For channel synthesis, if channels 1 and 2 are regenerated at the same time, the channel 1 sampling frequency has priority. For sampling frequency, the following 8 frequencies can be selected when creating speech data. 4.0 kHz, 5.3 kHz, 6.4 kHz, 8.0 kHz, 10.6 kHz, 12.8 kHz, 16.0 kHz, 32.0 kHz 10. SPEECH VOCALIZATION TIME Table 10.1 shows internal ROM configuration. The actual speech data ROM area is different from the indicated ROM capacity. The speech data management area as shown in Table 10.1 is about 6 Kb its, and the edit ROM area includes 16 Kbits. Table 10.1 ROM Configuration Speech Data Management Area Editing ROM Area Speech Data Area Disabled Area Use the following formula as a guide to compute speech vocalization time. Vocalization Time= (ROM Capacity- 16 - 6) x 1024 x 255/256 +Bit Rate (kbps) For example, if data was created at a 4.0 kHz sampling using MSM6652 (288 kbit internal ROM), the vocalization time is (288 - 16-6) x 1024 x 255/256 + 16(kbps) = 16.9 sec 259 MSM6652/6653/6654/6655/6656 OKI Semiconductor 11. CHANNEL STATUS The BUSY pin and NAR terminal output status signals. BUSY terminal outputs "L" level when either channel 1 or 2 is synthesizing speech. It is in "H" level when power is turned ON. The NAR terminal is the channel 1and2 input status signal (Next Address Request), enabled ST signal input when NAR is in "H" level. The channel status is switched by CH terminal. If CH terminal is in "H" level, the status signal of channel 1 is output, and if in "L" level, the status signal of channel 2 is output. 12. REGENERATION METHOD The MSM6375 series has only the ADPCM regeneration method, however to support various speech MSM6650 has 3 types of regeneration methods: AD PCM, PCM and melody regeneration. Respective features and how to select are explained below. 12.1 ADPCM Method With the ADPCM (Adaptive Differential Pulse Code Modulation) method, basic quantization width .i is adaptively changed for each sampling, and is encoded to 4bit data. This further improves the follow-up properties to speech wave forms. Conversion to ADPCM data is performed by the AR76-202 analysis tool. If the ADPCM method is used for human voices, animal cries and natural tones, the speech data capacity becomes smaller. 260 OKI Semiconductor MSM6652/6653/6654/6655/6656 12.2 PCM Method The PCM method of MSM6650 uses an 8-bit straight binary format. Of the three methods, PCM is the best for follow-up properties to speech wave forms. This method is appropriate for sound effects where wave forms sharply change, and for pulse shaped wave forms. 12.3 Melody Regeneration Method The AR76-202 analysis tool supports melody regeneration system. The melody data can be composed by using the AR76-202. Therefore, unique sound can be created. 12.4 Bit Rate of Each Method The bit rate shows the degree of data compression and the data amount to synthesize for 1 second. The bit rate is determined by the relationship between the sampling frequency and the data- amount-per-sample. The following formula is used. Bit Rate (kbps) =Sampling Frequency (kHz) x Data-amount-per-sample (bit) The bit rate of the three methods are compared below when the sampling frequency is 6.4 kHz. 1) ADPCM Method Bit Rate (kbps) = 6.4 kHz x 4 bit= 25.6 kbps 2) PCM Method Bit Rate (kbps) = 6.4 kHz x 8 bit = 51.2 kbps 3) Melody Regeneration Method With the melody regeneration method, the bit rate changes depending on each sound. The formula does not determine the bit rate changes. The average bit rate is 4 kbps. 12.5 The regulations of channel synthesis about each regenaration methods Melody regeneration and BEEP tone cannot be regenarated in 2 channel side . The regulations of channel synthesis about each regeneration methods as follows table 12.1 . 261 MSM6652/6653/6654/6655/6656 OKI Semiconductor Table 12.1 The Regulations of channel Synthesis 1 Channel 2.Qhannel Setti119._ ADPC~Od!IT ADPCMJ_OdB--18del_ 0 Notel) ADPCM(OdB--18dB) ADPCMIOdB} 0 Note!) ADPCM(-6dB--1 BdB) ADPCMJ-6dB--18dfil_ 0 ADPCM(OdB--18dfil_ MELODYlOdB- -18dfil_ x ADPCMLOdB--18d81 PCMIOdfil_ 0 Note!) ADPCM(OdB) PCM(OdB--18dB) 0 Note I) ADPCMJ-6dB--18dB1 PCMJ-6dB--18dfil_ 0 ADPCMJPdB--18dB1 ADPCM(OdB--18dB) BEEP TONW/2, 1/3, 1/4, 1/112_ SILENCE x u MELOD'ti_Odfil_ ADPCMJ_OdB--18dlli_ 0 Note!) MELODY(OdB--18dB) ADPCMlOdBl 0 Note!) MELODY(-6dB--18dB) ADPCM(-6dB--18dB) 0 MELODY(OdB--18dB) MELODY(OdB--18dB) PCM(OdB--18dB) :K MELOD~Odlli_ 0 Note!) MELODY(OdB--18dB) PCM(OdB) 0 Note!) MELODY(-6dB--1 BdB) PCM(-6dB--1 BdB) 0 MELOD'f(OdB--18dB1 BEEP TONIT1!2, 1/3, 1/4 111[ x MELODY(OdB--18dB) SILENCE 0 PCM(OdB) ADPCMIOdB--18dBl 0 Note!) PCM(OdB--18dB) PCM10d!B_ Q Note!) PCM(-6dB--18dB) PCM(-6dB--18dB) 0 PCM(OdB--18dB) MELODY[OdB--18dB) x Note!) PCM(OdB) PCM(OdB--18dB) 0 PCM10dB--18dB} PCM(OdB) 0 Note!) PCM(-6dB--18dB) PCM(-6dB--18dB) 0 PCM(OdB--18dB) BEEP TONE(1/2, 1/3, 1/4, 1/8) x PCM(OdB--1 BdB) SILENCE 0 BEEP TONIT!/2, 1/3, 1/4, 1/8) ADPCM10dlli_ 0 Note!) BEEP TON~/2, 1/3, 1/4, 1/Sl ADPCMJ:-6dB--18dBl 0 BEEP TON[l/2, 1/3, 1/4, 1/8) MELODY(OdB--18dB) x Note!) BEEP TONE(1/2, 1/3, 1/4, 1/8) PC~Odaj_ 0 BEEP TONE(1/2, 1/3, 1/4, 1/Sl PCM}6dB--18dBl 0 BEEP TONE(1/2, 1/3, 1/4, 1/8) BEEP TONrn12, 1/3, 1/4, 1/fil_ x BEEP TONE(1/2, 1/3, 1/4, 1/8) SILENCE u SILENCE ADPCMJ:OdB--1 BdBl 0 SILENCE MELODY(OdB--18dB) x SILENCE PCM(OdB--18dB) 0 SILENCE BEEP TONE(1/2, 1/3, 1/4, 1/8) x SILENCE SILENCE 0 Notel) In case of channel synthesis , confirm the voice quality with the MSM6650 evaluation board. Because , occasionally , there is possible of straining the voice by recording level and synthesis phrases . 262 OKI Semiconductor MSM6652/6653/6654/6655/6656 13. EDITROM The role of edit ROM is to link phrases and build sentences, making an external microcomputer unnecessary. The conventional MSM6375 family could not link phrases and synthesis channels in standalone mode, but the MSM6650 family can using edit ROM. For example: The phrase "Today's weather is .... " is used to compare the MSM6375 family and MSM6650 family. With the MSM6375 family, individual data must be stored to phrase ROM (see Table 13.1) to vocalize each phrase in timing ofonce as "Today's weather is sunny", and "Today's weather is rainy". On the other hand, the MSM6650 family can vocalize plural phrases at timing of once by having edit ROM functions. This means that "Today's weather is sunny" will be vocalized by merely specifying address [01] of Table 13.3 in the phrase ROM configuration shown in Table 13.2. If address [02] is specified, "Today's weather is rainy" will be vocalized. Conventionally data must be repeatedly stared to phrase ROM to vocalize "Today's weather is .... ", but overlapped data is not required as shown in Table 13.2 by using edit ROM functions. Table 13.1 Conventional Phrase ROM Configuration Address [HEX] Phrase 01 Today's weather is sunny. 02 Today's weather is rainy. 03 Today's weather is sunny follwed by cloudy, some areas are rainy. ?F 263 MSM6652/6653/6654/6655/6656 OKI Semiconductor Table 13.2 Phrase ROM Configuration Address_ [HEX] Phrase 01 Today's 02 weather 03 is l l 10 sunny 11 cloudy 12 rainy 13 snowy 20 occasional 21 followed by 22 some areas are l l 7F Table 13.3 Edit ROM Configuration Address [HEX] Edit Content [Max. 8 Phrases] 01 [01 ][02)(03][1 OJ 02 [01 )[02)[03)[12) 03 [01)[02)[03)[10)[21 )[11 )[22)[12] 7F 264 OKI Semiconductor MSM6652/6653/6654/6655/6656 In addition, by using the edit ROM, the MSM6375 series can perform channel synthesis in stand alone mode which was not possible before. The edit ROM not only can connect phrases but can also perform channel synthesis and selection of BEEP and mute sound by commands. A maximum of 8 phrases (16 bytes) can be set in 1 edit. Table 13.4 shows the configuration of edit ROM. Table 13.4 Edit ROM Configuration Edit Address ROM Edit Data ROM Phrase ROM 01 1 Phrase Command Phrase Phrase Address ~ 02 ]\ 1 Phrase Address [HEX] 03 2 Phrase Command 01 Today's 2 Phrase Address 02 weather I 3 Phrase Command 03 is 3 Phrase Address ~ I 7E 4 Phrase Command 10 sunny 7F 4 Phrase Address 1~ 5 Phrase Command I 5 Phrase Address 7F 6 Phrase Command 6 Phrase Address 7 Phrase Command 7 Phrase Address 8 Phrase Command \! 8 Phrase Address Edit address ROM can process a maximum of 127 user specified phrases. Table 13.4 shows the relationship between phrase ROM, edit data ROM, and edit address ROM. Phrase ROM cannot be directly accessed if edit ROM is used. 265 MSM6652/6653/6654/6655/6656 OKI Semiconductor Edit ROM can be setup using the previously mentioned AR76-202 analysis tool. For regeneration using edit ROM, regeneration may not be the one requested. Be certain to check the speech data using either the analysis tool or MSM6650 of external ROM. Figure 13.1 shows the flow chart when creating edit ROM. Edit Start Speech Control Code Set BEEP Tone Code Set Silent Insertion Code 1. Channel Specify 1. Frequency Specify 1. Channel Specify 2. Fadeout Specify (0.5, 1.0, 1.6, 2.0kHz) 3. Repeat Specify 2. Sound Volume Specify Command Data Input Part (1, 2, 4, infinite) (1/8, 1/4, 1/3, 1/2) 4. Sound Volume Specify (0, -6, -12, -18dB) Phase Address Specify BEEP Tone Time Set Silent Time Set Address Data Input Part NO End Code Inset Figure 13.1 Edit Data ROM Creation Flow Chart 266 OKI Semiconductor MSM6652/6653/6654/6655/6656 13.1 Edit ROM Commands Table 13.5 shows the commands that can be set in edit ROM. Table 13.5 List of Commands that Can Be Set in Edit ROM 07 06 05 04 03 02 01 00 Command O O O O O O O O End Code ~~~+-~~+-~~;-----~----r---·------r-~~,-~~--t--~~--t--~~~~~~~--~~~ ch O 1 O O O O O Silence insertion Code 1 1 0 0 bl1 blO bf1 bfO BEEP Tone Code ch 1 1 sm rp1 rpO vl1 vlO Speech Control Code The commands of the 4 codes shown in Table 13.5 are explained below. 13.1.1 End Code End code means that one edit data is completed. Although this is necessary at the end of one edit data, since the LSI can recognize the end of editing, it is unnecessary when the maximum number of phrases are used. 13.1.2 Silence Insertion Code Silence insertion code inserts silence to each channel, reducing speech data. 07 ch The channel to insert silence is specified in command data, and silence time is set in address data. The channel to insert silence is set to "07" command data. If "07" is "H" channel 1 is set, if "L" channel 2 is set. Silence time is set at the address settings of phrases shown in Table 13.4. Minimum Silence Time ... 16.384 ms Maximum Silence Time ... 2.1 sec. 267 MSM6652/6653/6654/6655/6656 OKI Semiconductor The formula to set the silence time is shown below. tMU = (26 x (06)+25 x (05)+24 x (04)+23 x (03)+22 x (02)+21 x (01)+20 x (00)) x 16.384 ms Table 13.6 Edit Data Example of Silence Insertion Code 07 06 05 04 03 02 01 00 1st Byte 1 0 1 0 0 0 0 0 Silence Insertion Code 2nd Byte 0 0 0 1 1 0 0 0 Silence Time 3rd Byte 0 0 0 0 0 0 0 0 End Code For example, if edit data is set as in Table 13.6, then 393 ms of silence is inserted to channel 1. 13.1.3 BEEP Tone Code BEEP tone code vocalizes a BEEP tone without using ADPCM data. The sound volume and frequency of a BEEP tone is set in command data, and the vocalization time of a BEEP tone is set in address data. The BEEP tone can be set only at channel 1. To mix a BEEP tone and channel 2 vocalize an 8 kHz sampling frequency of a phrase at channel 2, this is because the sampling frequency of a BEEP tone is set to 8 kHz. If the sampling frequency of channel 2 differs, speech at channel 2 may be either too slow or too fast. 07 06 05 04 03 02 01 00 0 0 bl1 blO bf1 bfO The sound volume is set to 03, 02 and the frequency is set to 01, 00. Tables 13.7 and 13.8 show the sound volumes and the frequencies that can be set. 268 OKI Semiconductor MSM6652/6653/6654/6655/6656 Table 13.7 Sound Volume Settings Table 13.8 Frequency Settings 03 02 Sound Volume 01 00 Frequency 0 0 1/8 amplitude sound volume of channel 1 0 0 0.5 kHz 0 1 1/4 amplitude sound volume of channel 1 0 1 1.0 kHz 1 0 1/3 amplitude sound volume of channel 1 1 0 1.6 kHz 1 1 1/2 amplitude sound volume of channel 1 1 1 2.0 kHz The BEEP tone time is set to the address setting of phrases shown in Table 13.4. Minimum BEEP Tone Time ... 16.384 ms Maximum BEEP Tone Time ... 2.1 sec. The formula to set a BEEP tone time is shown below. tMu = (26 x (06)+25 x (05)+24 x (04)+23 x (03)+22 x (02)+21 x (01)+20 x (00)) x 16.384 ms Table 13.9 Edit Data Example of BEEP Tone Code 07 06 05 04 03 02 01 00 1st Byte 1 1 0 0 1 1 0 1 BEEP Tone Code 2nd Byte 0 0 0 1 1 0 0 0 BEEP Tone Time 3rd Byte 0 0 0 0 0 0 0 0 End Code For example, if edit data are set as in Table 13.9, BEEP sound of l.OkHz is vocalized for 393mS with 1 /2 of amplitude of sound volume of Channel 1. 13.1.4 Speech Control Code Speech control code can set repeat and sound volume. 07 06 05 04 03 02 01 00 ch sm rp1 rpO vl1 vlO The channel is set at "07". If "07" is "H", channel 1 is set, if "L" channel, 2 is set. The speech control condition of each channel is set between 04 to 00. 269 MSM6652/6653/6654/6655/6656 OKI Semiconductor 1) Setting Number of Repeats The number of repeats is set at 03 and-02, and can be selected from 4 types: 1, 2, 4 and infinite. If infinite is selected, repeat can be stopped by inputting stop code. Table 13.10 shows the relationship between 03, 02 and the number of repeats. Table 13.10 Number of Repeats Settings 03 02 Number of Repeats 0 0 1 0 1 2 1 0 4 1 1 Infinite 2) Sound Volume Smoothing During Repeat If "04" is set to "H", sound volume during repeat is attenuated from 1 to 1/2,1I4 and 1/8. This smoothing, however, is effective only when 2, 4 or infinite is selected at repeat setting. If infinite is selected, speech is vocalized remaining at 1/8 after attenuating from 1, 1 /2, 1I4 and to 1/8. If the initial sound volume setting is other than l, the sound volume attenuates from that value in 1/2 units, stopping at 1/8. 3) Setting Sound Volume Speech to vocalize can be changed in 4 steps if speech is vocalized overlapping in channel synthesis. The sound volume is set at 01 and 00. Table 13.11 shows the correspondence. Table 13.11 Attenuation Volume Setting 01 00 Attenuation Volume 0 0 No attenuation (sound volume is same as speech data) 0 1 -6 dB attenuation (sound volume is 1/2 of speech data) 1 0 -12 dB attenuation (sound volume is 1/4 of speech data) 1 1 -18 dB attenuation (sound volume is 1/8 of speech data) 270 OKI Semiconductor MSM6652/6653/6654/6655/6656 13.2 PCM Regeneration In Edit ROM For PCM regeneration, edit data is set together with speech control code. All settable items in speech control code (channel, sound volume smoothing during repeat, number of repeats, and sound volume) can be set. 13.3 Melody Regeneration in Edit ROM For melody regeneration, edit data is set together with speech control code. Channels however cannot be set. Channel 1 is fixed. Channel 2 mixing of melody regeneration/ melody regeneration combination is not possible. All settable items in speech control code can be set except channels. 13.4 Continuous Regeneration in Edit ROM If at the 2nd edit phrase is input during speech vocalization of the 1st edit phrase (phrase consists of 16 bytes or less of edit data ROM: referred to as edit phrase), speech vocalization starts continuously after 1st edit phrase vocalization ends. However, this occurs only when the channel setting of the 1st and 2nd edit phrase are the same, and when echo regeneration and channel 2 regeneration are not performed. For example, if the 1st edit phrase is echo regeneration, and the 2nd edit phrase channel 1 regeneration, as shown in Figure 13.2 (1), then 2 edit phrases overlap. To avoid this, insert silence to channel 1, as shown in Figure 13.2 (2), and set edit data ROM so that channels 1 and 2 end regeneration at'the same time. 1st Edit Phrase 2nd Edit Phrase (1) Channel 1 -k "Today's" x "w~ather" > ' Channel 2 ~ ' "Today's" >. 1st Edit Phrase 2nd Edit Phrase Channel 1 "Today's" "weather" (2) Channel2 Figure 13.2 Example of Continuous Regeneration Timing 271 MSM6652/6653/6654/6655/6656 OK.I Semiconductor 13.5 Channel 2 Mixing Function in Edit ROM This function overlaps 2 phrases. By using edit ROM, it is easy to echo a phrase (echo regen-eration) and to vocalize a phrase with a musical instrument sound or BGM (channel 2 regeneration). 13.5.1 Echo Regeneration Echo regeneration delays and overlaps -6 dB attenuation (1 /2 amplitude speech wave form of channel 1) to a speech wave form vocalized at channel 1. Echo Reproduction of Multiple Phrases Using address [02] of phrase ROM, "weather", an echo regeneration edit data example in Table 13.2, is explained below. Table 13.12 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 0 Speech Control Code (1ch setting, repeat, no attenuation) 2nd Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 0 1 Speech Control Code (2ch setting, repeat, -6 dB attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 7th Byte 0 0 0 0 0 0 0 0 End code If edit data is set as in Table 13.12, "weather" is vocalized at channel 1, and is overlapped and vocalized from channel 2 with a -6 dB attenuated sound volume 98.3 mS later. When 2 phrases overlap, set the attenuation of the speech control command with attention to sound volume. The silence time by silence insertion code is a factor that influences echo quality. Set the silence time so that the desired echo is created. 272 OKI Semiconductor MSM6652/6653/6654/6655/6656 When performing echo regeneration set the number of repeats of the speech control command to 1. If 2, 4 or infinite is set, timing becomes as shown in Figure 13.3. This figure shows that the number of repeats of the 1st and 5th byte of edit data in Table 13.12 have changed. ' Channel 1 -----j(===="_W~~r-a=th=e_r'-'~~~>,._:--~-- , ' Channel2 (1) Number of Repeats: 1 Channel 1 Channel2 . ' --<~--.-'W-e-at-he_r'_'-~*~--W-ea-th_e_r'-~)>------------- ___________,S , "weather' X..____·w_ea_th_er'_'__,)-- (2) Number of Repeats: 2 Channel 1 "Weather" "Weather" "Weather'' "Weather' ,___ _ _ _ _ _ __ Channel 2 --------------~S "Weather" X "Weather")(:=------ (3) Number of Repeats: 4 Channel1 "Weather'' ''Weather" "Weather"-------------- Channel 1 has infinite regeneration. Channel2 ---------------------------- Channel 2 does not reproduce. (4) Number of Repeats: infinite Figure 13.3 Vocalization Timing of Echo Reproduction According to Number of Repeats The vocalization timing, when the number of repeats of the speech control command is set for an edit data phrase, is explained below. 273 MSM6652/6653/6654/6655/6656 OKI Semiconductor ----------- Channel2 "Today's" "weather" "is" Figure 13.4 Vocalization Timing of a Three Phrase Echo Regeneration 27.S MSM6652/6653/6654/6655/6656 OKI Semiconductor For the echo regeneration of multiple phrases, set so that the sampling frequency of each phrase is the same. If a phrase with a different sampling frequency is mixed, the speech of channel 2 will become fast or slow because the sampling frequency of channel 1 has priority. Figure 13.5 shows the timing. Channel 1 Channel2 Isam = 6.4kHz 'Today's" * Isam = 8.0kHz "To~y's" "weather" )f( "we~her' fsam = 6.4kHz "is" )>-------- "is" ' ' Fast Vocalization Slow Vocalization Figure 13.5 Vocalization Timing of Echo Regenerations with Different Sampling Frequencies Echo Reproduction of an Arbitrary Phrase in Multiple Phrases Table 13.14 shows an edit data example to apply echo to "is" in the four phrases of "Today's", "weather", "is" and "sunny". Table 13.14 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 0 Speech Control Code (1ch setting, repeat once, no attenuation) 2nd Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H "Today's") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 1 1 0 0 0 0 1 Silence Time (1.59 mS) 5th Byte 1 1 1 0 0 0 0 0 Speech Control Code (1ch setting repeat once, no attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H '1weather") 7th Byte 1 1 1 0 0 0 0 0 Speech Control Code (1 ch setting, repeat once, no attenuation) 8th Byte 0 0 0 1 0 0 0 0 Phrae Address (1 OH "is") 9th Byte 0 1 1 0 0 0 0 1 Speech Control Code (2ch setting, repeat once, -6 dB attenuation) 10th Byte 0 0 0 1 0 0 0 0 Phrase Address (1 OH "is") 11th Byte 1 1 1 0 0 0 0 0 Speech Control Code (1ch setting, repeat once, no attenuation) 12th Byte 0 0 0 0 0 0 1 1 Phrase Address (03H "sunny") 13th Byte 0 0 0 0 0 0 0 0 End Code 276 OKI Semiconductor MSM6652/6653/6654/6655/6656 Channel 1 -k ' "Today's" x "weather" x ' ' "is" x "sunny" > Channel2 -k Silence ix: ' "is" > 1.5 sec 0.9 sec Figure 13.6 Vocalization Timing Using Edit Data ofTable 13.14 As shown by the timing in Figure 13.6, "is" is echoed by setting the silence time, which is the addition of the vocalization time for "Today's" and "weather" and the delay time for echo to channel 2. If the silence time exceeds 2.1 sec, it is necessary to add a silence insertion setting to 2 bytes of edit data. For the echo reproduction of one arbitrary phrase of multiple phrases, a maximum of 6 phrases are possible if the silence insertion setting is 2 bytes. 13.5.2 Two-channel Regeneration Two-channel regeneration uses PCM, melody and ADPCM methods. Channel synthesis is possible with all combinations except a melody regeneration/ melody regeneration combination. Melody regeneration is fixed to channel 1. The sampling frequency of phrases to be overlapped must be the same. Figures 13.7to13.10 show the vocalization timings of two-channel regeneration. 1st Phrase Channel 1 ---< ~~~~~~~~~~~~~~~~~~~~ Melody Tone ),_:- - - - - - Channel2 - - - { "Today's" X "weather" X "is" X "sunny" )>--;- - - - - 2nd Phrase : 3rd Phrase : 4th Phrase : 5th Phrase : Figure 13.7 Example of Four Phrase Channel Synthesis Timing with Melody Tone as GBM 1st Phrase 4th Phrase Channel 1 ---< Melody Tone x Melody Tone > Channel2 -< ' ' "Today's" 2nd Phrase x ' "weather" 3rd Phrase x : "is" 5th Phrase x'' "sunny" > 6th Phrase : Figure 13.8 Example of Four Phrase Channel Syntehsis Timing with Melody Tone and 1st and 4th Phrases as BGM 277 MSM6652/6653/6654/6655/6656 OKI Semiconductor 1st Phrase Channel 1 --<~ ______ P_C_M_T_on_e_(A_)-----~>,_:- - - - - - Channel 2 ---:- - - - - - Channel 2 ---;- - - - - ' 0 I ' I ' ' ' ' 2nd Phrase 4th Phrase Figure 13.10 Example of Channel Synthesis between PCM Main Melody Tone (A), (B) and PCM Rhythm Tone (C), (D) with 2 Repeats 278 OKI Semiconductor MSM6652/6653/6654/6655/6656 14. STANDBY CONVERSION If standby conversion YES is selected by command option, if the next phrase does not startup within 0.2 sec. after vocalization ends, the LSI enters standby status and stops all operations. If restarted it takes about 100 ms until speech starts, since a pop noise countermeasure circuit operates. If standby conversion NO is selected by command option, the LSI does not enter standby status, even if speech ends, and the output of AOUTbecomes about 1 /2 VDD. Current is flowing since oscillation is operating. If started up speech starts in about 350 µs. If standby conversion NO is selected, it is necessary to input an RESET pulse to enter standby status. If an RESET pulse is input, a pop noise is generated since the AOUT output level instantaneously becomes GND level. 15. SPEECH OUTPUT For the speech output terminal, a command option can select whether the DA converter output is directly output or output through an internal low pass filter. Table 15.1 shows output level of AOUT pin. Table 15.1 Output level of AOUT pin Regeneration method Conditions Most lowest level Centre level Most highest level AD PCM DA converter output 0 About 0.5 x VDD About VDD LPF output About 0.15 x VDD About 0.5 x VDD About 0.95 x VDD PCM - About 0.25 x VDD About 0.5 x VDD About 0.75 x VDD Melody - About 0.25 x VDD About 0.5 x VDD About 0.75 x VDD BEEP Tone - About 0.25 x VDD About 0.5 x VDD About 0.75 x VDD 279 MSM6652/6653/6654/6655/6656 OKI Semiconductor 15.1 DA Converter Output Wave Form The output amplitude from the DA converter becomes a step wave form synchronizing the sampling frequency at a maximum 4095 / 4096 x VDD. If DA output is selected, it is recommended to externally attach a low pass filter. Since the output impedance of a DA converter changes between 15 kn to 35 kn, determine the filter constant so that this resistance change does not affect the cutoff frequency of the low pass filter. 15.2 Low Pass Filter Output A low pass filter consists of switched capacitors. The attenuation characteristic of the MSM6650 low pass filter is -40 dB I oct. The cutoff frequency changes depending on the sampling frequency. Table 15.2 shows the relationship between sampling frequency and cutoff frequency. Table 15.2 Cutoff Frequencies of Low Pass Filter Sampling Frequency Cut-off Frequency (fsam) (fcut) 4.0kHz About 1.BkHz 5.3kHz About 2.6kHz 6.4kHz About 2.6kHz 8.0kHz About 3.2kHz 10.6kHz About 4.2kHz 12.BkHz About 5.1 kHz 16.0kHz About 6.4kHz 32.0kHz About 12.BkHz 280 OKI Semiconductor MSM6652/6653/6654/6655/6656 16. CERAMIC OSCILLATION Figure16.l shows an external circuit diagram using a ceramic oscillator. XT XT D Figure 16.1 External circuit diagram Figure 16.2 and 16.3 show external circuit diagrams using a cermic oscillator, CSA4.09MGU and CST4.09MGWU made by Murata Seisakusho Co., ltd. XT XT D C30pF I I C30pF Figure 16.2 CSA4.09MGU Figure 16.3 CST4.09MGWU Figure 16.4 shows an external circuit diagram using a cermic oscillator, PBRC4.00MSA/MSK/ MWS made by Kyocera Co., ltd. Note) In case of using a oscillator 4.00MHz, vocalization speed is low about 2% than AR76-202 analysis tool and evaluation board. XT 3pF 33pI Figure 16.4 PRBC 4.00 MSNMSK/MWS 281 MSM6652/6653/6654/6655/6656 OKI Semiconductor APPLICATION CIRCUIT EXAMPLE Voo P1.0 16/SD CH P1.1 15/SI CMD P1.2 ST >- ..... -' L!) P2.0 RESET ~ c::; i'.i'.: PORT1 C') 00 P3.0 NAR 0 L!) 2 c.o PORT2 (/) c.o 2 1 ::2: (/) 2 AOUT 14 RESET SA D 11 10 D I I I I Example of Application Circuit at Serial Input Interface 282 OKI Semiconductor MSM6652/6653/6654/6655/6656 P1.6 16 Voo P1.0 10 >- .... LO P2.0 CH -' ~ c::; <( M co P3.1 CMD LL. 0 LO :::!: P2.2 ST CD CD Cf) :::!: :::!: P2.1 RESET Cf) :::!: 1 P3.0 NAR AOUT RESET SA D GND D I I I I Example of Application Circuit at Parallel Input Interface 283 OK.I Semiconductor MSM66P54-01 /02/03/04 MSM6650 family 1 Mbit OTP Built-in Speech Synthesis LSI GENERAL DESCRIPTION The MSM66P54 is a single-chip CMOS speech synthesis LSI that has an on-chip OTP (One Time PROM) for speech data storage. This LSI is the OTP version for on-chip mask ROMs from the MSM6652 to the MSM6656. The MSM66P54 that adds PCM system to ADPCM system provides you a speech synthesis sound of a high quality so that it contains a 12bit DA converter and - 40dB/oct low pass filter. The conventional "BEEP" tone and a 2-channel mixing function are now easier to use, and a melody function, fadeout function and random vocalization function are now included. External control is easier than before due to the addition of an edit ROM that can form sentences by linking phrases. As it is possible to select standalone mode or microcontroller interface inode by the code (-01- -04), it can handle various applications. Because MSM66P54-0l has serial inputs, it is possible to reduce the number of ports for controlling microcontrollers. A speech analysis and speech data can be simply written by using a developed tool AR76-202 at your side. This LSI is suited for applications to the small production of various products and the short delivery that can not correspond to the mask ROM. In case of the mass production, on-chip mask ROMs from the MSM6652 to the MSM6656 are recommended. This LSI is classified to two kinds of stand-alone and microcontroller interface. Refer to the contains because this description explains these two kinds individually. In addition, see the pages described about on-chip mask ROM products from the MSM6652 to the MSM6656. 2Rr; MSM66P54-01/02/03/04 OKI Semiconductor Table of Contents Standalone Microcontroller Interface Page Page FEATURES ................................................... 287 PEATURES ................................................... 295 PIN CONFIGURATION ............................ 288 PIN CONFIGURATION ............................ 296 BLOCK DIAGRAM ..................................... 289 BLOCK DIAGRAM ..................................... 297 ELECTRICAL CHARACTERISTICS ........ 290 ELECTRICAL CHARACTERISTICS ........ 298 TIMINGCHART .......................................... 292 TIMING CHART ......................................... 300 PIN DETAILS................................................294 PIN DETAILS .............................................. 306 286 OKI Semiconductor MSM66P54·01/02/03/04 (1) STANDALONE MODE FEATURES Maximum Vocalization Time ROM Capacity fsam = 4.0 kHz I fsam = 6.4 kHz J fsam = 8.0 kHz I fsam = 16.0 kHz 1 Mbit 63.Bsec l 39.9sec l 31.9sec l 15.9sec (Actual speech ROM area is less by 22 kbit) 4bit ADPCM method/8bit PCM method Melody function Edit ROM function 2-channel mixing function Internal random vocalization function Fadeout function (4-step change of sound volume) BEEP tone built-in BEEP tones of 0.5 kHz, 1.0 kHz, 1.6 kHz and 2.0 kHz can be generated by specification code. Sampling frequencies 4.0 kHz,5.3 kHz,6.4 kHz,8.0kHz,10.6kHz,12.8kHz,16.0 kHz, 32.0kHz1) Note 1)32.0 kHz cannot be selected if RC oscillation is selected. Maximum number of phrases : 120 Internal 12-bit DI A converter Internal LPF attenuation factor : -40 dB I oct Standby function RC oscillation or ceramic oscillation can be selected Data write time (when using AR76·202.) Write and verify : approx. 2 minutes Verify only : approx. 30 seconds Package : 20-pin DIP (DIP 20-P-300-Wl) 24-pin SOP (SOP 24-P-430-VK) Code option : -03 standalone (shift to standby) -04 standalone (no shift to standby) (-01, -02 microcontroller interface) 79.7 MSM66P54-01/02/03/04 OKI Semiconductor PIN CONFIGURATION (Top View) On-chip ROM series and pin layouts are basically fitted, butthe MSM66P54 increases further two pins for write than on-chip mask ROMs from the MSM6652 to the MSM6656. These two pins (Vpp and PGM) allow you to be opened in r.eplay after the write is completed. MSM66P54 (OTP) MSM6652-6656 (Mask ROM) 20 Lead Plastic DIP 18 Lead Plastic DIP VPP AO AO A1 A1 A2 A2 TEST TEST RESET RESET BUSY BUSY XT/CR XT/CR OSC2 AOUT AOUT GND Note: Applicable to MSM66P54-0l/02/03/04RS MSM66P54 (OTP) MSM6652-6656 (Mask ROM) 24 Lead Plastic SOP 24 Lead Plastic SOP VDD 0 ::ti ::i A1 ~ ~ x > g- AO :x Address & s: ...@- ~ 17 stage 1Mbit OTP SW3 Switching !- r--- SW2 ;:r, _.. Controller Multiplexer (Editing ROM & Address ROM >: SW1 ;x ,. Contains 22Kbit) swo 8 L TEST l I~ AD PCM Synthesizer Random DATA RND (. Circuit F 17 stage Controller l Address Counter. 1 ~ PCM Synthesizer BUSY ~ 1/0 Interface 1 J l ;J 12 H Melody Generator 12bit DAG I s: OSC1 OSC2 r OSC3i~ osc X'tal/RC Timing Controller ~ ~ y BEEP Tone Generator LPF Ch s: m ~.... 0 ~ ~ N '-, ~ '.:-- 00 XT/CR RESET VDD GND AOUT i '° MSM66P54-01/02/03/04 OKI Semiconductor ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings (GND =OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo Ta= 25°C -0.3 - 7.0 v Input Voltage V1N -0.3 - Voo+0.3 v Storage Temperature Tsjg_ - -55 -150 oc Operating Range (GND =OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo LPF output +3.5 - +5.5 v Operating Temperature Top - -10- 70 oc Original Oscillation Frequency (1) Min. Tyo. Max. fosc1 When X'tal selected MHz 3.5 4.096 4.5 Original Oscillation Frequency (2) fosc2 When RC selected 200 256 300 kHz Note 1: The accuracy of the oscillation frequency when RC oscillation is selected depends largely on the accuracy of the R and C of the external parts. DC Characteristics (Voo = 5.0V, GND = OV, Ta= -10- 70°C) Parameter Symbol Condition Min. Typ. Max. Unit "H" Input Voltage V1H - 4.2 - :... v "L" Input Voltage V1L - - - 0.8 v "H" Output Voltage VoH loH =·40µA 4.6 - - v "L" Output Voltage VoL loL =40µA - - 0.4 v "H" Input Current 1 l1H1 V1H =Voo - - 10 µA "H' Input Current 2 l1H2 Internal pulldown resistance pin -200 -90 -30 µA "L' Input Current 1 hL1 V1L = GND -10 - - µA 'L" Input Current 2 l1L2 Internal pullup resistance pin 30 90 200 µA Operating Current Consumption loo - - 6 20 mA Standby Current Consumption los - - - 100 µA LPF Load Resistance RAO UT - 50 - - kn 290 OKI Semiconductor MSM66P54-01/02/03/04 AC CHARACTERISTICS (Voo = 5.0V, GND = OV, Ta= -10 - 70°C) Parameter Symbol Condition Min. Typ. Max. Unit Original Oscillation Duty Cycle fduty - 40 50 60 % RESET Input Pulse Width twJ_RSTI_ - 10 - - µS RESET Input Time after Power on tQ_(_RSTl_ - 0 - - µS RND Input Pulse Width tw_IBAfil_ - 100 - - µS SW3-SWO Input Pulse Width twJ_s~ - 32 - - ms BUSY Output Time (1) tsss - - - 10 µS BUSY Output Time (2) taN When Isam = 8kHz 350 375 400 µS Chattering Prevention Time tcHA - 29 30 31 ms DA Converter Change Time toAR, toAF - 60 64 68 ms LPF Stabilization Time tL - 6 8 10 ms Standby Conversion Time tsTS - 0.45 0.5 0.55 sec. Capture Random Address Time tRA - 16 32 48 µS 291 MSM66P54-01/02/03/04 OKI Semiconductor TIMING CHART 1. When Power is_ Turned ON Voo '' '' •:' :4' 1D(RST) RESET (I) _ _ _ FU4 tw(RST) BUSY (0) ----' 2. When LSI Starts Up and is In Standby Status tw(SW) SWO (I) I __.,-- Address Data Capture ---~,._-~tc~HA~___.;,--L._ BUSY (0) tsss ----'---W- L---------------4 AOUT (0) _ _ _.___ _ tL _ ____..__.. ' toAR •' tsrn to AF Oscillation Startup :4 : ' -··---..,4"""_______. ,: : ~ ..... Standby Status : Stan.dby Conversion Ti~e . ' Standby Status 3. Repeat Vocalization Timing Chart SWo (I) BUSY (0) 292 OKI Semiconductor MSM66P54-01/02/03/04 4. Timing Chart When SW3-SWO are Changed During Vocalization A2-AO (I) SW3 - SW2 (I) "L" SW1 (I) SWO(I) BUSY (0) AOUT(O) 1st Phrase 2nd Phrase Vocalization tcHA Vocalization ' + 1st Phrase Speech Stop 5. Repeat Vocalization Timing Chart of Random Vocalization RND (I) BUSY (0) AOUT (0) 1st Phrase Same Phrase Vocalization Continuous Vocalization Oscillation Startup 6. Timing Chart of Capturing Random Address ------~t=W~ '-' <( "'~ (J) 15- .c:: a. "O C;s c:: 0 ~ :1 (J) "'e "O "'~"' "'~ (J) .c:: .c:: a. a. "O "O c: C;s N c: 0 "'"'e ~ N "O "O ~ (,.) <( 0 > "'c:!"' "' (J) .c:: a. c:! .c:: "O a. c:: t;) N ~ a: "'e I~ a: Ii I- <( :::> 2 0 ~ <( 301 (;.) 0 ,., s: N 0 (/) ::r t» s: O> :::J O> :::J ~ .... ~ I CH (I) "H" ::c .... 0 CD (Q cs 16 - 10 (110) ~Command Data X 1st Phrase (Address Data) X2nd Phrase (Address Data) CD :::J CD OJ a ~ !:!: 0 i :::J CMD (I) ::1 LJ -u - 2. ST (I) lJ :::J (Q 0 ::r t» NAR (0) ~ :IE ::r CD BUSY (0) :::J m ~ AOUT(O) -------------~ ~ :::J ....-~~~~~---.: : !!. 0 1st Phrase Vocalization 2nd Phrase Vocalization 0 3 3t» If a command is set externally the status set is maintained until the next command is set. :::J Q. Therefore, if the 1st and 2nd phrases are vocalized at the timing shown above, speech for iii' ...en~ both phrases is first vocalized in the status set by that command. To vocalize command cen content that was changed, be certain to input command data before inputting address data. The command input can be continuously set many times until address input. However, the ~ setting of the command inputted last becomes valid (common with 1 and 2 channel regen- -;; CD erations). t» 8. ~ 8 ~ 8. S" 'C c .e a Q -'ti •C.11 Ill 0 0 ;= ~ -111 ~ -:::i t/) !2. :I ;.) :i CD c. ~ ;.) ~ (;.) ~ O> Xi s: ~ "' s: ~ $ i. ~.... CD 0 0 ::I CH (I) "H" 1st Phrase Address Serial Input 2nd Phrase Address Serial Input ::1 3 s· cc I2 16/SD (I) __ ...,.,...___, ~ (') tsos ~ ~tsso tW(SCK) ~------~ II) ~ n n n n n - - - ;:i. 15/SI (I) ~ ~ ~ts1s ~ CMD (I) : :"H" ~tss1 #ts1s ' ' ~3 I 1 I : : I ST (I) ~ (') BUSY (0) i : tNAc 0 3 3 II) NAR (0) L f ::I c. u;· ::I AOUT(O) -1------------~ t 1st Phrase Vocalization · - - - · - - - - - - - - - - - - - ----· ----- l~ ...._; -; ac Oscillation Startup Ill CD c. In serial input, data is transferred to the LSI when the ST signal rises after serial data is input. SD is captured at the former edge of SI. ~ ::I. ~ a ~ S" a ~- 'C g. ~ ..... ~ ::.:, ~ I with 1 and 2 channel regenerations). w ~ MSM66P54-01/02/03/04 OKI Semiconductor PIN DETAILS Pin Name 1/0 Function LSI is in standby status if set to "L" level. At this time oscillation stops and AOUT output becomes GND , and returns to initial status . RESET I LSI has internal power on reset . To operate power on reset correctly startup power within 1 ms . If not, apply RESET pulse when power is turned on . This pin has internal pullup resistor . BUSY 0 Outputs "L" level during vocalization. In "H" level when power is turned ON. CMD, 'ST input becomes effective when NAR is at "H" level. If CH pin is in "H" level, NAR becomes a channel 1 status signal. If in "L" level NAR becomes a channel 2 status 0 signal. NAR signal indicates whether register 16 to 10 address of address/comma nd NAR controller (see block diagram) is in open status. "H" level indicates open status. NAR is in "H" level when power is turned ON. Analog speech output pin. DA converter output or LPF output can be selected by a AOUT 0 command input. GND - Ground pin VDD - Power pin Ceramic oscillator connection pin. Pin has internal 0.5 to 5Mn feedback resistor XT I between XT and XT. Input from this pin when using external clock. Xi 0 Ceramic oscillator connection pin. Set to open to use external clock. Command input and option setting control pin. Command and option input is enabled if 'ST pin is set to "L" level when CMD pin is in "L" level. Set to "H"level when CMD is not CMD I used and when using serial input interface. This pin has internal pullup resistor. 306 OKI Semiconductor MSM66P54-01 /02/03/04 Pin Name 1/0 Function Speech synthesis starts at fall of ST, 16 to 10 addresses are captured at rise of ST. ST I Input ST when NAR of channels 1 and 2 status signals are "H". This pin has internal pullup resistor. Channel control signal. Channel 1 input is in "H" level, channel 2 input is in "L" level. CH I This pin has internal pullup resistor. Command and user specified phrase input pin when parallel input is optionlly selected. 16/SD I A serial data (command and address) input pin when serial input is optionally selected. Command and user specified phrase input pin when parallel input is optionlly selected. 15/SI I A serial clock input pin when serial input is optionally selected. Command and user specified phrase input pin when parallel input is optionally selected. 14 I When serial input is optionally selected, leave this pin at "L" level. This pin has pin pulldown resistor. Command and user specified phrase input pin when parallel input is optionally selected. 13/PORT1 110 When serial input is optionally selected, this pin becomes a port output pin. Output from the port varies by command input from the microcontroller. Command and user specified phrase input pin when parallel input is optionally selected. 12/PORTO 1/0 When serial input is optionally selected, this pin becomes a port output pin. Output from the port varies by command input from the microcontoroller. Command and user specified phrase input pin when parallel input is optionally selected. 11,10 I When serial input is optionally selected, leave this pin at "L" level. This pin has internal pulldown resistor. Vpp - Power supply voltage pin for write in on-chip OTP. Set to "H" or open in repla y. Interface pin for speech analysis tool AR76-202. Set to "L" or open in repay. PGM I This pin has internal pull-down resistor. Note: See the pages described about on-chip mask ROM products from the MSM6652 to the MSM6656 for more detailed functions. 107 OKI Semiconductor MSM6650 External ROM Drive Speech Synthesis LSI GENERAL DESCRIPTION MSM6650, a successor to OKl's MSM6376 speech synthesis LSI, can externally store data by directly connecting a maximum 64 Mbit ROM or EPROM. The PCM method is added to the ADPCM method, a 12-bit DA converter and a -40 dB I oct low pass filter are built-in, insuring high quality speech synthesis sound. The conventional "BEEP" tone and a 2-channel mixing function are now easier to use, and a melody function, fadeoutfunction and random vocalization function are now Included. External control is easier than before due to the addition of an edit ROM that can form sentences by linking phrases. MSM6650 can support various applications since a standalone or microcomputer interface can be selected option by a pin. Also for control, serial input minimizes the number of microcomputer ports. Since MSM6650 has the same internal ROM speech synthesis LSI circuit configuration as MSM6652, MSM6653, MSM6654, MSM6655 and MSM6656, it is an appropriate LSI to evaluate internal ROM speech synthesis LSis. 309 MSM6650 OKI Semiconductor The general differences between the MSM6650 family and the MSM6375 family follow. MSM6650 Family MSM6375 Family Interface Standalone/microcomputer SW input/CPU input Speech Synthesis Method 4bit ADPCM I 8bit PCM I Melody PCM 4bit ADPCM BEEP Tone Output Frequency 0.5 kHz/1.0 kHz/1.6 kHz/2.0 kHz 1.0 kHz/2.0 kHz Duration Arbitrary (16 ms-2100 ms) Fixed (64 ms/128 ms/250 ms/500 ms) Sampling Frequency 4.0 kHz/5.3 kHz/6.4 kHz/8.0 kHz 4.0 kHz/6.4 kHz/8.0 kHz (lose = 64 kHz) (fsam) 10.6 kHz/12.8 kHz/16.0 kHz/32.0 kHz 16.0kHz/25.6kHz/32.0kHz (lose= 256 kHz) Original Oscillation Frequency 256 kHz (RC)/4.096 MHz (X'tal) 40 kHz - 256 kHz (fosc) LPF Attenuation Factor -40 dB/oct -24 dB/oct LPF Cutoff Frequency '<"' _L1.B_L2.6J2.6]3.2J42J5.1l 6.4_L12.8 ~ J 1.5J 3.0j 3.0 fcur (kHz) !Am 14.015.3 I 6.4I8.0110.6112.8116.0132.0 'A• 14.0 I 6.41 8.0 Maximum No. of Phases 127 111 Pullup/Pulldown Resistor Yes No Standby Conversion Time 0.2 sec 3.0 sec Maximum External ROM 64 Mbit 16 Mbit Edit ROM Fadeout Additional Functions Random vocalization - Melody regeneration PCM regeneration Serial input/Port output See the related Data Book for details on differences. 310 OKI Semiconductor MSM6650 The MSM6650 is roughly classified into a standalone and microcomputer interface type. Since both types are separately explained in data book, refer to the table of contents below for the appropriate page(s). Table of Contents Standalone Microcomputer Interface Page Page FEATURES ................................................... 312 FEATURES ................................................... 355 PIN CONFIGURATION ............................ 313 PIN CONFIGURATION ............................ 356 BLOCK DIAGRAM .................................... 314 BLOCK DIAGRAM .................................... 357 ELECTRICAL CHARACTERISTICS ........ 315 ELECTRIC CHARACTERISTICS ............. 358 AC CHARACTERISTICS ........................... 316 AC CHARACTERISTICS ........................... 359 TIMING CHART ......................................... 317 TIMING CHART ........................................ 360 PIN DETAILS .............................................. 319 PIN DETAILS .............................................. 366 FUNCTION DETAILS ................................ 321 FUNCTION DETAILS ............................... 368 1. VOCALIZATION CODE SPECIFICATION ...... 321 1. VOCALIZATION CODE SPECIFICATION ...... 368 2. PULLUP,PULLOOWN RESISTANCE ................ 321 2. PULLUP,PULLOOWN RESISTANCE ............... 368 3. OPTION(S) .............................................................. 321 3. MODE SETTING ................................................... 368 4. STANDALONE MODE ........................................ 321 4. MICROCOMPUTER INTERFACE MODE ........ 371 5. SAMPLING FREQUENCY ................................... 329 5. COMMAND DATA .............................................. 375 6. SPEECHVOCALIZATIONTIME ....................... 329 6. ADDRESSDATA ................................................... 382 7. CHANNEL STATUS ............................................. 330 7. STOP CODE ........................................................... 383 8. REGENERATION METHOD ............................... 330 8. SAMPLING FREQUENCY ................................... 385 9. EDIT ROM .............................................................. 333 9. SPEECHVOCALIZATIONTIME ....................... 385 10. STANDBY CONVERSION ................................... 349 10. CHANNEL STATUS ............................................. 386 11. SPEECH OUTPUT ................................................. 349 11. REGENERATION METHOD .............................. 386 12. RC OSCILLATION................................................. 350 12. EDIT ROM .............................................................. 389 13.CERAMIC OSCILLA TION ......................................352 13. STANDBY CONVERSION ................................... 405 APPLICATION CIRCUIT EXAMPLE ...... 353 14. SPEECH OUTPUT ............................................... ..405 15. EXTERNAL ROM DRIVE TIMING ................... .407 16. CERAMIC OSCLLATION ..................................... .409 APPLICATION CIRCUIT EXAMPLE ..... 410 311 MSM6650 OKI Semiconductor (1) STANDALONE MODE FEATURES 4bit ADPCM method/Shit PCM method Melody function Edit ROM function 2-channel mixing function Internal random vocalization function Fadeout function (4-step change of sound volume) Internal BEEP Tone BEEP tones of 0.5 kHz, 1.0 kHz, 1.6 kHz and 2.0 kHz can be generated by specification code. Sampling Frequencies 4.0 kHz,5.3 kHz,6.4 kHz,8.0kHz,10.6kHz,12.8kHz,16.0 kHz, 32.0kHz1) Note 1) 32.0 kHz cannot be selected if RC oscillation is selected. Maximum phrases : 120 Internal 12-bit DI A converter Internal LPF attenuation factor : -40 dB I oct Internal standby function RC oscillation or ceramic oscillation can be selected Package : 64-pin FLAT (QFP64-P-1420-V1K) 312 OKI Semiconductor MSM6650 PIN CONFIGURATION (Top View) 64 Lead Plastic QFP 0 r- <.C lO ~ ("') "' 0 ~~ ,.-- O') CX) ?""" ~~~~~~~~~~~ Cl Cl Cl Cl Cl Cl Cl z r--->wwwwoc~uw~z co c c 0 c 0 0 0 0 ~ ~ ~1~ >< >< -co 313 m 60 ~s:: VJ ...... RA22 RAO 07 DO "'" ...x ,.A ...x...x ..;.. JUvV<. XX .J1. XX ~ I t t t t t ;;11\ c I :t!.. :t!. :t ~ ~ A2 Sbit LATCH ] A1 t AO >: _., Addres.s & 7 23stage MultiPlexer SW3 t Switching ~ SW2 ( Controller swo ~ SW1 8 r+L.-~-.-~~~~~~~ TEST1, 3 c w H ADPCM _., RND r----., Ra.ndo.m C1rcmt J-L l DATA Controller r1 J Li Synthesizer CE --~ 23stage Address Counter ..:::J PCM. .------+----~J ~ ~ ~. RCS Synthesizer BUSY NAR. ~ Interface .----' 12 ~ !BUSY STANDBY; t Melody 12bit Generator DAC XT/OSC1 XT/OSC2 OSC3 i c OSC (XT/CR) H ' ' Timing Controller ~ ' ~ llJ BEEP l Tone Generator LPF a ~ ~­ g ~ ~ _": _ :-------< RND ~-----~ Figure 4.10 Circuit Example to Stop Random Vocalization 328 OKI Semiconductor MSM6650 For example Table 4.3 shows that addresses other than random vocalization 0100001 are generated to stop vocalization. A user specified address that is not used is used as a stop address, therefore the status can enter standby without vocalizing speech, also shown in Figure 4.5. 5. SAMPLING FREQUENCY Sampling frequencies can be specified for each phrase in speech data of internal ROM. For channel synthesis, if channels 1 and 2 are regenerated at the same time, the channel 1 sampling frequency has priority. For sampling frequency, the following 8 frequencies can be selected when creating speech data. 4.0 kHz, 5.3 kHz, 6.4 kHz, 8.0 kHz, 10.6 kHz, 12.8 kHz, 16.0 kHz, 32.0 kHz In standalone, RC oscillation and ceramic oscillation can be selected. If RC oscillation is selected however, only up to 32.0 kHz can be selected. 6. SPEECH VOCALIZATION TIME Table 6.1 shows internal ROM configuration. The actual speech data ROM area is different from the indicated ROM capacity. The speech data management area shown in Table 6.1 is about 6 Kbit, and the edit ROM area includes 16 Kbits. Table 6.1 ROM Configuration Speech Data Management Area Editing ROM Area Speech Data Area Disabled Area Use the following formula as a guide to compute speech vocalization time. Vocalization Time= (ROM Capacity-16 - 6) x 1024 x 255/256 +Bit Rate (kbps) For example, if data was created at a 4.0 kHz sampling using MSM6652 (288 Kbit internal ROM), the vocalization time is (288 - 16-6) x 1024 x 255/256 + 16(kbps) = 16.9 sec 329 MSM6650 OKI Semiconductor 7. CHANNELSTATUS The BUS-Y-pin outputs the status signals. It outputs "L" level when either 1 or 2 is synthesizing speech. "H" level is output when power is turned ON. 8. REGENERATION METHOD The MSM6375 series has only the ADPCM regeneration method, however to support various speech MSM6650 has 3 types of regeneration methods: ADPCM, PCM and melody regeneration. Respective features and how to select are explained below. 8.1 ADPCM Method With the ADPCM (Adaptive Differential Pulse Code Modulation) method, basic quantization width A is adaptively changed for each sampling, and is encoded to 4bit data. This further improves the follow-up properties to speech wave forms. Conversion to ADPDM data is performed by the AR76-202 analysis tool. If the ADPCM method is used for human voices, animal cries and natural tones, the speech data capacity becomes smaller. 8.2 PCM Method The PCM method of MSM6650 uses an 8-bit straight binary format. Of the three methods, PCM is the best for follow-up properties to speech wave forms. This method is appropriate for sound effects where wave forms sharply change, and for pulse shaped wave forms. 8.3 Melody Regeneration Method The AR761 analysis tool supports melody playback. The melody data can make an unique sound because musical notes can be composed by the AR761. 8.4 Bit Rate of Each Method The bit rate shows the degree of data compression and the data amount to synthesize for 1 second. The bit rate is determined by the relationship between the sampling frequency and the data- amount-per-sample. The following formula is used. Bit Rate (kbps) = Sampling Frequency (kHz) x Data-amount-per-sample (bit) 330 OKI Semiconductor MSM6650 The bit rate of the three methods are compared below when the sampling frequency is 6.4 kHz. 1) ADPCM Method Bit Rate (kbps) = 6.4 kHz x 4 bit = 25.6 kbps 2) PCM Method Bit Rate (kbps) = 6.4 kHz x 8 bit = 51.2 kbps 3) Melody Regeneration Method With the melody regeneration method, the bit rate changes depending on each sound. The formula does not determine the bit rate changes. The average bit rate is 4 kbps. 331 MSM6650 OKI Semiconductor 8.5 The Regulations of channel synthesis about each regeneration mehtods Melody regeneration and BEEP tones can not be regenerated in 2 channel side . The regeneration of channel synthesis about each regeneraion methods as follows Table 8.1. Table 8.1 The Regulations of channel Synthesis 1 Channel 2Channel Setti@ ADPCMJ_Odfil_ ADPCM10dB--18dfil_ 0 Notel) ADPCMJ_OdB--1 SdBl ADPCMJ_Odfil_ 0 Notel) ADPCM}6dB--18dl[ ADPCM}6dB--18dBI 0 ADPCMJ_OdB--18dBl MELODytOdB--18dl[ x ADec..MJMB--18dB.l PCMJ.Odfil. 0 Note!2_ ADPCMJ_Odl[ PCM(OdB--18dB) 0 Notel) ADPCMJ-6dB--18dfil_ PCMJ-6dB--18dB1 0 ADPCM10dB--18dlll_ ADPCM(OdB--1 SdB) BEEP TONW/2, 1/3, 1/4, 1/fil_ SILENCE x 0 MELODYioctl[ ADPC~OdB--18dEjI 0 Notel) MELODY(OdB--1 SdB) ADPCM]Odl[ 0 Notel) MELODY(-6dB--18dB) ADPCM(-6dB--18dB) 0 MELODY(OdB--1 SdB) MELODY(OdB--1 SdB) PCM(OdB--18dB) :K MELODYJ_Odfil. 0 Notel) MELODY(OdB--1 SdB) PCM(OdB) 0 Notel) MELODY(-6dB--18dB) PCMJ:-6dB--18dBl 0 MELOD'@dB--18dB} MELODY(OdB--1 SdB) BEEP TON[1/2 1/3 1/4 111[ SILENCE x0 PCMJ_Od~ ADPCMJ_OdB--1 Sdfil_ 0 Notel) PCM10dB--1Bdl[ PCMIOdB} 32: Notel) PCM(-6dB--1BdB) PCM_f6dB--1Bd~ 0 PCMJ_OdB--1BdB) PCM(OdB) MELODYJ_OdB--1 Bdfil_ PCM(OdB--18dB) 0 x Notel) PCMJ_OdB--1 Bdfil_ PCM(OdB) 0 Notel) PCM16dB--1Bd~ PCM(-6dB--1 BdB) 0 PCM]OdB--1BdB} PCM(OdB--18dB) BEEP TONE(1/2, 1/3, 1/4, 1/8) SILENCE x0 BEEP TONffi/2, 1/3, 1/4, 1/1!}_ AD PCMIoctl[ 0 Notel) BEEP TONE(1/2, 1/3, 1/4, 1/8) ADPCM}6dB--18dl[ 0 BEEP TONE_(1/2, 1/3, 1/4, 1/8}_ BEEP TON~1/2, 1/3, 1/4, 1/8) MELOD'f(_OdB--18dfil_ x Notel) PCM(OdB) 0 BEEP TONfil.1/2, 1/3, 1/4, 1/~ PCMJ:6dB--18dB) 0 BEEP TONE(1/2, 1/3, 1/4, 1/8) BEEP TONfil_1/2, 1/3, 1/4, 1/fil_ x 0 BEEP TON~1/2, 1/3, 1/4, 1/8}_ SILENCE SILENCE ADPCMlOdB--1 Sdl[ 0 SILENCE MELODYIOdB--18dBl x SILENCE PCM(OdB--18dB) 0 SILENCE BEEP TONfil_1/2, 1/3, 1/4, 1/8}_ x SILENCE SILENCE 0 Notel) In case of channel synthesis, confirm the voice quality with the MSM6650 evaluation board . Because occasionally there is possibility of straining the voice by recording level and synthesis phrases . 332 OKI Semiconductor MSM6650 9. EDITROM The role. of edit ROM is to link phrases and build sentences, which makes an external microcomputer unnecessary. The conventional MSM6375 family could not link phrases and synthesis channels in standalone mode, but the MSM6650 family can using edit ROM. For example: The phrase "Today's weather is .... " is used to compare the MSM6375 family and MSM6650. With the MSM6375 family, individual data must be stored to phrase ROM (see Table 9.1) when individual phrases of "Today's weather is sunny", and "Today's weather is rainy" are vocalized by timing of one time. On the other hand, the MSM6650 family can vocalize plural phrases for edit ROM function by timing of only one time. If the edit ROM has the phrase ROM of table 9.2, "Today's weather is sunny" will be vocalized by merely one time specifying address [01]. If address [02] is specified, "Today's weather is rainy" will be vocalized. Conventionally data must be repeatedly stored to phrase ROM to vocalize "Today's weather is .... ", but the storage of overlapped data is not required as shown in table 9.2 by using edit ROM functions. Table 9.1 Conventional Phrase ROM Configuration Address [HEX] Phrase 01 Today's weather is sunny. 02 Today's weather is rainy. 03 Today's weather is sunny followed by cloudy, some areas are rainy 7F 333 MSM6650 OKI Semiconductor Table 9.2 Phrase ROM Configuration Address [HEX] Phrase 01 Today's 02 weather 03 is I I 10 sunny 11 cloudy 12 rainy 13 snowy 20 occasional 21 followed by 22 some areas are I I 7F Table 9.3 Edit ROM Configuration Address [HEX] Edit Content [Max. 8 Phrases] 01 [01 ][02][03)[10] 02 [01 ][02][03][12] 03 [01 )[02] [03] [10][21] [11 ][22][12] 7F 334 OKI Semiconductor MSM6650 Edit ROM makes channel synthesis possible, a feature previously not available in standalone mode with the MSM6375 series. With edit ROM commands, phrase linking, channel synthesis, and "BEEP" tone or "silent" can be set. A maximum of 8 phrases (16 bytes) can be set in 1 edit. Table 9.4 shows the configuration of edit ROM. Table 9.4 Edit ROM Configuration Edit Address ROM Edit Data ROM Phrase ROM 01 1 Phrase Command Address Phrase [HEX] ~ 0201 02 I· 1 Phrase Address 03 2 Phrase Command Today's 2 Phrase Address weather ~ I 7E 3 Phrase Command 3 Phrase Address 4 Phrase Command v------ 03 I 10 is sunny 7F 4 Phrase Address ~ I 5 Phrase Command 7F 5 Phrase Address 6 Phrase Command 6 Phrase Address 7 Phrase Command 7 Phrase Address 8 Phrase Command '. 8 Phrase Address Edit address ROM can process a maximum of 127 user specified phrases. Table 9.4 shows the relationship between phrase ROM, edit data ROM, and edit address ROM. Phrase ROM cannot be directly accessed if edit ROM is used. Be certain to set commands in edit ROM. Settings cannot be omitted. 335 MSM6650 OKI Semiconductor Edit ROM can be setup using the previously mentioned AR76-202 analysis tool. For regeneration using edit ROM, regeneration may not be the one requested. Be certain to check the speech using either the analysis tool or MSM6650 of external ROM. Figure 9.1 shows the flow chart when creating edit ROM. Edit Start 3 - -- - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _2_ - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Speech Control Code Set BEEP Tone Code Set Silent Insertion Code Set 1. Channel Specify 1. Frequency Specify 1. Channel Specify 2. Fadeout Specify (0.5, 1.0, 1.6, 2.0kHz) 3. Repeat Specify 2. Sound Volume Specify Command Data Input Part (1, 2, 4, infinite) (1/8, 1/4, 1/3, 1/2) 4. Sound Volume Specify (0, -6, -12, -18dB) Phrase Address Specify BEEP Tone Time Set Silent Time Set Address Data In put Part NO End Code Inset Figure 9.1 Edit Data ROM Creation Flow Chart 336 OKI Semiconductor MSM6650 9.1 Edit ROM Commands Table 9.5 shows the commands that can be set in edit ROM. Table 9.5 List of Commands that can be set in Edit ROM 07 06 05 04 03 02 01 00 Command 0 0 0 0 0 0 0 0 End Code ch 0 1 0 0 0 0 0 Silence Insertion Code 1 1 0 0 bl1 blO bf1 bfO BEEP Tone Code ch 1 1 sm rp1 rpO vl1 vlO Speech Control Code The commands of the 4 codes shown in Table 9.5 are explained below. 9.1.1 End Code End code means that one edit data is completed. Although this is necessary at the end of one edit data, since the LSI can recognize the end of editing, it is unnecessary when the maximum number of phrases are used. 9.1.2 Silence Insertion Code Silence insertion code inserts silence to each channel, reducing speech data. ~ I ~5 I 7 I ~ I T I 07 ch I The channel to insert silence is specified in command data, and silence time is set in address data. The channel to insert silence is set to "07" command data. If "07'' is "H" channel 1 is set, if "L" channel 2 is set. Silence time is set at the address settings of phrases shown in Table 9.4. Minimum Silence Time ... 16.384 ms Maximum Silence Time ... 2.1 sec 337 MSM6650 OKI Semiconductor The formula to set the silence time is shown below. tMu = (26x(06)+25x(05)+24x(04)+23x(03)+22x(02)+21x(01)+20x(OO))x16.384ms Table 9.6 Edit Data Example of Silence Insertion Code 07 06 05 04 03 02 01 00 1st Byte 1 0 1 0 0 0 0 0 Silence Insertion Code 2nd Byte 0 0 0 1 1 0 0 0 Silence Time 3rd Byte 0 0 0 0 0 0 0 0 End Code For example, if edit data is set as in Table 9.6, 393 ms of silence is inserted to channel 1. 9.1.3 BEEP Tone Code BEEP tone code vocalizes a BEEP tone without using ADPCM data. The sound volume and frequency of a BEEP tone is set in command data, and the vocalization time of a BEEP tone is set in address data. The BEEP tone can be set only at channel 1. To mix a BEEP tone and channel 2 vocalize an 8 kHz sampling frequency of a phrase at channel 2, this is because the sampling frequency of a BEEP tone is set to 8 kHz. If the sampling frequency of channel 2 differs, speech at channel 2 may be either too slow or too fast. The sound volume is set to 03, 02 and the frequency is set to 01, 00. 07 06 05 04 03 02 01 00 0 0 bl1 blO bf1 bfO 338 OKI Semiconductor MSM6650 Tables 9.7 and 9.8 show the sound volumes and the frequencies that can be set. Table 9.7 Sound Volume Settings Table 9.8 Frequency Settings 03 02 Sound Volume 01 00 Frequency 0 0 1/8 amplitude sound volume of channel 1 0 0 0.5 kHz 0 1 1/4 amplitude sound volume of channel 1 0 1 1.0 kHz 1 0 1/3 amplitude sound volume of channel 1 1 0 1.6 kHz 1 1 1/2 amplitude sound volume of channel 1 1 1 2.0 kHz The BEEP tone time is set to the address setting of phrases shown in Table 9.4. Minimum BEEP Tone Time ... 16.384 ms Maximum BEEP Tone Time ... 2.1 sec The formula to set a BEEP tone time is shown below. tBE = (26 X (06)+25 X (05)+24 x (04)+23 x (03)+22 X (02)+21 X (01)+20 X (00)) X 16.384mS 07 06 05 04 03 02 01 00 1st Byte 1 1 0 0 1 1 0 1 BEEP Tone Code 2nd Byte 0 0 0 1 1 0 0 0 BEEP Tone Time 3rd Byte 0 0 0 0 0 0 0 0 End Code Forexample,if edit data is set as in Table9.9, a 1.0 kHz BEEPtone is vocalized at a 1/2 amplitude sound volume at channel 1 for 393 ms. 9.1.4 Speech Control Code Speech control code can set repeat and sound volume. 07 06 05 04 03 02 01 00 ch sm rp1 rpO vl1 vlO The channelis set at "07". If "07" is "H", channel 1 is set, if "L" channel, 2 is set. The speech control condition of each channel is set between 04 to 00. 339 MSM6650 OKI Semiconductor 1) Setting Number of Repeats The number of repeats is set at 03 and 02, and can be selected from 4 types: 1, 2, 4 and infinite. If infinite is selected, repeat can be stopped by switching to another phrase. Table 9.10 shows the relationship between 03, 02 and the number of repeats. Table 9.10 Number of Repeats Settings 03 02 Number of Repeats 0 0 1 0 1 2 1 0 4 1 1 Infinite 2) Sound Volume Smoothing During Repeat If "04" is set to "H", sound volume during repeat is attenuated from 1 to 1 /2, 1I4 and 1I8. This smoothing, however, is effective only when 2, 4 or infinite is selected at repeat setting. If infinite is selected, speech is vocalized remaining at 1/8 after attenuating from 1, 1/2, 1/ 4 and to 1/8. If the initial sound volume setting is other than 1, the sound volume attenuates from that value in 1/2 units, stopping at 1/8. 3) Setting Sound Volume Speech to vocalize can be changed in 4 steps if speech is vocalized overlapping in channel synthesis. The sound volume is set at 01 and 00. Table 9.11 shows the correspondence. Table 9.11 Attenuation Volume Setting 01 00 Attenuation Volume 0 0 No attenuation (sound volume is same as speech data) 0 1 -6 dB attenuation (sound volume is 1/2 of speech data) 1 0 -12 dB attenuation (sound volume is 1/4 of speech data) 1 1 -18 dB attenuation (sound volume is 1/8 of speech data) 340 OKI Semiconductor MSM6650 9.2 PCM Regeneration in Edit ROM For PCM regeneration, edit data is set together with speech control code. All settable items in speech control code (channel, sound volume smoothing during repeat, number of repeats, and sound volume) can be set. 9.3 Melody Regeneration in Edit ROM For melody regeneration, edit data is set together with speech control code. Channels however cannot be set. Channel 1 is fixed. Channel 2 mixing of melody regeneration/ melody regeneration combination is not possible. All settable items in speech control code can be set except channels. 9.4 Random Vocalization in Edit ROM If the RND pin is used during random vocalization, the 1st edit phrase (consists of edit data ROM up to 16 bytes) is vocalized and the random vocalization of the 2nd edit phrase then starts continuously. However, this occurs only when the channel setting of the 1st and 2nd edit phrase are the same, and when echo regeneration and channel 2 regeneration are not performed. For example, if the 1st edit phrase is echo regeneration, and the 2nd edit phrase channel 1 regeneration, as shown in Figure 9.2 (1), 2 edit phrases overlap. To avoid this, insert silence to channel 1, as shown in Figure 9.2 (2), and set edit data ROM so that channels 1 and 2 end regeneration at the same time. 1st Edit Phrase 2nd Edit Phrase x ' (1) Channel 1 ----< "Today's" "w~ather" ' > Channel2 ~ "Today's" > 1st Edit Phrae 2nd Edit Phrae Channel 1 "Today's" "weather" (2) Channel2 "Today's" Figure 9.2 Example of Random Vocalization Timing 341 MSM6650 OKI Semiconductor 9.5 Channel 2 Mixing Function in Edit ROM This function overlaps 2 phrases. By using edit ROM, it is easy to echo a phrase (echo regen- eration) and to vocalize a phrase with a musical instrument sound or BGM (channel 2 regeneration). 9.5.1 Echo Regeneration Echo regeneration delays and overlaps -6 dB attenuation (1 /2 amplitude speech wave form of channel 1) to a speech wave form vocalized at channel 1. ECHO REGENERATION OF 1 PHRASE Using address (02] of phrase ROM, "weather", an echo regeneration edit data example is explained below. Tabel 9.12 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte . 1 1 1 0 0 0 0 1 Speech Control Code (1ch setting, repeat, -6 dB attenuation) 2nd Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat, -12 dB attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 7th Byte 0 0 0 0 0 0 0 0 End code If edit data is set as in Table 9.12, "weather" is vocalized at channel 1, and is overlapped and vocalized from channel 2 with a -6 dB attenuated sound volume 98.3 ms. later. When 2 phrases overlap set the attenuation of the speech control command with attention to sound volume. The silence time by silence insertion code is an element that influences the echo quality. Set the silence time so that the desired echo is created. For channel synthesis in standalone, wave forms may be cramped due to the sound volume of the phrase. Check this with the AR761 analysis tool. 342 OKI Semiconductor MSM6650 When performing echo regeneration set the number of repeats of the speech control command to 1. If 2, 4 or infinite is set, timing becomes as shown in Figure 9.3. This figure shows that the number of repeats of the 1st and 5th byte of edit data in Table 9.12 have changed. Channel 1 ' . ' --j<~---W~~a-t-he-r''-~),_i--~-- ' , ' Channel2 "Weatper'' (1) Number of Repeats: 1 Channel 1 . ' ---<~---W-ea-th-e-r"-~X~--..W-ea-th_e_r"-~)>------------- Channel2 -----------!S~-"W_ea_th_er_·_~)(~__"_W_ea_th_e_r' _ _,)---- (2) Number of Repeats: 2 ' Channel 1 - - ( "Weather" X "Weather" X~"W_e_a-th-er'~'*~,W-ea-th-er~" )>--------- , Channel 2 S "Weather'' X "Weather"><=------ (3) Number of Repeats: 4 Channel 1 --("Weather" X''Weather'' X "Weather"----------~--- Channel 1 has infinite regeneration. Channel2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - Channel 2 does not reproduce. (4) Number of Repeats: infinite Figure 9.3 Vocalization Timing of Echo Regeneration According to Number of Repeats The vocalization timing, when the number of repeats of the speech control command is set for an edit data phrase, is explained below. 343 MSM6650 OKI Semiconductor 1 When number of repeats is set to 1 If the same channel is specified for the next phrase, vocalization of the next phrase starts when vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of vocalization. 2 When number of repeats is set to 2 If the same channel is specified for the next phrase, vocalization of the next phrase starts when the second vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of the second vocalization after the first vocalization ends. 3 When number of repeats is set to 4 If the same channel is specified for the next phrase, vocalization of the next phrase starts when the fourth vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of the fourth vocalization after the 3rd vocalization ends. 4 When number of repeats is set to infinite The next phrase becomes invalid and is not vocalized regardless the channel specification. 344 OKI Semiconductor MSM6650 Echo Regeneration of Multiple Phrases A maximum of 8 phrases (16 bytes) are set to one edit data ROM. Up to 3 phrases are possible for an echo regeneration with 16 bytes. Set the phrase ROM so that the number of phrases do not exceed four. Using "Today's", "weather" and "is" of the phrase ROM in Table 9.2 as an example, Table 9.13 shows a three phrase echo regeneration edit data example, and Figure 9.4 shows vocalization timing. Table 9.13 Three Phrase Echo Regeneration Edit Data Example 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 2nd Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H "Today's") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting repeat once, -12 dB attenuation) 6th Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H''Today's") 7th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1ch setting, repeat once, ·6 dB attenuation) 8th Byte 0 0 0 0 0 0 1 0 Phrae Address (02H ''weather') 9th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, ·12 dB attenuation) 10th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather') 11th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, ·6 dB attenuation) 12th Byte 0 0 0 1 0 0 0 0 Phrase Address (10H "is") 13th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, -12 dB attenuation) 14th Byte 0 0 0 1 0 0 0 0 Phrase Address (10H "is") 15th Byte 1 1 1 0 0 0 1 1 Speech Control Code (1 ch setting, repeat once, ·6 dB attenuation) 16th Byte 0 0 0 0 0 0 1 1 Phrase Address (03H "sunny") Channel 1 - - - ( ''Today's" X"weather" X "is" X 'sunny" )>----------- Channel2 'Today's" "weather" "is" Figure 9.4 Vocalization Timing of a Three Phrase Echo Regeneration 345 MSM6650 OKI Semiconductor For the echo regeneration of multiple phrases, set so that the sampling frequency of each phrase is the same. If a phrase with a different sampling frequency is mixed, the speech ofchannel 2 will become fast or slow because the sampling frequency of channel 1 has priority. Figure 9 .5 shows the timing. fsam = 6.4kHz fsam =8.0kHz fsam = 6.4kHz Channel 1 ------1c~~'T_o_da_y_'s'_'~><~~·-·w_ea_th_er_·~~~~-"is_"~~> Channel2 'Tocf:ay's" "we~her' "is" Fast Vocalization Slow Vocalization Figure 9.5 Vocalization Timing of Echo Regenerations with Different Sampling Frequencies Echo Regeneration of an Arbitrary Phrase in Multiple Phrases Table 9.14 shows an edit data example to apply echo to "is" in the four phrases of "Today's", "weather", "is" and "sunny". Table 9.14 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 2nd Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H "Today's") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 1 1 0 0 0 0 1 Silence Time (1.59 mS) 5th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1ch setting repeat once, -6 dB attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (01 H"weather') 7th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1ch setting, repeat once, -6 dB attenuation) 8th Byte 0 0 0 1 0 0 0 0 Phrae Address (10H "is") 9th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, -12 dB attenuation) 10th Byte 0 0 0 1 0 0 0 0 Phrase Address (10H "is") 11th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1ch setting, repeat once, -6 dB attenuation) 12th Byte 0 0 0 0 0 0 1 1 Phrase Address (03H "sunny") 13th Byte 0 0 0 0 0 0 0 0 End Code 346 OKI Semiconductor MSM6650 -k ' x ' x Channel 1 Channel2 -k "Today's" "weather'' Silence *!X ' : "is" "is" ) "sunny" > 1.5 sec 0.9 sec Figure 9.6 Vocalization Timing Using Edit Data of Table 9.14 As shown by the timing in Figure 9.6, "is" is echoed by setting the silence time, which is the addition of the vocalization time for "Today's" and "weather" and the delay time for echo to channel 2. If the silence time exceeds 2.1 sec, it is necessary to add a silence insertion setting to 2 bytes of edit data. For the echo regeneration of one arbitrary phrase of multiple phrases, a maximum of 6 phrases are possible if the silence insertion setting is 2 bytes. 9.5.2 Two-channel Regeneration Two-channel regeneration uses PCM, melody and ADPCM methods. Channel synthesis is possible with all combinations except a melody reregeneration/melody reregeneration combination. Melody regeneration is fixed to channel 1. The sampling frequency of phrases to be overlapped must be the same. Figures 9.7-9.10 show the vocalization timings of two-channel regeneration. 1st Phrase Channel 1 -l( ~------------------~ Melody Tone )>--:- - - - - - Channel2 __J' "Today's" X. "weather" X. "is" X. "sunny" \,____ _ _ __ - --i\ 2nd Phrase . : . 3rd Phrase . : . 4th Phrase : '-·-5t_h_P-hr-as_e_,;: Figure 9.7 Example of Four Phrase Channel Synthesis Timing with Melody Tone as BGM 1st Phrase 4th Phrase Channel 1 - l (____M_el_od_y_T_o_ne_ _~X..____M_el_od_y_T_o_ne_ ___,J>--:- - - - - - - Channel2 - - - : ( "Today's" X "weather" X "is" X "sunny" )>-:- - - - - - - : 2nd Phrase 3rd Phrase : 5th Phrase 6th Phrase : Figure 9.8 Example of Four Phrase Channel Synthesis Timing with Melody Tone and 1st and 4th Phrases as BGM 347 MSM6650 OKI Semiconductor 1st Phrase Channel 1 -----i( PCM Tone (A) '),_:- - - - - - ~------------------' Channel 2 -:-:- - - - - : 2nd Phrase : Figure 9.9 Example of Channel Synthesis between PCM Main Melody Tone (A) and PCM Rhythm Tone (B) with 4 Repeats 1st Phrase 3rd Phrase Channel 1 -----<~ __ PC_M_T_on_e_(A_)_~><~ __ PC_M_T_on_e_(B_)-~>,_: ----- Channel 2 -:< PCM Tone (D)x PCM Tone (D)>>-:- - - - - - '' '' '' 2nd Phrase 4th Phrase Figure 9.10 Example of Channel Synthesis between PCM Main Melody Tone (A) (B) and PCM Rhythm Tone (C) (D) with 2 Repeats 348 OKI Semiconductor MSM6650 10. STANDBY CONVERSION When STBY is set to "L" and standby conversion "YES" is selected, if the next phrase is not started up within 0.2 sec after speech ends, the LSI enters standby status and all operation stops. If restarted,ittakesaboutlOOmsfromstartuptospeechstartbecausethe"popnoise"countermeasure circuit is in operation. If STBY is set to "H" and standby conversion "NO" is selected, the LSI does not enter standby status even if speech is over. Current is flowing since AOUT output remains at about 1 /2 VDD and oscillation is in operation. If started up speech starts in about 350 µs to enter standby status when standby conversion "NO" is selected, the RESET pulse must be input. If the RESET pulse is input, the AOUT output level instantaneously changes to GND level, causing pop noises. 11. SPEECH OUTPUT In standalone mode speech is output via an internallow pass filter. Table 11.1 shows output level of AOOT pin. This filter consists of switched capacitors. Table 11.2 shows the relationship between sampling frequencies and cutoff frequencies. Table 11.1 Output level of AOUTpin Regeneration method Most lowest level Centre level Most highest level AD PCM About 0.15 xVDD About 0.5 x VDD About 0.95 x VDD PCM About 0.25 x VDD About 0.5 x VDD About 0.75 x VDD Melody About 0.25 x VDD About 0.5 x VDD About 0.75 x VDD BEEP Tone About 0.25 x VDD About 0.5 x VDD About 0.75 x VDD Table 11.2 Cutoff Frequencies of Low Pass Filter Sampling Frequency Cutoff Frequency (fsam) (fcut) 4.0kHz About 1.BkHz 5.3kHz About 2.6kHz 6.4kHz About 2.6kHz 8.0kHz About 3.2kHz 10.6kHz About 4.2kHz 12.BkHz About 5.1 kHz 16.0kHz About 6.4kHz 32.0kHz About 12.BkHz 349 MSM6650 OKI Semiconductor 12. RC OSCILLATION Figure 12.1 shows an-external circuit diagram using RC oscillation R1 OSC1 R2 OSC2 c OSC3 Figure 12.1 RC Oscillation Figure 12.1 shows an-external circuit diagram using RC oscillationl 2.1 Determine of RC Constants The RC oscillation frequency characteristics are shown in Figure 12.2.lf fosc is set to 256 kHz, Rl=lOOkD, R2=30kD, C=30pF when choosing RC oscillation, the RC oscillation frequencies are varied according to the Pluctuation of the external C and R2 as wsll as the process variations of the LS[ 13.2 Fluctuation of RC oscillation frequencies When using a 30kDR2, the error due to process variations of the LSI is maximum ±4 % so flat the fluctuation of RC oscillarion frequency when using a capacitance (C) of ± 1 % accuracy (R2) of ±2% accuracy is maximum±7% apporocimately. 350 OKI Semiconductor MSM6650 N' :J: 400 ~ (..) (/> Voo=SV .E R1=150kW ~ C=10pF c: <1> 300 :::i c::r E u.. c: 0 ~ ·5 200 (/> 0 100 Vo 0 =5V R1 =150kW C=30pF 20 30 40 50 60 70 80 Load Resistance value R2 (kn) Figure 12.1 RC oscillation Frequency eharacteristics 351 MSM6650 OKI Semiconductor 13. CERAMIC OSCILLATION Figurel3.l shows an external circuit diagram using a ceramic oscillator. XT XT D Figure 13.1 External circuit diagram Figure 13.2 and 13.3 show external circuit diagrams using a cermic oscillator, CSA4.09MGU and CST4.09MGWU made by Murata Seisakusho Co., ltd. XT XT D C30pF I I C30pF Figure 13.2 CSA4.09MGU Figure 13.3 CST4.09MGWU Figure 13.4 shows an external circuit diagram using a cermic oscillator, PBRC4.00MSA/ MSK/MWS made by Kyocera Co., ltd. Note) In case of using a oscillator 4.00MHz, vocalization speed is low about 2% than AR76-202 analysis tool and evaluation board. XT 33pFJ I 33pF Figure 13.4 PRBC 4.00 MSA/MSK/MWS 352 OKI Semiconductor MSM6650 APPLICATION CIRCUIT EXAMPLE 0 z(.!) 11 MSM27C512 CL CL .,, I~ > < I~ w (J1 s:: ""' ! 2G -174HC139 (/) s:: 18 1Y3 1Y2 I ~ 1Y1 .,,......,, > "Cl ~ AAA ~ I n1A _ 1G () Sl> ::r. ! ~6~6-r~~6 u 0 :::s 0.... - DVDDAVDDW I W-VPP I u I VDD I UOEVPP 1l l L VDD DEVPP VDD OEVPP () E I CE OE ..... AOUT RA18 swo i ~16~A16 tT1 RA17 x s: s: s: s: ~A16 ~A16 ~A16 Sl> SW1 s "Cl SW2 en s: en s: en s: en s: it "" ..... ..... "" "" ..... "" ..... ~ ~ ~ SW3 ~ ~ ""'~ ~ ~ ::r- ti) :::s c::: "'s· ()Q '"Ii TEST1 RAO I AO i==i AO l==!AO l==!AO 0 i:: TEST2 .... 07 I 07 1--l 07 l--107 1--107 ..... IB'f3 ~.... RND m '"ti XT/CR DO ~ 00 ~.... l"_ l"_ l"_ STBY ~ CPU OSC3 ~ AO OSC2 Ul "' A1 > 2 2 wr~cw4 ~u~~z ca ccccc ~ w~ 356 RA22 RAO D7 DO m :x 0-0000-000---., 60 ~ ~ ~ c ++ +++ ~ § 16/SD~ Bbit LATCH ~ ~2- 15/SI 14 Address & I 7 I 13 Command r-1 23stage Multiplexer 12 Controller 11 CT 10 8 CH I • DATA I AD PCM Synthesizer STu--- CMDu---- Controller CE ) + - - - - l ~ 1/0 ~ 23stage Address Counter RCSt>--- lnter1ace PCM BUSY o + - - - - i Synthesizer NAR V4-----i = IBUSY C7+----i (:)4-----i l ;J Melody 12bit 12 Generator DAG XTB XT MCK osc (X'tal) Timing Controller 41 l BEEPTone Generator LPF 3: (/) 3: ~ 'I TEST1 RESET CPU TEST2 SIRIAL DGND DVDD AGND AVDD AOUT I MSM6650 OKI Semiconductor ELECTRICAL CHARACTERISTICS Absolute Maximum Rating (GND = OV) Parameter Symbol Condition Limits Unit Power Supply Voltage Voo Ta= 25°C -0.3 - 7.0 v Input Voltage V1N -0.3 - Voo+0.3 v Storage Temperature Tstg_ - -55 -150 oc Operation Range (GND = OV) Parameter Symbol Condition Limits Unit Power Supply Voltage DAC output +2.4 - +5.5 v Voo LPF output +2.7 - +5.5 v Operating Temperature TQJ1_ - -40 - 85 •c Min. J ~- J_ Max. Original Oscillation Frequency lose - 3.5 l 4.096 l 4.5 MHz DC Characteristics (Voo = 5.0V, GND = OV, Ta= -40 - 85°C) Parameter Symbol Condition MIN TYP MAX Unit "H" Input Voltage V1H - 4.2 - - v "L" Input Voltage V1L - - - 0.8 v "H" Output Voltage VoH loH = -1mA 4.6 - - v "L" Output Voltage VoL loL= 2mA - - 0.4 v "H" Input Current 1 liH1 V1H = Voo - - 10 µA "H" Input Current 2 IJH2 Internal pulldown resistance pin -200 -90 -30 µA "L" In put Current 1 l1u V1L = GND -10 - - µA "L" Input Current 2 (Note) l1L2 Internal pullup resistance pin 30 90 200 µA Operating Current Consumption loo - - 6 10 mA Standby Current Consumption los - - - 10 ~ DA Output Relative Accuracy IVoAEI When DA output selected - - 40 mV DA Ou!11._ut lm_Q_edance Ro Ao When DA out_Q_ut selected 15 25 35 kn LPF Drive Resistance RAOUT When LPF output selected 50 - - kn LPF Ou!11._ut lm_Q_edance RLPF IF=10QHA - 1 3 kn 358 OKI Semiconductor MSM6650 DC CHARACTERISTICS (Voo =3.1V, GND = OV, Ta = -40 - 85°C) Parameter Symbol Condition MIN TVP MAX Unit "H" Input Voltage V1H - 2.7 - - v "L" Input Voltage V1L - - - 0.5 v "H" Output Voltage VoH loH = -1mA 2.6 - - v "L" Output Voltage Vol loL = 2mA - - 0.4 v "H" Input Current 1 l1H1 V1H = Voo - - 10 µA "H" Input Current 2 l1H2 Internal pulldown resistance pin -100 -30 -10 µA "L" Input Current 1 l1u V1L = GND -10 - - µA "L" Input Current 2 (Note) l1L2 Internal pullup resistance pin 10 30 100 µA Operating Current Consumption loo - - 4 7 mA Standby Current Consumption los - - - 1 _g_A DA Output Relative Accuracy IVoAEI When DA output selected - - 20 mV DA Output Impedance RoAo When DA output selected 15 25 35 kn LPF Drive Resistance RAOUT When LPF output selected 50 - - kn LPF Output Impedance R1PF IF=100µA - 1 3 kn AC CHARACTERISTICS (Voo = 5.0V, GND = OV, Ta= -40 - 85°C) Parameter Symbol Condition MIN TVP MAX Unit Original Oscillation Duty Cycle fd'!!Y_ - 40 50 60 % RESET Input Pulse Width !i_iisi}_ - 10 - - µS ST Input Pulse Width IWJ_SD_ - 0.35 - 2000 µS Data Set Time tow - 1 - - µS Data Hold Time two - 1 - - µS CMD Setup Time tcs - 1 - - µS CMD Hold Time tsc - 1 - - µS CH Setup Time lcHS - 1 - - µS CH Hold Time tscH - 1 - - µS Serial Clock Pulse Width IW(SCK) When using serial input option 0.35 - - µS Serial Data Setup Time tsos When using serial input option 1 - - µS Serial Data Hold Time tsso When using serial input option 1 - - µS BYSY Output Time (1) tsss - - - 10 µS BUSY Output Time (2) lBN When fs = BkHz 350 375 400 µS BUSY Output Time (3) IBF - - - 64 ms NAR Output Time (1) ISNS - - - 10 µS NAR Output Time (2) INAA When fs = BkHz 350 375 400 µS NAR Output Time (3) lNAB When fs = BkHz 350 375 400 µS NAR Output Time (4) INAC When Is = BkHz 350 375 500 µS DA Converter Change Time loAR - 60 64 68 ms LPF Stable Time IL - 6 8 10 ms Standby Conversion Time lsTB - 0.15 0.20 0.25 s (alter speech ends) 359 MSM6650 OKI Semiconductor TIMING CHART 1. When Power Is Turned ON ' ' Voo ' ' ------'-.l-J._ to(RS'F) RESET(I) _ _ _ ___.!'{J 4 tW(liST) BUSV (0) _ _ _ ___,/ -++-- tcsF _ _ _ __ CMD or ST (I) . - - - - - ' 2. When LSI Starts Up and Is in Standby Status 16-10 (I) ST (I) :;q=t(ST) NAR (0) i+L_t:;:_S::;NS,___+_.;...i: tNAA 1roSY (0) -------=+J--1--.i ~ tses , 1 tL I AOUT (0) ----------':'-4-~_;.'..-- . . Osc1llation startup i Standby status' ---~-· loAR ~ ' ls1e / ' ,___ ;.,,' ____ loAF ·standby status Standby conversion time 360 - ~ :::I •(,.) s. 0 "C ._..I» :::J" :I :I ~ ~- !. .... ::a ~ §- CD ~ :I CH (I) "H" ~ 0 :I -I 16 -10 (I) 1st Phrase Address X2nd Phrase Address X 3rd Phrase Address 3· :;· cc CMD (I) "H" 0 :::J" I» ::i. ST (I) :e:::J" CD ~~ I n ~~ :I ~ B~~ n 3 !!!. AOUT (0) 1 tL : :---f ' ' ', ' ______ ' ' ' 0 0 3 3 I» : IDAR ' ~ ' ' ' :I a. 1st Phrase Vocalization 2nd Phrase Vocalization 3rd Phrase Vocalization iii z 2. c: i - s::s:: "'D I» CJ) i VJ °' ...... ![ ~ VJ ~ 3!:: ~ 0 (/) ::r 3!:: Ill O> :::I O> ~ :::I !!!. .... CH (I) "H" :ti CD (Q CD 16 - 10 (I) ~ Command Data X 1st Phrase (Address Data) X2nd Phrase (Address Data) :::I ... CD Ill er. 0 :::I CMD (I) ST (I) LJ u ----·· -u ::! 3 s· (Q 0 ::r Ill NAR (0) ;:+ ~ ::r CD BUSY (0) :::I ~ AOUT (0) _ _ _ _ _ _ _ _ _ _ _ _ ___,, ... CD :::I I 1 I ' I !!. l I I I 0 1st Phrase Vocalization 2nd Phrase Vocalization 0 3 3 Ill If a command is set externally the status set is maintained until the next command is set. :::I Therefore, if the 1st and 2nd phrases are vocalized at the timing shown above, speech for c. Ui ...~ both phrases is first vocalized in the status set by that command. To vocalize command c: content that was changed, be certain to input command data before inputting address data. Ill The command input can be continuously set until the address input even in many times. ~ en However, the setting of the command inputted last is valid (common with 1 channel and -:a CD ~- Ill 2 channel). i le: ,,5' g. a ~ ~ 91 0 '::1' Ill = = ~ ~- !e. .... 0 '::1' §" CH (I) "H" I I' Ill = ' = ~ !e. 16-10 (I) Command Data A 1st Phrase (Address Data)A Command Data X2nd P~rase (Address Data)A 3rd Phrase (Address Data) N ::u '' . - - - - - - - r :: CD ' cc ~tcHs CD CMD(I) I +tscH LJ = CD ST (I) u u ilJ LJ: ~ 0 = NAR (0) BUSY (0) - - - - - h' ' ! ' ' : ~ ' ' ' w : - - - - _: ::e ::! '::1' ~­ CD ::2 =cc ~9 CD Ill ' ' 3 ;:i. AOUT (0) - - - - - - - - - - - - - - " 1st Phrase Vocalization : :2 d Ph : !!!. ,..--------~--... n rase: ,... ...-, 0 Vocalization: 0 3 ,..-----:Vocalization at Channel 2 3 Ill = c. Since command data is maintained independently, if speech is started up at 'iii channel 1 without a command setting, speech is vocalized by the same command set at the 1st phrase. c: Ill ~ -:a i ![ s:: en ,,S" s:: w °' w a ~ w ~ 9> s: l I I :J CH (I) "H" 16/SD (I) ___ 1st Phrase Address Serial Input _, tsos~ ~tsso twcscK),--------~ 2nd Phrase Address Serial Input :I 3 s· CQ (') :::r ~ n n ·n n n· n n n I» 15/SI (I) ::i. ~ts1s ,.H.. '' '' ' ' ' ' ~ CMD (I) I : : I ~tss1 I I ~ts1s 1 !! ~3 :: : : : : ST(I) I BUSY (0) i1 j I : tNAc ,.[ 4 ~,- - - !!. ~ 3 3 NAR(O) I» '' a Ui AOUT (0) -.i-i- - - - - - - - - - - - - z 1st Phrase Vocalization g, Oscillation Startup ' i !. In serial input, data is transferred to the LSI when the ST signal rises after serial data is input. ~ ' SD is captured at the end before SI. i: ~ S" "O .3: ~- 2" ~ ~ ::0 cZCD ~ CFi(I) "H' :I ~ i ~- CD Silence Command Input Command Serial Input 1st Phrase Address Serial Input 0 16/SD (I) :I @: 15/SI (I) i3· ~ (Q 0 PORT1 (0) ':z Ill ;:i. ~ PORTO (0) ':z CD :I CMD (I) "H" ~ CD ' 3 ST (I) ' ! !.. ' '' 0 I I I I 0 I I I \ 3 BUSY (0) 3 Ill :I NAR(O) .' ' ' ' '' a. '' '' ' Iii '' '' '' c(II CD AOUT (0) i i i ------- a. f f f Oscillation Startup Ci> Port Output Speech Vocalization Code Set ~- !.. In serial input, port output can be set by a command setting. Since a port output command and internal command are shared, if a command is set for port output, set the command for speech ,,c 3" again to input address data. If address data is input without setting the command, the LSI -d: I recognizes it as silence insertion code. i: en i: ~ m MSM6650 OKI Semiconductor PIN DETAILS Pin Name 1/0 Function BUSY 0 Outputs "L" during vocalization. At "H" level when power is turned ON. CMD, ST input becomes effective when NAR is at" H" level. If CH pin is in "H" level, NAR becomes a channel 1 status signal. If in "L" level NAR becomes a channel 2 status NAR 0 signal. NAR signal indicates whether registers 16 to 10 address of address/command controller (see block diagram) is in open status. "H" level indicates open status. NAR is in "H" level when power is turned ON. Analog speech output pin. DA converter output or LPF output can be selected by a AOUT 0 command input. AGND - Analog ground pin. DGND - Digital ground pin AVDD - Analog power pin DVDD - Digital power pin Ceramic oscillator connection pin. Pin has internal 500 kn to 4 Mn feedback resistance XT I between XT and XT. Input from this pin when using external clock. Ceramic oscillator connection pin. Outputs "L" in standby status. Set to open to use XT 0 external clock. Main clock output pin. Use MCK as a connection pin for MSC 1192, etc. MCK 0 Pin is in "H" level in standby status. Command input and option setting control pin. Command and option input is enabled CMD I if ST pin is set to "L" level when CMD pin is in "L" level. Set to "H" level when CMD is not used and when using serial input interface. This pin has internal pullup resistance. Speech synthesis starts at fall of ST, 16 to 10 addresses are captured at rise of ST. ST I Input ST when NAR of channels 1 and 2 status signals are "H''. This pin has internal pullup resistance. CPU I Set to "H" level if MSM6650 is used in a microcomputer interface. Selects either parallel or serial input interface. Serial input interface is selected in "H" level, SERIAL I parallel input interface in "L" level. Command and user specified phrase input pins when using parallel input interface. 11 - 10 I Since the pins are not used with a serial input interface, set to "L" level. These pins have internal pulldown resistance. Command and user specified phrase input pins when using parallel input interface. 12/PORTO 1/0 Port out put pin when using serial input interface. Output of port changes by command input from microcomputer when using serial input interface. Command and user specified phrase input pins when using parallel input interface. Port 13/PORTO 1/0 output pin when using serial input interface. Output of port changes by command input from microcomputer when using serial input interface. Command and user specified phrase input pins when using parallel input interface. 14 I Since it is not used with a serial input interface, set to "L" level. This pin have internal pulldown resistance. Command and user specified phrase input pins when using parallel input interface. 15 I SI I A serial clock input pin when using serial input interface. 366 OKI Semiconductor MSM6650 Pin Name 1/0 Function Command and user specified phrase input pin when using parallel input interface. 16/SD I A serial data (command and address) input pin when using serial input interface. Channel control signal. Channel 1 Input is in "H" level, channel 2 input is in "L" level. CH I This pin has internal pullup resistance. LSI enters standby status if "L" is input. Oscillation then stops. AOUT output changes to GND, and status returns to initial status. RESET I MSM6650 has internal power ON reset. Startup power within 1 ms to operate power ON reset correctly. If not, apply RESET pulse when power is turned ON. This pin has internal pullup resistance. CE 0 Timing output pin to control read for external memory. Outputs when RCS is in "L". Address RA22 to RAO and CE are output when in "L". If in "H" level address pins of RCS I RA22 to RAO and CE become high impedance status. 07 to DO do not receive external signal, and are internally pulled down. Pins to input data of external memory. Data is input when RCS is in "L" level. If RCS D7 to DO I is in "H", external data is not received and pins become "L" level. Address pins of external memory. Outputs when RCS is in "L" level. If RCS is in "H" RA22 to RAO 0 level status becomes high impedance. TEST 1 2 I Test pins. Set to "H" level. IBUSY 0 Output "L" level excepting standby conversion time. during voice regeneration or 1/2 VDD level of AOUT pin . STANDBY 0 Output "L" level , when the LSI is oscillating . 367 MSM6650 OKI Semiconductor FUNCTION DETAILS Parallel input or serial input can be selected for the microcomputer interface. Select with the SERIAL terminal. "H" level selects serial input, "L" level selects parallel input. 1. VOCALIZATION CODE SPECIFICATION The user can specify a maximum of 127 phrases. Table 1.1 shows the settings by 16 to IO. Table 1.1 User Specified Phrases 16-10 Code Details 0000000 Stop Code 0000001 User Specified Phrase ! 1111111 (127 Phrases} 2. PULLUP I PULLDOWN RESISTANCE RESET, CMD, ST and CH pins have internal pullup resistance. 14, 11 and IO pins have pulldown resistance in serial input. 3. MODE SETTING Three items can be set by command option. Table 3.1 shows the options that can be selected. Table 3.1 Command Option Item list No. Item Selection Remarks If standby conversion YES is selcted, status enters standby unless the next 1 Standby Conversion Yes No user specified phrase is input within 0.2 sec after speech ends. 2 AOUT Output LPF Output DAC Output 1/4 VDD - 3/4 Maximum amplitude 0-VDD VDD (1/2 Maximum amplitude at 1 phrase 3 of 1 phrase amplitude) 368 OKI Semiconductor MSM6650 An option is set as in Table 3.2 when power is turned ON. Table 3.2 Option when Power Is Turned ON Standby Conversion AOUTOutput Amplitude for 1 Phrase YES LPF Output 0-Voo To change an option that is already set use command again. If the RESET terminal is set to "L" level, the option returns to the status when power was turned ON (Table 3.2). After setting the option, be certain to input the speech, silence and BEEP tone commands, then startup. Figures 3.1 and 3.2 show the option setting timing, and Tables 3.3 and 3.4 show the option correspondences. 16/SD (I) "L" 15/SI (I) "L" 13, 12, 10 (I) ---~X~__o_p_ti_on_S_e_tt_in_g_Da_ta_ _~X~------------- CMD (I) ST (I) Option Data Capture Figure 3.1 Option Setting Timing {during Parallel Input) Table 3.3 Correspondence between Options and 13, 12, 10 13 12 10 AOUT Output Standby Conversion Amplitude of 1 Phrase "O" Data LPF YES 0-Voo "1" Data DAG NO 1/4 Voo - 3/4Voo 369 MSM6650 OKI Semiconductor Standby Conversion 16/SD (I) 15/SI (I) ---~ ST (I) Option Data Capture Figure 3.2 Command Option Setting Timing (during Serial Input) Table 3.4 Command Correspondence between Option and Serial Data AOUT Output Standby Conversion Amplitude of 1 Phrase "O" Data LPF YES 0-Voo "1" Data DAG NO 1/4 Voo - 3/4Voo 370 OKI Semiconductor MSM6650 4. MICROCOMPUTER INTERFACE MODE External command settings are enabled with the microcomputer interface. However, if edit ROM is used, the command settings of channel 1 are disabled. Figures 4.1 and 4.2 show the command input and address input method when using the microcomputer interface. 16-10 (I) Command Data x Address Data CMD(I) ST(I) LJ LJ BUSY (0) NAR(O) AOUT(O) Oscillation Startup Speech End Figure 4.1 Command, Address Input Timing (Parallel Input) 16/SD (I) 10 15/SI (I) ST(I) BUSY(O) NAR(O) Command Input Address Input AOUT (0) - - - - - - - - - - - - - - + - - - - - - - - - - - - - Oscillation Startup Figure 4.2 Command, Address Input Timing (Serial Input} 371 MSM6650 OKI Semiconductor In microcomputer interface serial input, command data and address data are distinguished by the initial data input serially. If the initial data is "H", it is judged as command data, if "L", it is judged as address data. Input command data and address data after inputting the command and address judgment data as initial data. Figures 4.3, 4.4, and 4.5 show the external input flow. Power ON NO Address Input ST Pulse Input NO End Figure 4.3 Input Flow Chart when Command Is Not Set 372 OKI Semiconductor MSM6650 Power ON NO Option Code Set 2ch Set CH terminal to "H" Set CH terminal to "L" Set CMD terminal to "L" Command Data Input 3 BEEP Tone Code Set Speech Control Code Set Silence Insertion Code Set 1. Smoothing Set 1. Frequency Set (PORT output set) 2. Repeat Set 2. Sound Volume Set 3. Sound Volume Set "ST Pulse Input ST Pulse Input "ST Pulse Input Set CMD terminal to "H" Set CMD terminal to "H" Set CMD terminal to "H" - ----- ---- - -- -- - - --- -- - - - -- -- -- --- -- --- - -- -- -- -- - -- -- - ---------- ---- --------------------~ Silence Time Set BEEP Tone Time Set Phrase Address Input Address Data Input (Note) ST Pulse Input BEEP tone code cannot be set for channel 2. NO End Figure 4.4 Parallel Input Flow Chart when External Command Is Used. 373 MSM6650 OKI Semiconductor Power ON NO ST: "L" 16: "L" Pulse Input to 15 Option Code Set ST: "H" ST: "L" 2ch 16: "H" Set CH terminal to "H" Set CH terminal to "L" Pulse Input to 15 Command Data Input 3 BEEP Tone Code Set Speech Control Code Set Silence Insertion Code Set 1. Smoothing Set 1. Frequency Set (PORT Output Set) 2. Repeat Set 2. Sound Volume Set 3. Sound Volume Set ST: "H" ST: "H" ST: "H" ST: "L" ST: "L" ST: "L" 16: "L" 16: "L" 16: "L" Pulse Input to 15 Pulse Input to 15 Pulse Input to 15 Silence Time Set BEEP tone Time Set Phrase Address Input (Note) NO BEEP tone code cannot be set for channel 2. End Figure 4.5 Serial Input Flow Chart when External Command is used 374 OKI Semiconductor MSM6650 5. COMMAND DATA Table 5.1 shows the conditions that can be set by command data. Command data is setwith 16 to IO. In serial input, input data corresponding to 16 to IO serially as shown in Figure 4.2. Table 5.1 Command Setting Content List 16 15 14 13 12 11 10 Command Content 0 0 0 oa OS 0 ov Option Setting 0 1 0 p1 pO 0 0 Silence Insertion Code 1 0 0 bl1 blO bf1 b!O BEEP Tone Code 1 1 sm rp1 rpO vl1 vlO Speech Control Code Command data is set to "1100000" when power is turned ON. 5.1 Option Setting Code An option can be set by command. Since an option is set as in Table 3.2 when power is turned ON, use this command to change an option. Once an option is set, it remains effective either until power is shut OFF or until the RESET signal is input. When an option is set, input speech, silence and BEEP tone commands again by both command input and the set address (phrase, silence time and BEEP tone time). Table 5.2 shows the options that can be set. Table 5.2 Option Correspondence Table 13 12 10 AOUToutput Standby Conversion Amplitude of 1 Phrase "O" Data LPF YES 0-VDD "1" Data DAG NO 1/4 Voo - 3/4 Voo Options can be set anytime, but if set during vocalization, AOUT output impedance and acoustic pressure may change. 375 MSM6650 OKI Semiconductor 5.2 Silence Insertion Code Silern;:e code inserts silence to each channel. Speech data can be reduced by inserting silence externally. 16 15 14 13 12 11 10 0 x p1 pO x x X: Don't care Command data specifies to insert silence, address data sets the silence time. The CH pin inserts silence to either channel 1 or 2. Silence time is set by address data (16 to IO). Minimum Silence Time: ... 16.384 ms Maximum Silence Time: ... (128-1)x16.384 ms=2.1 sec Figure 5.3 shows the channel 1 silence insertion setting timing. 16/SD (I) I Silence Time Setting Data 15/SI (I) \..____S_ile_n_ce_T_im_e_Se_tt_in_g_D_at_a_ _ _ _ _ _ _ _ _ _ _ __ 14 - 10 (I) ___D_o_n't_c_a_re_ ___,X..____S_ile_n_ce_T_i_m_e_se_tt_in_g_D_at_a_ _ _ _ _ _ _ _ _ _ _ __ CH (I) "H" CMD (I) ST (I) BUSY (0) NAR (0) AOUT (0) -----~-----~--~~ ' ! ~--- - Silence Time (tMu) - ---- ---- --- - ---- - -•:· t Silence Command Capture Silence Time Capture Figure 5.3 Channel 1 Silence Setting Timing {Parallel Input) 376 OKI Semiconductor MSM6650 For example, if silence time setting data shown in Figure 5.3 is set as (16 to IO)= ("0011000"), the silence time (tMu) becomes (26 x 0+25 x 0+24 x 1+23 x 1+22 x 0+21 x 0+20 x 0) x 16.384mS = 393.216 ms The formula to set silence time is shown below. ~ = (26 x (16)+25 x (15)+24 x (14)+23 x (13)+22 x (12)+21 x (11)+20 x (IO)) x 16.384 ms The channel 2 silence insertion setting timing becomes as shown in Figure 5.4. 16/SD (I) I Silence Time Settig Data 15/SI (I) \ Silence Time Settig Data 14~10(1) Don't care x Silence Time Settig Data CH (I) CMD(I) ST (I) BUSY (0) NAR(O) AOUT(O) -------..------..-----~ ! -- --Silence Time (tMu) -- -- - - - - -- - - -- -- - - -•: ~ i t t Silence Comnmand Capture Silence Time Capture Figure 5.4 Channel 2 Silence Setting Timing (Parallel Input) In serial input, the port output signals from PORTl and PORTO pins is also controlled by silence insertion code. PORTl and PORTO pins are in "L" level when power is turned ON, and when the RESET signal is input. If speech synthesis starts after setting the port output, first set the port output by silence insertion code, then input the speech vocalization code and set the address. Figure 5.5 shows the timing. If it is necessary to set the port again after setting the port, since a port cannot be set continuously, in put the BEEP tone code or speech vocalization code after first setting the port, then set the port again. 377 w 'J 3: 00 !1 tn ca 3: c... CD § en (n Command (Silence Insertion) Input Command (Speech Control) Input Address Input I I I I 'ti I I I I 0 :+ :"H" : : 0 CH (I) ' ' s. "O ' ' ' ' s. I» 16/SD (I) ::J Q. (') 15/SI (I) 0 3 3 I» PORT1 (0) - - - - - - - - - - \ - . : / . - - - - - - - - - - - 7 - - - - - - - - - - - - - ::J 9- )> PORTO (0) _ _ _ _ _ _ _ _ __J___ _ _ _ _ _ _ _ _ _- + - - - - - - - - - - - - - Q. Q. iil Ill CMD (I) "H" Ill tn ~ ::J ST(I) : : : ca :::1 BUSY (0) ~. ::J ca NAR (0) c:c ' ' ~ ' ' ::::!. ' ' ' '' ::J AOUT (0) : : : ca tn t t t Oscillation Startup ~ ~- CD Port Output Speech Vocalization Code Set ::::!. e!. 5' "O §' a ~ OKI Semiconductor MSM6650 5.3 BEEP Tone Code BEEP tone code vocalizes a BEEP tone without using ADPCM data. The sound volume and frequency of a BEEP tone is set in command data, and the vocalization time of a BEEP tone is set in address data. The BEEP tone can be set only at channel 1. Do not select the BEEP tone at channel 2. To mix a BEEP tone and channel 2, vocalize an 8 kHz sampling frequency of a phrase at channel 2, this is because the sampling frequency of a BEEP tone is set to 8 kHz. If the sampling frequency of channel 2 differs, speech at channel 2 may be either too slow or too fast. 16 15 14 13 12 11 10 0 0 bl1 blO bf1 bfO The sound volume is set to 13 and 12 pins, and the frequency is set to I1 and IO pins. Tables 5.3 and 5.4 show the sound volumes and the frequencies that can be set. Table 5.3 Sound Volume Settings Table 5.4 Frequency Settings 13 12 Sound Volume (Note 1) 11 IO Frequency 0 0 1/8 amplitude sound volume of channel 1 0 0 0.5 kHz 0 1 1/4 amplitude sound volume of channel 1 0 1 1.0 kHz 1 0 1/3 amplitude sound volume of channel 1 1 0 1.6 kHz 1 1 1/2 amplitude sound volume of channel 1 1 1 2.0 kHz (NOTE1) If 1 /2 amplitude of channel 1 is set, and if the maximum amplitude is set to 1 /2 VDD as an option the sound volume of BEEP tone becomes 1I4 VDD· The BEEP tone time is set by address data (16 to IO). Minimum BEEP Tone Time ......... 16.384 ms Maximum BEEP Tone Time ........ (128 -1) x 16.384 ms= 2.1 sec 379 MSM6650 OKI Semiconductor Figure 5.6 shows BEEP tone setting timing. 16/SD (I) \ BEEP Tone Time Setting Data 15/SI (I) I BEEP Tone Time Setting Data 14N10 (I) oun o ume Frequency Setting BEEP Tone Time Setting Data CH (I) CMD (I) ST (I) BUSY (0) NAR (0) AOUT(O) , BEEP Tone Time (tsE) ' ' I ~-----------------------•: t t BEEP Tone Command Capture BEEP Tone Time Capture Figure 5.6 BEEP Tone Setting Timing (during Parallel Input) For example, if the BEEP time setting data shown in Figure 5.6 is set as (16 to IO) = ("0011000"), the BEEP tone time (tBE) becomes (26 x 0+25 x 0+24 x 1+23 x 1+22 x 0+21 x 0+20 x 0) x 16.384mS = 393.216 ms The formula to set BEEP tone time is shown below. tBE = (26 x (16)+25 x (I5)+24 x (I4)+23 x (13)+22 x 02)+21 x (11)+20 x (IO)) x 16.384 ms 5.4 Speech Control Code Command data can set repeat and sound volume. 16 15 14 13 12 11 10 sm rp1 rpO vl1 vlO 380 OKI Semiconductor MSM6650 Channel 1 is set if CH pin is in "H", channel 2 is set if in "L". Once a command is set, itis maintained as both channels until another command is set. The LSI cannot be maintained commands con tens as each channels. Conditions of each channel are set by 14 to IO. Three conditions can be set: 1) to 3). 1) Setting Number of Repeats The number of repeats is set by 13and12 pins. For the number of repeats 4 types can be selected: 1,2,4 and infinite. Input stop code to stop speech when infinite repeat is selected. Table 5.5 shows the correspondence between 13 and 12 pins, and the number of repeats. Table 5.5 Selection of Number of Repeats 13 12 Number of Repeats 0 0 1 0 1 2 1 0 4 1 1 Infinite 2) Sound Volume Smoothing During Repeat If "14" is set to "H", sound volume during repeat is automatically attenuated from 1 to 1 /2, 1I4 and 1/8 (fadeout function). This smoothing, however, is effective only when 2, 4 or infinite is selected at repeat setting. If infinite is selected, speech is vocalized remaining at 1 /8 after attenuating from 1, 1/2, 1I4 and to 1 /8. If the initial sound volume setting is other than 1, the sound volume attenuates from that value in 1/2 units, stopping at 1/8. 3) Setting Sound Volume Speech to vocalize can be changed in 4 steps if speech is vocalized overlapping in channel synthesis. The sound volume is set at 11 and IO pins. Table 5.6 shows the correspondence between 11, IO pins and sound volume settings. 381 MSM6650 O:KI Semiconductor Table 5.6 Attenuation Volume Setting J1 IO Attenuation Volume 0 0 No attenuation (sound volume is same as speech data) 0 1 -6 dB attenuation (sound volume is 1/2 of speech data) 1 0 -12 dB attenuation (sound volume is 1/4 of speech data) 1 1 -18 dB attenuation (sound vlume is 1/8 of speech data) 6. ADDRESS DATA a If user specified phrase is input to 16 to IO terminals by address data, and if an ST signal is then input, speech synthesis starts. Time is set if silence and BEEP tone were set by command. Figure 6.1 shows speech start timing. Figures 6.2 and 6.3 show timing when an address, other than a user phrase, is input. 16-10 (I) ==x___________ u_s_er_P_h_ra_se_ _ _ _ _ _ _ _ _ _ _ _ __ CMD (I) ST(I) BUSY (0) NAR(O) AOUT(O) Oscillation Startup Speech End Figure 6.1 Speech Startup Timing 382 OKI Semiconductor MSM6650 16 - 10 (I) -==x~ _____ A_d_dr_es_s_o_th_e_rt_ha_n_u_s_er_p_h_ra_se_ _ _ _ _ _ _ _ _ _ _ __ CMD(I) "H" ST(I) BUSY(O) NAR(O) AOUT(O) Oscillation Startup Figure 6.2 Timing when Address, other than User Phrase, Is Input in Standby Status 16 - 10 (I) -==x._______ A_d_dr_es_s_o_th_e_rt_ha_n_u_s_er_p_h_ra_se_ _ _ _ _ _ _ _ _ _ _ _ __ CMD(I) "H" ST(I) NAR(O) "H" BUSY(O) AOUT(O) 1/2 Voo Figure 6.3 Timing when Address, other than User Phrase, Is Input in Status that AOUT is 1/2 Voo 7. STOP CODE If 16 to IO are set to "0000000" during speech vocalization, and if an ST signal is input, vocalization regardless of "H" or "L" of NAR stops and AOUT becomes 1/2 Voo· STOP code becomes valid in rising of ST (common with serial and parallel). Use the stop code only at setting "L" BUSY pin. The stop code cannot be used in states of standby- mode. MSM6650 OKI Semiconductor Figure 7.1 shows stop code input timing. 16-10(1) ~---"O_o_oo_o_oo_"_~X~____u_se_r_Ph_r_as_e_ _ _ _ _ _ _ _ _ _ __ CMD(I) "H" ______ts_s_ _ _ _ _ _ _ (Note) --~ ~---------------~ ST(I) BUSY(O) NAR(O) AOUT(O) Speech Stop Note) tss is also applied in serial input. Figure 7.1 Stop Code Input Timing If an ST signalis input by stop code in standby status, NAR stays in "H" level and AOUTbecomes 1/2 Voo after standby conversion time, as shown in Figure 7.2. If an ST signal is input by stop code in standby status, the status does not follow AC characteristics. 16-10(1) "0000000" CMD(I) "H" ST(I) BUSY(O) NAR(O) AOUT(O) Figure 7 .2 Timing when Stop Code Is Input in Standby Status 384 OKI Semiconductor MSM6650 8. SAMPLING FREQUENCY Sampling frequencies can be specified for each phrase in speech data of internal ROM. For channel synthesis, if channels 1 and 2 are regenerated at the same time, the channel 1 sampling frequency has priority. For sampling frequency, the following 8 frequencies can be selected when creating speech data. 4.0 kHz, 5.3 kHz, 6.4 kHz, 8.0 kHz, 10.6 kHz, 12.8 kHz, 16.0 kHz, 32.0 kHz 9. SPEECH VOCALIZATION TIME Table 9 .1 shows internal ROM configuration. The actual speech data ROM area is different from the indicated ROM capacity. The speech data management area as shown in Table 9.1 is about 6 Kbit, and the edit ROM area includes 16 Kbit. Table 9.1 ROM Configuration Speech Data Management Area Editing ROM Area Speech Data Area Disabled Area Use the following formula as a guide to compute speech vocalization time. Vocalization Time= ROM Capacity- 16 - 6) x 1024 x 255/256 +Bit Rate (kbps) For example, if data was created at a 4.0 kHz sampling using MSM6652 (288 kbit internal ROM), the vocalization time is (288 - 16-6) x 1024 x 255/256 + 16(kbps) = 16.9 sec 385 MSM6650 OKI Semiconductor 10. CHANNEL STATUS The BUSY pin and NAR pin output status signals. BUSY pin outputs "L" level when either channel 1 or 2 is synthesizing speech. It is in "H" level when power is turned ON. The NAR pin is the channel 1 and 2 input status signal (Next Address Request), enabled ST signal input when NAR is in "H" level. The channel status is switched by CH pin. If CH pin is in "H" level, the status signal of channel 1 is output, and if in "L" level, the status signal of channel 2 is output. 11. REGENERATION METHOD The MSM6375 series has only the ADPCM regeneration method, however to support various speechMSM6650 has 3 types of regeneration methods: ADPCM, PCM and melody regeneration. Respective features and how to select are explained below. 11.1 ADPCM Method With the ADPCM (Adaptive Differential Pulse Code Modulation) method, basic quantization width tl. is adaptively changed for each sampling, and is encoded to 4bit data. This further improves the follow-up properties to speech wave forms. Conversion to ADPDM data is performed by the AR76-202 analysis tool. If the ADPCM method is used for human voices, animal cries and natural tones, the speech data capacity becomes smaller. 386 OKI Semiconductor MSM6650 11.2 PCM Method The PCM method of MSM6650 uses an 8-bit straight binary format. Of the three methods, PCM is the best for follow-up properties to speech wave forms. This method is appropriate for sound effects where wave forms sharply change, and for pulse shaped wave forms. 11.3 Melody Regeneration Method The AR76-202 analysis tool supports melody regeneration method. The melody data can make an unique sound because musical notes can be composed by the AR761. 11.4 Bit Rate of Each Method The bit rate shows the degree of data compression and the data amount to synthesize for 1 second. The bit rate is determined by the relationship between the sampling frequency and the data- amount-per-sample. The following formula is used. Bit Rate (kbps) = Sampling Frequency (kHz) x Data-amount-per-sample (bit) The bit rate of the three methods are compared below when the sampling frequency is 6.4 kHz. 1) ADPCM Method Bit Rate (kbps) = 6.4 kHz x 4 bit = 25.6 kbps 2) PCM Method Bit Rate (kbps) = 6.4 kHz x 8 bit = 51.2 kbps 3) Melody Regeneration Method With the melody regeneration method, the bit rate changes depending on each sound. The formula does not determine the bit rate changes. The average bit rate is 4 kbps. 11.5 The Regulations of channel synthesis about each regeneration methods Melody regeneration and BEEP tone cannot be regenerated in 2 channel side. The regulations of channel synthesis about each regeneration methods as follows table 11.1. 387 MSM6650 OKI Semiconductor 11.5 The regulations of channel synthesis about each regeneration method 1 Channel 2 Chanr:!el Setth'lQ. ADPCM_(OdBl ADPCM(OdB--18df!l_ 0 Note!) ADPCMJ_OdB--18dB) ADPCMJ_Od~ 0 Note!) ADPCM(-6dB--18dB) ADPCMx6dB--18dB1 0 ADPCM_(_OdB--18df!l_ MELOD'{_{__OdB--18dfti_ x ADPCM_(_OdB- -1 BdBl PCMlOdfil. 0 Note!)_ ADPCMlOdB) PCM(OdB--18dB) 0 Note!) ADPCMx6dB--18dfil: PCMx6dB--18dBl 0 ADPCMJ_OdB--18dfil. ADPCM(OdB--18dB) BEEP TONW/2, 1/3, 1/4, 1/lll_ SILENCE u x MELOD'r'{Odfil. ADPCM{OdB--18dBl 0 Note!) MELODY(OdB--18dB) ADPCMiOdfil. 0 Note!) MELODY(-6dB--18dB) ADPCM(-6dB- -18dB) 0 MELODY(OdB--18dB) MELODYlOdfil: MELODY(OdB--18dB) PCM(OdB--18dB) x0 Note!) MELODY(OdB--18dB) PCM(OdB) 0 Note!) MELODY(-6dB--18dB) PCM(-6dB--18dB) 0 MELODY10dB--18dfil. MELODY(OdB--18dB) BEEP TONE11/2, 1/3, 1/4, 1/fil_ x SILENCE 0 PCM(OdB) ADPCM]OdB--18dB} 0 Notel) PCM(OdB--18dB) PCMIOdl[ ::g: Note!) PCM(-6dB--18dB) PCM(-6dB--18dB) 0 PCM(OdB--1 BdB) MELODY]ldB--1 Bd!IT x Notel) PCM(OdB) PCM(OdB--18dB) 0 PCM]_OdB--1 Bdfil. PCM(OdB) 0 Note!) PCM(-6dB--18dB) PCM(-6dB--18dB) 0 PCM(OdB--18dB) BEEP TONE(1/2, 1/3, 1/4, 1/8) SILENCE x PCM(OdB--1 BdB) 0 BEEP TONl~f_1/2, 1/3, 1/4, 1/lll_ ADPCMlOdfil. 0 Note!) BEEP TON!11/2, 1/3, 1/4, 1/fil_ ADPCM}6dB--18dl[ 0 BEEP TONli1t2, 1/3, 1/4, 1/fil: BEEP TONE(1/2, 1/3, 1/4, 1/8) MELODY(OdB--18dB) PCMlOdBl x0 Note!) BEEP TON[l/2, 1/3, 1/4, 1/fil_ PCMJ-6dB--18df!l_ 0 BEEP TONE(1/2, 1/3, 1/4, 1/8) BEEP TON~/2, 1/3, 1/4, 1/8) x BEEP TONE(1/2, 1/3, 1/4, 1/8) SILENCE 0 SILENCE ADPCM}OdB--1 Bdfil_ 0 SILENCE MELODY(OdB--1 BdB) x SILENCE PCM(OdB--18dB) u SILENCE BEEP TONE(1/2, 1/3, 1/4, 1/8) x SILENCE SILENCE 0 Notel) In case of channel synthesis , confirm the voice guality with the MSM6650 evaluation board. Because , occasionally , there is possible of straining the voice by recording level and synthesis phrases. 388 OKI Semiconductor MSM6650 12. EDITROM The role of edit ROM is to link phrases and build sentences, making an external microcomputer unnecessary. The conventional MSM6375 family could not link phrases and synthesis channels in standalone mode, but the MSM6650 family can using edit ROM. For example: The phrase "Today's weather is .... " is used to compare the MSM6375 family and MSM6650 family. With the MSM6375 family, individual data must be stored to phrase ROM (see Table 12.1) when indivudual phrases of "Today's weather is sunny", and "Today's weather is rainy" are vocalized by timing of one time. On the other hand, the MSM6650 family can vocalize plural phrases for edit ROM function by timing of only one time. If the edit ROM has the phrase ROM of Table 12.2, "Today's weather is sunny" will be vocalized by merely one time specifying address [01]. If address [02] is specified, "Today's weather is rainy" will be vocalized. Conventionally data must be repeatedly stored to ROM to vocalize "Today's weather is .... ", but the storage of overlapped data is not required as shown in Table 12.2 by using edit ROM functions. Table 12.1 Conventional Phrase ROM Configuration Address [HEX] Phrase 01 Today's weather is sunny. 02 Today's weather is rainy. 03 Today's weather is sunny followed by cloudy, some areas are rainy. 7F 389 MSM6650 OKI Semiconductor Table 12.2 Phrase ROM Configuration Address [HEXJ Phrase 01 Today's 02 weather 03 is I I 10 sunny 11 cloudy 12 rainy 13 snowy 20 occasional 21 followed by 22 some areas are I I ?F Table 12.3 Edit ROM Configuration Address [HEX] Edit Content [Max. 8 Phrases] 01 [01 ][02)[03)[10] 02 [01 ][02][03)[12] 03 [01)[02][03][10][21 ][11 ][22][12] ?F 390 OKI Semiconductor MSM6650 In edit ROM, not only phrase linking but channel synthesis, BEEP tone and silence can be set by command settings. A maximum of 8 phrases (16 bytes) can be setin 1 edit. Table 12.4 shows the configuration ofedit ROM. Table 12.4 Edit ROM Configuration Edit Address ROM Edit Data ROM Phrase ROM 01 1 Phrase Command Phrase Address Phrase ~ 02 j'. 1 Phrase Address [HEX] 03 2 Phrase Command 01 Today's 2 Phrase Address 02 weather I 3 Phrase Command 03 is 3 Phrase Address i--- I 7E 4 Phrase Command 7F 4 Phrase Address ]+ 10 sunny 5 Phrase Command I 5 Phrase Address 7F 6 Phrase Command 6 Phrase Address 7 Phrase Command 7 Phrase Address 8 Phrase Command \j 8 Phrase Address Edit address ROM can process a maximum of 127 user specified phrases. Table 12.4 shows the relationship between phrase ROM, edit data ROM, and edit address ROM. Phrase ROM cannot be directly accessed if edit ROM is used. 391 MSM6650 OKI Semiconductor Edit ROM can be setup using the previously mentioned AR76-202analysis tool. For regeneration using edit ROM, regeneration may not be the one requested. Be certain to check the speech using either the analysis tool or MSM6650 of external ROM. Figure 12.1 shows the flow chart when creating edit ROM. Edit Start 3 - - - - - - - - - - -- - - - - -- - - - -- -- - - - - - - -- - - - - - - _2_ -- - - - - - - - - - - - - - - -- -- - - -- - - - - - - - - - - - - - - - -- - - - - - - - - - -- - - - -- - - Speech Control Code Set BEEP Tone Code Set Silent Insertion Code Set 1. Channel Specify 1. Frequency Specify 1. Channel Specify 2. Fadeout Specify (0.5, 1.0, 1.6, 2.0kHz) 3. Repeat Specify 2. Sound Volume Specify Command Data Input Part (1, 2, 4, infinite) (1/8, 1/4, 1/3, 1/2) 4. Sound Volume Specify (0, -6, -12, -18dB) Phase Address Specify BEEP Tone Time Set Silent Time Set Address Data Input Part NO End Code Inset Figure 12.1 Edit Data ROM Creation Flow Chart 392 OKI Semiconductor MSM6650 12.1 Edit ROM Commands Table 12.5 shows the commands that can be set in edit ROM. Table 12.5 Ust of Commands that Can Be Set in Edit ROM 07 06 05 04 03 02 01 00 Command 0 0 0 0 0 0 0 0 End Code ch 0 1 0 0 0 0 0 Silence Insertion Code 1 1 0 0 bl1 blO bf1 bfO BEEP Tone Code ch 1 1 sm rp1 rpO vl1 vlO Speech Control Code The commands of the 4 codes shown in Table 12.5 are explained below. 12.1.1 End Code End code means that one edit data is completed. Although this is necessary at the end of one edit data, since the LSI can recognize the end of editing, it is unnecessary when the maximum number of phrases are used. 12.1.2 Silence Insertion Code Silence insertion code inserts silence to each channel, reducing speech data. 07 ch The channel to insert silence is specified in command data, and silence time is set in address data. The channel to insert silence is set to "07'' command data. If "07'' is "H" channel 1 is set, if "L" channel 2 is set. Silence time is set at the address settings of phrases shown in Table 12.4. Minimum Silence Time ... 16.384 ms Maximum Silence Time ... 2.1 sec 393 MSM6650 OKI Semiconductor The formula to set the silence time is shown below. ~ = (26 x (06)+25 x (05)+24 x (04)+23 x (03)+22 x (02)+21 x (01)+20 x (00)) >< 16.384 ms Table 12.6 Edit Data Example of Silence Insertion Code 07 06 05 04 03 02 01 00 1.st Byte 1 0 1 0 0 0 0 0 Silence Insertion Code 2nd Byte 0 0 0 1 1 0 0 0 Silence Time 3rd Byte 0 0 0 0 0 0 0 0 End Code For example, if edit data is set as in Table 12.6, 393 mS of silence is inserted to channel 1. 12.1.3 BEEP Tone Code BEEP tone code vocalizes a BEEP tone without using ADPCM data. The sound volume and frequency of a BEEP tone is set in command data, and the vocalization time of a BEEP tone is set in address data. The BEEP tone can be set only at channel 1. To mix a BEEP tone and channel 2 vocalize an 8 kHz sampling frequency of a phrase at channel 2, this is because the sampling frequency of a BEEP tone is set to 8 kHz. If the sampling frequency of channel 2 differs, speech at channel 2 may be either too slow or too fast. 07 06 05 04 03 02 01 00 0 0 bl1 blO bf1 bfO The sound volume is set to 03, 02 and the frequency is set to 01, 00. Tables 12.7 and 12.8 show the sound volumes and the frequencies that can be set. 394 OKI Semiconductor MSM6650 Table 12.7 Sound Volume Settings Table 12.8 Frequency Settings 03 02 Sound Volume 01 00 Frequency 0 0 1/8 amplitude sound volume of channel 1 0 0 0.5 kHz 0 1 1/4 amplitude sound volume of channel 1 0 1 1.0 kHz 1 0 1/3 amplitude sound volume of channel 1 1 0 1.6 kHz 1 1 1/2 amplitude sound volume of channel 1 1 1 2.0 kHz The BEEP tone time is set to the address setting of phrases shown in Table 12.4. Minimum BEEP Tone Time ... 16.384 ms Maximum BEEP Tone Time ... 2.1 sec The formula to set a BEEP tone time is shown below. tMu = (26 x (06)+25 x (05)+24 x (04)+23 x (03)+22 x (02)+21 x (01)+20 x (00)) x 16.384 ms Table 12.9 Edit Data Example of BEEP Tone Code 07 06 05 04 03 02 01 00 1st Byte 1 1 0 0 1 1 0 1 BEEP Tone Insertion Code 2nd Byte 0 0 0 1 1 0 0 0 BEEP Tone Time 3rd Byte 0 0 0 0 0 0 0 0 End Code For example, if edit data are set as in Table 12.9, Beep sound of l.OkHz is vocalized for 393 ms with 1/2 of amplitude of sound volume of channel 1. 12.1.4 Speech Control Code Speech control code can set repeat and sound volume. 07 06 05 04 03 02 01 00 ch sm rp1 rpO vl1 vlO The channel is set at "07". If "07" is "H", channel 1 is set, if "L" channel, 2 is set. The speech control condition of each channel is set between 04 to 00. MSM6650 OKI Semiconductor 1) Setting Number of Repeats The number of repeats is set at 03 and 02, and can be selected from 4 types: 1, 2, 4 and infinite. If infinite is selected, repeat can be stopped by inputting stop code. Table 12.10 shows the relationship between 03, 02 and the number of repeats. Table 12.10 Number of Repeats Settings 03 02 Number of Repeats 0 0 1 0 1 2 1 0 4 1 1 Infinite 2) Sound Volume Smoothing During Repeat If "04" is set to "H", sound volume during repeat is attenuated from 1 to 1 /2, 1I4 and 1I8. This smoothing, however, is effective only when 2, 4 or infinite is selected at repeat setting. If infinite is selected, speech is vocalized remaining at 1I8 after attenuating from 1, 1I2, 1I4 and to 1/8. If the initial sound volume setting is other than 1, the sound volume attenuates from that value in 1/2 units, stopping at 1/8. 3) Setting Sound Volume Speech to vocalize can be changed in 4 steps if speech is vocalized overlapping in channel synthesis. The sound volume is set at 01 and 00. Table 12.11 shows the correspondence. Table 12.11 Attenuation Volume Setting 01 00 Attenuation Volume 0 0 No attenuation (sound volume is same as speech data) 0 1 -6 dB attenuation (sound volume is 1/2 of speech data) 1 0 -12 dB attenuation (sound volume is 1/4 of speech data) 1 1 -18 dB attenuation (sound volume is 1/8 of speech data) 396 OKI Semiconductor MSM6650 12.2 PCM Regeneration in Edit ROM For PCM regeneration, edit data is set together with speech control code. All settable items in speech control code (channel, sound volume smoothing during repeat, number of repeats, and sound volume) can be set. 12.3 Melody Regeneration in Edit ROM For melody regeneration, edit data is set together with speech control code. Channels however cannot be set. Channel 1 is fixed. Channel2 mixing of melody regeneration/ melody regeneration combination is not possible. All settable items in speech control code can be set except channels. 12.4 Continuous Regeneration in Edit ROM If atthe2nd editphraseis input during speech vocalization of the 1st edit phrase (phrase consists of 16 bytes or less of edit data ROM: referred to as edit phrase), speech vocalization starts continuously after 1st edit phrase vocalization ends. However, this occurs only when the channel setting of the 1st and 2nd edit phrase are the same, and when echo regeneration and channel 2 regeneration are not performed. For example, if the 1st edit phrase is echo regeneration, and the 2nd edit phrase channel 1 regeneration, as shown in Figure 12.2 edit phrases overlap. To avoid this, insert silence to channel 1, as shown in Figure 12.2, and set edit data ROM so that channels 1 and 2 end regeneration at the same time. 1st Edit Phrase 2nd Edit Phrase -+< ' (1) Channel 1 "Today's" x "w~ather" ) '' Channel2 "Today's" 1st Edit Phrase 2nd Edit Phrase Channel 1 "Today's" "weather" (2) Channel 2 "Today's" Figure 12.2 Example of Continuous Regeneration Timing ':tQ7 MSM6650 OKI Semiconductor 12.5 Channel 2 Mixing Function in Edit ROM This function overlaps 2 phrases. By using edit ROM, it is easy to echo a phrase (echo regeneration) and to vocalize a phrase with a musical instrument sound or BGM (channel 2 regeneration). 12.5.1 Echo Regeneration Echo regeneration delays and overlaps -6 dB attenuation (1 /2 amplitude speech wave form of channel 1) to a speech wave form vocalized at channel 1. ECHO REPRODUCTION OF MULTIPLE PHRASES Using address [02] of phrase ROM, "weather", an echo regeneration edit data example in Table 12.2, is explained below. Table 12.2 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 0 Speech Control Co.de (1 ch setting, repeat, no attenuation) 2nd Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather'') 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 0 1 Speech Control Code (2ch setting, repeat, -6 dB attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H ''weather") 7th Byte 0 0 0 0 0 0 0 0 End code If edit data is set as in Table 12.12 , "weather" is vocalized at channel 1, and is overlapped and vocalized from channel 2 with a -6 dB attenuated sound volume 98.3 ms later. When 2 phrases overlap, set the attenuation of the speech control command with attention to sound volume. The silence time by silence insertion code is a factor that influences echo quality. Set the silence time so that the desired echo is created. 398 OKI Semiconductor MSM6650 When performing echo regeneration set the number of repeats of the speech control command to 1. If 2, 4 or infinite is set, timing becomes as shown in Figure 12.3. This figure shows that the . number of repeats of the 1st and 5th byte of edit data in Table 12.12 have changed. Channel 1 --j<'-__ , "w_,_~a_th_er_'~>,__:--~- Channel2 "weat~er" (1) Number of Repeats: 1 Channel 1 --<~ __"W_e_a_th_er_"-~*~--'_'W_e_at_h_er_'-~)>-------------- , Channel2 -----------1®~-"_W_e_m_he_r_"_~X~_ _"W_e_a_th_er_"_~)----- (2) Number of Repeats: 2 Channel 1 --< "Weather" X"Weather" x-. W-ea-t-he-r'~'x-,-'W-e-at-h-er~")>---------- ' Channel 2 S "Weather" X"Weather"><=------ (3) Number of Repeats: 4 Channel 1 ''Weather' "Weather" "Weather"-------------- Channel 1 has infinite regeneration. Channel2 ---------------·-------------- Channel 2 does not reproduce. (4) Number of Repeats: infinite Figure 12.3 Vocalization Timing of Echo Reproduction According to Number of Repeats The vocalization timing, when the number of repeats of the speech control command is set for an edit data phrase, is explained below. MSM6650 OKI Semiconductor © When number of repeats is set to 1 If the same channel is specified for the next phrase, vocalization of the next phrase starts when vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of vocalization. ® When number of repeats is set to 2 If the same channel is specified for the next phrase, vocalization of the next phrase starts when the second vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of the second vocalization after the first vocalization ends. @ When number of repeats is set to 4 If the same channel is specified for the next phrase, vocalization of the next phrase starts when the fourth vocalization ends. If the channel of the next phrase is different, channel synthesis starts at the start of the fourth vocalization after the 3rd vocalization ends. © When number of repeats is set to infinite The next phrase becomes invalid and is not vocalized regardless the channel specification. 400 OKI Semiconductor MSM6650 ECHO REPRODUCTION OF MULTIPLE PHRASES A maximum of 8 phrases (16 bytes) are set to one edit data ROM.Up to 3 phrases are possible for an echo reproduction with 16 bytes. Set the phrase ROM so that the number of phrases do not exceed four. Using "Today's", "weather" and "is" of the phrase ROM in Table 12.2 as an example, Table 12.13 shows a three phrase echo regeneration edit data example, and Figure 12.4 shows vocalization timing. Table 12.13 Three Phrase Echo Regeneration Edit Data Example 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 2nd Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H "Today's") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 0 0 0 0 1 1 0 Silence Time (98.3 mS) 5th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting repeat once, -12 dB attenuation) 6th Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H "Today's") 7th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 8th Byte 0 0 0 0 0 0 1 0 Phrae Address (02H "weather'') 9th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, -12 dB attenuation) 10th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather") 11th Byte 1 1 1 0 0 0 0 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 12th Byte 0 0 0 1 0 0 0 0 Phrase Address (1 OH "is") 13th Byte 0 1 1 0 0 0 1 0 Speech Control Code (2ch setting, repeat once, -12 dB attenuation) 14th Byte 0 0 0 1 0 0 0 0 Phrase Address (1 OH "is") 15th Byte 1 1 1 0 0 0 1 1 Speech Control Code (1 ch setting, repeat once, -6 dB attenuation) 16th Byte 0 0 0 0 0 0 1 1 Phrase Address (03H "sunny") Channel 1 -< "Today's" X "weather" X "is" X "sunny" )>----------- Channel2 Silence "Today's" "weather" "is" Figure 12.4 Vocalization Timing of a Three Phrase Echo Regeneration 401 MSM6650 OKI Semiconductor For the echo regeneration of multiple phrases, set so that the sampling frequency of each phrase is the same. If a phrase with a different san:ipling frequency is mixed, the speech of channel 2 will become fast or slow because the sampling frequency of channel 1 has priority. Figure 12.5 shows the timing. fsam = 6.4kHz fsam = 8.0kHz fsam = 6.4kHz Channel 1 -r~-''T_od_a_y's_"~f "weather' *~--"-is'_'-~)>-------- Channel 2 ''Today's" "we~her' "is" ' Fast Vocalization Slow Vocalization Figure 12.5 Vocalization Timing of Echo Regenerations with Different Sampling Frequencies ECHO REPRODUCTION OF AN ARBITRARY PHRASE IN MULTIPLE PHRASES Table 12.14 shows an edit data example to apply echo to "is" in the four phrases of "Today's", "weather", "is" and "sunny". Table 12.14 Edit Data Example of 1 Phrase Echo Regeneration 07 06 05 04 03 02 01 00 1st Byte 1 1 1 0 0 0 0 0 Speech Control Code (1ch setting, repeat once, no attenuation) 2nd Byte 0 0 0 0 0 0 0 1 Phrase Address (01 H ''Today's") 3rd Byte 0 0 1 0 0 0 0 0 Silence Insertion Code (2ch setting) 4th Byte 0 1 1 0 0 0 0 1 Silence Time (1.59 mS) 5th Byte 1 1 1 0 0 0 0 0 Speech Control Code (1ch setting repeat once, no attenuation) 6th Byte 0 0 0 0 0 0 1 0 Phrase Address (02H "weather') 7th Byte 1 1 1 0 0 0 0 0 Speech Control Code (1 ch setting, repeat once, no attenuation) 8th Byte 0 0 0 1 0 0 0 0 Phrae Address (1 OH "is") 9th Byte 0 1 1 0 0 0 0 1 Speech Control Code (2ch setting, repeat once, -6 dB attenuation) 10th Byte 0 0 0 1 0 0 0 0 Phrase Address (1 OH "is") 11th Byte 1 1 1 0 0 0 0 0 Speech Control Code (1 ch setting, repeat once, no attenuation) 12th Byte 0 0 0 0 0 0 1 1 Phrase Address (03H "sunny") 13th Byte 0 0 0 0 0 0 0 0 End Code 402 OKI Semiconductor MSM6650 Channel 1 --< ' "Today's" x "weather" x' ' "is" x "sunny" ) Channel2 -k Silence !X: ' "is" ) ' 1.5 sec o.9 sec Figure 12.6 Vocalization Timing Using Edit Data ofTable 12.14 As shown by the timing in Figure 12.6, "is" is echoed by setting the silence time, which is the addition of the vocalization time for "Today's" and "weather" and the delay time for echo to channel 2. If the silence time exceeds 2.1 sec, it is necessary to add a silence insertion setting to 2 bytes of edit data. For the echo reproduction of one arbitrary phrase of multiple phrases, a maximum of 6 phrases are possible if the silence insertion setting is 2 bytes. 12.5.2 Two-channel Regeneration Two-channel regeneration uses PCM, melody and ADPCM methods. Channel synthesis is possible with all combinations except a melody regeneration/ melody regeneration combination. Melody regeneration is fixed to channel 1. The sampling frequency of phrases to be overlapped must be the same. Figures 12.7 to 12.10 show the vocalization timings of two-channel regeneration. 1st Phrase Channel 1 -\ Melody Tone )>---:- - - Channel2 - : ( "Today's" X "weather'' X "is" X "sunny" )>--:- - - - - - - : 2nd Phrase ! 3rd Phrase ! 4th Phrase i 5th Phrase : Figure 12.7 Example of Four Phrase Channel Synthesis Timing with Melody Tone as GBM 1st Phrase 4th Phrase Channel 1 --<~ ___ M_e_lo_d_y_To_n_e_ _ _,X'-___M_e_lo_d_y_To_n_e_ __,),_:- - - - - - - Channel 2 - : ( "Today's" )f'. "weather'' X~-"is_"~X "sunny" ):.-:- - - - - - - : 2nd Phrase : 3rd Phrase : 5th Phrase ' 6th Phrase : Figure 12.8 Example of Four Phrase Channel Syntehsis Timing with Melody Tone and 1st and 4th Phrases as BGM 403 MSM6650 OKI Semiconductor 1st Phrase Channel 1 -----< PCM Tone (A) '--~~~~~~~~~~~~~~~~~ ),_:- - - - - Channel 2 ---;- - - - - : 2nd Phrase ! Figure 12.9 Example of Channel Synthesis between PCM Main Melody Tone (A) and PCM Rhythm Tone (B) with 4 Repeats 1st Phrase 3rd Phrase Channel 1 -----< PCM Tone (A) '--~~~~~~~~ x PCM Tone (B) ~~~~~~~~~ J,_:- - - - - - Channel 2 ---: Vl II ...... S" 9' 9 m .. Pl Q en """0~ ::r: r- t"' "' XI 0 g. ET- fl ct> :s::: 0 ct> ..... >< 0 !! NAR (_O)_ . n;- XI .... co c ::s e. < z ~ CE (I) Ci) .... (11 --~·: es -I :.... ~ ~ 0.. ;:l. z ~ ____;___,,: s·< Ci) ~ DO - D7 (I) OQ ::I :'--------f ;'-------," :'--------f : ::r. e?. XI ------: 4µS-.+-------+-4µS +i----+4µS -.+-------+-4µS .:--+4µS 1 I I I I I l I I +-+ 4µS I I 3 ::;· 0 I I I I I I I I I l I OQ :s::: 0.. c Fixed to "00" Address, FsAM Data & Regeneration System Data Rest Control Word and ADPCM Data ~ ~· s· s· See an attached sheet * 1) in proportion to fs OQ co "'ct> -I 3· *2) Hereafter, CE and D7 to DO are input/output at a 250 µSor 125 µS cycle. "' ct> l"l ::;" s· Don't care other than FsAM Data & Regeneration System Data Control Word----- 1 byte .... ct> co (IQ ADPCM Data ----- 255 bytes ct> Control Word----- 1 byte ::s ct> All the data are made by the speech analysis edit tool. ADPCM Data ----- 256 bytes .... ,..,. $ll s· ::s ,..,. $ll §"' :s::: () .,. II 0\() "'~ :s::: ~ g °' MSM6650 OKI Semiconductor Attached Sheet 1) fsam Data 02 01 00 Sampling Frequency 0 0 0 8.0kHz 0 0 1 10.6kHz 0 1 0 12.8kHz 0 1 1 32.0kHz 1 0 0 4.0kHz 1 0 1 5.3kHz 1 1 0 6.4kHz 1 1 1 16.0kHz 2) Regeneration System Data 07 06 Regeneration System 0 0 Regeneration by ADPCM 0 1 Regeneration by PCM 1 0 Melody regeneration Melody regeneration can not be controlled externally. 408 OKI Semiconductor MSM6650 16. CERAMIC OSCILLATION Figurel6.1 shows an external circuit diagram using a ceramic oscillator. XT XT Figure 16.1 External circuit diagram Figure 16.2 and 16.3 show external circuit diagrams using a cermic oscillator, CSA4.09MGU and CST4.09MGWU made by Murata Seisakusho Co., ltd. XT XT 0 C30pF I I C30pF Figure 16.2 CSA4.09MGU Figure 16.3 CST4.09MGWU Figure 16.4 shows an external circuit diagram using a cermic oscillator, PBRC4.00MSA/ MSK/MWS made by Kyocera Co., ltd. Note) In case of using a oscillator 4.00MHz, vocalization speed is low about 2% than AR76-202 analysis tool and evaluation board. XT 33pF I I 33pF Figure 16.4 PRBG 4.00 MSA/MSK/MWS 409 MSM6650 OKI Semiconductor APPLICATION CIRCUIT EXAMPLE 0 z C!l MSM27C101 11'.5 JI MSM27C101 0 z C!l MSM27C101 11'.5 MSM27C101 .... 0 0 0 I~ 1~1-+--~ 0 ~ -r: ~ 0 ~a:o::.a:~ I~ MSM83C154 Application circuit example when four 1 M-bit EPROMs are used (serial input interface). 410 OKI Semiconductor MSM6650 MSM27C101 0 2 <.!:> MSM27C101 Q._ Q._ I~ >~ MSM27C101 Q._ Q._ >tel 0 2 <.!) MSM27C101 Q._ Q._ ,.._ I~ >~ t01J")"'=t"C"JNT"""0 T"""C>..-C> N.......:,....:,....:.,....:,....:,....:c.-) NNM,....: a.. a.. a.. a... a.. a.. a.. a.. a.. a.. a.. a... MSM83C154 Application circuit example when four 1 M-bit EPROMs are used (parallel input interface). 411 Voice Recorder OK.I Semiconductor MSM5218 ADPCM SPEECH ANALYSIS/SYNTHESIS IC GENERAL DESCRIPTION The MSM5218 is a complete speech analysis/ This PCM data can be output directly or routed synthesis LSI featuring the Adaptive Differ- to the internal 10-bit DAC for analog signal ential Pulse Code Modulation (ADPCM) output. method of data compression. The MSM5218 contains an analysis stage where serial PCM In addition to simplifying speech analysis and data is compressed to 3- or 4-bit parallel simulation, this circuit enables users to de- ADPCM data. In addition, a synthesis stage velop their own speech analysis and synthesis synthesizes PCM data from ADPCM data. systems. FEATURES • One-chip speech analyzer I synthesizer • Lower power consumption CMOS • 3- or 4-bit ADPCM system process (15 mW typical) • ADPCM data compatible with Oki's • Built-in 10-bit D/ A converted for analog synthesis LSI MSM5205RS output • Single power supply • Handshaking signals provided for • Variable sampling frequency (4 kHz, 6 synchronous operation with an external kHz,8 kHz) AID converter. • 24-pin plastic DIP, (DIP24-P-600) FUNCTIONAL BLOCK DIAGRAM VDDO- VSSO- 81NfTOC 12-bit 12 1----~-.i" 1 03 Shift i------1--..i" i D2 Register ADPCM analysis stage 1------1---1--..i" 1 o, q. s1 Do 48/38 SICK Ana/syn ADSI r>--~ SCON r.,,___ __ DAO UT XT Timing XT Circuit ADPCM Synthesis stage MSB/SO VCK RESET r 1 - - - - - - SOCK 415 MSM5218 OKI Semiconductor PIN CONFIGURATION (Top View) 24 Lead Plastic DIP ABSOLUTE MAXIMUM RATINGS Parameter Symbol Conditions Ratings Unit Power supply voltage VDD Ta= 25°C --0.3 - +7.0 v Input voltage V1N Ta= 25°C --0.3 - Voo v Power dissipation Po Ta= 25°C 200 max mW Storage temperature Tstg - -55-+150 oc 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 any other conditions above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. OPERATING CONDITIONS Parameter Symbol Conditions Ratings Unit Power supply voltage VDD - +3-+6 v Operating temperature Top - -30-+70 oc Oscillator Frequency fosc Specified Oscillator 386- 768 kHz 416 OKI Semiconductor MSM5218 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 4.2 - - v XT, T1, T2 Input Low Voltage VIL All inputs except - - 0.8 v XT, T1, T2 Input High Current (1) llH VIN= VDD - - 1 µA Input Low Current l1L VIN= ov - - -1 µA Output High Current IOH SCON, VCK, SOCK, -50 - - µA MSB/SO, DO-D3 V0 = 4.2V Output Low Current IOL SCON, VCK SOCK, 50 - - µA MSB/SO, DO-D3 V0 = 0.4V Operating Current loo fvcK = 8kHZ - 3 6 mA Operating Current loo fVCK = 16 kHz - 6 12 mA DA. OUT Output Impedance VOR - - 100 - kn D/A Accuracy VE Full Scale - ±4 - LSB (Internal 10-bit D/A) VDD = +5V - SICK Clock Frequency fSICK - - - 500 kHz Input High Current (2) llH2 V1N= VDD Note 1 20 - 400 µA Note 1: Applicable for Reset. 417 MSM5218 OKI Semiconductor PIN DESCRIPTION Pin Name Terminal Number 1/0 24 DIP VCK 1 0 This pin outputs a signal whose frequency is equal to the sampling frequency selected by S1, S2 inputs. ~ 2 00 D1 3 110 ~ 4 00 ~ 5 00 Data 1/0 port for the ADPCM data. For 3-bit ADPCM data, Do input is not used. ANA/SYN 6 Analyze/synthesize function selector. Controls data 1/0 port direction. When high, data 1/0 are outputs and simultaneous analysis and synthesis occur. When low, data 1/0 are inputs and no analysis occurs. 4B/3B 7 Specifies whether 3-bit or 4-bit AD PCM data is to be used. High = 4-bit. 8 9 These inputs select the sampling frequency according to figure 1. SICK 10 Clock input for clocking in serial PCM data from an external ADC into the internal 12-bit shift register. ADSI 11 Serial PCM data. vss 12 Ground (0 V) SCON 13 0 Output which signals the start of conversion. SOCK 14 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 Selected for analog signal output (DAS= L), or serial PCM data output (DAS= H). T1 16 h 17 IC test pins used at the factory for testing purposes only. During normal operation, T1 is grounded and T2 is left open. DAO UT 18 0 Analog signal output pin. MSB/SO 19 0 MSB/serial data output pin - MSB of the data in the internal 10-bit DAG will appear at this pin if analog signal output mode (DAS = L) is selected. When serial PCM data output mode is selected (DA = H), serial PCM data can be clocked out of this pin. 418 OKI Semiconductor MSM5218 Pin Name Terminal Number 1/0 24 DIP BIN!TOC 20 I Specifies whether the input serial PCM data is in binary or 2's complement form. RESET 21 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 I XT 23 0 Oscillator inputs for a 384 kHz crystal or ceramic resonator (Figure 2). VDD 24 Power supply pin. (typical +5V) A10 MSM5218 OKI Semiconductor S1 S2 Sam piing Frequency Note: The 384 kHz resonator must be used with L L 4 kHz (384 kHz/96) 4kHz, 6kHz, 8kHz. L H 6 kHz (384 kHz/64) Other oscillator frequencies are possible and will H L 8 kHz (384 kHz/48) proportionately modify the sampling rate. H H Prohibited Figure 1 XT(22) Murata Corporation CSB 384P XT(23) Or as required to x match crystal or D ceramic resonator load specifications. XT and XT (Oscillator connector pins) Figure 2 420 OKI Semiconductor MSM5218 ANALYSIS WITH SIMULTANEOUS SYNTHESIS (fs = 8 kHz) f--- 125 µsec ------! ;....---~ VCK(O) 1 : 7.8 µsec (3 x 1/384 kHz) Reset latch timing :,...1I Note 1 :,'1 Internal reset ' Note 1 ~---------T---------i------------ : 13 µsec (5 x 1/384 kHz) SCON(O) T1J 12 pulses ,----"---, LJ w ' SICK (I) ~-~''~\\~\\~\ \\ \ \\~\_No_te2~:-~'~\\~\\~\\~\\_~--;--~\\~\\~\\~\\~\ \ \ \ --- ADSI (I) Valid PCM 1 Valid PCM2 Valid PCM 3 ' :+- 57.3 µsec - (22 x 1/384 kHz) ' (Ag~cJ18A~~l W/////////////////////////l/)/J///////////X o,: , X'-__o_,_ _ ~~~~~~~~~~~~~~~~.........,._.~, 13µsec(5x1/384 kHz) D~OA~T=(~l fl////!Ill/!//;J/////J//J///111//!II/////////////////II d("h: a, SOCK (0) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ____,_'_ __, (DAS= H) 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 by 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-bit) SYNTHESIS ONLY {fSAMPLE = 8 kHz) VCK(O) : 7.8 µsec (3 x 1/384 kHz) RESET (I) :-i Latch timing Internal reset On Incorporate : 49.5 µsec (19 x 1/384 kHz) timing : I Dn~----o-,--~~'-,-,---o,_ _ _~X~ ____o_,_ _~x:===: ___a, __~><= I -I ~ 0to~usTRl Wll/////////////lll!!/////J///Jk====== 01 =====x~ Dn: nth ADPCM data. On: Analog Output corresponding to input nth ADPCM data. Figure 3 Ll.?1 MSM5218 OKI Semiconductor BLOCK DIAGRAM - ANALYZER MSM5218RS 4 Data output RAM ROM orEPROM RESET Controller Cutoff frequency fc of LPF should be related the selected sampling frequency fs by fs fc = 0.85x 2 Figure 4 BLOCK DIAGRAM - SYNTHESIZER RAM AMP Speaker or EPROM Figure 5 422 OKI Semiconductor MSM5218 THE FOLLOWING TIMING SHOWS HOW TO APPLY THE RESET VCK (0) RESET (I)___.._ _ _ ____,_,: ' I At least twice TO ~,~~~~~~-~-~'.-----~ Internal IC _ _ _ _ _ _ ___, RESET timing Figure 6 MSM5205 Reset Timing 1--- 125 µsec ------I i----~ VCK(O) I .:...,7.8 µsec (3 x 1/384 kHz) I Reset latch timing : 1 Note :1' I :i I I I I I I RESET (I) Internal reset Note Figure 7 MSM5218 Reset Timing (fsample = 8kHz) 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. 42'.i MSM5218 OKI Semiconductor DA converter SN ratio improvement Since an offset of about 5 m V can be ob- method tained for respection 2 samples of data, it is recommended that about 100 samples of The accuracy near the center of the voice data be entered to shift the waveform center waveform of this LSI may be worse due to about 250 m V. theconfigurationoftheDAconverter. There- fore, the SN ratio can be improved by shift- For 3-bit data, an offset of about 5 m V can be ing the waveform center up or down. This obtained for each data. Therefore, about 50 is an extremely effective method for im- samples of data is required to be entered to proving the SN ratio of a small signal or shift the waveform center about 250 mV. improving residual noise during silence (be- tween 2 speech patterns.) In the (A) section, the waveform center should be shifted up. In the (B) section, the To put it concretely, by adding data before waveform center should be shifted down. or after the current ADPCM data (voice The number of data in the (A) section should data), the waveform center can be shifted as be the same as that in the (B) section. shown in Figure 8. When (A) is added before voice data and (B) Adding data is as follows: is added after the voice data, the output waveform is as shown in Figure 8. (A) section (B) section Since the dynamic range is narrowed by the 0 0 0 0 1 0 0 0 shifted area, some data may overflow, caus- ing the voice to be distorted. 0 0 0 0 1 0 0 0 100 data If this occurs, decrease the sound pressure about 20% and analyze the data once again. (For an overflow, see the precautions for (The ADPCM bit length is 4-bits.) ADPCM data creation on the next page.) (Note 1) / >' (A) T- 1~ r 1_ VDD 2 (2.5V) Figure 8 Waveform the DA Converter Note 1: Voice data should be sufficiently small just prior to (B). For voice editing, insert a silence of about 1Om sec. 424 OKI Semiconductor MSM5218 Precaution for ADPCM data cre- the data. If this occurs, analyze and create ation the ADPCM data once again. When voices are synthesized by the An example of a waveform when an over- MSM5205 using the ADCPM data analyzed flow occurs and the overflow protection by the MSM5218, noise may be generated in method are as follows: the composite voice. (1) Waveform when an overflow occurs The MSM5205 is not equipped with an over- flow protection unit in the internal opera- The observation of the output waveform tion circuit even though the MSM5218 is. from the DA converter of the MSM5205 on Therefore, although the MSM5218 produces an oscilloscope shows that an overflowed normal voice, the MSM5205 may cause noise waveform is looped as shown in Figure 9. in the composite voice due to an overflow in VDD __1__VDD 2 ov Overflow section Figure 9 Output Waveform When an Overflow Occurs (2) Overflow protection method Therefore, if the maximum amplitude level of the input wave form when the ADPCM Even if an input waveform is not beyond the data is analyzed by the MSM5218, is con- dynamic range when the ADPCM data is trolled to about 80% of the dynamic range or analyzedbytheMSM5218,theoutputwave- less (see Figure 10), the output waveform of formmayoverflowduetoaninternalopera- the MSM 5205 will not overflow, causing no tion error. noise in the composite voice. ~~~~~~~~~~~~~~~~~ VDD ----- 1-voo 10 __1__VDD 2 Figure 10 Waveform When the Maximum Amplitude Level of the Input Waveform is about 80% of the Dynamic Range 425 ;!;j )> z s:: °' I )> r- "' s:: en FSEL 1is1i ~ m I\) ..... FSEL 2 S2 CX> 48138 :D (/) .,, ANA SYN < z MSM5218RS M<:JDli:>!:'~ I I l,;UIUl-1- 1-H~U I ii' -t c ::c m ...... Cil RESET VCK O,D2D1 Do VSs-·rr I ~AUDIO 211 1 I 5141 31 21 121 SPEAKER nrn "' N m ~ 384kHz I I I I Do o, :D 'C c:;· D, D, e!. )> 'C VCK '2. c:;· .... Ill 5· :I )> :I 1M Ill o<" I C21 3~4 ~ :::!. ff ~~~~~~~~~~~~~~~_.~~~~~~~~~~~~~~~~~~~__,,,,HALT RUN ....:::r I :I I= 500kHz I= ~ Cl) ANALYSIS (READ) (II SYNTHESIS (WRITE) ~· ... I VCK (BkHZ) ANA/SYN RECOMMENDED TIMING FOR µP CONTROLLED ~ ~- FSEL1,2.481.IB SYSTEM HALT/RUN §' ~ > • Q ~~ cos: UI :;- (/) P4 .... YI LI .g 1~. ~ v ... I\) ~ ::::! )\\ 'J) lil 0 m .... >COO i:::. 0 .... Ill< 0 ANALOG ~Mu~ ~·~V DB7r---f18 "'r---1ADSf' .• '-"" SW.LJ f-i !» 3 0 p INPUT 0:-!~ 120K120KI':'"____ K rtY"" 1 I~ ~~II~~ I Y lRINfrOC n11n: 1-----i ::S '2,. c:;· Q.. !» CDCD C "O ~ J> Q_ 11.. -· :::r :I CD Ill 0 ,.... Q :I-< g: s: !!?. ::i (/) ~ cg-·.,, "'t l- 450kHz l- ~ °11 J~ 00 Pl- - Pl ~· c ::;: ~1 o:::r .i:o. CD -· !!?. CD '"'"' 111 111 Si ~ START1l F '• 03 04 I no ~~ 3: ClO IN!T~r20P ~ ~I I RESET Fl D .!'. DQ D .!'. Q4 1 l~'llI I ~-•< 3· ~ ~~~ i)Q" 00 ~ ::l 9. rfJ ::l ~ ~~~~ !» f7, ~';;i ::i C' 0 (ii" 0.. ~ ""'!» ,_.i -· ::s . if;.ui0.. ""' ..... 00 0 '< 00 Ill~ a ::r VDDJJ II ··- _JR "- L I l"l ~· : . IB. c ::i 00 ::;: 'T.I c rJ; oq· ~- e; ~~ 3: 100K I Ill OQ Ill _. ,~ ~ " :::io' -·NV' ;::.. <:.~ Ill CJl c.n ,i:.. ::l~N ~ N -·::r- ~ ~ ::irooo - MSM5218 OKI Semiconductor VOICE ANALYSIS TIMING CHART PowerON J 55 I • Reset _J\~_ ___.55 Internal reslli.---------;55- 5218RESEU 5~ VCK ~ Start -------5~ 01 ----I~ 02 Q3 ------1s-----r- _J s Q4 _J Os Os+VCK ~ SCON(WR)----u---5S----U u u u u 5204 conversion ~I I'" •1 I'" •I I'" •1 I'" •I I'" •1 INTR _J 4s---J.---~,.------,.------,~---,~----. ir- RD 5 LI LI LI LI u- 4014 P/S n 12 pulses n n n fL_ 40144> 11111111 (450 kHz) 11----1 11----1 11----1 11----1 SICK _J 55 111----112 pulses 11----1 11----1 11----1 11----1 Do- 03 0000 I. x 4>1 H H 4>2 _J WE _J Address 0 Count Figure 13 428 OKI Semiconductor MSM5218 VOICE ANALYSIS TIMING CHART Power ON _ ; - - - INITIAL I\ Reset --1 L _ _ Internal reset _J 521 BRESET _j Start ----\J VCK ~ ----\~ ----\s-------r- RAM Address r·otiiiiiii ___________ _ DAO UT ~~~~~~~~~---' AE1 -------'It H ~-~It H AE2 L ...._________, t L Figure 14 • MSM5218 Voice Analysis/Synthesis manufactured by *MN Co.) is shown in Circuit Example (When 12-bit AD Figure 15. Converter is Used) The time charts for these circuits are given in An example of an application circuit for, Figures 14 and 16. voice analysis and synthesis using MSM5218 and a 12-bit AD converter (ADC-80AG is *Micro Network Corp. 429 t; < :!:: 0 v v I I 0 en 0 :!:: ~~ ~)» m /VV" -l I Di: 1-4 --::::..h ~ by HARRIS Co. by MN Co. Uft 100K1111 ~ ...... Q) z ..... :c m en Ci) (') 35 (') c :::j m ~ 'Tl tCi" c Cll START) 100K I 0ci03~1 y I~ .... (JI INITIAL~ RESET lOOK RESET1L_ 100K RAM SEL (A) I 100K ~ ~ !lot en cdl I I~-::i I 11 I RAM SEL) (B) 100K I.ttnrrrttr'1 _f;=l . J11 I I 0 g. n. ....0 OKI Semiconductor MSM5218 MSM5218 TIMING CHART Power ON~ INITIAL _/\__ Reset Internal re~ 521 BRESE"!:__j Start J VCK ~~ 01 02 03 04 CONT C.Con IN SICK 111---1 111--·I 111---1 lllml 55 Do-03 05 <1>1 H <1>2 L WE RAM ~~fess 0 Figure 16 431 MSM5218 OKI Semiconductor • Example of Interface between MSM5218 and an external DA converter is MSM5218 and an External DA shown in Figure 17. Converter The time chart for this circuit is given in An example of an interface circuit between Figure 18. Note 1 Connected to 12-bit external DA converter MSB LSB MSM5218 VDD O.E >----~ MSB/SO GND i--.----1 SOCK SOOp (b) RESET 10K VDD 01 CLK VCK MSM4015 RESET GND DATA Reset Input Note 1. The 12-bit output is in regular straight binary code. Figure 17 MSM5218 TIMING CHART (a) 03 (b) OR output (c) STROBE Expanded time chart for interval A " ... External DA converter operation interval XT (384k) VCK SCON MSB/SO SOCK Figure 18 432 OKI Semiconductor MSM6258/MSM6258V ADPCM SPEECH PROCESSOR FOR SOLID STATE RECORDER TO CUSTOMERS FOR NEW CIRCUIT DESIGN For a new circuit design, it is recommended to filter. Therefore, the MSM6388/MSM6588 use not the MSM6258, but the MSM6388/ can realize a high quality voice. MSM6588 as described later. In addition, the same control as a CPU inter- The MSM6258 has an 8-bit AD converter and face of the MSM6258 can be performed by does not have a built in low pass filter. On the using the EPLA Y/EREC command of the other hand, the MSM6388/MSM6588 has a MSM6388 and the EXT command of the 12-bit AD converter and includes a low pass MSM6588. GENERAL DESCRIPTION The MSM6258 is a complex and highly inte- PLCC, respectively, to permit full surface grated ADPCM speech processor, imple- mount implementation. mented in CMOS technology for low power consumption. The integrated A/D and D/ A MSM6258 accepts 4 to 8MHz master clocks, converters make the chip more self-contained, out of which two sets of sampling frequencies relieving the need for external conversion cir- can be derived. Additionally, the AD PCM bit cuitry. The device comprises internally. A number is pin-selectable between 3 or 4 bits DRAM controller permitting the use of per sample. When using 256k or 1Mb DRAMs, DRAMs alternatively to SRAMs and ROMs to the maximum I/O time is approximately 17 store speech data. In other words, less periph- minutes at a bit-rate of 16kbps, while 256k ery, thus less system vulnerability a voice SRAMs offer a little more than a minute of detection circuit and phrase select provision speech, both in their maximum memory con- are successfully added features for increased figurations. At the higher bit-rates, 21.2 and performance. 32 kbps, the I/0 times are reduced propor- tionally. The ADPCM analysis and synthesis block is identical to the popular OKI MSM5218, that In the case of DRAMs, the OKI MSC2304 (2- is, the bit overflow protection is included in Megabit, module) or MSC2305 (4-Megabit for improved reproduction quality. The de- module) are recommendable for space and vice is offered in two basic versions one of cost saving benefits and in the interest of which comes in two package types. One is the simplified handling. In the external mode, the version designed to be interfaced with an 8-bit built-in 8-bit ADC is looped so that a separate CPU like the OKI MSM80C85 or MSM80C51 ADC can be connected to MSM6258, the accu- microcontroller, and comes in a 40-pin flat racy of which may be between 8 to 12-bit for package; the other operates as a stand-alone 'recording' speech. When the playback mode solution that includes 19-pin programmable is set, the internal 10-bit DAC will be disabled output lines for memory addressing and chip to permit the connection of an external DAC select in a 60-pin flat package or in a 68-pin of 10 to 12-bit of resolution. MSM6258/MSM6258V OKI Semiconductor FEATURES 1. STAND-ALONE VERSION 2. CPU INTERFACE VERSION • Switch or microcomputer interface • Command/status can be input and is possible output through the data bus. • Straight ADPCM (3-bit/ 4-bit) • Straight ADPCM (3-bit/ 4-bit) • Built-in voice detection circuit • Sampling frequency selection • Built-in DRAM refresh circuit 3.9, 5.2, 7.8kHz (for original • SRAM/DRAM can be directly oscillation frequency of 4.0 MHz) connected. 4.0, 5.3, 8.0kHz (for original Maximum 16 M-bit (with 256K or oscillation frequency of 4.096 MHz) lM DRAM used) 7.8, 10.4, 15.6kHz (for original • Sampling frequency selection oscillation frequency of 8.0 MHz) 3.9, 5.2, 7.8kHz (for original • Maximum number for words oscillation frequency of 4.0 MHz) recorded: 7-word 4.0, 5.3, 8.0kHz (for original • Original oscillation frequency: 4-8 oscillation frequency of 4.096 MHz) MHz 7.8, 10.4, 15.6kHz (for original • Built-in AD converter: 8-bit oscillation frequency of 8.0 MHz) • Built-in DA converter: 10-bit • Maximum number for words (voltage type of class A) recorded: 7-word • Operable with a single power • Original oscillation frequency: 4-8 supply MHz • 40-pin plastic DIP (DIP40-P-600) • Built-in AD converter: 8-bit • 44-pin plastic QFP (QFP44-P-910- • Built-in DA converter: 10-bit K) (voltage type of class A) • 44-pin-V plastic QFP (QFP44-P- • Operable with a single power 910-V1K) supply • 44-pin plastic QFJ (PLCC) • 60-pin plastic QFP (QFP60-P-1519- (QFJ44-P-S650) K) • 60-pin V plastic QFP (QFP60-P- 1519-VK) • 68-pin plastic QFJ (PLCC) (QFJ68-P-S950) 434 OKI Semiconductor MSM6258/MSM6258V PIN CONFIGURATION 1. Stand-alone version (Top View) 60 Lead Plastic Flat Package Vl(SICK) VR(ADSI) VSS2 CA1 CA2 CA3 FRST VDD PAUSE 21 ST-SP RliS(OE) A18 18 CAS 17 A17 L.-~~~~~~~~~~~~~ Note 1: Applicable to the MSM6258GS-K, GS-VK. 68-lead plastic leaded chip carrier 03 Vl(SICK) NC VR(ADS) 02 VSS2 01 CA1 AG CA2 DO CA3 A7 FRST VSS1 NC SAM1 VDD SAM2 PAUSE A8 ST•SP A9 NC NC RliS(liE) A10 A18 XT CAS X'f A17 NC WE 435 MSM6258/MSM6258V OKI Semiconductor 2. CPU interface verison (Top View) 40 Lead Plastic DIP 05 06 07 REC/PLAY 4 37 IADIEAD 03 36 VOS 02 Vl(SICK) 01 7 VR(AOSI) 33 VSS2 PAUSE ST•SP DIC RD cs WR DAO UT AC PLAYM SOCK Note 1: Applicable to the MSM6258VRS. (Top View) 44 Lead Plastic Flat Package 03 1 02 2 01 3 DO 4 VSS1 SAM1 SAM2 7 MCK a XT Note 1: Applicable to the MSM6258VGS-K &GS-V1 K Note 2: VDD' connected to VDD Pin 436 OKI Semiconductor MSM6258/MSM6258V MSM6258VJS (Top View) 44-Pin Plastic Leaded Chip Carrier Note 1: Applicable to the MSM6258VJS. 437 MSM6258/MSM6258V OKI Semiconductor FUNCTIONAL BLOCK DIAGRAM 1. Stand-alone version VDD VSS1 10-bit DAG DAOUT VSS2 VI (SICK) SOCK DASO VR (ADSI) IAD/EAD VOICE VDS DETECTOR DATA 1/0 DO-D7 CA1 BUFFERS CHANNEL CA2 ADDRESS CA3 BUFFERS FRST RAM 248-bit ST•SP REC/PLAY PAUSE 4B/3B TIMING A18 SAM1 CONTROLLER A17 ADDRESS SAM2 XT OUTPUT ) ) BUFFER XT MEMORY TIMING A1 AC AO 1~S!? :!!:a: :!!:~~1~13: ~ :E :::!: (ij (.;) > (.;) >- ~ ~(.;) ~ :5 0... !::. LL. ---~ AC',__.., DATA 1/0 DO-D7 cs,,___ BUFFERS STATUS RD·~~ REGISTERS WR,,__.., DIC { l---i TIMING COMMAND PAUSE c J---iCONTROLLER REGISTERS 48/38 { } - - - o . j SAM1 > - - - - - - - - - - - - - - - - - - - + < ' RECM SAM2 c , _ _ . . , f - - - - - - - - - - - - - - - - - - - 0 . ( ) PLAYM XT , ~-~ f - - - - - - - - - - - - - - - - - - - - - < : 1 OVF XT , -----< 1 - - - - - - - - - - - - - - - - - - - 0 - < : 1 VCK Ac ,,__.., 1---------------------<:iMCK '----------' 439 MSM6258/MSM6258V OKI Semiconductor ABSOLUTE MAXIMUM RATINGS STAND-ALONE & MPU interface version Parameter Symbol Conditions Value Unit Power supply voltage VDD Ta= 25°C -0.3-+7.0 v Input voltage V1N Ta= 25°C -0.3 - VDD +0.3 v Storage temperature Tstg - -55-+150 ·c Note: Permanent device damage may occur it ABSOLUTE MAXIMUM RATINGS are exceeded Functional operation should be restricted to the conditions as recommended. Exposure to ABSOLUTE MAXIMUM RATINGS for extended periods may affect device reliability. RECOMMENDED OPERATING CONDITIONS Parameter Symbol Conditions Value Unit Power supply voltage VDD Vss1 = Vss2 = OV +3- +6.0 v Ambient range Top - -40- +85 ·c Oscillation frequency Fosc - 4.0- 8.0 MHz 440 OKI Semiconductor MSM6258/MSM6258V DC CHARACTERISTICS (VDD = 5V /10%, Ta= -40 to +85°C) STAND-ALONE VERSION (VDD = 5V /10%, Ta= -40 to +70°C) CPU I/F VERSION Parameter Symbol Conditions Min. Typ. Max. Unit Operating current loo Fosc = 4.0MHz - - 4 mA Stand by current IDS With SRAM, AC=H - - 10 µA H input voltage VIH1 - 3.6 - - v H input voltage (Note 1) VIH2 - 0.8 x VDD - - v L input voltage VIL - - - 0.8 v H output voltage VOH IOH =-40µA 4.2 - - v L output voltage VOL IOL = 2mA - - 0.45 v H input current llH1 Without pull down VIH=VDD - - 10 µA H input current (Note 2) llH2 With pull down VIL=OV 20 - 400 µA L input current l1L V1L=Vss -10 - 10 µA Output leakage current ILO OV Cl j ~ ~ ~ ~ c... 8 8 8 I~C3 f:::: en LU > 0 u a: <( LU Cl a: Note If VOS= "H", RECM outputs 2 Hz clock during detection of voice. 445 MSM6258/MSM6258V OKI Semiconductor • RECORD TIMING (with SRAM selected, VOS= "L") 2 0 ~ =:! 0.. '-'O (/) l- o (/)'-------'----- 0.. 0 ~ 1- U) ~~~'-----'--Jf--1---i--¥--~ I- 0:: ~ (/) 2 0 ;::: :5 =:! I- 0:: ~ (/) ~ >- $ E ~ ~ ~ q ~ I~'-' '-' "" 0.. I en :!E :;( t; I~. '-' LU I- cc LU x cc Note If VOS= "H", RECM outputs 2 Hz clock during detection of voice. 446 OKI Semiconductor MSM6258/MSM6258V • PLAYBACK TIMING (with DRAM selected) I- ~ w a: E ~ ~ I~23 "":;;c l (.) UJ a: Note loAF =16 msec when DAOUT signal level is 1/2 VDD, loAF =32 msec when DAOUT signal level is VDD. Ll.Ll.7 ~ . .,, 3: ~ O> r ~ ~ ~ O:J 3: REC/PLAY (I) --1 y "~ 3: Cb CA1-3 (I) ~I z~ ~~~ -1 l--=11spc lsrc _1 C) START ,- - -+-+- ~ ST/SP (I) ---j ,l lsRF :: :: STOP J, lpRs n_ RE-START ;: ;: :::y ~ PLAYM (0) ~ $'. )> (fl XTJ(T (1,0) __J < r--OSCILLATION START "'"" """"" I i I I''""'""~ · ·STOP ~~ - VCK(O) - Lh ~ ,_ • VDD DAOUT (0) ~ GND 1710 vvAWAW0 \: ;;;..J 0 ~ ~ ~ $ "' :c .3 ~ ~ s: "" s: "" u <:!:5 !:;(~.9 ~~~ = 11,2 - I~ I~ - I~ ~ ,._ Cl ~ Cl :;: ~~~ o=>~ I C) o; 32 1 .k J j §: "' '-' §: ""::;;'-' :::~~ «Doo Rl - I~- 1!2 = I~ = I~ ~ ,_ > """"' Cl Cl ~~~ 0 • ~~~ Cl Note Use the above valid section to reference ADPCM data input from CPU to the MSM6258. Command write may be performed anywhere. 450 • ~ lJ m 0 0 • 111111 lJ c ::0 en -I m CD ,--- 0 8. ::1 IAS AC (I)-----,• .1 ~ 0 z ::0c () 1 C> 0 :::1 ~,Jit g. 1 :::! 4-J s::: : LJ LJ LJ LJ LJ z G> Q. 0 ..... - RD (I) MCK(O) PLAYM (0) DO (1/0) D1 (1/0) D2 (1/0) DO· D? (1/0) - VDD 2 -~~ s:: ~~ ~ D~UT(D)J~1 Ch s:: O> I\) IDAS en ~ s:: Ch s::O> I\) en *"' [.Jl ...... I I I~ I .,, • • ti I N s 3: "' AC(I)-,. lAs .1 r-- I ~ "" m sI "O 7~~ ::I 3: 3: z f; =~T ~-~ "3:: "' G> 3: O> -I I\) 4J LJ ~ LJ LJ LJ LJ u u i_r----tjJ zCi) RD (I) _ <>TADT <>Tno <>TADT cTnD 'H' MCK(O) PLAYM (0) DO(VO) 01 (VO) 02 (1/0) DON 07 (1/0) DAOUT(O) GNDI VDD ~ IDAs _ ~_I r"JI lDAOUT : ~ r:n --- Internal A3 13-bit UP Counter CA2 :>--- RAM 1(2_ ) Multi ~ ) CA1 A1 Plexer D4 l>IJ DO WR P> D5 ( J MSB l 18-bit 1--- 8-bit S/P SFR 1 UP Counter ) DO D1 g== DATA cp r--- UP 1 ! AO Figure 14 469 MSM6258/MSM6258V OKI Semiconductor 11. Connection and Use of DRAMS MSM6258 has the address terminals AO through Al8. If DRAM is used, the high 11.1 Connection of DRAMs order address outputs CAS signal, and it also works for chip selection. 64K x 1-bit, 64K x 4-bit, 256 x 1-bit, and 256 x 4-bit, and lM x 1-bit DRAMs can be con- Timing charts when 256x1-bit or 256 x 4-bit nected. MSM6258 allows the connection of DRAMs are given in Figures 15, 16, and 17. up to 16 M-bit. Therefore, DRAMs can be These figures show timing for fosc=4MHz, added easily. and fs=7.8kHz. Use buffers if sixteen or more DRAMs are to 11.3 Termination of Recording be connected. If recording is started when FST is "L", re- Figure 25 shows an example of a circuit in cording is not terminated until a stop pulse which four DRAMs are connected. As ap- is entered. If recorded data exceeds the parent from the figure, MSM6258 has eight capacity of the externally connected RAM, data lines: DO through D7. If the ADPCM noise is generated when they are repro- bit length is 4-bits, ADPCM data is input duced. and output through 8 data lines. x4-bit DRAMs installed must be even in number, So, a stop pulse must be entered according and the number of xl bit DRAMs must be a to the RAM size. For this purpose, a timer multiple of 8. If the ADPCM bit length is 3- may be used to control recording time, or bit, data is input and output through 6 data chip select signal may be used. lines. So, the number of xl-bit DRAMs installed must be a multiple of 6. Suppose two 256K x 4-bit DRAMs are con- nected. If a signal whose polarity is reverse 11.2 Use of DRAMs to the signal from the chip select terminal AlO (shown in Figure 15) is entered to the DRAM is refreshed by "RAS only refresh" ST• SP terminal as a stop pulse, recording is method. So almost any DRAM can be used. automatically terminated when recording has been done in two lM DRAMs. In case of fosc = 4 MHz, ® fSAMP = 7.8 kHz A11 (0) ···--umn.r···1Jlni-- --------~----U1fUlf·-·mn.,r--·-- A10(0) A9(0) -------u-mr-U-···~···---- _S_ra_nd_~.__..Ml•~-6_7._2s_ec~~·~l·~-~-·2_s_ec~~·~l·,___-6_7_.2_~_c_-i--- Figure 15 Address Timing for 256 x 4-Bit DRAM 470 OKI Semiconductor MSM6258/MSM6258V ® VCK(O) A11 (0) ~~-t-~~~~~~~~~~~~~~~~~~~~- A10 (0) A9 (0) --+--,~' 4µs Li Figure 16 Enlarged View of A VCK (0) A9 (0) 24µs RAS (0) AO-AB (0) Rn Rn+1 Rn+2 Rn+3 I 8s Change of refresh address WE(O) (during recording) 4µs--+-J-- t Data read (during playing) Refresh Data read/write Refresh Figure 17 Enlarged View of B 12. Connection and Use of SRAMs The high-order address terminal automati- cally functions as a chip select terminal ac- 12.1 Connection of SRAMs cording to the type of SRAM. MSM6258 allows the direct connection of These figures show timing when fosc is two types of SRAMs: 64K-bit and 256K-bit 4MHz, and fs is 7.8 kHz. SRAMs. The maximum capacityofSRAMS that can be directly connected is 1M-bit (for 12.3 Recording Termination 256K SRAMs). If recording is started when FST is "L", re- The SRAM size can be expanded to up to cording is not terminated until a stop pulse 4M-bit if AO through A18 are set for binary is entered. If recorded data exceeds the output using the RAMS1 and RAMS2 termi- capacity of the externally connected RAM, nals, and a decoder is externally connected. noise is generated when they are repro- duced. 12.2 Use of SRAMs So,a stop pulse must be entered according to Figures 18 and 19 show timing charts when the RAM size. For this purpose, a timer may 256K SRAM is selected. be used to control recording time, or chip select signal may be used. 471 MSM6258/MSM6258V OKI Semiconductor Suppose two 256K SRAMs are connected. If terminal as stop pulse, recording is auto- a signal whose polarity is reverse to the matically terminated when recording has signal from the chip select terminal A17 been done in two 1M DRAMs. (shown in Figure 18) is entered to the ST•SP In case of lose = 4 MHz .®. Is= 7.8 kHz ~ A17 (0) A16(0) A15(0) standby .1 8.4 sec .1 8.4 sec , I 8.4 sec .1 Figure 18 Address Timing for 256K SRAM \• 64µs + 64µs •\ VCK(O) AO -A14 (0) WE(O) (during recording) p.-· ~~ _8µ_s s2µs ------~u~-----­ Data read (during playing) OE: "H" during recording "L" during playing Figure 19 Enlarged View of A 13. Connection and Use ofExternal ROMs Similarly, the contents of ROM can be easily reproduced by entering a stop pulse using EPROM or masked ROM storing ADPCM the A15 terminal for 256K ROM, and the data may be connected to reproduce either A16 terminal for 512K ROM. the entire contents of ROM or part of them. 13.2 Reproduction of Part of Contents of 13.1 Reproduction of Entire Contents of External ROM ROM By connecting ROM, to which many words To reproduce the entire contents of External of ADPCM data is written, to MSM6258, ROM, set the address to binary output mode and controlling the internal RAM in using the RAMSl and RAMS2 terminals, MSM6258 using a microcomputer, indi- and enter a stop pulse to the ST•SP terminal vidual words stored in ROM can be ran- within SOµs after the level of the A14 termi- domly reproduced. Figure 21 shows a flow nal is set to "H". Timing is shown in Figure chart. 20. 472 OKI Semiconductor MSM6258/MSM6258V tsPs = 0-50µsec ST•SP (I) _fl Fn- PLAYM (0) _r.----------+r--. A13 (0)---------~ DAOUT (0) ~------------- ~ Figure 20 Stop Timing for Reproduction from ROM Setting of other terminals D/SRAM = "L", CA1, 2, 3 = "L",] [ REC/PLAY= "L", RAMS1 = "L", RAMS2 = "H" Start Setting of input terminals for sampling frequency, etc. Selection of channel 1 Writing of external ROM start/stop addresses to internal RAM Selection of play mode Entry of start pulse to ST SP terminal YES End Figure 21 Flow Chart for Reproduction from ROM 473 MSM6258/MSM6258V OKI Semiconductor 14. Use 15. Backup with Battery 14.1 Recording of 7 or More Words When backing up SRAM storing ADPCM data with a battery, be sure to also back up As stated earlier, seven words can be re- MSM6258. MSM6258 has RAM to store corded in channel 1 through7. Iftheinternal start/ stop addresses for each channel. Even RAM in MSM6258 is controlled using a mi- if SRAM is backed up, its contents cannot be crocomputer, more than seven words can be reproduced unless MSM6258 itself is backed recorded. Operating procedure is similar to up. that described in 13.2, "Reproduction of Part of Contents of External ROM". Select chan- • Operation with CPU Interface nel 1, write start/ stop addresses to the inter- nal RAM, and record data to that address. As stated earlier, CPU interface does not control external RAM addresses. Therefore, 14.2 Use of both RAM and ROM an external control circuit for RAM must be designed. RAM and ROM may be connected to MSM6258 to record a variable message in 1. Connection of Data Bus RAM and a fixed message in ROM. Insert a pull-up or pull-down resistor to the. Examples of circuits are given in Figures 28 data bus bits DO-D7. and 29. Table 5 Use of CS, D/C, RD, and WR cs D/C RD WR Operation L H L H Output of ADPCM data (during recording) L H H L Input of ADPCM data (during playing) L L L H Output of status L L H L Entry of command H x x x Use of data bus is inhibited. (high impedance) 2. Use of Data Bus 3. Entry of Commands The data bus can be controlled using the These are commands for start of recording, four pins of the D/C terminal by making a start of reproduction, stop of recording/ selection as to whether the CS, RD, and WR reproduction, and setting of initial pointers. terminals, and data bus should be used for input/ output of ADPCM data or for input/ Entering "H" level makes each of these com- output of command/status. mands valid. Table 5 is a list of "H" and "L" combinations However, "L" level should be entered for of these terminals. As shown in Table 2, initial pointers PO through P4. If "H" level is AD PCM data for two samples are input and entered, the amplitude of the waveform for output at a time. reproduction will be changed. Table 6 shows the relationships between the data bus and command. 474 OKI Semiconductor MSM6258/MSM6258V Table 6 Data Bus and Command DO 01 02 03 04 05 06 07 SP PLAY REC P4 P3 P2 P1 PO ST ST SP ...................... Stop recording and playing PLAY ST ............. Start playing REC ST ............... Start recording PO - P4 .............. Setting of initial pointers (Always enter "L".) 4. Status Output DO - D6: "L"level D7: "H"level The status output tells which is currently performed, recording or playing. Table7 shows the relationships between the data bus and status. The status output in standby mode is as follows: Table 7 Relationships between Data Bus and Status DO 01 02 03 04 05 06 07 x x x x x x x REC/PLAY REC/PLAY ................. "H" during recording "L" during playing 5. Read/Write Timing from the external RAM in synchronization withMCK. Read/write timing of ADPCM DATA is synchronized to MCK. Timing for recording and playing is shown in Figure 22. If recording or playing is 6. Recording/Playback Method stopped using a stop command, DAOUT retains the level at which recording or play- To start recording, a recording start com- ing has been terminated, and its level is mand is entered using the D/C, WR, and DO changed to 1 /2VDD as soon as a start com- - 07 terminals. mand is entered. During recording, ADPCM data is written 7. Voice-Triggered Starting to the external RAM in synchronization with the MCK output. With theCPU interface, voice-triggered start- ing cannot be performed using the logic To terminate recording, enter a stop com- circuit in MSM6258. To perform voice-trig- mand. gered starting, use an external analog cir- cuit. An example of such a circuit is given in Playing is performed if a play start com- Figure 35. mand is entered, and ADPCM data is read 475 MSM6258/MSM6258V OKI Semiconductor 8. Troubleshooting Check List waveform, or DC level waveform. If normal playing is impossible even when If the waveform of the output from the hardware and software for CPU inter- DAOUT during playing rises or falls, face are used, perform check up according ADPCM data read/write timing is to the following procedure: wrong. Check read/write timing. (1) CheckDAOUToutputduringrecord- (3) Recording and playing of muted voice ing: waveform and voice waveform: The waveform of the output from the To check read/write timing, perform DAOUT terminal during recording is recording and playing using a wave- just the same as that during playing. form consisting of muted voice and Make sure that the waveform of the voice. output from the DAOUT is normal. If the waveform of the output from (2) Recording and playing of muted voice: DAOUT rises or falls during playing, orifitsamplitudechanges,checkread/ If the waveform of the output during write timing again. recording is normal, use a muted voice Muted part Voiced part (4) Recording and playing of voice wave- the interface for playing is judged to form: be normal. Check the timing for start of recording again. For final checkup, perform recording and playing using a voice waveform. How to generate 1.5Vpp sine wave: If the amplitude of the waveform of Enter the following ADPCM data: the output from DAOUT during play- ing changes, the trouble may lie in the 0,3,3,7,F,7,F,4,C,4,C,4,0,9,C.8.1 repeti- interface with theexternalRAM. More tions of 4,0,9,C,8,1 concretely, it is likely that ADPCM data for several samples are not stored This data will work with a M5205 but in the external RAM before start of must be nibble swapped for the 6258. recording, or AD PCM data for several samples are not transferred from the external RAM to LSI before start of playing. To see whether the timing D7-DO after start of playing is normal, enter (3 O)HEX Please refer to ADPCM the ADPCM data given below to the data of P.29. LSI, and check that a 1.5Vp-p sine wave is output from DAOUT. If the waveform is 1.5Vp-p sine wave, 476 OKI Semiconductor MSM6258/MSM6258V Waveform of output from DAOUT Waveform of output from DAOUT (\ (\ (\ (\ (\ (\ (\ 'I 1/2 VDJ I ·vvf\V(\\TV •• VlJlJ V Vv · 1 5V DIC (I) WR (I) ~T-----u-- RD (I) u--u •;, LI MCK(Ol---~ DO - D7 (1/0) ;' Record t STOP START Command (a) Recording timing RD (I) "H" MCK (0) ----~ DO - 07 (1/0) _ _,-----,_ _,-'--_,---'-"_,-----,_,--'----- START ;' t STOP Play Command (b) Playback liming Figure 22 477 MSM6258/MSM6258V OKI Semiconductor CIRCUIT EXAMPLES • Figure 23 shows an example of inter- • Figure 30 shows an example of inter- face with 64K SRAM. facewithMSM5840A whenMSM6258, masked ROM, and SRAM used for • Figure 24 shows an example of inter- fixed and variable messages. face with 256K SRAM. • Figure 31 shows an example of a cir- • Figure 25 shows an example of inter- cuit when MSM6258, masked ROM, face with 256K SRAM. and DRAM, and SRAM are used for fixed and variable messages. • Figure 26 shows an example of inter- face with 256K DRAM. • Figure 32 shows an example of inter- facewithMSM80C85whenMSM6258, • Figure 27 shows an example of inter- is used in CPU interface. face with lM DRAM. • Figure 33 shows an example of a mute • Figure 28 shows an example of inter- circuit used for recording with face with 256K EPROM. MSM6258. • Figure 29 shows an example of inter- • Figure 34 shows an example of a voice- face with 512K EPROM. triggered starting circuit for the CPU interface with MSM6258. 478 OKI Semiconductor MSM6258/MSM6258V AO 07 2 DO ~>--~~~~~-+~~~~~~~-+~~~ DAOUT Figure 23 Application Note for 64K SRAM MSM6258/MSM6258V OKI Semiconductor Figure 24 Application Note for 256K SRAM 480 OK.I Semiconductor MSM6258/MSM6258V GND G2 VDO ;:Ii Y15 G1 ~ ( VR A18 ~ ( MIC A17 ~ Y1 A16 Vii A15 VI A14 ( AO 07 ( DO "' lil "' ~ ~ :::;; "' :; DAO UT Figure 25 Application Note for 256K SRAM (Use 16 pcs) 481 MSM6258/MSM6258V OKI Semiconductor RAS WE A9 AS A7 ( AO D7 ( D4 ,,, "' D3 co U'l ,,,"' ( U'l :; :; DO DAOUT Figure 26 Application Note for 256K DRAM 482 OKI Semiconductor MSM6258/MSM6258V RAS WE A9 A8 A7 ( AO 07 ( 04 "'"' "'i:'1 03 "' ( ::;: "'::;: DO DAOUT Figure 27 Application Note for 1M-bit DRAM 483 MSM6258/MSM6258V OKI Semiconductor VDD GND G2 VDD PLAYM ;:g Y15 VR RECM G1 ~ ( ( c ::;;~ YT A18 D VI A17 A16 B A15 A A14 REC/POO ~ ST•SP ( ~ PAUSE AO AC 07 tJ) ~ "'eo"' ( VOS "' a:a:a: tl .___....--. 8 VDD 1-< ~~i~ ~;i!~i~~i~~,=~))) MPUI---< MICl F 'R_~XT VR !---< ~~v1 ll 1 Figure 32 Example of Interface with MSM80C85 488 OKI Semiconductor MSM6258/MSM6258V MSM4007 AMP DAO UT MSM6258GS REC/PLAY MSM4069 L Figure 33 Example of Mute Circuit for Recording AMP MSM6258 VI DO-D7 Figure 34 Voice-Triggered Starting Circuit for CPU Interface 489 OK.I Semiconductor MSM6310 PCM RECORDING & PLAYBACK LSI GENERAL DESCRIPTION The MSM6310 is a PCM recording & playback three units. The first one is an input unit LSI which is manufactured using Oki's low which consists of line amplifier, low pass filter power CMOS silicon gate technology. The and 8-bit AD converter. The second one is an MSM6310 is designed for the purpose of output unit which consists of 8-bit DA con- endless loop recording by 8-bit PCM. verter and low pass filter. The third one is a control unit for external DRAMs. The internal circuit is made up of following FEATURES • 8-bitPCM • Supply voltage: +5V (built-in 8-bit AD/DA converter) • Analog line input • External DRAM driving capability 256K, • Motor driving signal output 2pcs. • Recording/Playback period: *256K DRAM type ~ 256KW x 1 bit 4 sec (f5=4kHz, 1 x 256K DRAM) (MSM41256A) CAS before RAS 8 sec (f5 =4kHz, 1 x 256K DRAM refresh or f5 =8kHz, 2 x 256K DRAM) • Sampling frequency: 16 sec (f5 =4kHz, 2 x 256 K DRAM) 4 kHz (fosc=4.096 MHz) • 44 pin plastic QFP • Oscillation frequency: (QFP44-P-910-K) 4 to 8.2 MHz (nominally 4.096 MHz) 491 MSM6310 OKI Semiconductor PIN CONFIGURATION ~ ~ ~ le ti~ g~ 0. ~ IT: fi w r>< !:< "' 0 SGC Ci®: SG "CAS1 AIN 1UiS AMPO WI' DVDD DVDD' AO AVDD Al fll10 P'2. fll21 NC DAO :::: !!i '.;\' !:< ::I ~ z c 0 0 0 "' §; '-' z b "' "' BLOCK DIAGRAM DVDD AVDD DGND AGND DVDD' DO AIN LPF AMPO FIL11 FIL10 SGC SG DAO 8 bit DAC Fll21 01 AOUT AS A7 FCUTS A6 Afj FSS A4 DRAM A3 RAMS Timing P'2. Controller Al ST•SP Controller AO DELllITT AC WI' liAS XT GAS1 Ci®: Jrr MONI MOTOR VCK TEST 492 OK.I Semiconductor MSM6310 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings Parameter Symbol Conditions Value Unit Power supply voltage Voo Ta= 25°C -0.3 to 7.0 v Input voltage V1N Ta= 25°C -0.3 to Voo + 0.3 v Storage temperature range Tstg - -55to+150 oc Operating Range Parameter Symbol Conditions Value Unit Power supply voltage Voo DGND = AGND = OV +4.5 to +5.5 v Operating temperature range Top - -40 to 85 oc Oscillator frequency fosc - 4.0 to 8.2 MHz • DC Electrical Characteristics (DVDD=AVDD=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C) Parameter Symbol Conditions Min. Typ. Max. Unit High input voltage (Note 1) V1H1 - 3.6 - - v High input voltage (Note 2) V1H2 - 0.8xVoo - - v Low input voltage V1L - - - 0.8 v High output voltage VoH loH = -40pA 4.2 - - v Low output voltage VoL loL= 2mA - - 0.45 v High input current (Note 3) hH1 V1H= Voo 20 - 400 pA High input current (Note 4) l1H2 V1H= Voo - - 10 pA Low input current hL V1L= Vss -10 - - pA Output leak current ILO Vss ~ Vour ~ Voo -10 - 10 pA Operating consumed current loo fosc = 4.096MHz - - 10 mA DA output relative precision I VoAEI No load - - 40 mv AD conversion relative precision I VADE I - - - 40 mv Note 1: Applicable to the input terminal excluding the XT terminal. Note 2: Applicable to the XT terminal. Note 3: Applicable to the terminals (ST, SP, TEST1) with a pulldown resistance. Note 4: Applicable to the terminal without a pulldown resistance. 493 MSM6310 OKI Semiconductor • AC Electrical Characteristics fosc=4.096MHz, fs=8.0kHz, Voo=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°G Parameter Symbol Min. Typ. Max. Unit ST-SP pulse amplitude tSTP 35 - - ms When DEL/REP=L, time from start pulse input to the waveform lsRA 16 - 256 ms output from the AOUT terminal When DEUREP=L, time from start pulse input to the rising ISTM 16 - 35 ms edge of MOTOR terminal When DEUREP=L, non-sound time from stop pulse input to IMS - 256 - ms rising edge of MOTOR terminal When DEUREP=L, time from stop pulse input to MOTOR terminal ls PM 16 - 35 ms Time from strat pulse input to rising edge of MONI terminal lsMN 16 - 35 ms Time from strat pulse input to falling edge of MONI terminal IPMN 16 - 35 ms Under condition 2.2), time from start pulse input to time from lsMT 16 - 35 ms rising edge of MOTOR terminal Time from rising edge of DEUREP to falling edge of MOTOR to PM - 2 - µs terminal Time from falling edge of DEUREP to falling edge of MOTOR IRPM - 2 - µs terminal VGK H level amplitude, VGK L level amplitude tvH. tvL - 62.5 - µs Time from falling edge of MONI terminal to rising edge !ORM - 2 - µs ofDEUREP RAS pulse amplitude IRAS - 4.4 - µs GAS pulse amplitude tcAS - 3.9 - µs WE pulse amplitude lwE - 1.0 - µs RAS precharge time tRP - 0.5 - µs Time from rising edge of VGK to falling edge of RAS lvRP - 2.9 - µs Time from rising edge of VGK to falling edge of GAS tvcF - 4.9 - µs Time from rising edge of VGK to falling edge of WE tvwE - 6.8 - µs Note: All items are proportional to fosc. (If fosc is higher, the time is shorter.) 494 OKI Semiconductor MSM6310 FUNCTIONAL DESCRIPTION This description is based on the following { Sampling Frequency .... 8kHz conditions. DRAM(256K bit) .......... 2pcs Basic Operation 1. DEL/REP="L" ........ REPEAT mode 1) After power is turned on, ST pulse is output within 8 sec. Basic Operation Power ,ex approx. 10 ms - approx. 100 ms ------: ~ ' ' External reset --~ ~ Oscillation stabilization Oscillation~---- (4 MHz) f-- Recording ' AIN(I) ' AWaveform , , ; JlsTP ' ,. tsrP .,1' .. : ST pulse 1 SP pulse ST•SP (I) :.---- T (<8 sec) ~/-------~~ ' ' ' tsRA • AOUT (0) - - - - - - - - - - - + - - - ' \ : A' Waveform .. I A' Waveform _ts_M-1N.,~1•:,-:_--_- ------------ll--l~MN MONI (0) -----------..~ . .. 1 1,,. tsrM !L MOTOR (0) 49S MSM6310 OKI Semiconductor 2) After power is turned on, ST pulse is input 8 sec. later. AIN (I) A waveform , , ST pulse SP pulse ST-SP (I) ~ssec--n/ ~ : . L~Rsts, : ~~sec Bse~ j AOUT (0) ' ,--- ' ' MONI (0) MOTOR (0) 3) After inputting SP pulse, ST pulse is input within 8 sec. AIN(I)~ Awaveform : ST pulse i SP pulse i/ :/ ST•SP (I) -___,n .. T (<8 sec) .. n, · - - - - - - - - - - - - - - - - - 1---T---1 !Ms AOUT (0) A' waveform A' waveform MONI ( 0 ) - - - . MOTOR (0)--~ 4) After inputting SP pulse, ST pulse is input 8 sec. later. Same as 2). 496 OKI Semiconductor MSM6310 2. DEL/REP="H" ......... DELAY mode 1) After power is turned on, ST pulse is input within 8 sec. Power _ __,(ex approx. 10 ms - approx. 100 ms ~ , :4--- ' ' '' External reset _ ___, H--- Oscillation stabilization ' Oscillation ~---- ' l' Start waveform ~ r-n /ST pulse ST•SP (I) - - - - - . - :(~ . ; MONI (0) - - - - - - - - ' - - - 8 sec----! MOTOR (0) - - - - - - - - - - - - ' 2) After powe is turned on, ST pulse is input 8 sec. later. AIN(I) ST•SP(I)--------- !'A wa~e!~~ d._/_ST-pu-ls_e_ _---ln,_/_s_P_p_ul-se_ _ _ _ __ . AOUT(O) .......-..~ :~ Awaveform MONI ( 0 ) - - - - - - - - . I ,.tsMT 1 1 1-Bsec--+j MOTOR (0)-------~ 497 MSM6310 OKI Semiconductor 3) After SP pulse is input, ST pulse is input within 8 sec. AIN(I) ST pulse SP pulse ~ulse ST-SP (I) n~ n~ n ' T ' '' ' (< 8 sec) AOUT (0) MON! (0) MOTOR (0) Change Operation during DEL/REP 1. DEL/REP="L" ~ "H" .............. from REPEAT mode to DELAY mode 1) Change operation is activated after SP pulse (before ST pulse) DEUREP ( I ) - - - - - - - - ! I ST pulse ST pulse : ST pulse ST·SP(I)~/ ~T=fl.__I I ____ '' '' '' ' I ' ' :---T ~ 8 sec J ' I' ;........ T< 8 sec '------------+:-! ' MONl(O) I I Ci : : I I toPM : ' ·: 1· MOTOR (0) l~-~ Note 1: If Tis 8 sec. or longer, MOTOR rises at the same time when ST pulse is input. Note 2: If Tis 8 sec. or shorter, MOTOR rises 8 seconds after DEUREP is selected. 498 OKI Semiconductor MSM6310 2) Change operation is activated after ST pulse (before SP pulse) DEL/REP (I)--------~, S~ulse : .n. ---n r--r / ®9omes ST pulse ST SP(l)-----1 , , ~~.----- I• ,i--r 0 loRM.,!: T~Ssec < 8 sec r------'--1 '' ' MONI (0) - - - - - - 1 ' MOTOR (0) - - - - - - . Ci Note 1: If Tis 8 sec. or longer, MOTOR rises at the same time when ST pulse is input. Note 2: If Tis 8 sec. or shorter, MOTOR rises 8 seconds after DEi/REP is selected. 2. DEL/REP="L" -7 "H" .............. from REPEAT mode to DELAY mode 1) Change operation is activated after SP pulse (before ST pulse) DEUREP (I) ~s-r-P.u-1s_e ~n 'u1se ST ·SP (I) JlJl:-7 : :..-a , _ __,___ _ _ sec--..! .. MON! (0) ll____~i---.-..,-----! MOTOR (0) -------.....;u :-.~ 499 MSM6310 OKI Semiconductor 2) Change operation is activated after ST pulse (before SP pulse) DEUREP (I)-------~ ST P.Ulse n 7mes ST pulse ST ·SP (I) --fl-/-----;------'· · '' MONl(O)__J MOTOR (0) 500 OKI Semiconductor MSM6310 DRAM DRIVING TIMING MSM6310 performs read/write and GAS before RAS refresh of voice data with the above timing (hidden refresh cycle). 501 MSM6310 OKI Semiconductor PIN DESCRIPTION Pin symbol Pin No. Function Ao 40 Address outputs to the DRAM. A1 41 A2 42 Aa 43 A4 1 As 2 As 3 A1 4 As 5 AIN 20 Analog input terminal. The external line level source, microphone, tape or similar is connected to this pin via adequate signal coupling circuits, that are matched to the pick up. AMPO 19 The output of the input amplifier, which is usually bonded to FIL 1 I. The direct access input to the internal low-pass filer. In case of external audio FIL1T 18 amplifier this is the input for the analog source. Usually, FIL 1 I is bonded to AMPO. FIL10 15 The output of the internal low-pass filter and at the same time the input of the internal ADC. Usually, this pin is left open. DO 9 The serial data output to the data input of the external DRAMs. DI 8 The serial data input from the data output of the external DRAMs. DAO 12 The output of the internal DAC, which is usually bonded to FIL21, when the internal filter is used. FIL21 14 The input of the internal playback LPF, receiving the signal from DAO. AOUT 13 This is the terminal that provides the actual output of the regenerated analog waveform. The signal presented has passed the low-pass filter and is buffered. FSS 26 On this input, the sampling frequency is selectable: H=fosc/512, L=fosc/1024. RAMS 27 The level to this input informs the chip how many pieces of DRAM devices are externally connected. H=1, L=2. ST•SP 30 When this chatter-free input receives a H pulse, the LSI starts replaying or stops the reproduction of the recorded analog source. This operation can be cancelled any time with another pulse to ST•SP. The input is internally pulled down. The LSI recognizes which is a START and which is a STOP pulse. DEUREP 29 On this input the playback modes, delayed or repeated, are determined: H-delayed, L=repeated. AC 33 The "all clear" input When receiving H level, the internal circuitry is reset. Auto- reset is acUvated when jl_Ower is engaged. See ~lication circuit. XT 31 The crystal connector input. In case of external supply, the source is input here. XT 32 The crystal connector output. It is to be left open, when the clock is supplied from external. 502 OKI Semiconductor MSM6310 PIN DESCRIPTION Pin symbol Pin No. Function WE 38 This output provides the write enable signal to the DRAMs in the recording mode. RAS 37 The row address strobe signal to the DRAMS. CAS1 36 The column address strobe signal to DRAM #1. CAS2 35 The column address strobe signal to DRAM #2. MONI 7 Between the interval of two pulses to ST•SP (start and stop instructions), this output goes to H. When connected to a buffer and a LED, the active state of the LSI can be optically displayed. MOTOR 6 This signal output can be used to control a tape motor or equivalent equipment controls. VCK 10 The selected sampling frequency is output here eventual peripheral controlling purposes. FCUTS 28 On this input the cut-off frequency of the LPF is selectable. TEST1 25 This is an input used exclusively for factory testing and must be grounded to DGND in applications. The input is internally pulled down. AVDD 16 The analog supply voltage input, nominally + 5 Volts DC. DVDD 39 The digital supply voltage input, nominally + 5 Volts DC. DVDD' 17 This pin must not be drained to feed successive circuits. It can be bonded to DVDD (#39) AGND 23 Analog ground terminal, nominally OVolts. DGND 24 Digital ground terminal, nominally OVolts. SG 21 Signal ground output providing about VDD/2 level. Connect a capacitor of 47µF across SG and AGND. SGC 22 Signal ground control input. To stabilize the signal ground, connect a capacitor of> 1OµF across SGC and AGND. NC 11,34,44 These pins must be left open. Do not wire to power sources, ground or signal lines. 503 MSM6310 OKI Semiconductor FUNCTIONAL DESCRIPTION LSI operation takes place in basically two analog data (for the time the memory offers modes, one is the DELAY mode, the other at the selected bit-rate), is repeated again the REPEAT mode, selectable on terminal and again until stopped intentionally. DEL/REP. Themodescannotbereferred to as RECORD and PLAYBACKmodes as such, The delay mode denotes that after every since both recording & playback occurs in recording (for the time the memory offers at the two modes. the selected bit-rate), the recorded contents is replayed until another recording com- The repeat mode denotes that recording of mences. So, the subsequent recording is "delayed". THE REPEAT MODE When applying power or switching over pulse for the replay of the memory contents. from DELAY to REPEAT, the LSI automati- Here, we are talking about the last actual cally converts the connected analog input to recording, or rather re-recording. The re- PCM data and storesitin the external DRAM. playof thatrecordingis stopped with another When the analog input presence exceeds the pulse to ST•SP. When ST•SP is not served available memory, the DRAM is rewritten with a pulse after the memory time has from the beginning while the old contents elapsed, the replay is repeated until the are erased, and so on. The output MOTOR pulse is applied. During replay the MOTOR issues a H level during recording. output issues L. When a H active pulse is applied to ST•SP, Right after that pulse to ST•SP, the LSI the LSiautomaticallyinterpretsit as a START changes the mode from replay back to re- cordings as described above. THE DELAY MODE When applying power or switching over minal AOUT. During this continuous change from REPEAT to DELAY, the DRAM between recording and playback the output changes its read/write mode. The LSI then MOTOR issues a H level. reads out old data and writes new data, thus the address count up is controlled. The procedures tarts with a H active pulse to ST•SP and MOTOR goes H. The operation Consequently, the analog data on AIN is is stopped with another pulse to the same recorded and played back immediately af- pin .. Then MOTOR changes from H to Land ter the memory time has elapsed. The repro- AOUT goes to VDD /2 level. duced data is available on terminal on ter- THE SAMPLING FREQUENCY Nominally, the sampling frequencies are 4 for a clock ranging from 4.0 to 8.2 MHz. and 8 kHz resulting in a bit rate of 32 kbit/ When the input FSS is L, the divisor is f05c/ sand 64 kbit/ s, respectively. Since the sam- 512, when H, f05c/1024. Practically, the pling frequencies are submultiples of the available sampling range is from 3.9 kHz to clock frequency, other than the nominal 16 kHz. values can be adjusted. The LSI is specified 504 OKI Semiconductor MSM6310 RECORDING & PLAYBACK TIMES The available time is determined by the quency selected: memory capacity /bit-rate. memory capacity and the sampling fre- RAMS FSS=H FSS=L L 8.2 sec 16.4 sec H 4.1 sec 8.2 sec Where f5 is the sampling frequency and the bit number is 8. EXTERNAL SOLUTIONS For maximum application convenience, the internal portions can be by-passed to favor MSM6310 provides the user with internal external solutions if desired. This applies to analog circuits to prepare the source signal, the amplifier or the low-pass filter or both. amplifier and low-pass filter. However, the The internal converters cannot be omitted. SIGNAL GROUND For the analog signal processing, the LSI mately VDD /2. This level is stabilized by contains a signal ground generation circuit two capacitors connected to the inputs SG providing a signal ground, SG, at approxi- and SGC (Signal ground control). NOISE IMMUNITY It is strictly recommended to make use of the expressed by a value. The limited repertoire individual power supply inputs and of the ADC provides a vertical resolution of grounds. 8 bits, i.e., 256 numbers. At quantization intervals, equal to the intervals between two Carefully separate analog and digital lines adjacent digital values, inaccuracies result and bond them together at a carefully cho- through the limitation of available sen system point. Avoid the proximity of values ... the source of quantization noise. the LSI to high speed digital systems. Also An 8-bit ADC is as accurate as 20mV analog connect a by-pass capacitor across DVDD intervals. and DGND in close proximity to the LSI and other integrated active devices, including In order to minimize the noise, the use of memories. low pass filters is inevitable and OKI has designed-in a filter with optimum charac- Quantization noise is conditioned by the teristics that suited to efficient reduction of AD-converter. Through the digitalization the conversion-conditioned noise and to of the analog signal, every sampling point is smooth the output waveform. 505 MSM6310 OKI Semiconductor THE LPF CUT-OFF FREQUENCY & ATTENUATION Like the sampling frequency, also the cut- When the nominal value is selected (4.096 off frequency of the internal low-pass filter MHz), the filter cuts off as the following changes as the oscillation frequency changes. table shows: Sampling Frequency FCUTS= H FCUTS= L 4.0kHz 2200Hz 1700Hz 8.0 kHz 3600Hz 2700Hz The attenuation characteristic of the internal LPF is reflected by the table below: Band Width Frequency Attenuation Unit Min. Typ. Max. 300-3400 Hz -3 - +3 dB 4000Hz - - -3 dB 7500Hz - - -25 dB Measured at 18 = 8 kHz, VDD = 4.5-5.5V, Ta= 25°C, FCUTS = "L" AMPLIFIER CHARACTERISTICS AMPO maximum DC gain ......... .40 dB AMPO minimum drive impedance ......... 2ookn AOUT minimum drive impedance ........... sokn 506 OKI Semiconductor MSM6310 APPLICATION CIRCUIT 507 OK.I SeITliconductor MSM6388 ADPCM SOLID STATE RECORDER GENERAL DESCRIPTION The MSM6388 is a "solid-state recorder" LSI voice registers for ADPCM data storage are developed using ADPCM (Adaptive Differ- connected to the MSM6388, it can be used to ential Pulse Code Modulation) technology. record and play back voice or other sounds in When an external microphone, speaker driv- a manner similar to that of a tape recorder. ing amplifier, and OKI' s original lM-bit serial FEATURES • 4bit ADPCM registers are connected, one, two, four or • Built-in 12bit A/D converter eight phrases can be selected. When • Built-in 12bit DI A converter three serial voice registers are connected, • Built-in microphone pre-amplifier one, two, three, or six phrases can be • Built-in low pass filter (Attenuation selected. characteristics -40dB/ oct) For the maximum recording time of each • Serial voice register channel, the time divided by the number lMbit serial voice register (MSM6389): of phrases shall be assigned. Direct drive for 4 serial voice registers 512Kbit serial voice register (MSM6587): (WHEN INTERFACED WITH A MICRO- Direct drive for 1 serial voice register CONTROLLER) 256Kbit serial voice register (MSM6586): Direct drive for 1 serial voice register • Oscillator frequency: • Serial Voice ROMs l.5MHz - 4MHz lMbit serial voice ROM (MSM6595-XXX) (when a serial voice register is used) 2Mbit serial voice ROM (MSM6596-XXX) 1.5MHz- 8MHz 3Mbit serial voice ROM (MSM6597-XXX) (when other memories are used) • Maximum recording time: 262 seconds • Sampling frequencies: (when the sampling frequency is 4.0kHz) 3.2kHz -16kHz • Power supply voltage: 5 V only (when a serial voice register is used) • 44pinV1 plastic QFP (QFP44-P-910-V1K) 2.9kHz - 32kHz (when the other memories are used) (WHEN USED AS A STANDALONE LSI) 2.6, 2.9, 3.3, 5.2, 5.9, 6.7kHz (when the oscillator operates at 1.SMHz) • Oscillator frequency: 3.5, 3.9, 4.5, 6.9, 7.8, 8.9kHz 1.5MHz - 4MHz (when the oscillator operates at 2.0MHz) • Sampling frequencies: 6.9, 7.8, 8.9, 13.9, 15.6, 17.8kHz 5.2, 5.9, 6.7kHz (when the oscillator operates at 4.0MHz) (when the oscillator operates at 1.SMHz) • Number of phrases to be recorded 3.9, 6.9, 7.8, 8.9 kHz To be controlled externally (when the oscillator operates at 2.0MHz) The maximum recording time at each 7.8, 13.9, 15.6kHz channel can be set freely. (when the oscillator operates at4.0MHz) • 44 pin Vl plastic QFP (QFP44-P-910- • Number of phrases to be recorded V1K) When one, two, or four serial voice 509 MSM6388 OKI Semiconductor PIN LAYOUT • Stand-alone mode (MCUM pin = "L") 2 0.. __, CN :; Cl Cl z z(!> ~ ::;) I~ I~ I~ I~ Cl (.) UJ UJ < Cf) 2 Cf) Cl < CS3 MIN CS4 MOUT XT SGC XT SG WE AVDD DVDD DVDD' DIN LIN DOUT LOUT RWCK AMON 2VCK FIN MON AOUT __, t:; < I~ ~ :; CN ~ CN 2 ci 0 < (.) (.) UJ Cf) UJ Cf) < < UJ I- 2 Cl (.) (.) Cf) Cf) '-' w a: • Microcontroller interface mode (MCUM pin "H") c.. ~ ::i Cl Cl z z I~ I§ (/) I~ I~ Cl UJ UJ <( ~ (/) (/) C!l C!l (/) (/) a: a: Cl <( 8 Ci ~ 8 Note: Leave the NC pin open. 510 0 :ii 0 c: ~ RSEL1 SAD =i """ Ul CD Address Controller c ~- RSEL2 SAS CSEL1 Address Serial TAS RWCK ~::D CSEL2 CA1 Controller Voice Register WE )> s: g. CA2 CA3 12 Address & Data 12 12 Controller CS1 CS2 CS3 .. '(j; I» ::::s [ Register CS4 c. I 12 I» ST•SP 0 MCUM ::::s Stop Address Register CD REC/PLAY 12 I» Timing 12 Data DIN "C SAM1 Controller Comparator 1/0 DOUT '2. SAM2 2VCK ..s· c;· I» MON AD PCM Analyzer /Synthesizer AVDD DVDD - ::::s XT XT g4 ~1 osc I 12 12 DVDD' AGND DGND PLAY! 12-blt 12-bit SG TEST REC ADC DAG Circuit MIN MOUT LIN LOUT AMON FIN AOUT DAO SG SGC s: en s: O> (}1 ...... ...... Ii 0 I I :a0 (J1 ...... N s:: Cb c: s:: g :1 :::j ~ RSEL1 RSEL2 Address Controller J 12 Address Counter 12 12 SAD SAS TAS c :;: C> m D3 Serial RWCK :a §.cu Voice )> WE D2 D1 DO l/F CHAN REG 3 4 Address & Data 4 Register Controller CS1 CS2 CS3 - s:: 3 c:r... Register CS4 0 g :I (') WR 12 RD SAMP REG n 12 ...... 0 ::::J Stop Address Register 2. ST•SP 12 12 Data DIN ... CD" MCUM PD Timing Comparator 1/0 DOUT ...5· CD CE Controller ;. (') 2VCK CD AD PCM ADP CM Cl) MON AVDD Analyzer Data "C /Synthesizer 1/0 DVDD "2. DVDD' c;· XT XT g_ ·1 osc I 12 12 AGND ...er Cl) LPF ~ 12-bit ADC I I DAG H I Circuit I 12-bit SG DGND !TEST I - ::::J ~ !ml Ul ([) 8. () 0 I I ::i MIN MOUT LIN LOUT AMON FIN AOUT DAO SG SGC g. ~ .... OKI Semiconductor MSM6388 ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings Item Symbol Conditions Rating Unit Power supply voltage VDD Ta= 25°C -0.3 - +7.0 v Input voltage V1N Ta= 25°C -0.3 - VDD +0.3 v Storage temperature Tstg - -55 - +150 oc • Operating Range Item Symbol Conditions Range Unit Power supply voltage VDD DGND = AGND = OV +3.5 - +5.5 v Operating temperature range Top - -40 - +85 oc Oscillator frequency fosc - 1.5 - 8 MHz • DC Current Characteristics (DVDD=AVDD=DVDD'=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C) Item Symbol Conditions Min. Typ. Max. Unit High input voltage (Note 1) V1H1 - 3.6 - - v High input voltage (Note 2) V1H2 - 0.8xVDD - - v Low input voltage (Note 1) V1u - - - 0.8 v Low input voltage (Note 2) V1L2 - - - 0.8 v High output voltage VoH loH = -40µA 4.2 - - v Low output voltage VoL loL= 2mA - - 0.45 v High input current (Note 3) l1H1 V1H= VDD - - 10 µA High input current (Note 2) iiH2 V1H= VDD - - 20 µA High input current (Note 4) l1H3 V1H= VDD 20 - 400 µA Low input current (Note 1) l1u V1L= GND -10 - - µA Low input current (Note 2) l1L2 V1L= GND -20 - - µA Operating current (1) loo fosc = 4.0MHz, without load - 5 10 mA Operating current (2) lpo At power down, without load - - 10 µA Note 1: Applies to the input pins excluding the XT pins. Note 2: Applies to the XT pin. Note 3: Applies to the pins not connected to pull-down resistors and excluding the XT pin. Note 4: Applies to the pins connected to pull-down resistors and excluding the XT pin. 513 MSM6388 OKI Semiconductor • Analog Characteristics (DVDD=AVDD=DVDD'=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C) Item Symbol Conditions Min. Typ. Max. Unit Relative DA output error I Vof!f I Under no load - - 10 mV DA output impedance RoAo - 12 20 28 kn Fin input voltage VFIN - 1 - VDD-1 v Fin input impedance RFIN - 1 - - Mn Operational amplifier open loop gain Gap f1N = 0 - 4kHz 40 - - dB Operational amplifier input impedance RINA - 1 - - Mn Operational amplifier load resistance RouTA - 200 - - kn AOUT load resistance RAOUT - 50 - - kn • A.C. Characteristics 1. Stand-alone Application (DVDD=AVDD=DVDD'=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C, fosc=2.048MHz, and fsam=8.0kHz) Item Symbol Min. Typ. Max. Unit ST ·SP pulse width * tsTP 70 - - ms MON clock output time during recording * tALW - 4 - s MON clock cycle during recording * lALC - 256 - ms Time before starting record or playback after * start pulse input tANA - 260 - ms Time required for AOUT/DAOUT output to reach * tDAR - 44 - ms 1/2 VDD from GND level Time required from the end of playback to * power down state tDAF - 128 - ms Time required for voice to be output again * IMS - 1 - ms during a repeated playback Note:* Duration of items with "*"is proportional to the cycle of the sampling frequency fsam. 514 OKI Semiconductor MSM6388 2. Microcontroller Interface Application (DVDD=AVDD=DVDD'=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C, fosc=2.048MHz, and fsam=8.0kHz) Item Symbol Min. Typ. Max. Unit PD pulse width tpp 2 - - µs Time from PD release to WR pulse input (Note 2) tPDW1 10 - - ms tpow2 2 - - µs RD pulse width tRR 200 - - ns CE setup and hold times to RD tcR 50 - - ns Time from RD fall to data valid toRE - 60 150 ns Time from RD rise to data float to RF - 40 90 ns WR pulse width tww 200 - - ns CE setup and hold times to WR tcw 50 - - ns Data setup time to WR rise tows 100 - - ns Data hold time to WR rise * towH 30 - - ns RD and WR disable time * to AW 250 - - ns 2VCK "H" level time * tvH - 125 - µs 2VCK "L" level time * tvL - 125 - µs MCK "H" level time * tMH - 62.5 - µs MCK "L" level time tML - 62.5 - µs Time required from 2VCK rise to MCK rise tvM - 23.4 - µs Time required from MCK rise to the rise of the * tRW1 250 - - ns first shot of RD and WR pulse Time required from MCK rise to the rise of the second shot of RD and WR pulse tRW2 - - 62.5 µs Note 1: * Duration of items marked with "*" is proportionate to the cycle of the sampling frequency fsam. Note 2: The oscillation stable time is added to tp 0w1. The oscillation stable time is a few tenths of a ms for crystal oscillators and is a few hundredths of a ms for ceramic oscillators. 515 MSM6388 OKI Semiconductor TIMING CHARTS • Standalone Application 1. Recording timing CSEL1 (I) CSEL2 CA1 CA2 (I) CA3 REC/PLAY (I) 7JlZlJ ST•SP (I) Start (Stop) XT,Xi ~ I Start of oscillation !--::: End of I uscillation 2VCK (0) ---------------------.JlJlfl.flJ1___ MON (0) Note: When the remaining capacity of available memory of the selected channels falls to 128K-bit (last four seconds) during recording, a 4Hz clock is output from the MON pin. (fsam=8kHz) 516 OKI Semiconductor MSM6388 2. Playback Timing CSEL1 (I) CSEL2 CA1 CA2 (I) CA3 REC/PLAY (I) XT,XT (0) 2VCK (0) c ns::o~oscillation ----rUUUUL________________________ _ - End of oscillation MON (0) Playback in progress SG LEVEL DAO (0) ' AOUT (0) ' GND LEVEL ' -----+-- -> IANA toAR to AF 517 MSM6388 OKI Semiconductor 3. Repetitive playback timing c: 0 o~ -o"Q c: ~ 0 tT1 ~ ::i 2VCK (0) .., @" f--. DATA1 can be f--. DATA2 can be f--. DATA3 can be f--. RD or WR can output. output. output. be input. ~0 WR (I) lf Ill ::i ,I 0.. RD DO~D3 (I) (1/0) ~ I 0--0 ~ 0 1 1 0 11 Q>------- C/l '0"" ~ () 0 s \_ Command DATA1 DATA2 DATA3 s Ill ::i Check the busy bit. 0.. "' 1. Before entering a command, check the busy bit of the status register to see that the busy state is not entered. 2. Then read DATA1 to DATA3 by the following ways: Make sure that the 2VCK pin goes high at least three times then enter a WR pulse to read DATA1. To read DATA2 or DATA3, make sure that the 2VCK pin goes high at least twice after the last RD pulse is input then input the next RD pulse. 3. After reading DATA3, make sure that the 2VCK pin goes high at least twice then input the next WR or RD pulse. a ~ ~- §' ~ ...~ :-:i ::r:: 0 ~ ..... ~ ~- 0 ~ 11) I» 2VCK (0) Q. 0 I» g- 6T n. MCK (0) (I) _ __===--=---------_J ::r 0 s Q WR RD (I) u I» Cll 11) .... [ ~ ;:;· D0-03 (1/0) 11) DTRD command ~\_Status ~ \_Status ~Read data 03. Contents of the status "'ro- .... register BUSY bit c ---- "'s· ()Q DTMNblt I» ~ ~ 0 () 0 1. Enter the exeternal serial voice register address from which data is to be read using the STWR or SPWR command.(The address s to be entered may be duplicated.) s I» ~ 2. Enter a DTRD command. Q. 3. To read the contents of the serial voice register, enter an RD signal each time a leading edge is detected at the MCK pin. I 4. After the last data is fetched, confirm that 2VCK has risen, and input the next WR pulse or RD pulse. s:: "'s:: ~ (J.) i Ul ~ ?" 3:: en 3:: ~ ~ 0 i :E ::i. 2VCK (0) ro- 257 o l» EJ MCK (0)--------------~ s· WR (I)--- 0 l» RD (I) ~ E < 0 DO-D3 (1/0) ;:;· ro DTWR command \_status Contents of the status ~\____Status C Write data Need not be input E u;· register ~ BUSY btt c::: "'s· OQ DTMN bit l» ~ :;;:I I ~ 1. Enter the exeternal serial voice register address into which data is to be written using the STWR or SPWR command.(The address n to be entered may be duplicated.) 2. Enter a DTWR command. ::s ~ 3. To write data into the serial voice register, enter WR and RD signals each time a leading edge is detected at the MCK pin. 0.. 8. 4. After the last data is fetched, confirm that 2VCK has risen, and input the next WR pulse or RD pulse. § g. § ~ IQ ::r:: ....~ 0 en ~ CD 0 8. :::51 Sl> 8 a. ~ 2VCK (0) Sl> (') )';"' c::: Q MCK (0) -------~ "'::r OQ WR (I) Sl> ::i t!'j RD (I) ""O r > -< D0-03 (1/0) n 0 3 ~~ NOP command 3Sl> \=: ADPCM data ::i 0.. AOUT (0) --------~ I SG level 1. Enter an EPLAY command. 2. Enter a WR signal, ADPCM data, and a NOP command each time a leading edge is detected at the MCK pin. 3. To stop playback, enter a STOP command after ADPCM data input. ~ 4. After the STOP command is input, confirm that 2VCK has risen, and input the next RD or WR pulse. "' ~ (JI ~ i {J1 N ...... ~ s:: I (b °' s:: :::c 0 ::E ..... 0 Ii 2VCK (0) ~ () ..., 0 0.. c::: MCK (O)------~ "'5· OQ WR (I) lll ::i tTi RD (I) ~ tTi () () 0 D0-03 (110) !3 !3 ~""----NOP command lll ::i \=. ADPCM data 0.. ---------<(-- During recording )>---- 1. Enter an EREC command. 2. Enter RD and WR signals, read ADPCM data, and enter a NOP command each time a leading edge is ~ detected at the MCK pin. ~ 3. To stop recording, enter a STOP command after ADPCM data is read. 8. 4. After the STOP command is input, confirm that 2VCK has risen, and input the next RD or WR pulse. § @- ~ OKI Semiconductor MSM6388 11. How to enter WR and RD signals in one sampling cycle when a DTRD, DTWR, EPLAY, or EREC command is used 527 Ul ...... N cy:, !'l :!C (b ~ :!C "' .... ..... "'::30.. I {fl 0 "Cl 0 '"" '"-::! ;- WR (I) a. "'~ cr"' '< {fl § n Address control ~ Under record or playback "'5. I j. max 32ms .j "'5. ~ Internal status DO (BUSY) I '"-::! 01 (RPMNT) n ~ 0 Time in the figure is @samp=8kHz time. ~ "'0.. ::3 en ([) I OKI Semiconductor MSM6388 13. Power down, reset timing VDD PD (I) WR (I) RD (I) Power down Under operation Under operation Power-down state occurs by inputting "H" until the VDD voltage is stabilized. For level to PD pin and at the same time, the instance, after power is put on as illustrated control circuit is reset. However, this is not below, the "H" edge is generated at WR pin a forced reset pin, but is invalid during and then the commands of the contents for performing DTRD and DTWR commands, D0-D3 pins are executed. At this time, if a and during recording and playback. START command or the DTRD and DTWR commands are carried out, the reset by PD After power-on, input "H'' level to PD pin pin becomes impossible. VDD DO-D3 (1/0) ~ • I WR (I) PD (I) 11L11 I Command is executed. 529 MSM6388 OKI Semiconductor FUNCTION OF PINS • Pins for Both Stand-alone and Microcontroller Interface Application Pin Name 1/0 Function DVDD - Digital power supply pin AVDD - Analog power supply pin DVDD' - Power supply pin DGND - Digital ground pin AGND - Analog ground pin SGC 0 Outputs the reference voltage (signal ground (SG)) of the analog SG circuit. A capacitor is connected between this pin and the GND pin to stabilize the voltage. MIN I Input pin that inverts the input to the built-in operational amplifier. LIN Non-inverted pins are connected to the SG internally. MOUT 0 MOUT is an output pin of the built-in operational amplifier LOUT corresponding to the MIN input pin. The LOUT output pin corresponds to the LIN input pin. AMON 0 Connected to the LOUT pin during recording and to the DA converter output pin during playback. Connect to the FIN input pin of the built-in amplifier. FIN I Input pin ot the built-in low-pass filter AOUT 0 Analog voice output pin DAO 0 Output pin of the built-in 12-bit DA conveter SAD 0 (Serial Address Data) Connected to the SAD pin of the serial voice register to output the first address for read/write operation. SAS 0 (Serial Address Strobe) Clock pin connected to the SAS pin of the serial voice register to write serial addresses 'fAS 0 (Transfer Address Strobe) Connected to the TAS pin of the serial voice register. The TAS pin sets serial addresses to the internal address counter of the serial voice register. RWCK 0 (Read/Write Clock) Clock terminal connected to the RWCK pin of the serial voice register to read data from and write it into the serial voice register WE 0 (Write Enable) Output pin connected to the WE pin of the serial voice register to select the write or read mode DIN 0 (Data Input) Connected to the DIN pin of the serial voice register to outputwrite data 530 OKI Semiconductor MSM6388 Pin Name 1/0 Function DOUT I (Data Output) Connected to the DOUT pin of the serial voice register to fetch read data. When used at stand-alone mode, insert a pull-down register of about 100kQ between DOUT pin and GND. CS1 0 (Chip Select) Connected to the CS pin of the serial voice register CS2 CS3 CS4 MCUM I Determines whether the LSI is used in stand-alone mode or connected to a microcontroller interface. High level: Connected to a microcontroller interface Low level: Used as a stand-alone LSI RSEL1 I (Register Select) Selects the number of serial voice registers. For RSEL2 details, see Explanation of Functions described later. 2VCK 0 Outputs a clock at a frequency half the sampling frequency. Used as a synchronizing clock when the LSI is connected to a microcontroller interface. XT I Connected to the resonator. When an external clock is used, clock pulses are supplied through this pin. When the power goes down, it is set to the ground level. XT 0 Connected to the resonator. When an external clock is used, it must be left open. TEST I LSI test pin. Connected to a pull-down resistor in the LSI. This pin must be set at the low level. 531 MSM6388 OKI Semiconductor • Stand-alone Application Pin Name 1/0 Function CSEL1 I Selects the number of phrases to be recorded. For details. see CSEL2 Explanaiton of Functions described later. CA1 I Specifies a channel. For details, see Explanation of Functions described CA2 later. CA3 SAM1 I Sample frequency selection. The relationships between the oscillator SAM2 frequency (fosc) and the sampling frequency (fsam) are as follows (the frequencies in parentheses are measured at fosc=2.048MHz): SAM2 L L H H SAM1 L H L H fsam fosc fosc fosc fosc - 512 288 256 224 (4.0kHz) (7.1 kHz) (8.0kHz) (9.1kHz) REC/PLAY I Selects the recording mode when the input is at the high level or the playback mode when it is at the low level. ST-SP I Allows the starting or ending of recording or playback to be commanded by inputting a high pulse. It also allows repetitive playback when the high level is maintained during playback. MON 0 Set at the low level during recording or playback. When the remaining memory capacity of the channel is almost full, this pin outputs a clock. 532 OKI Semiconductor MSM6388 • Microcontroller Interface Application Pin Name 1/0 Function D3 1/0 Connects to a bidirectional data bus to transfer data and commands D2 to and from an external microcontroller. D1 DO WR I Write pulse input pin to write commands or data RD I Read pulse input pin to read status or data PD I When a high Power Down is input, the LSI enters the power down state. CE I When a high Chip Enable is input, the write pulse WR and read pulse RD cannot be accepted and pins DO to D3 go high impedance. MCK 0 Outputs a synchronizing clock when ADPCM data is tranferred directly to and from a microcontroller by an EREC or EPLAY command or when data is transferred directly between a microcontroller and serial registers by a DTWR or DTRD command. ST•SP I Not used. Since it is connected to a pull-down resistor in the LSI, it must be set at the low level. 533 MSM6388 OKI Semiconductor EXPLANATION OF FUNCITONS • Analog input amplifier circuit • Recording time and memory The LSI described in this manual has two capacity operational amplifiers configured as a mi- crophone preamplifier. The LSI is provided The recording time depends on the capacity with pins for inverted input and output of of the external serial voice register, sam- each amplifier. pling frequency, and ADPCM bit length. The relationship between these factors is The nonin verted input pins are connected to represented by the following expression: the signal ground (SG) used as the analog circuit reference voltage in the LSI. For Recording = 1.024 x memory capacity (K-bit)(S) amplification, an inverted amplifier circuit time 4(kHz) x 4(bit) is formed. The gain of the amplifier can be adjusted by an external resistor. • Connection of the low-pass filter The LSI incorporates a fourth-order low- circuit periphery pass filter employing switched capacitor fil- ter technology. Input is provided to the low- In the LSI, the amplifier circuit from the pass filter through the FIN pin. Therefore, LOUT pin is connected to the AMON pin. the AMON pin is connected to the FIN pin During playback, the DI A converter output directly. from DAO pin is connected to the AMON pin. LOUT AMON FIN AOUT DAO AD DA CONVERTER CONVERTER 12 12 To the ADPCM From the ADPCM analysis circuit composite circuit 534 OKI Semiconductor MSM6388 • LPF characteristics The cutoff frequency is about 3.2kHz when the sampling frequency is 8kHz. The LPF attentuation characteristics of this LSI are about -40dB I oct, and the cutoff fre- The LPF frequency characteristics are shown quency and frequency characteristics vary below. in proportion to the sampling frequency (fsam). Gain 20 [dB] 10 0 -10 l\ I\ -20 I\ -30 -40 -50 -60 v-- -70 -80 100 1k 10k Frequenry [Hz) LPF Frequency Characteristics (fsam=S.OkHz) • Analog (voice) output The amplitude of the built-in 12bit DI A converter output, provided from the DAO During playback this signal is output from pin, is a maximum of 4095/4096 x VDD. the AOUT pin. Connect the output to a When not using the built-in low-pass filter, speaker through a power amplifier suitable connect it to the DAO pin. for driving speakers of from 4 to 16Q im- pedance. 535 MSM6388 OKI Semiconductor • How to connect the oscillator For reference, when the ceramic oscillator manufactured by KYOCERA or Murata The ceramic oscillator or c~tal oscillator Seisakusho is connected, the optimum load are connected to the XT and XT terminals as capacity value is as shown below. shown below. MSM6388 Rt XT D C1 I I C2 Optimum load Feedback Ceramic oscillator capacity value resistance Frequency Model Name C1(PF) C2(PF) R1(Q) (Hz) CSA 1.SOOMK 1.SM Murata CSA 2.00MG 2.0M 30 30 (1M) Seisakusho CSA4.00MG 4.0M CSA8.00MT 8.0M KBR 2.0MS 2.0M KYOCERA KBR 4.0MS 4.0M 33 33 - KBR 8.0MS 8.0M 536 OKI Semiconductor MSM6388 • Battery back up of the 1M serial supply voltage and battery voltage due to voice registers the drop of the diode forward voltage. When backing up the lM serial voice regis- The non-volatile battery backup circuit has ter, back up MSM6388 at the same time. the following conditions: When backing up only a lM serial voice register, the bootstrap function works and (1) When the VDD supply voltage is cannot be played back when the power sup- dropped, the H level of the input sig- ply is turned on. nal must not exceed VDD +0.3V. An example of the circuit that obtains VDD (2) VDD at the time of backup must be in supply power is shown below. In this case, the range of 3.5 to 5.SV. VDD and VDD at back up is about respec- tively 0.7V lower than the system power VDD power supply System VDD vcc power supply + MSM MSM - 6388 6389 r I Battery Figure: Example of Battery Backup Circuits of MSM6388 and MSM6389 • Battery driving For the current capacity, assume a 3 SUM Mn dry cell battery (R6P), and the capacity An example of the estimated battery life up to the drop of the voltage to l.2V of about when a +4.SV power supply is operated by 600 mAhrs. When the section consuming serially connecting four MSM6389's, current in Circuit Diagram 1 is divided into MSM6388, speaker driver, and speaker (ex- the MSM6388, four MSM6389's, amplifier, ample of application circuit and circuit dia- and speaker, the current consumed in each gram 1) with three dry cell batteries is shown section is as shown in the table below, corre- below. sponding to each operation mode. Operation mode Circuit At data At recording At playback retention MSM6388 5mA 5mA - MSM6389 (four) 1mA 1mA 30µA x 4 = 120µA Amplifier, speaker - 20mA - Total 6mA 26mA 0.12mA 537 MSM6388 OKI Semiconductor When the recording time per day is 4 min- The total consumption per day is 3.3 mAhrs. utes, playback time 4 minutes, and the data In other words, if a battery of 600 mAhrs is retention time is 10 hours as the standard used for the capacity,a service life of 600 time, the current consumption per day is: mAhrs/3.3 mAhrs = 180 days is provided. The battery can be used for six months with- At recording: out replacement. . 6mA x __i_ = 0.4mAhrs At playback: 60 • Power supply wiring 26mA x__i_ = 1.73mAhrs At data retention: 60 Supply the power supply of this LSI from 0.12mA x 10=1.2mAhrs the same power source as illustrated below, while separating the analog portion and logic portion in wiring. +SV MSM6388 DGND AGND If the analog portion and logic portion are power sources does not exceed ±3 volts or suppied from a separate power source, make latch-up may occur. sure the voltage difference between both Wrong Power supply for analog l Power supply for digital DVDD* + VDD AVDD +SV -rm DVDD VDD AVDD • Increasing Power supply smoothly within 20ms. If the voltages ofless than 20ms is provided or if by accident the The internal power-on reset circuit of voltage drops once during the increasing MSM6388 requires that the common supply period the MSM6388 may behave unpre- voltage to AVDD, DVDD, and DVDD' is dictable. increasedfromO to +3.5V exponentially and 538 OKI Semiconductor MSM6388 • Power OFF/ON instant of a new power ON. Also, this measure accounts for the nature During an interval between a power OFF of the internal power-on reset cir- and a subsequent power ON, the level on cuit. VDD input must be less than O.OSV at the 539 MSM6388 OKI Semiconductor • Operations in the standalone lower current consumption. application 2. Oscillator frequency and sampling fre- 1. Power down function quency When the LSI is not recording or playing The oscillator frequency fosc can be used back data, the power down function is en- between 1.SMHZ and 4MHZ. The sampling abled and oscillation is stopped. At power frequency (fsam) is related to the oscillator down when an external clock is used, be frequency as follows, according to the set- sure to set the XT pin to the ground level to tings of the SAMl and SAM2 pins: SAM2 L L H H SAM1 L H L H fosc fosc fosc fosc fsam 512 288 256 224 (4.0kHz) (7.1kHz) (8.0kHz) (9.1kHZ) Note: Sampling frequencies in parentheses are measured at an oscillator frequency of 2.048 MHz. If the sampling frequency during playback 7.lkHz: Slow playback is varied from fsam during recording, fast 9.lkHz: Fast playback and slow playback are possible. In this case, the sound level is also varied. 3. Use of channels Example: Set the RSELl and RSEL2 input pins accord- Sampling frequency during recording: ing to the number of 1Mbit serial voice 8.0kHz registers connected to the LSI (see the table Sampling frequency during playback: below). RSEL2 L L H H RSEL1 L H L H Number of 1 2 3 4 serial voice registers The number of the phrases to be recorded is 4, one-fourth of the entire memory capac- can be set to 1, 2, 4, or 8 according to the ity is assigned. (The memory capacity di- setting of the CSELl and CSEL2 input pins. vided and assigned to each channel is called (When three external serial voice registers the channel memory capacity.) are used, the phrase count can be set to 1, 2, 3, or 6.) Each channel memory capacity can be as- signed to a particular channel by the CAl, The memory capacity of the external serial CA2, and CA3 input pins. voice registers available to each channel equals the total available memory divided The relationships between the number of by the number of phrases being recorded. external serial voice registers used, the num- IE: When the phrase count is set to 8, for ber of phrases to be recorded, channels, and example, one-eighth of the entire memory channel memory capacities are shown in the capacity is assigned as the memory capacity following table. of each channel, and when the phrase count 540 OKI Semiconductor MSM6388 Number of phrases Channel Channel memory capacity (bit) CSEL CSEL 1,2, or 4 3 CA3 CA2 CA1 1,2, or 4 3 1 2 3 4 2 1 (Note1) (Note1) (Note1) (Note1) (Nole1) (Note1) (Note1) (Note1) L L L **chO chO L L H **ch1 ch1 L H L * ch2 ch2 L L 8 6 L H H * ch3 ch3 128K 256K 512K H L L ch4 ch4 (4 S) (8 s) (16 s) H L H ch5 ch5 H H L ch6 ch4 H H H ch7 ch5 L L **chO chO L H * ch1 ch1 256K 512K 1M L H 4 3 - H L ch2 ch2 (8 s) (16 s) (32 s) H H ch3 ch2 L * chO 512K 1M 1536K 2M H L 2 H - - (16 s) ch1 (32 s) (65 s) (50 s) H H 1 - - - chO 1M 2M 4M 3M J..32~ 165~ J..98~ J..131 ~ Note: The number of seconds in parentheses is a recording time measured at fsam=8.0kHz. The first 8Kbit of the serial voice registers are allocated as a channel index area. Therefore, the channel memory capacity of channel "O" is 8Kbit less than the value listed in the table above. 1) Number of external serial voice registers 2) When 512Kbit serial voice registers use, only can use(*) (**) mark channel 3) When 256Kbit serial voice regisrers use, only can use(**) mark channel Allocation for Channel and Channel Memory Capacity in Using 1 Piece of 1M-Bit Serial Voice Register. \hannel index area .<= .<= .<= .<= .<= .<= .<= CSEL2 CSEL1 § ~ ~ Ft ~ Ft ~ N ~ :±: L L 8-word ~ ChQ I (;h1 I (;h2 I Ch3 I Ch4 "" I Ch(i I Ch6 "' I Ch7 "'I g0 g g §J,._ § 8 N 2i co N .<= 8 "' "' .<= 8 ~ ~ ~ :±: "'I L H 4-word 0 ChQ I Ch1 I C~li2) I QdJD §~ § 8 N ~ ~ i± i± "'I H L 2-word ~ C'tlilD I Chl .<=.<= .<= §8 8 N ;e: .<= ~ 8 H H 1-word .<=.<= 8"" 08 Note: By the combination of CSEL1, CSEL2, CA1, CA2 and CA3, the circled channel memory capacities can be allocated as Ch0=16sec., Ch2=8 sec. and Ch3=8 sec. (@fsam=8kHz). 541 MSM6388 OKI Semiconductor 4. Recording recording duration is the time between these two pulses. Pull the REC/PLAY pin high. Then, select the number of the phrase to be recorded When recording is initiated by inputting a with the CSELl and CSEL2 input pins and pulse to the ST.SP pin, and continued until select a channel with the CAl to CA2 input the memory capacity of the specified chan- pins. nel is exhausted, recording is automatically terminated. To stop recording in the middle of a phrase, input a pulse to the ST.SP pin again. The During recording, the MON pin is low. Start pulse Stop pulse ST•SP (I) MON (0) Recording is in progress but stopped in the middle. I.. "I Channel memory capacity Start pulse ST•SP (I) MON (0) Recording is continued until the memory capacity of the channel is exhausted. Channel memory capacity Recording is automatically terminated. Note: As mentioned above, the memory capacity of the external serial registers is divided by the number of phrases and is assigned as the channel memory capacity. During recording, ADPCM data is written, starting from the first address of the memory of the specified channel. When recording is terminated in the middle of the channel memory capacity by a stop pulse, the subsequent memory area remains unused. Unused memory ~First address of the channel memory Recording time Channel memory capacity 542 OKI Semiconductor MSM6388 5. Alarm for remaining recording time recording time reaches the last four seconds, the MON pin outputs a 4Hz clock for the last When recording is initiated by inputting a seconds as an "out of available memory" pulse to the ST•SP pin and the available alarm. Start pulse ST·SP (I) MON (0) Last 4 s Recording time determined acbOrding to the channel memory capacity Note : During the last four seconds a clock frequency of 4 Hz described above is output. when the sampling frequency (fsam) of 8.0 kHz is selected. The duration of the alarm clock is proportional to the length of the cycle of the sampling frequency and the clock frequency is proportional to the sampling frequency used. 6. Playback input a pulse to the ST•SP pin again. Set the REC/PLAY pin low. Then, select the During playback, the MON pin is kept low. number of the phrase recorded with the CSEL1 and CSEL2 input pins and select a Do not start playback in channels not re- channel with theCAl toCA3inputpins. To corded because the playback data and time initiate playback, input a pulse to the ST•SP are undefined. pin. Playback is automatically stopped when the recording time is expired. However, playback under these conditions can be halted by a stop pulse. To stop playback in the middle of a phrase, Start pulse ST·SP (I) MON (0) Playback in progress (The playback time is same as the recording time.) Start pulse Stop pulse ST·SP (I) MON (0) Playback in progress Recording time 543 MSM6388 OKI Semiconductor Playback can be repeated by maintaining the ST•SP pin high. (Stop pulse) ST·SP (I) MON (0) I• First playback .. 1.. Second playback .. 1.. Third playback •I 7. Debounce circuit for the ST.SP pin contact bounce. Thedebounce time is 32 ms. Be sure to set the time during which the A debounce circuit functions to prevent the ST.SP pin is kept high for at least 70 ms. ST.SP pin from malfunctioning due to switch ST·SP (I) tcr loN tcr Chattering time tcr ~ 32ms High-level time tON ~ ?Oms The above chattering time tcr and high-level time toN are true when the sampling frequency fsam is 8 kHz. These times are proportional to the length of the sampling frequency fsam. 544 OKI Semiconductor MSM6388 • Operations in the microcontroller The MSM6388 LSI operations are controlled interface application by pins 2VCK, MCK, PD and 16 commands using pins DO to D3, WR and RD. 1. Explanation of Commands Code Command D D D D Function 3 2 1 0 NOP 0 0 0 0 (NON OPERATION) Has no particular function but is used during execution of a EPLAY or EREC command. INIT 0 0 0 1 (INITIALIZE) • Writes the last address of the external serial voice regisrers as the start and stop addresses of each of channels Oto 7 to set the channel memory in the unrecorded state. • Sets channel Oin the channel register. PLAY 0 0 1 0 (PLAY BACK) Set the playback mode. REC 0 0 1 1 (RECORD) Set the recording mode. START 0 1 0 0 (SIABI) Starts recording or playback. At the same time. it writes the start and stop addresses stored in the channel index area into the LSI. STOP 0 1 0 1 (SIO.e) Stops recording or playback. When this command is executed during recording, it stores the contents of the address counter at the stop time in the channel index area as the stop address. SAMP 0 1 1 0 (SAMPLING FREQUENCY) Specifies a sampling frequency together with the next nibble. CHAN 0 1 1 1 (CHANNEL) Specifies a channel together with the next nibble. STWR 1 0 0 0 (START ADDRESS WRITE) Stores the start address in the channel index area together with the next three nibbles. SPWR 1 0 0 1 (.S.TOE ADDRESS WRITE) Stores the stop address in the channel index area together with the next three nibbles. STRD 1 0 1 0 (.s.IART ADDRESS BEA.!2) Reads the start address stored in the channel index area through the next three read accesses. During this operation. the contents of the status register cannot be read. SPRD 1 0 1 1 @TOE ADDRESS BEA.Q) Reads the stop address stored in the channel index area through the next three read accesses. During this operation. the contents of the status register cannot be read. 545 MSM6388 OKI Semiconductor Code Command D D D D Function 3 2 1 0 DTRD 1 1 0 0 CQAIA BEAQ) Reads the contents of external serial voice registers 1K bit sequentially through the data bus on the specified timing. When this command is issued, the LSI enters the playback mode. DTWR 1 1 0 1 (QAIA WRITE) Writes data into external serial voice registers 1Kbit sequentially through the data bus on the specified timing. When this command is issued, the LSI enters the recording mode. EPLAY 1 1 1 0 (.E_XTERNAL PLAYBACK) Plays back ADPCM data while reading it from the data bus on the specified timing. When this command is issued, the LSI enters the playback mode. EREC 1 1 1 1 (.~XTERNAL RECORDS) Starts recording and outputs ADPCM data to the data bus on the specified timing. When this command is issued, the LSI enters the recording mode. • MSM6388 Commands First nibble Second nibble Third nibble Fourth nibble command command command command Command D D D D D D D D D D D D D D D D 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 NOP 0 0 0 0 INIT 0 0 0 1 PLAY 0 0 1 0 REC 0 0 1 1 START 0 1 0 0 STOP 0 1 0 1 SAMP 0 1 1 0 - S2 S1 so CHAN 0 1 1 1 - C2 C1 co STWR 1 0 0 0 A3 A2 A1 AO A7 A6 A5 A4 A11 A10 A9 A8 SPWR 1 0 0 1 A3 A2 A1 AO A7 A6 A5 A4 A11 A10 A9 A8 STRD 1 0 1 0 A3 A2 A1 AO A7 A6 A5 A4 A11 A10 A9 A8 SPRD 1 0 1 1 A3 A2 A1 AO A7 A6 A5 A4 A11 A10 A9 A8 DTRD 1 1 0 0 DTWR 1 1 0 1 Operates on the specified timing. EPLAY 1 1 1 0 EREC 1 1 1 1 546 OKI Semiconductor MSM6388 • Sampling frequency specification (SAMP command) S2 S1 so Sampling frequency 0 0 0 SAO fosc/576 (3.6kHz) 0 0 1 SA1 fosc/512 (4.0kHz) 0 1 0 SA2 fosc/448 (4.6kHz) 0 1 1 1 0 0 SA3 fosc/288 (7.1 kHz) 1 0 1 SA4 fosc/256 (8.0kHz) 1 1 0 SA5 fosc/224 (9.1kHz) 1 1 1 Note: Frequencies in parentheses are used when the oscillator frequency fosc is 2.048MHz. • Channel specification C2 C1 co Channel 0 0 0 ChO 0 0 1 Ch1 0 1 0 Ch2 0 1 1 Ch3 1 0 0 Ch4 1 0 1 Ch5 1 1 0 Ch6 1 1 1 Ch7 547 MSM6388 OKI Semiconductor • Start and stop addresses (STWR, and 007H is allocated as the channel index SPWR, STRD, and SPRD commands) area to store the start and stop addresses for each channel. The area starting from ad- The start and stop addresses used to control dress 008H can be used to store voice data recording time is managed by 12bit. The (ADPCM data). available memory capacity varies depend- ing on then umber of serial voice registers to When on use 512Kbit serial voice register, be connected externally. can use 008H - lFF address. Regardless of the number of serial voice When on use 256K serical voice register, can registers, the area between addresses OOOH use 008H-OFF address. Range of serial Channel index ares voice registers 1Kbit I• 12bit •I• 12bit •I• 1ooobit •I 512KbTs:ria~~~~ 1 voice register 1 j_ \--------' ' '' '' I OOOH 001H SPO SP1 STD ST1 Mbit Serial voice 512Kbit Serial 'I 002H SP2 ST2 register 1 register 1 'I I t I 003H SP3 ST3 3FFH ,____ _ _ _ __, '' '' Not used ' 004H SP4 ST4 '' 'I ' DOSH SP5 ST5 Mbit Serial voice '' I register 2 Voice data '. 006H SP6 ST6 t area 'I I I I 007H SP7 ST7 7Fffi ' ' '' '' Mbit Serial voice register 3 t ~rn,_____ Mbit Serial voice Down • STnand SPn are the start address and stop address of channel n (n=O to 7). Up "T' FFFH .____ _ _ _ __, 548 OKI Semiconductor MSM6388 2. Explanation of the status register during the execution of an STRD or SPRD command. During execution of a DTRD, The status register consists of three bits. DTWR, EPLAY, or EREC command, Status When a negative-going pulse is supplied to must be read only when the timing is cor- the/RD pin, the status of these bits is output rect. to DO- 02. Notethatthestatusisnotoutput 03 02 01 DO "L" DTMNT RPM NT BUSY (1) Busy When the busy bit is high, do not issue a command from the microcomputer. The busy bit is high when the LSI is being initialized or when it is executing a com- mand. BUSY Timing BUSY conditions BUSY time max. NOP, PLAY, REC, START, STOP command 4/fsam (500µs) INIT command 34/fsam (4.75ms) First nibble 4/fsam (500µs) SAMP, CHAN command Second nibble 4/fsam (500µs) First nibble 6/fsam (750µs) STWR, SPWR command After second nibble 4/fsam (500µs) First nibble 6/fsam (750µs) STRD, SPRD command After second nibble 4/fsam (500µs) Note: The inside of parentheses shows the time of fsam=8kHz. BUSY time is porportional to Isam frequency. (2) RPMNT (Record Playback MoNiTor) SAMP command. The RPMNT bit is high when the LSI is (2) Channel select: recording or playing back data. When the RPMNT bit is high, do not input a command To select a channel, enter a CHAN com- except the STOP command. mand. Usually, specify channel 0. (3) DTMNT (Data Read Write MoNiTor) (3) Start and stop addresses select: The DTMNT bit is high when data is being To allocate an area for recording voice data, transferred to or from serial voice registers enter STWR and SPWR commands to store by the DTRD or DTWR command. a start address and a stop address in the specified channel field in the channel index 3. Recording area. (1) Sampling frequency select: (4) To enter the recording mode, enter an REC command. To select a sampling frequency fsam, enter a 549 MSM6388 OKI Semiconductor (5) To start recording, enter a START com- dress counter at recording stop are stored in mand. The LSI fetches the start and stop the channel index area as the stop address. addresses of the specified channel from the channel index area and stores the start ad- (7) To resume recording, specify new con- dress in the address counter and the stop ditions with commands as described in items address in the stop address register, then (1) to (3) above and follow the procedure starts recording. described above. (6) Stopping recording: The start and stop address of each channel can be read by STRD and SPRD commands. When the contents of the address counter match those of the stop address register, When these addresses are controlled by a recording is stopped automatically. To stop microcomputer, the memory capacity of recording in the middle, enter a STOP com- external serial voice registers can be used mand. In this case, the contents of the ad- efficiently. 550 OKI Semiconductor MSM6388 Recording Flowchart when the LSI is Interfaced with a Microcontroller A sampling frequency is specified. A channel is specified. A start address is specWied. A stop address is specified. The recording is mode is set. Set new conditions Recording starts. (7) with commands. Yes No Enter STOP command. Recording ends. Yes 551 MSM6388 OKI Semiconductor 4. Playback stop addresses of the specified chan- nel index area and then starts play- (1) Sampling frequency select: back. Toselectasamplingfrequency,enteraSAMP (5) Stopping playback: command. When the contents of the address counter (2) Channel select: match those of the stop address register, playback is stopped automatically. To stop To select a channel, enter a CHAN com- playback in the middle, enter a STOP com- mand. Usually, specify channel 0. mand. (3) To enter the playback mode, enter a (6) To resume playback, specify new con- PLAY command. ditions with commands as described in items (1) and (2) above and follow (4) To start playback, enter a ST ART com- the procedure described above. mand. The LSI fetches the start and Playback flowchart when the LSI is connected to a microcontroller interface (1) A sampling frequency is specified. (2) A channel is specified. (3) The playback in mode is set.. (6) Set new conditions (4) Playback starts. with commands. (5) Playback ends. 552 OKI Semiconductor MSM6388 5. Channel Index Area START address and STOP address area writ- ten to the channel that designated the chan- Operation for channel index area in record- nel index area by STWR and SPWR com- ing is shown below. mands. In Address Input MSM6388 Seiral voice register STWR command SPWR command CPU l/F Address counter ST? Stop address register Voice data area When START command is inputted, the to respective address counter and STOP ad- recording is started after the start addresses dress register. of channel index area are automatically set In Recording Start Channel index area START command CPU l/F SPO STO SP1 ST1 Address counter Stop address register When STOP command is inputted, the con- automatically set to the channel index area tents for the address counter of that time is as a new STOP address. In Recording End Channel index area STOP command CPU l/F SPO STO SP1' ST1 Start Address Address counter SP1' Stop address register 553 MSM6388 OKI Semiconductor Operation for channel index area in play- and STOP address of the channel that desig- back is shown below. nated the channel index area are automati- cally set to respective address counter and When START command is inputted, the STOP address register. playback is started after the START address In Playback Start Seiral voice register MSM6388 Channel index area CPU l/F STO ST1 Address counter ST7 Stop address register When STOP command is inputted, the play- change the data with the channel index area. back finishes. The MSM6388 does not ex- In Playback End STOP command J CPU l/F J Channel index area SPO J_ STO SP1 1 ST1 j Address counter SP7 I ST7 Stop address register Voice data area I • ...... - ----~__i..., 6. Recording and playback for nine or To play back voice data, enter a STWR com- more channels mand specifying the start address of the voice data area from which to start playback When the start and stop addresses of each and a SPWR command specifying the stop channel are stored in memory in a micro- address of the area to write these addresses controller or external circuitry, recording in channel 0 field of the channel index area. and playback for nine or more channels is When a START command is entered, the LSI possible. Voice data can be recorded on the fetches the start and stop addresses from the same way as for recording described in item channel 0 field in the same way as for play- 3 above. However, channel 0 must be set. back described in item 4 above, then starts playback. 554 OKI Semiconductor MSM6388 7. Reading and writing data in external During execution of an EREC or EPLA Y serial voice registers with DTRIJ and command, address management and exter- DTWR commands nal serial voice register driving are not per- formed. DTRD and DTWR commands can be used to read from and write to the external serial 9. Initialization by the INIT command voice registers. When an INIT command is entered, the To read the contents of the serial voice reg- channel memory is set in the unrecorded isters, enter an STWR command specifying state. a start address of the area to be read and an SPWR command specifying a stop address • The INIT command writes the last of the area to write these addresses in the address of the external serial voice channel index area. When a DTRD com- registers as the start and stop addresses mand is entered, data is read 4bit at a time in individual fields of channels 0 to 7 duringeachcycleofthesamplingfrequency. in the channel index area. This sets the channel memory in the unrecorded To write data to the serial voice registers, state. first write start and stop addresses then enter a DTWR command. Data is written • The command then sets channel 0 in 4bit at a time on the correct RD and WR the channel register. timings. 10. Power down function (pin PD) Data transfer using DTRD and DTWR com- mands is performed in lKbit units. These When pin PD is set at the high level, the LSI two commands can be used to move voice enters the power down state. Note that this data stored in serial voice registers to differ- function is invalid during recording or play- ent addresses, providing a useful way to use back. the memory capacity of the serial voice reg- isters. • Oscillation is stopped and all opera- tion of the internal circuitry is stopped. 8. Recording and playing back voice data through the data bus with EREC and • Data bus pins DO to D3 are set in the EPLAY commands high impedance state. SpecifythesamplingfrequencywithaSAMP • Output pins CSl to CS4 are set at the command, and input an EREC command. high level, minimizing the current re- quired by the external serial voice reg- When an EREC command is entered, the LSI isters. enters the recording mode and recording starts. DO-D3 ........................................ H-Z SAD, SAS, TAS, WE, DIN, Voice data (ADPCM data) is output to the RWCK, CS1-CS4 ...................... "H" data bus on the correct RD and WR timings. 2VCK, MCK............................... "L" To stop recording, enter a STOP command AOUT, DAO, SGC ........ GND level on the correct timing. 11. Command enable function (pin CE) To perform playback, enter an EPLA Y com- mand. The LSI enters the playback mode When the pin CE is set at the high level, the and starts to play back voice data-the data is LSI enters the command enable state, reject- input from the data bus on the correct WR ing RD and WR pulses. In this state, data timing. To stop playback, enter a STOP bus pins DO to D3 are set in the high imped- command. ance state. 555 MSM6388 OKI Semiconductor SAMPLE APPLICATION CIRCUITS • The circuit diagram 1 shows an ex- the MSM6388 and four lMbit serial ample of an application's circuit with voice registers. the MSM6388 and one 256Kbit serial voice register • Circuit diagram 4 shows an example of the interface with the MSM80C51 • The circuit diagram 2 shows an ex- when the MSM6388 is used with a ample of an applications's circuitwith microcomputer interface. the MSM6388 and one 512Kbit serial voice register. • Circuit diagram 5 shows an example of an application using greater than 4- • The circuit diagram 3 shows an ex- lMbit serial voice register's with the ample of an application's circuit with MSM6388. • Circuit diagram 6 shows an example of an application's circuit for record- ing and playback by the EREC and EPLAY commands of the MSM6388. 556 Q '4 DVDD' AVDD I '"en" (J1 (J1 'l I 7tr 7tr I Ji CJ1 CJ1 00 ' ' I~ 3:: I I Ii DVDD' AVDD vcc Number of ST•SP SAD SAD CSEL2 CSEL1 Phrases CA2 CA1 Channell y REC/PLAY SAS SAS L L chO :Ir SAM2 TAS RWCK TAS RWCK L H ch1 SAM1 L L 4 RSEL2 WE WE H L ch2 RSEL1 DIN DIN H H ch3 DOUT DOUT MCUM 100K MSM L - chO DGND +----l TEST L H 2 6587JS AU/D H - ch1 CSEL2 TEST H L 1 - - chO 0:::;- CSEL1 TEST H H Prohibitted n Switch c::;: CA3 MSM TEST array CA2 6388GS TEST !2 Ill CA1 TEST ... ca Ill XT cs vss 3 I'\) XT CS1 CS2 )~ MIN CS3 CS4 MOUT ! MON 0 LIN 2VCK Speaker amplifier ~ DAO !mt en LOUT AOUT ))) XT CS1 CS2 )» MIN CS3 CS4 MOUT I I MON LIN 2VCK Speaker amplifier DAO LOUT AOUT )» AMON SG ' FIN SGC + + s:: en 1µ 1µ DGND AGND AGND s:: Q) (,) (Jl (Jl \() {lf ITT I ~ (J1 (]'. s:: tn ' t 0 s:: O> DVDD' AVDD I VCC P0.3 P0.2 SAD SAS SAD SAS I ~ P0.1 TAS TAS PO.O RWCK RWCK WE WE ~~p computer DIN DIN control. DOUT DOUT I I 6389JS circuit MSM AU/D I I I I MSM TEST 80C51 MCUM RSEL2 TEST 0 a·c RSEL1 MSM ST•SP 6388GS TEST TEST ;::;: vss TEST c DGND TEST iii" cs vss I I cs I cs I cs (Q I I iii XT CS1 3 -Ii" XT CS2 CS3 )» MIN CS4 Speaker amplttier MOUT DAO AOUT )» Q LIN SG ~ ... SGC + + t/) LOUT 1µ 1µ "O MSM CE "5!. 80C51 PD ~ 0 2VCK ::I MCK "' C"> ~r c:: MCUM "" O' RSEL2 0 RSEL1 CS1 :0 ~f 8a. vss ST-SP TEST c ::;: External CS2 s· Memory c ., "'" ~ m :0 m .,C"> ::I )» MIN DAO Speaker amplifier c. m -0 51P AOUT ))) ~ C"> MOUT SGC 0 SG 0 3 3 ~ c. LIN + 1µ + !_µ ...~ Ul "' AGND 8c vcc n ~ 'Q-4-+.+-6-" 1:::1-1.,~b•Nm 514201 !%: n ~ ~lmJ~r~~ .- §! vcc0111ff~~ ~ P1 vcc :r: I i I 0 22 ~'V\rv--=--o.-:.,='------'LiMOUT ~CD ~~M"",-------.~=----1lLiuN a l"::r=----G-No_ __J 15 LOUT i 14 AMON .,. FIN ') C2 SGC 3 1µf T SC ~ .,. 1µf.,.. ca'I' 1...-...,se:!;r.;:.,..::;::.,..~:;:_!;. 0 6388 ~ vcc R9 C13 n ? ·100K 0.001µ1' 1' r:l a&4p1 1'1':pl ~ U6~ 6 1 Ll~~ C10 ~ 3 + ~­ 10K 10µf 2 - 4 5 7 LM396N q C14 g §' 0.05µf .... 'I'1~ .,,. ~ OKI Semiconductor MSM6588 MSM6588 CONTENTS GENGERAL DESCRIPTION ....................................................................................................... 568 FEATURES ..... .... .. ............................................................................................ ................ .. ...... ...... 568 Functional Comparison of MSM6388 and MSM6588 .................................................... 569 PIN LAYOUT ..... ...... ........ .......... ................ .... ........ .... ........ ........................ ........................ ...... .. .. . 571 1. Stand-alone mode (MCUM pin="L") ....................................................................... 571 2. Microcontroller interface (MCUM pin="H") .......................................................... 572 BLOCK DIAGRAM ....................................................................................................................... 573 Stand-Alone Mode .............................................................................................................. 573 Microcontroller Interface Mode ........................................................................................ 574 ELECTRICAL CHARACTERISTICS ....... .......................................... .... .............................. ....... 575 Absolute Maximum Ratings .............................................................................................. 575 Operating Range ................................................................................................................. 575 DC Characteristics ..................................................................................................... ......... 576 Analog Device Characteristics .......................................................................................... 576 AC Characteristics ... ...... ...... ........................................................ .......................... ............. 577 1. Common characteristics in stand-alone and microcontroller interface mode ................................................................................ 577 2. Stand-alone mode ............................................................... ....................................... 578 3. Microcontroller interface mode................................................................................ 579 TIMING DIAGRAM ..................................................................................................................... 581 Reset Function and Power Down Function ......................................................... ........ ... 581 1. Stand-alone mode when the PDMD pin is "L" ...................................................... 581 2. Stand-alone mode when the PDMD pin is "H" and in microcontroller interface mode ........................................................................... 581 Stand-alone Mode ............................................. ........................ ...... ...... .......... .. .................. 582 1. Timing during recording (PDMD pin="L", VDS pin="L") ................................... 582 2 Timing during voice triggered starting functional recording (PDMD pin="L", VDS pin="H") ............. .............................. .................................... 582 3. Timing during playback (PDMD pin="L") ....................................................... ...... 583 4. Timing during repeated playback (PDMD pin="L") ............................................ 583 5. Timing during recording (PDMD pin="H", VDS pin="L") .................................. 584 6. Timing during voice triggered starting functional recording (PDMD pin="H", VDS="H") ..................................................................................... 584 7. Timing during playback (PDMD pin="H") ............................................................ 585 8. Timing during repeated playback (PDMD pin="H") ............................................ 585 9. Timing of pause in record/playback ...................................................................... 586 Microcontroller Interface ............................................................... ................ .......... .......... 587 1. Data read (RD pulse) ................................................................................................. 587 2. Data write (WR pulse) ............................................................................................... 587 3. Input method of 1 nibble command (NOP, PAUSE, PLAY, REC, START and STOP commands) ............................... 588 565 MSM6588 OKI Semiconductor 4. Input method of 2 nibble command (SAMP, CHAN and VDS commands)..................................................................... 588 5. Input method of ADRWR command ...................................................................... 589 6. Input method of ADRRD command ........................................................................ 589 7. Recording method by START command................................................................ 590 8. Timing of voice triggered starting function ........................................................... 590 9. Playback method using START command ............................................................ 591 10. Timing of pause in record/ playback using PAUSE command........................... 591 11. Timing of data transfer by DTRW command ........................................................ 592 12. Timing of recording by EXT command .................................................................. 593 13. Timing of playback by EXT command ................................................................... 593 EXPLANATION OF PIN FUNCTIONS .................................................................................... 594 Common Functions in Stand-Alone Mode and Microcontroller Modes .................... 594 Stand-Alone Mode .............................................................................................................. 596 Microcontroller Interface Mode ........................................................................................ 598 EXPLANATION OF FUNCTIONS ............................................................................................ 599 Recording Time and Memory Capacity .......................................................................... 599 Analog Input Amplifier Circuit ........................................................................................ 599 Connection of LPF Circuit Peripherals ... .... ...... ...... .............. .... .. ................. ..... .... .... .. ..... 600 LPF Characteristics ......... ........ .... .............. ................ ........ ...... .... .. ............ ...... .. ...... ............ 602 Voice Triggered Starting Function ... .... .. .......... ...... .. .... ........ ...... .... .............. ........ ...... .... .. 603 How to Connect an Oscillator ........................................................................................... 604 How to Connect Power Supply ........................................................................................ 605 Data Configuration of External Serial Voice Registers.................................................. 606 1. Channel index area .................................................................................................... 607 2. Voice (ADPCM) data area ......................................................................................... 608 Selection of Serial Voice Registers ......... .... .... .................................... .......... .... .... .... ...... .. . 609 Recording Control Modes.................................................................................................. 609 1. Direct mode ................................................................................................................. 609 2. Fixed mode.................................................................................................................. 609 3. Flex mode .................................................................................................................... 610 Channel Usage ..................................................................................................................... 611 1. Selection of a channel in direct mode and flex mode ........................................... 611 2. Channel selection in fixed mode.............................................................................. 611 Operation in Stand-alone Mode ........................................................................................ 613 1. Power down function ................................................................................................ 613 2. Master clock frequency and sampling frequency.................................................. 613 3. Method of recording .................................................................................................. 614 4. Method of playback ................................................................................................... 615 5. Method of pause in record/playback ..................................................................... 616 6. Operation in voice triggered starting functional recording ................................. 617 7. Method of re-recording ............................................................................................. 618 8. Pull up resistor ............................................................................................................ 619 Operation in Microcontroller Interface Mode ................................................................ 620 1. Command input method .......................................................................................... 620 566 OKI Semiconductor MSM6588 2. Explanation of commands ........................................................................................ 623 3. Explanation of status register ................................................................................... 625 4. Selection of sampling frequency (SAMP command) ............................................ 627 5. Recording control modes (SAMP and CHAN commands) ................................. 628 6. Selection of channel (CHAN command) ................................................... .......... ... 629 7. Input/ output of start address and stop address (ADRWR and ADRRD commands) ....... ........................................ .............. ........... 629 8. ADPCM bit length (VOS command) ....................................................................... 633 9. Detection of voice triggered starting function (VOS command) ......................... 633 10. Recording method ... .. .. ...... .. .. .... .... .. .. .. .. .. .. .... .... .... .... .. .. .. .... .... .. .. .. .. .. .. .... .. .. .... .. .. .. .. .. . 633 11. Playback method ........................................................................................................ 637 12. Pause method (temporary suspension) with the (PAUSE command) ............... 639 13. Voice detection operation (VOS command) ........................................................... 640 14. Address control operation ........................................................................................ 642 15. Multi-channel record/playback method ................................................................ 646 16. Playback method by means of a serial voice ROM ............................................... 649 17. Data transfer method with external serial voice registers (DTRW command) ................. ............ .... .... .... ............................................................ 653 18. Method of record/playback by input/ output of voice data from the data bus (EXT command) ................................................................................... 655 19. Reset and power down function .............................................................................. 659 EXPLANATION OF APPLICATION CIRCUIT ....................................................................... 660 567 OKI Semiconductor MSM6588 ADPCM SOLID-STATE RECORDER GENERAL DESCRIPTION The MSM6588 is a "solid-state recorder" LSI a pin and it is possible to control the MSM6588 developed using the AD PCM method. By ex- by a simple drive timing. In microcontroller ternally connecting a microphone, a speaker, interface mode, record/playback can be con- a speaker amplifier and a serial voice register trolled by commands from the microcontrol- or other Memory device to store ADPCM ler in microcontroller mode, the MSM6588 is data, it can record and playback voice data much more flexible than in stand-alone opera- similar to a tape recorder. tion. The MSM6588 has a stand-alone mode and a In addition, Recording and Playback with microcontrollerinterfacemode. In stand-alone fixed message are easily implemented by con- mode, record/playback can be selected from necting a serial voice ROM. FEATURES • 12bit AD converter • Package: 44 pin plastic QFP • 12bit DA converter (QFP44-P-910-V1K) • Microphone amplifier • Low pass filter (LPF) 1. Characteristics in stand-alone mode Filter characteristics -40d BI oct • 3bitADPCM • Serial voice registers • Sampling frequency: 1Mbit serial voice register 5.3kHz or 8.0kHz (MSM6389): (4) directly addressable (when the oscillator operates at 512Kbit serial voice register 4.096MHz) (MSM6587): (1) directly addressable 10.6kHz or 16.0kHz 256Kbit serial voice register (when the oscillator operates at (MSM6586): (1) directly addressable 8.192MHz) • Serial Voice ROMs • Number of Phrases: 1,2,4 or 8 1Mbit serial voice ROM 2. Characteristics in microcontroller (MSM6595-XXX) interface mode 2Mbits serial voice ROM • 3bit/ 4bit AD PCM selectable (MSM6596-XXX) • Sampling frequency: 3Mbits serial voice ROM 4.0kHz, 5.3kHz, 6.4kHz or 8.0kHz (MSM6597-XXX) (when the oscillator operates at • Maximum recording time 4.096MHz) 262 seconds (when using 3bit 8.0kHz, 10.6kHz, 12.8kHz or ADPCM, 5.3kHz sampling) 16.0kHz • Voice triggered starting (when the oscillator operates at • Pause function 8.192MHz) • Master clock frequency: 4.096MHz - • Condition setting, start, and stop of 8.192MHz record/playback controllable by 13 • Power Supply voltage: 5 V commands. 568 OKI Semiconductor MSM6588 Functional Comparisons of MSM6388 and MSM6588 MSM6388 MSM6588 SIA 4 bit 3 bit AD PCM bit length MCU 4 bit 3 biV4 bit selectable Fixed mode S/A Fixed mode Flex mode Recording system Direct mode MCU Direct mode Fixed mode Flex mode Original oscillating 1.5MHz - 4.0MHz (S/A) 4.0MHz - 8.192MHz frequency (1.5- 8.192MHz) (MCU) (TYP 4.096MHz) SIA 4 selections 2 selections Sampling frequency MCU 6 selections 4 selections Maximum sampling Voice triggered recording, pause function frequency: 32kHz Forced RESET terminal Others Built-In LPF Independent driving available Maximum sampling frequency: 16kHz Reduction of command processing time Note: S/A ··--- Stand-alone mode . . . . . . MCU ..... Microcomputer interface mode j- Switchover 1s available by setting the mput and output terminals. 1. ADPCM-bit length 5. LPF external driving available MSM6588 can select 3 bit/ 4 bit Built-in LPF can be used in as single unit. Example: In the case of bit rate 16 kbps When LPF is used for another circuit, the LPF of a MSM6588 is available for common 4 bit ADPCM: 4 bit x 4 kHz = 16 kbps use. 3 bit ADPCM: 3 bit x 5.3 kHz= 16 kbps 6. Reduction of command processing time 2. Record and playback can be tempo- rarily suspended by the pause func- Command processing time in microcon- tion. troller-interface mode is reduced. · 3. Voice triggered recording Example: 1 nibble command: 256 µsec --t 16 µsec 4. Addition of forced RESET terminal Address input: 2300 µsec --t 640 µsec 569 MSM6588 OKI Semiconductor 7. Addition of flex mode to recording and so on are recorded one by one within the system range of the memory capacities for the serial voice register. Fixed mode: The memory capacities of se- rial voice registers are divided by equally Direct mode: The memory capacities of for the number of channels assigned. each channel is directly assigned. The allo- cation of the memory capacities are free and Flex mode: The memory capacities assigned the address is controlled by a microcontrol- to each channel become arbitrary. chO, chl ler. 570 OKI Semiconductor MSM6588 PIN LAYOUT (Top View) 44 Lead Plastic QFP 1. Stand-alone mode (MCUM pin ="L") "' --' ::; "' --' ::; Cl Cl z z I~ I~ I~ I"';:: u.J u.J u.J u.J Cl CJ> <..:> CJ> <..:> CJ> 0: CJ> 0: < CJ> '-" Cl '-" :; ::::> CJ> z <..:> ::;;: ~ ~ Ci lfu l!r.i u.J 0: Cl a.. :; <..:> <..:> <..:> Cl > < 571 MSM6588 OKI Semiconductor 2. Microcontroller interface mode (MCUM pin ="H") I- I- N ...J :; 0 0 z(!> z I~ I~ I~ I~ (/) CJ) UJ UJ 0 UJ UJ (/) (/) <( (!> I- I- a: a: (/) 0 <( CS3(STBY) MIN CS4(RSELO) MOUT Dl/O LIN XT LOUT XT SG DVDD DVDD' WE AVDD RWCK AMON MON FIN TEST AOUT RESET FOUT ::;;: I- ;:) z I~ I~ (/) I~ UJ I- I© ::;;:'-' . C> 0 c; N 0 M 0 i5 <( Selection of stand-alone mode or micro- MCUM="H": microcontroller interface controller interface mode is controlled by mode the level of the MCUM pin. ELECTRICAL CHARACTERISTICS MCUM="L": stand-alone mode 572 0 m S' r- =0 '?- 0 ~ 0 " ~ c = ""' Ul 20 Sta8e ADDRESS C UNTER CD 3: 0 - )> Q :a §· :::1 CSEL1 CSEL2 Zo -to ::c ::c Om SAD Q. CD )> 3: g. ~ CA1 r-cn C') SAS f;'.;cn O::c CA2 Zm TAS ::c 20-bit -IC) CA3 :JJ- RWCK ADDRESS REGISTER ocn r--1 WE rm REC/PLAY m:JJ CS1 ;JJ ST CS2 20-bit CS3 (STBY) SP C') STOP ADDRESS REGISTER 0 PAUSE MCUM ~:::! • ::cS: o- l/O ~ CS4(RSELO) POMO SAM r-Z r-'°' 20-bit I J m VOS ::c COMPARATOR RESET MON I ADPCM ~Dl/O ~ XT ANALVZER/SYTHESIZER XT +-----<) DVDD DVDD' AVDD SG CIRCUIT I :==8 AGND DGND MIN MOUT LIN LOUT AMON FIN AOUT FOUT ADIN SG 3: "' 3: (Jl <:;j I U1 ~ :!:: ~ c;· Ch a () :!:: RSEL1 ADDRESS 20 Stage 0 ::s .... 2. i RSEL2 ~ CONTROLLER ADDRESS COUNTER .., li' 5' SAD i;- D3 ;. § ~~~ C') D2 O;o ~ D1 Zm 20-bit -ic;'} :o- RWCK DO ADDRESS REGISTER 0(/') WE ~ WR Frri RD m:O ;rJ CS1 CS2 &. CD CE 20-bit CS3(STBY) STOP ADDRESS REGISTER MCUM~ RESET ,),___. MON f-----+----1- • COM~~~~TOR I 1.--.0 CS4(RSELO) DATA ~Dl/O AD PCM 1/0 XT ANALYZER/SYTHESIZER XT 4----oDVDD 4----{J DVDD' 4----oAVDD 4----{J DGND SG 4----o AGND CIRCUIT --"TEST 4----o TEST --"TEST _ _,,TEST ~ --,'TEST """ ~ I MIN MOUT LIN LOUT AMON FIN AOUT FOUT ADIN SG OKI Semiconductor MSM6588 EXPLANATION OF FUNCTIONS • Absolute Maximum Ratings Item Symbol Conditions Rating Unit Power supply voltage VDD Ta= 25°C -0.3 - +7.0 v Input voltage V1N Ta= 25°C -0.3 - VDD +0.3 v Storage temperature Tstg - -55 - +150 oc Note: Permanent device damage may occur if Absolute Maximum Ratings are exceeded. Functional operation should be restricted to the conditions as detailed in the operational sections of this data sheet. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. • Operating Range Item Symbol Conditions Rating Unit Power supply voltage VDD Ta= 25°C +0.3 - +5.5 v Operating temperature Tstg - -40 - +85 oc Master clock frequency fosc - 4.0 - 8.192 MHz 575 MSM6588 OKI Semiconductor • DC Characteristics DVDD=DVDD'=AVDD=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C Item Symbol Conditions Min. Typ. Max. Unit 'H' input voltage V1H - 0.8xVDD - - v 'L' input voltage V1L - - - 0.2xVDD v 'H" output voltage VoH IOH=-40µA 4.2 - - v 'L" output voltage VoL loL= 2mA - - 0.45 v 'H' input current (Note 1} hH1 V1N=VDD - - 10 µA "H' input current (Note 2) hH2 V1N= VDD - - 20 µA "L' input current (Note 3) l1u V1L= GND -10 - - µA "L' input current (Note 2) hL2 V1L=GND -20 - - µA "L' input current (Note 4) hL3 V1L= GND -400 - -20 µA Operating power fosc = 8MHz, loo - 7 15 mA consumption (1} no load When power down, - - 10 µA Operating power no load Ta= -40 - +70°C lpo consumption (2) When power down, - - 50 µA no load Ta= +70 - +85°C Note 1: Applicable to all input pins, excluding the XT pin. Note 2: Applicable to the XT pin. Note 3: Applicable to all input pins without pull-up resistors, excluding the XT pin. Note 4: Applicable to input pins (ST, SP, PAUSE} with pull-up resistors, excluding the XT pin. • Analog Characteristics DVDD=DVDD'=AVDD=4.5-5.5V, DGND=AGND=OV Ta~40-+85°C Item Symbol Conditions Min. Typ. Max. Unit DA output relative error IVoAEI no load - - 10 mV FIN admissible input VPIN - 1 - VDD-1 v voltage range FIN input impedance RFIN - 1 - - MQ Op-amp open loop gain Gop f1N = 0 - 4kHz 40 - - dB Op-amp input impedance R1NA - 1 - - MQ Op-amp load resistance RouTA - 200 - - kQ AOUT load resistance RAOUT - 50 - - kQ FOUT load resistance RFOUT - 50 - - k!J. 576 OKI Semiconductor MSM6588 • AC Characteristics 1. Common characteristics in stand-alone and microcontroller interface mode DVDD=DVDD'=AVDD=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C When fsam=8kHz Item Symbol Min. Typ. Max. Unit RESET pulse width tRST 1 - - !JS RESET execution time (Note 1)* tRex - 125 - IJS Note: • is proportional to the period of sampling frequency (fsam). 1) The oscillation stable time is added to tREX· The oscillation stable time is a few tenths of a ms for crystal oscillators and is a few hundredths of a µs for ceramic oscillators. 577 MSM6588 OKI Semiconductor 2. Stand-alone mode The AC characteristic values of stand-alone mode are proportional to the period of the sampling frequency (fsam). DVDD=DVDD'=AVDD=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C When fsam=8kHz Item Symbol Min. Typ. Max. Unit ST pulse width (Note 1) tsr 40 - - µs SP pulse width tsp 40 - - µs PAUSE pulse width tPSE 40 - - µs Hold time of CA1, CA2, CA3, REC/PLAY for MON rise tcAH 1 - - ms Address control time at the start of record/playback tAD1 - 1 - ms Address control time at the end of recording tAD2 - 1 - ms Time until the release of voice activation function tspv - - 500 µs after input of SP pulse during voice standby Silence during repeated playback tMID - 1.5 - ms Time from input of PAUSE pulse until pause tpp - - 250 µs Time from input of ST pulse to the continuation of tpsp - - 500 µs record/playback during pause Oscillator stable time after input of ST pulse tANA - 32 - ms SP pulse (during recording) to the fall of MON tsPM1 - - 1 ms SP pulse (during playback) to the fall of MON tsPM2 - - 260 ms PDMD Standby transient time at start of playback tAOR - 64 - ms =L Standby transient time at end of playback tAQF - 256 - ms Time from fall of MON to power down state at IMS - 70 - µs the end of playback SP pulse during pause to record end tpsp1 - - 1 ms SP pulse during pause to playback end tpsp2 - - 260 ms ST pulse to MON rise ts TM - - 1 ms PDMD SP pulse to MON fall tsPM1 - - 1 ms =H Voice activation standby state tsrv - - 1 ms SP pulse during pause to record/playback end tpsp1 - - 1 ms Note: 1) When the PDMD pin is "L", the oscillation stable time is added to tsr. The oscillation stable time is a few tenths of a ms for crystal oscillators and is a few hundredths of a micro Sec for ceramic oscillators. 578 OKI Semiconductor MSM6588 3. Microcontroller interface mode DVDD=DVDD'=AVDD=4.5-5.5V, DGND=AGND=OV, Ta=-40-+85°C When fsam=8kHz Item Symbol Min. Typ. Max. Unit RD pulse width 200 ns Setup and hold time of CE for RD tcR 30 ns r---·------jf----·-·--+-------+---- -··----- Data valid from fall of RD toRE 200 ns Data Hi-Z from rise of RD to RF 10 50 ns WR pulse width tww 200 ns Setup and hold time of CE from WR tcw 30 ns Data set up time to rise of WR tows 100 ns Data Hold time from rise of WR towH 30 ns Disable time for RD and WR toRW 250 ns BUSY time after release of RESET (Note 1) tsR 125 µs BUSY time after input of 1 nibble command 16 µs BUSY time after input of 2 nibble command ts2 - - 16 µs * ·t-----··---t------·-- - - - - - - + - - - - - - - - + - - - - - BUSY time after input of 2 nibble command data tso - - 16 µs BUSY time after input of ADRWR command ts AW - 270 µs BUSY time after input address data of ADRWR tBAD 50 µs command Data input time after input of ADRRD command twAR 270 µs Time between output of address data nibbles during twoR 50 µs ADRRD command Note : Items with • are proportional to the period of sampling frequency fsam 1) The oscillation stable time is added to tsR. The oscillation stable time is a few tenths of a ms for crystal oscillators and is a few hundredths of a micro Sec for ceramic oscillators. 579 MSM6588 OKI Semiconductor Item Address control time at start of . Symbol lA01 Min. - Typ. 1 Max. - Unit ms record/playback . - Address control time at end of recording . lA02 1 - ms START command to rise of MON STOP command to fall of MON . tsTCM ts PCM - - - - 1 1 ms ms START command to RPM bit set ("H" level) START command (during voice triggered starting . tsTCR ts1cv - - - - 16 16 IJS IJS function) to VPM bit set ('H" level) STOP command to release of standby . tspcv - - 500 IJS (during voice triggered starting function) . PAUSE command to VPM bit set ("H" level) START command (during pause) to . tPSCP tsTCP - - - - 16 500 IJS IJS VPM bit reset ("L' level) STOP command (during pause) to VPM bit reset * tspcp - - 500 IJS ("L' level) Delay time after input of * DTRW command twRw 16 - - IJS Delay time after input of * twXA1 16 - - IJS When lower 4-bit of x address DTRW Delay time after input of * twXA2 16 - - IJS command is being middle 4-bit of x address Delay time after input of . twXA3 270 - - IJS executed upper 4-bit of x address Delay time after input of REC command • Delay time after input of write data . tWRC twwo 16 50 - - - - IJS IJS Delay time after input of PLAY command • twPL 50 - - IJS Delay time after input of STOP command• . twsP 16 - - IJS EXT command to rise of MON "H" level time of MON . tEM tMH 125 - - 31 330 - IJS IJS When executimg "L" level time of MON MON rise to RD pulse rise .• tML lERD - - 94 - - 120 IJS IJS EXT command (during recording) MON rise to WR pulse rise . lEWR - - 120 IJS (during recording) STOP command until rise of MON . tESP - - 100 IJS STOP command to record/playback end • twEX - - 250 IJS Note : Items with •are proportional to the period of sampling frequency (fsam). 580 OKI Semiconductor MSM6588 TIMING DIAGRAM Reset Function and Power Down Function 1. Stand-alone mode when the PDMD pin is "L" VDD /---r iRST RESET(I) ·1 I fREX STBY(O) .11!//////;f 1· ·1 I I I R~set operation Unstable Powerdowm in progress Power down 2. Stand-alone mode when the PDMD pin is "H" and in microcontroller interface mode. VDD iRST I• •I RESET(I) 1. iREX .1 STBY(O) Reset operation Standby for Unstable Power down in progress record/playback 581 MSM6588 OKI Semiconductor Stand-alone Mode 1. Timing during recording (POMO pin="L", VOS pin="L") RESO- RSEL2 CSEL1, CSEL2 m rn....._,~~~~-.-~1.--~~~~~~~~~~~l-'IZlllZZl, CA1 -CA3 (I) m P1lllllli.. ..__,__ _ _-,--_,'QI///ll!l!Jlf///!///!l///////J//J//l!f RESET (I) REC/PLAY (I) ST (I) SP (I) Oscillation start ' I' Oscillation stop XT (I) ---~K Oscillation in progress xr (0) i... MON (0) STBY (0) Power down Analog stable time Recording Power down Address control Address control 2. Timing during voice triggered starting function on record (POMO pin="L", VOS pin="H") RESO - RSEL2 CSEL1, CSEL2 m '!lll}J.. I I Y,~--------------' §~ ~ t=. 8 H H 8-word flex By combining CSEL1, CSEL2, CA1, CA2 onds and ch3=8 seconds (fsam=8kHz, 4 bit and CA3, it is possible to assign (the en- ADPCM). circled channels) chO= 16 seconds, ch2=8 sec- 612 OKI Semiconductor MSM6588 Operation in Stand-alone Mode Transition to power down mode is selected by the POMO pin and is summarized as 1. Power down function follows: PDMD pin Power down operation L The LSI automatically enters the power down state except during recording/playback. The LSI powers down by input of a "L" level to the RESET pin. When the RESET pin="H" level, H the LSI is in stand-by mode and the analog circuit is active. When using the built-in LPF with and external circuit, select this mode. During power down, the LSI stops oscillat- 2. Master clock frequency and sampling ing to minimize power consumption and frequency the circuit enters the initialized state. The relationship between the master clock When using an external clock, input the frequency (fosc) and the sampling frequency GND level to the XT pin to reduce power (fsam) is summarized in the following table consumption. by the SAM pin. SAM L H lose lose Isam (ffif 512 (5.3kHz) (8.0kHz) Note: Numbers inside ( ) are for master clock oscillation fose =4.096 MHz. 613 MSM6588 OKI Semiconductor 3. Method of recording (5) Input a "L" pulse to the ST pin to start recording. To finish recording in the (1) Select the sampling frequency by the middle, input a SP pulse. The time SAM pin. between these two pulses is recording time. (2) Select voice activation by the VOS pin. When recording is started by input of (3) Select the number of words by the a "L" pulse to the ST pin and continues CSEL1 and CSEL2 pins and the chan- to the end of the channel memory nel by the CA1, CA2, and CA3 pins. capacity, the recording is automati- cally finished at that point. (4) Input the "H" level to the REC/PLAY pin to set recording mode. The MON pin outputs a "H'' level dur- ing recording. Start pulse Invalid I -----ur--~~~u~~~~~~~~~~~ I (I) \ r Stop pulse (I) --+--\---u MON (0) ~-----""----. Recording in progress (stopped in the middle) Channel memory capacity Start pulse I (I) MON (0) Recording in progress Channel memory capacity Recording automatically finished 614 OKI Semiconductor MSM6588 4. Method of playback theduration ofrecorded time, the play- back ends automatically. (1) Select the sampling frequency by the SAM pin. To stop the playback in the middle, input a "L" level pulse to the SP pin. (2) Select the number of words by the CSELl and CSEL2 pins and the chan- The MON pin outputs a "H" level dur- nel by the CAl, CA2 and CA3 pins. ing playback. (3) Input a "L"level totheREC/PLAYpin Do not start playback in channels not to set playback mode. recorded because the playback data and time are undefined. However, (4) Input a "L" level pulse to the ST pin to playback under these conditions can start playback. When played back for be halted by a SP pulse. Start pulse ST (I) ----. !.-------------------- MON (0) Playback in progress (same as recording time) Playback automatically finished Start pulse (I) ---l,--~~~~~~~~~ u Stop pulse (I) ~----------~i~--------- MON (0) Playback in progress (stopped in the middle) 1-----------t..; Recorded time By maintaining the ST pin at "L" level, repeated playback is possible. ST (I) I (stop pulse) (I) I I I '-· MON (0) First playback 2nd playback 3rd playback 615 MSM6588 OKI Semiconductor 5. Method of pause in record/ playback pulse to the ST pin. The recording/play- back is finished when a "L" level pulse is By input of a "L" level pulse to the PAUSE input to the SP pin. pinduringrecord/playback,inputa"L"level Start pulse Start pulse (I) ~~~~l.----~~~~~~~~--,1.----~~~~~~~ PAUSE (I) Pause l Resume Start pulse I ST (I) ---~ r Stop pulse SP (I) -----------~'~P_a_us_e~p_u_ls_e_ _ _ _ _ _ _ _ __ PAUSE (I) Pause Record/Playback finished After resuming record/ playback, the voice operate and the recording is resumed when triggered starting function circuit does not a START pulse is input. 616 OKI Semiconductor MSM6588 6. Operation in voice triggered record- However, it does not remove silence data ing during the recording. By input of a "H" level to the VOS pin, voice Input of a ST pulse initiates standby for triggered recording can be performed. Us- voice and recording begins when voice is ing the voice activation function, the memory detected. The MON pin outputs a "H" level. capacity can be utilized effectively by elimi- nating any data prior to voice detection. Start pulse (I) Stop pulse SP (I) MON (0) I Standby for voice: Recording in progress Determined as voice When a STOP pulse is input during standby and the LSI enters standby for recording. for voice, the standby for voice is finished Start pulse (I) Stop pulse (I) Standby for recording Standby for voice Standby for recording 617 MSM6588 OKI Semiconductor 7. Method of re-recording of recording is longer than the previously recorded time, it interferes with the contents 7.1 Fixed mode of proceeding channels. In this mode, because the memory area that The following shows an example in which each channel can use is already assigned, re- the first recording is performed as in Figure recording can by performed without inter- (a) and after that each channel is re-recorded. fering with the contents of other channels. Re-recording can be performed from the If the duration of re-recording of chO is beginning similar to a new recording, re- shorter than the initially recorded time, all gardless of the previous recording time. the channels function properly as shown in Figure (b). 7.2 Flex mode If the duration of re-recording of chl is In this mode, recording for each channel is longer than the initially recorded time and started from the address incremented by+1 reaches the range of ch2, chO, and ch 1 func- from the address of preceding channel, chn- tion properly but the playback data of ch2 1 (if chO, the header address of the voice data becomes undefined as ch2 is played back area) and the recording continues until the from the middle of chl data. input of a SP pulse. If a SP pulse is not input, the recording is continued until the maxi- By re-recording ch2 as shown if Figure (d), mum address of the external serial voice ch0-ch2 function properly. register. This indicates that if the duration 618 OKI Semiconductor MSM6588 Memory capacity of external serial voice register chO stop address=SPO SP1 SP2 ,,- Channel index area \ \ (a) ~~~--------ch_o_ _ _ _ _ _ _~_ch_1_~l___c_h_2_ _~1 \ chO start address=STO SPO Unused SP1 SP2 \ i \ \ (b) ~~~-----c_h_O_ne_w_ _ _ _~~~~~~--ch_1_~1___c_h_2_ _~1 \§IQ_ SPO SP1 SP2 \ \ \ (c) ~ chO new I ch1 new ! I ch2 I \§IQ_ ~ ~ chO new (normal) ch1 new (normal) f....1~~~~~~~--~-~~~~----1 ch2 (undefined) f.... ,,,,,,,,,,,,,,,,,,,,,,,,,, .. I SPO SP1 SP2 \ \ \ (d) ~ chO new I ch1 new I ch2 new I \§IQ_ ~ ~ 8. Pull up resistor connected internally to the ST, SP and PA USE pins. However, the resistor is disconnected In stand-alone mode, a pull-up resistor is during a "L" level input to the RESET pin. 619 MSM6588 OKI Semiconductor Operation in Microcontroller Interface enables WR and RD~lses, while a "H" level Mode disables WR and RD pulses and DO-D3 become high-impedance. When using the There are 13 data bus commands, DO-D3 DO-D3-pin with the MSM6588 alone, the CE and WR, RD and CE which control the pin can be fixed at the "L" level. MSM6588 in this mode. It has an internal status register so that the state of the LSI can be monitored. 1.1 Input method of 1 nibble command 1. Command input method (1) Input a RD pulse to fetch the contents of the status register and make sure Input of commands and data can be per- that the BUSY bit is 0. When it is 1, formed by input of a "L" level (WR pulse) repeat input of RD pulses until it be- during command data input on the DO-D3- comes 0. pin. (2) Send a command to the DO-D3-pin to Input of a "L" level (RD pulse), outputs input a WR pulse. status or data to the DO-D3-pin. (3) Confirm that it is not BUSY state as in The CE pin controls enable/disable of the (1) during input of the next command. WR and RD pulses. Input of a "L" level Alternatively, wait for the duration of the BUSY time. CE (I) WR (I) LJ LI LJ LJ RD (I) lJ lJ lJ lJ DO~ D3 (1/0) ----iO o--o,_-----10 Q1---- \. j \. \. j Status output Command input Status output Busy time Next command 1-- input enabled 620 OKI Semiconductor MSM6588 RD pulse input Status output No BUSY=O? BUSY bit confirmed Yes WR pulse input Command input 1.2 Input method of 2 nibble command (3) Input a RD pulse and wait until the BUSY bit becomes 0. Alternatively, (1) Input a RD pulse to confirm the BUSY wait for the duration of the BUSY time. bit. (4) Set data to the DO-D3-pin to input a (2) Send a command to the DO-D3-pin to WR pulse. input an WR pulse. CE (I) WR (I) RD (I) DO - D3 (1/0) \_ j '\_ \_ j \_ Status :1st nibble Status 2nd nibble :command Command ' Busy time \• ~1 f--- 2nd nibble Command 621 MSM6588 OKI Semiconductor RD pulse input Status output No BUSY bit confirmed WR pulse input 1st nibble, command input RD pulse input Status output No BUSY bit confirmed (or wait for BUSY time) WR pulse input 2nd nibble, data input 622 OKI Semiconductor MSM6588 2. Explanation of commands Code Command D D D D Function of commands 3 2 1 0 NOP 0 0 0 0 (NON OPERATION) no function PAUSE 0 0 0 1 (PAUSE) Suspends record/playback temporarily. PLAY 0 0 1 0 (PLAYBACK) Set playback mode. REC 0 0 1 1 (RECORD) Sets recording mode. START 0 1 0 0 (START) Starts record/playback. STOP 0 1 0 1 (STOP) Stops record/playback. In record mode, the contents of the address counter are stored in the channel index area as the stop address. SAMP 0 1 1 0 (SAMPLING FREQUENCY) Specifies the sampling frequency and control mode with the following (1) nibble. CHAN 0 1 1 1 (CHANNEL) Specifies the channel and control mode with the following (1) nibble. ADRWR 1 0 0 0 (ADDRESS WRITE) In direct mode, stores the start address and the stop address to the channel index area with the following (8) nibbles. ADRRD 1 0 0 1 (ADDRESS READ) Reads out the start address and the stop address stored in the channel index area by reading of the following (8) nibbles. During this operation, the contents of the status register cannot be read. DTRW 1 0 1 0 (DATA READ WRITE) Transfers data to the external serial voice registers through the data bus with preset timing. EXT 1 0 1 1 (EXTERNAL) Performs record/playback by input and output of AD PCM data through the data bus by preset timing. Use this command when using SRAM or a harddisk as storage media of voice data. Does not control the external serial voice registers nor addresses. VOS 1 1 0 0 (VOICE DETECT SELECT) Selects the voice triggered starting function condition and the bit length of ADPCM with the following (1) nibble. 623 MSM6588 OKI Semiconductor Command List 1st nibble 2nd nibble command Command Note command 03 02 01 DO NOP 0 0 0 0 -- 1 nibble command PAUSE 0 0 0 1 -- 1 nibble command PLAY 0 0 1 0 -- 1 nibble command REC 0 0 1 1 -- 1 nibble command START 0 1 0 0 -- 1 nibble command STOP 0 1 0 1 -- 1 nibble command SAMP 0 1 1 0 CSEL2 CSEU SA1 SAO 2 nibble command CSELn ···control mode SAn ----- sampling freq CHAN 0 1 1 1 RCON CA3 CA2 CA1 2 nibble command RCON --- control mode CAn -·----channel ADRWR 1 0 0 0 Inputs address data (2nd-9th nibble) 9 nibble command ADRRD 1 0 0 1 Outputs address data (2nd-9th nibble) 9 nibble command DTRW 1 0 1 0 -- Transfers data by pre- set timing EXT 1 0 1 1 -- Records/plays back by preset timing VOS 1 1 0 0 - BIT VD1 VDO 2 nibble command BIT --- AD PCM bit length VDn -Voice detection level 624 OKI Semiconductor MSM6588 3. Explanation of status register However, the contents of the status register cannot be read during the execution of The status register is a 4-bit register and ADRRD or during record/playback by the outputs the current state to the DO-D3-pin EXT command. by input of a "L" level to the RD pin. D3 D2 D1 DO FULL VPM RPM BUSY Status register (1) BUSY for voice after voice triggered recording is started and 2) suspending recording/play- "H'' level of this bit indicates that the RESET back by the PAUSE command. operation is in progress or a command is being processed. Do not issue commands at (4) FULL this time. This status is used for recording in a flex (2) RPM mode. This bit is set to a "H" level when recording is through to the end of the chan- This bit becomes "H'' level during recording nel capacity which is maximum address of or playback. Do not issue commands except the serial voice register connected to the STOP command, PAUSE command and MSM6588. It is reset when either a REC START command after release of pause. command, PLAY command or START com- mand is input. After recording in flex mode, (3) VPM start recording of the next channel after confirming the FULL bit. This bit becomes "H" level when 1) waiting 625 MSM6588 OKI Semiconductor BUSY Stauts Duration of BUSY Condition Bit BUSY After releasing RESET Enable 125µs (Note 3) After input of 1 nibble command Enable 16µs After input of 2 nibble command Enable 16µs After input of data of 2 nibble command Enable 16µs After input of the ADRWR command Enable 270µs After input of address data of the ADRWR command Enable 50µs After input of the ADRRD command Disable 270µs After output address data of the ADRRD command Disable 50µs After input of the DTRW command Enable 16µs During After ii:!I!_ut of lower 4-bit of x address Enable 16µs execution of After input of middle 4-bit of x address Enable 16µs the DTRW After input of upper 4-bit of x address Enable 270µs command After input of the REC command Enable (Note 2) 16µs After input of write-in data Enable (Note 2) 50µs After input of the PLAY command Disable 50µs After input of the STOP command Enable (Note 2) 50µs Note 1: The duration of BUSY is proportional to the period of the sampling frequency (fsam). Note 2: When enabling only the data write access after input of the DTRW command, the BUSY state can be confirmed by the BUSY bit. Note 3: The oscillation stable time is added to the duration of BUSY after releasing RESET. The oscillation stable time is a few tenths of a ms for crystal oscillators and is a few hundredths of a µs for ceramic oscillators. 626 OKI Semiconductor MSM6588 4. Selection of sampling frequency The relationship between the master clock (SAMP command) oscillation frequency (fosc) and the sam- pling frequency (fsam) is shown in the fol- Data that follows the SAMP command will lowing table using data bits SAl and SAO. select the sampling frequency. SA1 SAO Sampling frequency (fsam) ·-- --~ 0 0 lose/ 1024 (4.0kHz) 0 1 lose 1768 (5.3kHz) ----- 1 0 lose/ 640 (6.4kHz) 1 1 lose/512 (8.0kHz) Note: Numbers in ( ) are for master clock oscillation losc=4.096MHz. 5. Recording control modes (SAMP and Fixed, and flex mode. Control mode selec- CHAN commands) tion is performed by data bit RCON of the CHAN command and data bits CSEU and In microcontroller interface mode, there are CSEL2 of the SAMP command. three record control modes. They are direct Number of RCON CSEL2 CSEL1 record words Control mode 0 - - 8-word Direct mode 0 0 8-word 0 1 4-word Fixed mode 1 1 0 2-word 1 1 8-word Flex mode (1) Direct mode (3) Flex mode The start and stop address of each channel The start and stop addresses of each channel are input directly to the channel index area are input indirectly to the channel index using the ADRWR command from a mic- area by channel selection from a micro-con- rocontroller. This means that the assign- troller. There is no assignment of memory ment of memory capacity for each channel is capacity of each channel so that the record- controlled by the microcontroller. ing time for each channel can be set arbi- trarily. (2) Fixed mode Refer to the Recording Control Modes on The start and stop address of each channel is each mode description. In the meantime, input indirectly to the channel index area by since the method of re-recording for the channel selection from a microcontroller. fixed and flex modes is the same as that of Memory capacity of each channel is assigned the stand-alone mode, refer to Item 7, by equally dividing the memory capacity of Method of re-recording for the stand-alone the external serial voice register by the num- mode. ber of recording words. 627 MSM6588 OKI Semiconductor 6. Selection of channel (CHAN com- 6.1 Channel selection in direct mode and mand) in flex mode CA3 CA2 CA1 Channel 0 0 0 chO 0 0 1 ch1 0 1 0 ch2 0 1 1 ch3 1 0 0 ch4 1 0 1 ch5 1 1 0 ch6 1 1 1 ch? 6.2 Channel selection in fixed mode Number of CSEL2 CSEL1 CA3 CA2 CA1 Channel recorded words 0 0 0 chO 0 0 1 ch1 0 1 0 ch2 0 1 1 ch3 0 0 8-word 1 0 0 ch4 1 0 1 ch5 1 1 0 ch6 1 1 1 ch? 0 0 - chO 1 4-word 0 1 - ch1 0 1 0 - ch2 1 1 - ch3 0 - - chO 1 0 2-word 1 - - ch1 628 OKI Semiconductor MSM6588 7. Input/ output of start and stop ad- ADRWR command. dress (ADRWR and ADRRD com- mands) The start address consists of 12bit and the stop address consists of 20bit. They denote When recording in direct mode, the start the header and tail addresses of the channel, and stop address of each channel is directly respectively. input to the channel index area by the Start address STn Header address of channel 1... ..1 Lower Upper Stop address SPn Tail Y address of channel Tail X address of channel ..1 Lower - - - - - - - - • Upper Lower - - - - - - - - - - - - • Upper The X addresses of the voice data area are recording, A9h or 7Fh (tail address) should 008h-FFFh (when connecting the serial voice be input as the tail Y address. register for 4Mbit). The AD PCM and ADRRD commands input The tail Y address changes depending on the start and stop address after issuing the the AD PCM bit length, the range that can be commands with the following 8 nibble data. specified is 00h-A9h (for 3bit ADPCM) and 00h-7Fh (for 4bit ADPCM). For ordinary 629 MSM6588 OKI Semiconductor 03 02 01 DO Contents 1st nibble 1 0 0 0 ADRWR command 2nd nibble Y3 Y2 Y1 YO Stop address 3rd nibble Y7 Y6 vs Y4 (Y address) 4th nibble X3 X2 X1 XO Stop address 5th nibble Xl X6 X5 X4 (X address) 6th nibble X11 X10 X9 XB 7th nibble X3 X2 X1 XO Start address 8th nibble Xl X6 XS X4 (X address) 9th nibble X11 X10 X9 XB 7.1 Input method of address data by the the ADRRD command. ADRWR command (2) Wait for the BUSY time period and (1) After confirming the BUSY bit, input inputaRDpulsetooutputtheaddress the ADRWR command. data from the data bus. This operation is to be repeated for 8 times to get the (2) After confirming the BUSY bit or wait- stop and start address to the microcon- ing for the BUSY time period, input troller. the low 4bit (Y3, Y2,.Y1, YO) of the Y stop address. This operation is to be (3) After input of the ninth nibble RD repeated for 8 times to input the stop pulse, the next command is enabled and start address. after waiting for the BUSY time pe- riod. During the execution of the 7.2 Output method of address data by the ADRRD command, the contents of the ADRRD command status register cannot be confirmed. It is necessary to wait for the BUSY time (1) After confirming the BUSY bit, input period between each RD pulse. 630 OKI Semiconductor MSM6588 ADRWR Command Flow Chart 1st nibble ADRWR command 2nd nibble _ ____,r-----~ BUSY bit confirmed (or wait for BUSY time) WR pulse input Input of lower 4 address bits of Y stop address 3rd nibble ---'C-----~ Input of upper 4 address bits of Y stop address 4th nibble _ _ _ , r - -_ _ _~ Input of lower 4 address bits of X stop address 5th nibble ---'r-----~ Input of middle 4 address bits of X stop address 6th nibble _ _ _ , r - -_ _ _~ Input of upper 4 address bits of X stop address 7th nibble ---'r-----~ Input of lower 4 address bits of X start address 8th nibble ---'C-----~ Input of middle 4 address bits of X start address 9th nibble -----ST-A-RT------------ Channel index area Stop address SPn * Address register ~ ,.. Voice data area Stop address register] 14.1.2 Fixed mode recording After this address control operation, recording is begun and the address (1) With the input of a ST ART com- counter counts up. mand, the start and stop address gen- erated in the address controller is set (2) When the recording is stopped by to the address counter and the stop the STOP command, the contents of address register via the address reg- the start address counter at that time ister, respectively. The address data are stored in the channel index area is stored in the channel index area. as the new stop address. 643 MSM6588 OKI Semiconductor 1) ST ART Command Input (recording begins) MSM6588 Serial voice register .)+1 l Address controller J Address counter J ~ ,... Channel index area l -! Start address STn __.. ) Address register Stop address S~ :I ~ -..... Voice data _1 area Stop address register 14.1.3 Flex mode recording address controller (the maximum address of the serial voice register) is (1) With the input of a START com- set in the stop address register and is mand, the stop address of the pre- stored in the channel index area. ceding channel (SPn-1) is read out from the channel index area. After this operation, recording is be- gun and the address counter counts (2) Next, address data incremented by up. +1 from the contents of the stop ad- dress are stored in the address (3) When recording is finished by the counter and the channel index area STOP command, the contents of the as the start address (STn=SPn-1+1). address counter at that time are stored in the channel index area as The stop address generated in the the new stop address. 1) START Command Input MSM6588 Serial voice register l Address controller J Address counter r Channel index area Address register . Stop address SPn-1 . Voice data area Stop address register 644 OKI Semiconductor MSM6588 2) Start of Recording MSM6588 Serial voice register .)+1 Address r controller l Address counter -.: Start address STn (SPn-1+1) _ ~ ~ Channel index area ,... .... Address register Stop address SP~ f- -. t Voice data area Stop address register 14.2 Address control operation during They are then set to the address counter playback and the stop address register, respec- tively, through the address register. During play back, the LSI performs play- back using the address and stop addresses After this address control operation, stored in the channel index area regardless playback is begin and the address of the control mode. counter counts up. (1) With the input of a START command, (2) When a STOP command is input, play- the LSI first reads the start and stop back is stopped. No address control address from the channel index area. operation is performed at this time. 1) ST ART Command Input (playback starts) MSM6588 Serial voice register .)+1 [ Address controller l Address counter ---.- Start address STn .Jr Channel index area \ ~ Address register Stop address SPn Voice data f area Stop address register 645 MSM6588 OKI Semiconductor 15. Multi-channel record/playback method (2) The stop and start addresses can be written into the channel index area by It is possible to record/playback on mul- the ADRWR command. tiple channels by preparing memory corre- sponding to the channel index area that (3) Recording is started. stores the start and stop addresses of each channel inside a microcontroller or equiva- (4) After recording is performed, the stop lent external circuit. address which is stored in the channel index area by the ADRRD command Recording/playback of multiple channels is read out. is performed in the direct mode and the channel index area can be used as tempo- (5) The stop address is stored in micro- rary address data storage. In the case of controller memory. playback for the fixed message stored into the serial voice ROM, the address data of 15.2 Multi-channel playback method each word can be similarly stored into a ROM in a microcontroller. The following (1) Playback conditions are specified by a shows the procedure. command input. 15.1 Multi-channel recording method (2) The stop and start addresses that are stored in microcontroller memory are (1) Recording conditions are specified by written in the channel index area by a command input similar to the re- the ADRWR command. cording method in direct method. Channels can be specific (e.g. chO). (3) Playback is started. 646 OKI Semiconductor MSM6588 Flowchart to Multi-channel Recording Recording condition Control mode is direct mode specified by command input Input of start address and stop ADRWR command address from microcontroller REC command Set to recording mode START command Recording starts (STOP command) No Recording finished? Stop address is stored in ADRRD command memory of microcontroller 647 MSM6588 OKI Semiconductor Flowchart to Multi-channel Playback Playback condition Control mode is direct mode specified by command input ADRWR command Input of start address and stop address from microcontroller PLAY command Set to playback mode START command Playback starts (STOP command) No Playback finished? 648 OKI Semiconductor MSM6588 16. Playback method by means of a serial message by connecting a serial voice ROM voice ROM to the MSM6588. The following describes how to play a fixed 16. 1 Circuit and memory configrurations Be sure to assign here a serial register. ( Assign here a serial register or serial voice ROM. MCU MSM6588 000 400 800 coo ~ ~ ~ Internal ROM Address data1 f-7'- - :c :::!!: ~ - :c :::!!: ~ - f-7'- :c :::!!: ~ :B :::!!: ~ Address data2 Address data3 3FF cs ?FF cs BFF cs FFF cs CS1 J CS2 CS3 CS4 Address space (X address) Serial register Serial voice ROM CS1 OOOh-3FFh Assignable Unassignable CS2 400h-7FFh Assignable Assignable CS3 800h-BFFh Assignable Assignable CS4 COOh-FFFh Assignable Assignable A serial register or serial voice ROM is assigned in the unit of 1Mb it (CSn). Note: Be sure to connect a serial register to CS1. It is impossible to connect only a serial voice ROM and use it for playback only. 649 MSM6588 OKI Semiconductor The following circuit configuration shows For playback (variable message): the case where 256Kbit and 2Mbit are used 256Kbit serial register MSM6586 for playback and for a fixed playback, re- For fixed message: spectively. 2Mbit serial voice ROM MSM6596-XXX MSM6596-XXX MSM6588 000 MSM6586 256Kbit 4001 c ----, 800,-- t-----1 coo:- ------- ' ' OFF cs 100: MCU -- '' '' '' ' ' I :s::ii; ~ "" .0 ::ii; ~ I '' ' ' '' 3FF :'____ ?FF L CS1 BFF CS2 J "'! - CS1 CS2 j CS3 CS4 t--- OOOh-OFFh Serial register for variable message CS1 100h-3FFh Unused (no addressing) CS2 CS3 400h-7FFh 800h-BFFh } Serial voice ROM for fixed message CS4 COOh-FFFh Unused (no addressing) Serial register Serial voice ROM 256Kbit MSM6586 1Mbit MSM6595-XXX 512Kbit MSM6587 2Mbit MSM6596-XXX 1Mbit MSM6389 3Mbit MSM6597-XXX 650 OKI Semiconductor MSM6588 16. 2 How to contorol playback when a se- (2) Address data rial voice ROM is used. Address data described in the address cor- (1) ROM for saving address data respondence table are saved in the MCU's ROM. The followin~fset addresses are A start address and stop address for each added to CS2 thru CS4, to which a serial word must be previously saved in the voice ROM is assigned. microcontroller's ROM when a serial voice ROM is used for playback. Assigned to Offset address The address data is 32bit per word. CS2 +400h CS3 +800h Upper Lower CS4 +CO Oh X-address Y-address Start address Stop 12bit 12bit -J 8bit 32bit per word address MCU's ROM size = 32bit x number of voice words For example, in the previous circuit, when ing" is voiced, the address is shown below. MSM6596-600 is assigned to CS2 and CS3, and "COZEN" COZEN that means "morn- Start X StopX StopY No.1. 00 COZEN 0 10 SD .!- +400h .!- +400H .!- no addition Address to be specified=> 400h 410h SDh 651 MSM6588 OKI Semiconductor (3) Aowchart to Serial Voice ROM the MCU's ROM, using the ADRWR com- mand. The serial voice ROM playback differs in its playback method from the serial register The channel index area is used temporarily. playback because after specifying the chan- nel the serial voice ROM playback requires Therfore, for example, chO is used only for to enter the address data that are saved in serial voice ROM playback. VDS command ADPCM bit length (BIT) SAMP command Sampling frequency (SAO,SA1) Fixed to channel (CA1 ,CA2,CA3) chO CHAN command Specif the direct mode as a control mode(RCON=O). PLAY command Set to playback mode ADRWR command Enter address data START command No Checking of playback start Checking of playback finished No STOP command No Checking of playback finished 652 OKI Semiconductor MSM6588 17. Data transfer method with external (3) Specify the header X address of the serial voice registers (DTRW com- serial voice register with 3 WR pulses. mand) (4) Wait for BUSY time. Alternatively, Data transfer can be performed with exter- the BUSY bit of the status register can nal serial voice registers using the DTRW be used to confirm this. command. (5) For writing data, input the data to be After input of the DTRW command, the X written with a WR pulse after input of address of the serial voice register for read/ the REC command. It is necessar~ write is specified. Data in 4-bit nibbles are wait for BUSY time between each WR transferred from the header of the X address pulse. specified. Although the serial voice regis- ters are composed of the X address times 1K- When performing data/write by a bit (Y direction), the address can be speci- single DTRW command, the BUSY fied only in the X direction and no random state can be checked by the BUSY bit of address specification can be made that se- the status register but if data read is lects the middle of the Y direction. also performed, confirmation by the BUSY bit cannot be performed. A single DTRW command input can do read/write operations continuously if they (6) For data read, 4-bit of data are output are in the range of the same serial voice from the data bus by input of a RD register. When the operation extends to pulse, after waiting for the BUSY time, other serial voice registers, it is necessary to after the input of the PLAY command. suspend the operation temporarily and re- specify the address by input of the DTRW For data read, confirmation of BUSY command. state by the BUSY bit is invalid. The following is the DTRW command input (7) If data read/write is to be continued, procedure. specify data transfer by read/write mode using the PLAY /REC com- (1) The sampling frequency is specified mands. by input of the SAMP command. Be- cause the access time of data transfer (8) If data read/ write is to be terminated, by the DTRW command is propor- input the STOP command. Wait for tional to the period of the sampling BUSY time and start input of the next frequency, the highest frequency is command. If data read is performed, usually selected. confirmation by the BUSY bit is in- valid. (2) Input the DTRW command. 653 MSM6588 OKI Semiconductor Flowchart of data transfer by the DTRW command SAMP command Sampling frequency specified (Usually, the highest sampling frequency is selected.) DTRW command Input of lower (XO, X1, X2, X3) X address Input of middle (X4, X5, X6, X7) X address Input of upper (X8,X9,X10,X11) X address Wait for BUSY time (Data read) REC command PLAY command Wait for BUSY time Wait for BUSY time - Data input to Data output of ~-W_R_p_u~ls_e_in_pu_t_~ serial voice ~_R_D~pu_ls~e_in~p_ut_~ serial voice register register Wait for BUSY time Wait for BUSY time Yes STOP command Wait for BUSY time 654 OKI Semiconductor MSM6588 18. Method of record/playback by input (3) Input the REC command to set the I output of voice data from the data recording mode. bus (EXT command) (4) Input the EXT command to start re- When SRAM or a harddisk is used to store cording. The sampling frequency clock voice data instead of the serial voice regis- is output from the MON pin. ters, use the EXT command to do record/ playback. (5) When the MON o~ut pin becomes "H" level, input a RD pulse to fetch During record/ playback using the EXT com- ADPCM data from the data bus. The mand, voice data (ADPCM data) is directly upper 3bit (D3-D1 pin) are valid for input/ output from the data bus at the sam- 3bitADPCM. pling frequency. There is no address control nor external serial voice register control at (6) Store ADPCM data to external this time, therefore, it is necessary to use the memory. microcontroller to control recording time and addresses. (7) Repeat steps (5) and (6) to continue recording. Pause, voice triggered starting function and selection of channels cannot bemade during (8) To stop recording input a STOP com- record/playback. Valid commands are mand. Recording can be continued PLAY, REC, STOP, SAMP, VDS and EXT for an indefinate period of time until only. the STOP command is input. 18.1 EXT command recording method (9) As the status register cannot be checked during recording with the (1) The sampling frequency is specified EXT command, it is necessary to wait by SAO and SAl data of the SAMP for BUSY time after input of the STOP command. command to start input of the next command. (2) The AD PCM bit length is specified by BIT data of the VDS command. 655 MSM6588 OKI Semiconductor Flowchart of recording with the EXT command SAMP command Sampling frequency specified (SAO, SA1) VDS command ADPCM bit length specified (BIT) REC command Set to recording mode EXT command EXT recording begins Rise of MON output pin detected RD pulse input Fetches ADPCM data Stores ADPCM data to external Memory Yes STOP command EXT recording finished Wait for BUSY time 656 OKI Semiconductor MSM6588 18.2 EXT command playback method (5) When the MON pin becomes "H", fetch ADPCM data from external memory. (1) Specify the sampling frequency by SAO and SA 1 data of the SAMP com- (6) Input a WR pulse to get ADPCM data mand. from the data bus. In3bitADPCM, the upper 3bit (D3-D1 pin) are valid and (2) Specify the ADPCM bit length of re- data in the lower 1 bit (DO pin) is cording by BIT data of the VDS com- invalid. mand. (7) Repeat steps (5) and (6) to continue (3) Input the PLAY command to set play- playback. back mode. (8) Input the STOP command to end play- (4) Input the EXT command to start play- back. back. The sampling frequency clock is output from the MON pin. 657 MSM6588 OKI Semiconductor Flowchart of playback by the EXT command SAMP command Sampling frequency specified (SAO, SA1) VOS command ADPCM bit length specified (BIT) PLAY command Set to playback mode EXT command EXT playback begins Rise of MON output pin detected ADPCM data is read from memory WR pulse input Write ADPCM data Yes STOP command EXT playback finished 658 OKI Semiconductor MSM6588 19. Reset and power down function When using an external clock, input the GND level to the XT pin at power By in put of a "L" level to the RESET pin, the down so that no current is flowing to LSI stops oscillation to minimize power con- the oscillation circuit. sumption and is set to the power down state. The control circuit is simultaneously initial- (3) The D0-03-pin on the data bus are in ized. Data specified by 2 nibble commands the high-impedance state regardless such as the sampling frequency, AD PCM bit of the RD and CE pins. length, and data in the serial voice registers is not affected. (4) Power consumption of the external serial voice registers is minimized by However, when a RESET pulse is input in setting the CS1-CS4 pin to a "H" level themiddleof record/ playback, internal data output. and voice data become undefined and op- eration stops. (5) The state of the output pins are as follows: The following shows the state of the LSI at power down. SAD, SAS, TAS, CS1-CS4, WE, RWCK, STBY pins ................ "H" level output (1) Oscillation is stopped and all the op- erations in the internal circuit are MON pin ................. "L" level output halted, the control circuit is initial- ized. DI/O pin ................. High-impedance (2) Power consumption is minimized. AOUT, FOUT pins. .. ....................... GNDleveloutput MSM6588 OKI Semiconductor EXAMPLE OF APPLICATION CIRCUIT Figure 1 shows an application circuit when terface mode with two 1Mbit serial voice the MSM6588 is used in stand-alone mode registers and one 2Mbit serial voice ROM. and four lMbit serial voice registers are used. Figure 3 shows an example of application circuit when playback is made using the Figure 2 shows an application circuit when EXT command for MSM6588. the MSM6588 is used in microcontroller in- DVDD DVDD' AVDD vcc vcc vcc vcc REc:Jl5Ii\Y SAD SAD Si' SAS m TAS TAS 'SP 1lWCK 1lWCK WE W[ P.i:ilSE DVO DIN a> a> a> l\ESrr DOUT~ co ("') co ("') co ("') co co co co ll RSEL1 RSEL2 SAM co co in co AU/O ~ mr Tm ::2: ::2: en ::2: ::2: en ::2: ::2: en ::2: POMO ::2: TEST MCUM en ::2: TEST VOS TEST CSEL1 CS VSS cs vss cs vss cs vss CS1 CSEL2 CS2 CS3 CA1 CS4 CA2 CA3 MON MIN XT 4.096MHz Xf MOUT Speaker amplifier SG LIN AOUT >l} SG Figure 1 Example of Application Circuit in Stand-alone Mode and with 1 Mbit Serial Voice Registers 660 OKI Semiconductor MSM6588 DVDD DVDD' AVDD vcc vcc vcc D3 SAD SADX 02 SAS SASX D1 TAS i7iS DO RWCK RWCK RWCK MCU WE WE xx RD Dl/O DIN x WR DOUT ~ °' co DOUT tb CE C') l) MIN XT 4.096MHz Xf MOUT LIN AOUT >l) LOUT AMON SG FIN FOUT ADIN DGND AGND Note: MSM6588 can not control the Serial voice ROM without use of Serial voice registers. Figure 2 Example of Application Circuit in Microcontroller Interface Mode with 2Mbit Serial Voice ROM 661 MSM6588 OKI Semiconductor DVDD DVDD' AVDD 8 MCU D3 D2 D1 DO RD WR SAD SAS TAS RWCK WE 01/0 CE MON MCUM 00 TIS'f 00 Open RSEL1 "" "' :1: RSEL2 (/) TEST :1: TEST TEST TEST CS1 CS2 RESET CS3 CS4 >)} MIN XT 4.096MHz MOUT Xf LIN m- mOGND LOUT AOUT >l} AMON Speaker amp FIN Figure 3 Application Circuit When Playback is Made Using EXT Command 662 OKI Semiconductor MSM6688 ADPCM SOLID-STATE RECORDER LSI • GENERAL DESCRIPTION The MSM6688 is a "solid-state-recorder" LSI developed using the ADPCM method. By externally connecting a microphone, a speaker, a speaker drive amplifier, and dedicated DRAM through the MSM6791 to store AD PCM data, it can record and play back voice data in a manner similar to a tape recorder. The MSM6688 has a stand-alone mode and a microcontroller interface mode. In the stand-alone mode, record/playback conditions can be selected from pins and the MSM6688 can be controlled by a simple drive timing. In the microcontroller interface mode, record/playback can be controlled by commands from the microcontroller. In the microcontroller interface mode, the MSM6688 is much more flexible than in the stand-alone mode. In addition, the MSM6688 can form easily a recording and playback circuit with fixed messages by connecting DRAMs (include the MSM6791) and serial voice ROMs as external memories. 663 CONTENTS (1) STAND-ALONE MODE (2) MICROCONTROLLER INTERFACE MODE • FEATURES .......................................... 665 • PIN LAYOUT (TOP VIEW) ................... 666 • FEATURES .......................................... 707 • BLOCK DIAGRAM ................................ 667 • PIN LAYOUT (TOP VIEW) ................... 708 • ELECTRICAL CHARACTERISTICS ..... 668 • BLOCK DIAGRAM ................................ 709 • TIMING DIAGRAMS ............................. 672 • ELECTRICAL CHARACTERISTICS ..... 710 • PIN DESCRIPTION .............................. 686 • TIMING DIAGRAMS ............................. 715 • FUNCTIONAL DESCRIPTION ............. 690 • PIN DESCRIPTION .............................. 734 • Recording Time and Memory • FUNCTIONAL DESCRIPTION ............. 737 Capacity .......................................... 690 • Recording Time and Memory • Power Supply Wiring ....................... 691 Capacity .......................................... 737 • Analog Input Amplifier Circuit... ........ 691 • Power Supply Wiring ....................... 738 • Connection of LPF Circuit • Analog Input Amplifier Circuit ........... 738 Peripherals ...................................... 692 • Connection of LPF Circuit • LPF Characteristics ......................... 693 Peripherals ...................................... 739 • Reset Function ................................ 694 • LPF Characteristics ......................... 739 • Power Down by the PDWN pin ........ 695 • Reset Function ................................ 740 • Record/Playback Control Mode ....... 696 • Power Down by the PDWN pin ........ 741 • Deleting phrases ....... : ..................... 699 • Record/Playback Control Modes ..... 742 • Recording Method ........................... 700 • Data Configuration of External Serial • Playback Method ............................. 701 Registers ......................................... 744 • ROM Playback Method .................... 702 • Data Configuration of External • Voice Activated Recording ............... 703 Serial Voice ROMS .......................... 754 • Method of Stopping • Command Description ..................... 756 Temporarily Record/ • Status Register ................................ 765 Playback by Pause Function ............. 705 • Inputting the Command ................... 769 • EXAMPLE OF APPLICATION • Changes of Record/Playback CIRCUIT ............................................... 706 Conditions ....................................... 773 • Setting and Confirming the Record/Playback Conditions ............ 774 • Flex Record/Playback Method ......... 786 • Direct Record/Playback Method ..... 791 • ROM Playback by Inputting Address Code ................................................ 794 • Direct ROM Playback Method ......... 798 • Stopping Temporarily Record/ . Playback .......................................... 801 • Transferring Data to/from External Memories ......................................... 802 • Record/playback by Inputting/ Outputting Voic~ Data via Data Bus ... 808 • Suppression of Pop Noise at AOUT Output ................................... 812 • EXAMPLE OF APPLICATION CIRCUIT ............................................... 814 664 OKI Semiconductor MSM6688 (1) STAND-ALONE MODE •FEATURES e 3-bit or 4-bit ADPCM • Built-in 12-bit AD converter • Built-in 12-bit DA converter • Built-in microphone amplifier • Built-in low-pass filter Attenuation characteristics -40 dB/oct • External memories DRAM, maximum 32M bits (for variable messages) 1/4/16Mbit DRAMs (x1 bit configuration) are controlled by DRAM interface LSI (MSM6791 ). Serial voice ROMs, maximum 4M bits (for fixed messages)// 1M bit serial voice ROM (MSM6595), directly addressable 2M bit serial voice ROM (MSM6596), directly addressable 3M bit serial voice ROM (MSM6597), directly addressable • Sampling frequency 4.0 kHz, 5.3 kHz, 6.4 kHz or 8.0 kHz • Number of phrases 63 phrases for variable messages 63 phrases for fixed messages • Maximum recording time (when external 32Mbit RAM is connected) 34 minutes (for 16kbps ADPCM) 23 minutes (for 24kbps ADPCM) 17 minutes (for 32kbps ADPCM) • Voice activation function • Pause function • Master clock frequency: 4.096 MHz • Power supply voltage: 5 V single power supply e Package: 56-pin plastic QFP (QFP56-P-91 O-V1 K) 665 MSM6688 OKI Semiconductor • PIN LAYOUT {TOP VIEW) CS4 MIN Dl/O MOUT DROM LIN WE LOUT XT SGC XT SG DVDD AVDD RWCK 21 DVDD' MON AMON NAR FIN RESET AOUT SP FOUT ST ADIN REC/PLAY ROM INDEX MARK 666 DEL ST SP PAUSE CAO CA1 CA2 CA3 CA4 CA5 TEST TEST •m ~ 50 ~ ~· MCUM RESET Test Circuit "c g. PDWN PDMD Timing Data Dl/O ~ :D ~ VOS 1/0 DROM ROM Controller Address Controller ~ SAM1 SAM2 1: A:~~~~ MON SADX NAR SADY TAS § n :o RWCK XT 0 (1) WE XT osc a ce. a ~ CS1 ADPCM ~ ~ CS2 REC/PLAY Analyzer/Synthesizer Latch CS3 4B/3B CS4 MIN r1 •1 ____,-, DVDD 12bit 12bit SG MOUT ~.. I LPF ADC DAC Circuit DVDD' LIN .. ~ AVDD DGND AGND s:: (/) s:: ~ LOUT AMON FIN AOUT FOUT ADIN SG SGC ; MSM6688 OKI Semiconductor • ELECTRICAL CHARACTERISTICS .• Absolute Maximum Ratings Item Symbol Conditions Rating Unit Power supply voltage VDD Ta=25°C -0.3-7.0 v Input Voltage VIN Ta=25°C -0.3-VDD+0.3 v Storage temperature Tstg - -55-+150 oc • Operating Range Item Symbol Conditions Rating Unit Power supply voltage VDD DGND=AGND=OV +3.5-5.5 v Operating temperature Top - 0-+70 oc Master clock frequency fosc - 4.0-8.192 MHz • DC Characteristics DVDD=DVDD'=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C Item Symbol Conditions MIN TYP MAX Unit High input voltage V1H - 0.8xVOO - - v Low input voltage V1L - - - 0.2xVOO v High output voltage VoH loH = -40uA VDD-0.3 - - v Low output voltage VOL IOL= 2mA - - 0.45 v High input current (Note 1) l1H1 VIH= VDD - - 10 µA High input current (Note 2) llH2 VIH= VDD - - 20 µA Low input current (Note 3) llu VIL= GND -10 - - µA Low input current (Note 2) llL2 VIL= GND -20 - - µA Low input current (Note 4) llL3 VIL= GND -400 - -20 µA Operating current loo lose = 8 MHz, no load - 30 mA consumption (1) 15 Operating current IPO At power down. no load - - 10 µA consumptionJ.?) Note 1: Applies to all input pins excluding the XT pin. Note 2: Applies to the XT pin. Note 3: Applies to the all input pins without pull-up resistors, excluding the XT pin. Note 4: Applies to the input pins (ST, SP, PAUSE, DEL) with pull-up resistors, excluding the XT pin. 668 OKI Semiconductor MSM6688 • Analog Characteristics DVDD=DVDD'=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C Item Symbol Conditions MIN TYP MAX Unit DA output relative error IVoAEI no load - - 10 mV FIN admissible input VFtN - 1 - VDD-1 v voltage range FIN input impedance RFtN - 1 - - Mn Op-amp open loop gain Gop ftN=0-4kHz 40 - - dB Op-amp input impedance R1NA - 1 - - MQ Op-amp load resistance RourA - 200 - - kn AOUT load resistance RAOUT - 50 - - kQ FOUT load resistance Amur - 50 - - kQ 669 MSM6688 OKI Semiconductor • AC Characteristics DVDD=DVDD'=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C foSC=4.096MHz fsAMP=8.0kHz Item Symbol MIN TYP MAX Unit RESET pulse width tRST 1 - - µs RESET execution time (Note 1) * tREX - 1 - ms PDWN low level time * tpoL 500 - - µs PDWN high level time * tPDH 500 - - µs Oscillating time after input of PDWN * tpx 125 - 500 µs BUSY time after release of PDWN (Note 1) * ts po 0.25 - - ms ST pulse width ** tsr 40 - - µs SP pulse width ** tsp 40 - - µs PAUSE pulse width ** tpsE 40 - - µs DEL pulse width * to EL 40 - - µs Time required to delete all phrases * twsLA 550 - - ms Time required to delete a specified phrase * twsu 70 - - ms Time from input of DEL pulse to CSI fall * toes - - 270 µs Hold time of CAO-CA5, REC/PLAY after MON rise tcAH 1 - - ms Address control time at the start of record/playback * tAD1 - 1 - ms Time from input of ST pulse to NAR fall * tsrn - - 40 µs Unvoiced time between phrases during repeated playback * tMID 0.75 - 1 ms Record * trMH1 - - 50 ms Time from input of ST pulse Playback * - - 20 ms to MON rise trMH2 ROM playback* trMH3 - - 1 ms Record * tPMH1 - - 80 ms Time from input of SP pulse POMD=H to MON fall Playback * tPMH2 - - 2 ms ROM playback* tPMH3 - - 2 ms Time from input of ST pulse to voice activation * tsrvH - - 50 ms stand by state Time from input of SP pulse during voice activation standby state to release of voice * tsPVH - - 80 ms activation standby state Items with • are proportional to the period of master oscillator frequency fosc. Items with •• are proportional to the period of the master oscillator frequency fosc, and are also proportional to the samplig frequency fsAMPduring record/playback. Note 1: The oscillation startup stabilization time is added to tREx and 1spo· The oscillation startup stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators. 670 OKI Semiconductor MSM6688 DVDD=DVDD'=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70'C fOSC=4.096MHz fsAMP=8.0kHz Item Symbol MIN TYP MAX Unit Record * trML1 - - 120 ms Time from input of ST pulse to MON rise Playback * trML2 - - 150 ms ROM playback * trML3 - - 150 ms Record * tPML1 - - 80 ms Time from input of SP pulse to MON fall Playback * tPML2 - - 260 ms PDMD=L ROM playback * tPML3 - - 260 ms Time from input of ST pulse to voice activation * tsrvL - - 120 ms standby state Time from input of SP pulse during voice activation standby state to release of voice * tsPVL - - 80 ms activation standby state Standby transition time at start of playback * tAOR - 64 - ms Standby transition time at end of playback * tAOF - 256 - ms Time from input of PAUSE pulse to pause ** tpp - - 1 ms Time from input of ST pulse during pause to restart of ** tpsr - - 1 ms record/playback Items with • are proportional to the period of master oscillator frequency fosc. Items with •• are proportional to the period of the master oscillator frequency fosc, and are also proportional to the sampling frequency fsAMP during record/playback. 671 MSM6688 OKI Semiconductor • TIMING DIAGRAMS e RESET FUNCTION VDD RESET (I) Undefined Power down Reset operation in progress Standby for record/playback 672 OKI Semiconductor MSM6688 • Power Down by PDWN Pin tpoL tpoH PDWN(I) !tpx Note XT (I) Oscillation in progress Oscillation in progress XT (0) I ! -----~t=x--Po_w_e_rd_o_w_n~x Postprocessing x~-St-an-d-by-- Note 1: When an external clock is used, continue to apply the clock input to the XT terminal during tPx after the PDWN pin is set to a low level. 673 MSM6688 OKI Semiconductor • Timing for Deletion of All Phrases CAO-CA5 (I) ~~--------~fl///////////// --.i--i<- toEL DEL (I) - - - - i i ir ---------+-------~ twsLA CSI (0) Standby X~__D_e_le_tio_n_o_f_al_Ip_h_ra_se_s_~X~__S_ta_nd_b_y_ _ • Timing for Deletion of a Specified Phrase CAO-CA5 (I) DEL (I) ---~ +.t- toEL twsu CSI (0) Standby Xoeletion of aspecified phras~X~_ _S_ta_n_db_y_ _ 674 • Recording Timing (PDMD Pin = High) a Ul '---iE---- MON (0) NAR (0) 1 ''°' ' i ' Power downX Standby XAddress control X Recording in progress X Standby Xrower down 3: en 3: °'~ I ~ • Timing for Voice Activated Recording (POMO Pin =High) s:: °' s::"' RESET (I) I ROM (I) VDS (I) SAM1, SAM2 (I) Bit rate designation (I) 48/38 CAO-CA5 (I) Phrase designation REC/PLAY (I) ST (I) -rt- tsp -rt- tsp SP (I) XT XT (I) (0) ____!<" Oscillation in progress i i tsrvH i tsPVH i tPMH1 i tsTN : ; ! i MON (0) !------4 NAR (0) I tAD1 ---- Power down Standby Standby for voice . , Address control X Recording Standby Power down Voice detected L When STOP pulse is input during standby for voice, the MSM6688 goes to the recording standby state. a {/l ower down 3:: 0 3:: °' ::::) I °' e ROM Playback Timing {PDMD Pin = High) 3: ;:xi "' 3: RESET (I) I ROM (I) ... ~ ~ CAO~CAS (I) ~ Phrase designation ST (I) ----jj_ __,,____--;! ; ~ ~~. I I U . ---*-*--- tsp ! 1 ; ; SP (I) i i i L.J i i i i XT XT (I) (0) K Oscillation in progress · . J i tTMH3 .i tPMH3 i tsTN ! !. , ! ; i-- - - - - - - - - - - - - - - - - - - - - - ' MON (0) +----;!______ '. . NAR (0) 1/2 VDD level /\ I\ (\ (\ (\ (\ (\ (\ (\ (\ ~ AOUT (0) GND level ! : tAD1 i - v v v v v v ~ - i l1--GN_D_le_v_el Power downX Standby XAddress contro1X Playback X Standby XPower down a ~ ~- g. ~ ~ • Continuous ROM Playback Timing (PDMD Pin= High) Ul i----i<-- tsp SP (I) : : i j...: i XT I ! i~------~--------+-- XT ~J) ~ Oscillation in progress l l 1TMH3 l i lPMH3 l tsrn t ! : t MON (0) : . NAR (0) i ! 1/2 VDD level /\ (\ (\ (\ A ! {\ (\ (\ (\ /\ 1/2 VDD level GND level GND level AOUT (0) l lAD1 j lMID l - - - - , ,.----------,lr-------\i 1r-----.l~------~ ~---~ ~-- Power downX Standby 1st phrase playback Unvoiced 2nd phrase playback Standby XPower down Address control s:: (/) s:: °' ~ I 0-- • Recording Timing (PDMD Pin = Low) s:: 00 en 0 s:: RESET (I) I ROM (I) ~ ~ SAM1, SAM2 4B/3B (I) (I) mJM Bit rate specifying operation ~ CAO~CA5 (I) ~ Phrase specifying operation REC/PLAY (I) ~ ------< -+t- tsr -t+ . tcAH ! . ST (I) -tr- tsp SP (I) : : j.. .l XT XT (I) (0) _____Jk : Oscillation in progress ; l trML1 l i IPML1 tsTN ; ,___:- - - - - - - - - - - - - - - - - - MON (0) NAR (0) : tAD1 : Power down X Analog stable time XAddress control X Recording in progress X Power down ~ loll en i tsTN ----*-- MON (0) NAR (0) ! 1/2 VDD level AOUT (0) GNDlevel .~i tAD1 GND level ---~ ~---~i ;,----.---------------~,----.---~ ~--- Power down Analog stable time Standby transition Address control Playback '-----+----' Standby transition Power down a 162 ~- §' IT e ROM Playback Timing (PDMD Pin = Low) RESET (I) ~ en i--i<-- tsp : 1 SP (I) r··· XT (I) i i XT (0) ~ Oscillation in progress J tTML3 i i tPML3 tsm J '- : MON (0) NAR (0) AOUT (0) GND level GND level tAOR ! tAD1 Power down Address control Playback Power down Analog stable time Standby transition Standby transition s:: !--+-- IPSE i ~ ~~~~~~~~~~~---;· : , : r :~~~~~'~~~~~~~~~~~~~- Q PAUSE (I) ! ~ !pp . ! -+-----t- lPST i : !pp I. Note 1 : ' . . MON (0) l [ f Standby X Record/Playback X Pause XRecord/Playback X Pause X Standby Note 1: This time interval varies depending on the state of PDMD pin and the record/playback mode and is one oflPMH1, IPMH2. IPMH3. IPML1, IPML2 and IPML3· :s: "' :s: °' 00 \Jl I MSM6688 OKI Semiconductor • PIN DESCRIPTION Pin name 110 Pin function DVDD I Digital power supply pin DVDD' I Digital power supply pin AVDD I Analog power supply pin DGND I Digital ground pin AGND I Analog ground pin SG,SGC 0 Output pin for analog circuit reference voltage (signal ground) MIN Inverting input pin of the built-in OP amplifier. Non-inverting input LIN I pin is internally connected to SG (signal ground). MOUT MOUT and LOUT are output pins of the built-in OP amplifier for MIN LOUT 0 and LIN, respectively. This pin is connected to the LOUT pin in the recording mode and to AMON 0 the DA converter output in the playback mode. Used to connect the built-in LPF input (FIN pin). FIN I Input pin of the built-in LPF. FOUT 0 Output pin of the built-in LPF. Used to connect the AD converter input (ADIN pin). ADIN I Input pin of the built-in 12-bit AD converter. Output pin of the built-in LPF. This pin outputs playback waveforms AOUT 0 and used to connect an external speaker drive amplifier. (Serial Address Data). Used to connect the SAD pin of each SADX 0 external MSM6791 (DRAM interface LSI) and serial voice ROM. SADY Outputs of starting address of read/write. ~erial Address Strobe). Used to connect the SAS pin of external SAS 0 SM6791 (DRAM interface LSI) and the SASX and SASY pins of external serial voice ROM. Clock pin to write the serial address. i (Tran sf er Address Strobe Used to connect the TAS pin of each external MSM6791 (DRA interface LSI) and serial voice ROM. TAS 0 This pin outputs address strobe outputs to set the serial address data from the SADX and SADY pins into the internal address counter of each MSM6791 (DRAM interface LSI) and serial voice ROM. (Read/Write Clock). Used to connect the RWCK pin of each external RWCK 0 MSM6791 (DRAM interface LSI) and the RDCK pin of each external serial voice ROM. This pin outputs a clock to read data from or write it into each external MSM6791 (DRAM interface LSI). (Write Enable) Used to connect the WE pin of each external WE 0 MSM6791 (DRAM interface LSI). This pin outputs WE signal to select either read or write mode. ~Data 1/0). Used to connect the DIN pin of DRAM and MSM6791 Dl/O 1/0 DRAM interface LSI). This pin outputs the data to be written into the serial register or inputs the data read from the serial registers. DROM I (Data ROM). Used to connect the DOUT pin of each external serial voic ROM. CS1 0 ~Chip Select). Used to connect the CS1-CS4 pins of MSM6791 CS2 0 DRAM interface LSI). CS3 0 CS4 0 686 OKI Semiconductor MSM6688 Pin name 1/0 Pin function RSEL 1 I (Register Select). These are used to select the maximum RSEL2 I controllable size of external RAM. RSEL2 L L H H RSEL 1 L H L H Total memory size BM bit 16Mbit 24Mbit 32Mbit This pin is used to select either the stand-alone mode or the MCUM I microcontroller interface mode. Low level: Stand-alone mode High level: Microcontroller interface mode. RESET I A high input level to this pin causes the MSM6688 to be initialized and to go into the power down state. (Power Down). When a low level is input to this pin, the MSM6688 goes to the power down state. Unlike the RESET pin, this pin does PDWN I not force to reset the MSM6688. When an Low level is applied to this PDWN pin during recording operation, the MSM6688 is halted, and will be maintained in the power down state while PDWN is low. After this pin is restored to a high level, postprocessing for recording will be performed. Used to connect an oscillator. When an external clock is used, XT I input the clock through this pin. At the power down state, this pin must be set to the ground level. XT 0 Used to connect an oscillator, when an external clock is used, this pin must be left open. TEST Used to test the MSM6688. Input a low level to the TEST pin and I a high level to the TEST pin. TEST fiR7 MSM6688 OK.I Semiconductor Pin name 110 Pin function ROM I When low, selects the record/playback operation. When high, selects the ROM playback operation. REC/PLAY I Used to select the recording mode or the playback mode. This pin is invalid during the ROM playback operation. When low, selects the playback mode. When high, selects the recording mode. ST I When a low-level pulse is applied to this pin, the record/playback or ROM playback is started. SP I When a low-level pulse is applied to this pin, the record/playback or ROM playback is stopped. PAUSE I When a low-level pulse is applied to this pin, the record/playback or ROM operation is stopped temporarily. DEL I When a low level pulse is applied to thisJin, all phase deletion or specified phrase deletion can be performed accor ing to the setting of pins CAO through CA5, chOO: All phase deletion ch01-ch3F: Specified phrase deletion Attiir llQwerinp u(l, be syre tQ inuyt RESET §ignal ang then IQ diilete all uhri;!§es. Aftgr com12letmg thi§ urQQ!lQYr!l, start the recQrQ/(lla~back ouiiratiQn. CAO-CA5 I Input rins used to specify desired phases. A tota of 63 phrases can be specified independently for the record/playback operation and the ROM playback operation. CA5 CM CA3 CA2. CA1 CAO Phrase No. Remarks L L L L L L chOO All phrase deletion L L L L L H ch01 L L L L H L ch02 A total of 63 phrases can be used both for record/playback and ROM playback H H H H H L ch3E operation. H H H H H H ch3F 48138 I Input pin used to select one of two %pes of ADPCM bit length. When low, selects the 3-bit ADPC . When high, selects the 4-bit ADPCM. 688 OKI Semiconductor MSM6688 Pin name 1/0 Pin function SAM1 I Used to select one of the following four types of sampling SAM2 frequency. The relationship between the master oscillator frequency (lose) and thesampling frequency (fsamp) is shown below. Values in parentheses denote the sampling frequencies for lose= 4.096 MHz. SAM2 L L H H SAM1 L H L H Isam lose lose lose lose 1024 768 640 512 (4.0kHz) (5.3kHz) (6.4kHz) (8.0kHz) PDMD I This input pin is used to select the condition for transition to the power-down state. Low level: The MSM6688 automatically goes to the power-down state, excepting the time the record/playback operation is being performed. High level: The MSM6688 automatically goes to the standby state, instead of the power-down state, excepting the time the record/playback operation is being performed. In this case, the MSM6688 can be placed in the power-down state bJ setting the RESET pin to a high level. If it is desire to use the built-in LPF for an external circuit, this standby mode must be selected by applying a high level to the PDMD pin. VDS I Used to select the voice activated recording that starts recording when the voice input exceeds the preset amplitude. A high input level on this pin enables the voice activated recording circuit. MON 0 Outputs a high level while the record/playback operation is being performed. NAR 0 Output pin to indicate the enable or disable state of the operation for specifying a phrase. When continuous ROM playback is performed, the next phrase can be specified after verifying that the NAR pin becomes high. 689 MSM6688 OKI Semiconductor • FUNCTIONAL DESCRIPTION • Recording Time and Memory Capacity The recording time depends on the memory capacity of the external serial registers, sampling frequency, and ADPCM bit length, and is given by Recording time= 1.024 x memory capacity (K bits) (seconds) sampling frequency (kHz) x bit length (bits) For example, if the sampling frequency is ~O:: kHz(= 5.333 kHz), AD PCM bit length is 3 bits, and four BM bit serial registers are used, the recording time can be obtained as follows. 1.024 x (8192 x 4- 64) Recording time = 5 .333 x 3 = 2093 seconds = 34 minutes 53 seconds In the above equation, the memory capacity is obtained by subtracting the memory capacity (64 kbits) for the channel index area from the total memory capacity. 690 OKI Semiconductor MSM6688 • Power Supply Wiring As shown in the following diagram, supply the power to this MSM6688 from the same power source, but separate the power supply wiring to the analog portion from that to the logic position. +SV DVDD DVDD' AVDD MSM6688 AGND Do not supply the power to the logic portion and the analog portion from the separate power sources. Otherwise, a problem such as latch-up may occur. Wrong Wrong Analog power supply•----~ Digital power supply i i l +5V~ DVDD DVDD' ;Jz AVDD DVDD DVDD' AVDD • Analog Input Amplifier Circuit This MSM6688 has two built-in operational amplifiers for amplifying the microphone output. Each OP amplifier is provided with the inverting input pin and output pin. The analog circuit reference voltage SG (signal ground) is connected internally to the non-inverting input of each OP amplifier. For amplification, form an inverting amplifier circuit and adjust the amplification ratio by using external resistors as shown below. ~A--,:---'\RM1/l,-;lll-1\IRl/V2~a--! l-'ll'Vll'v--+---'VVR4y.,.--e SG R2•R4 R1 • R3 V1N(V) During the time the recording operation is performed, the output '!J..o of OP amp 2 is connected to the input FIN of the built-in LPF. The FIN allowable input voltage (VF1N) ranges from 1V to (V00 -1)V. Therefore, the amplification ratio must be adjusted so that the Vw amplitude can be within the FIN allowable input voltage range. For example, ifVop= 5V, V~0 becomes 3 V max. If VLo exceeds the Fl N allowable input voltage range, the output of the LPF will oe a clipped Waveform. The load resistance R0 Lrrt\ of the OP amp is 200 kn minimum, so that the feedback resisters R2 and R4 of the inverting ampht1er circuit must be 200 kn or more. 691 MSM6688 OKI Semiconductor • Connection of LPF Circuit Peripherals Tbe AMON pin is connected internally to the output of the amplifier circuit (LOUT pin) in the recording mode and to the output of the built-in DA converter in the playback mode. Therefore, connect the AMON pin directly to the input (FIN pin) of the built-in LPF. Both the FOUT and AOUT pins are the output pins of the built-in LPF. Connect the FOUT pin to the input (ADIN pin) of the built-in AD converter and connectthe AOUT pin to an external speaker through an external speaker drive amplifier. In the MSM6688, the connection of each of the FOUT and AOUT pins is changed to one of the output of the LPF, GND (ground) level, and SG (signal ground) level, depending on the operation status as shown below. When PDMD pin= high level: Durin~ operation At ~ower down lRES T Qin = Ll Analog pin (R SET pin =H) Recording mode Playback mode LPF output FOUT pin GND level (recording waveform) LPF output LPF output AOUT pin GND level SG level (playback waveform) When PDMD pin= L: During operation Analog pin At power down Recording mode Playback mode LPF output FOUT pin GND level (recording waveform) LPF output AOUT pin GND level GND level LPF output (playback waveform) 692 OKI Semiconductor MSM6688 When PDMD pin = H: Speaker drive amplifier 1)) FIN AOUT Note: This diagram shows the state of each switch during the recording operation. When PDMD = L: Speaker drive amplifier UN LOUT AMON Note: This diagram shows the state of each switch during the recording operation. • LPF Characteristics [dB] 20 10 This LSI contains a fourth-order switched-capacitor 0 LPF. -10 I\ The attenuation characteristic of this LPF is-40 dB/ I~ oct. The cut-off frequency and frequency charac- -20 teristics of this LPF vary in proportion to the sam- -30 pling frequency (fsamp). The cut-off frequency is -40 preset to 0.4 times the sampling frequency. The following graph depicts the frequency characteris- -50 -60 v tics of the LPF at fsamp = 8 kHz. -70 -80 100 1K 10K [Hz] LPF Frequency Characteristics (fsamp = 8.0 kHz) 693 MSM6688 OKI Semiconductor • Reset Function By applying a high level to the RESET pin, the MSM6688 stops frequency oscillation to_ minimize current consumption and goes to the power-down state. At the same time, the control circuit is reset and initialized. If a high level is applied to the RESET pin during record/playback operation . the MSM6688 is set to the power-down state and initialized state. so that voice data becomes undefined. The following shows the power-down state of the MSM6688. (1). Frequency oscillation is stopped and all operations of the internal circuit are halted. (2) The current consumption is minimized. When an external clock is used, apply a ground (GND) level to the XT pin at power down so that no current can flow into the oscillation circuit. (3) CS1 - CS4 pins are set to a high level to minimize the current consumption of external serial registers and serial voice ROMs. (4) Pull-up resistors are removed from the input control ST, SP, PAUSE, and DEL pins. (5) The state of the output pins are as follows. SADX, SAS, TAS, CS1 - CS4, WE, RWCK, and NAR pins: ....................... High level SADY, MON pin: ....................................... Low level AOUT and FOUT pins: .............................. Ground level After powering up the MSM6688, be sure to initialize it by applying a high level to the RESET pin. 694 OKI Semiconductor MSM6688 • Power Down by the PDWN pin By applying a low level to the PDWN pin, the MSM6688 may be set to the power-down state, in which the oscillation and all operations of internal circuits are halted. Unlike the reset operation by the RESET input, the control circuit will not be initialized by this power-down operation. The power-down operation will not affect the data in the internal control circuit and external serial registers. Therefore, this power-down operation is useful when the battery backup takes place in case of power failure. When PDWN becomes low during one of the followi~ations, their respective operations will be performed after the power-down state is released (PDWN = H). (1) When the MSM6688 is powered-down (PDWN = L} during the record/plaback operation: The record/plabackoperation is stopped. After the release of the power-down state, the postprocessing will be performed. (2) When the MSM6688 is prowered-down (PDWN = L} during the phrase deleting operation: The phrase deleting operation is temporalily stopped and will be restarted after the release of the power-down state. (3) When the MSM6688 is powered down (PDWN = L} during the time the transition of the AOUT output to a DC level is in progress: This transition operation is temporalily stopped and will be continued after the release of the power-down state. 695 MSM6688 OKI Semiconductor • Record/Playback Control Mode Either record/playback mode or ROM playback mode can be selected through the ROM pin as described below. ROM pin Record/playback control mode L Record/plaback H ROM playback 1. Record/playback The recorded voice data is stored in serial registers. The recording area is indirectly allocated to each phrase by setting the phase specifying pins CAO to CA5 (63 phrases). The recording area for each phrase is managed by the MSM6688 as described below. The total memory capacity of the connected external serial registers is equally divided into 256 memory blocks. When recording is performed, voice data is written into the memory blocks unused by other phrases. When a specified phase is deleted, the blocks used by this phrase become unused blocks. When re-recording is performed, voice data is written in the memory area consisting of the memory blocks used by this phrase and the unused memory blocks. The memory capacity of one memory block and the number of initially available memory blocks (recording time) vary according to the total memory capacity of the connected serial registers. 696 OKI Semiconductor MSM6688 RSEL2 L L H H RSEL1 L H L H Total memory capacity SM bits 16M bits 24M bits 32M bits Memory capacity of one block 32K bits 64K bits 128K bits 128K bits 16kbps 2.0 seconds 4.1 seconds 8.2 seconds 8.2 seconds Recording time of one block 24kbps 1.4 seconds 2.7 seconds 5.5 seconds 5.5 seconds 32kbps 1.0 second 2.0 seconds 4.1 seconds 4.1 seconds Number of initially available 254 255 191 255 blocks 697 MSM6688 OKI Semiconductor 2. ROM playback For playback of the voice data stored in the connected serial voice ROM, the playback area is allocated indirectly to each fixed message phrase by setting phrase specifying pins CAO to CA5 (63 phases). The start address, stop address, sampling frequency, and ADPCM bit length which specify the playback area for each phase are written in the index area of the serial voice ROM. When the playback operation is started, the MSM6688 fetches these data from the index area. 698 OKI Semiconductor MSM6688 • Deleting phrases 1. Deleting all phrases All 63 phresses ch01 through ch3F can be deleted by specifying chOO and applying a low pulse to the DEL pin. When all phrases are deleted, all phrases ch01- ch3F (63 phrases) go to the unrecorded status and, at the same time, the initial data for address control is written in the serial registers. Therefore, whenever the MSM6688 is powered up. delete all phrases after applying a high level to the RESET pin. 2. Deleting a specified phrase By specifying one of ch01 - ch3F phrase and applying a low level to the DEL pin, the specified phrase can be deleted and put to the unrecorded state. The blocks for the deleted phrases are added to available unused blocks (available recording time). 699 MSM6688 OKI Semiconductor • Recording Method Whenever the MSM6688 is powered up. be sure to delete all phrases after applying a high level to the RESET pin. Then. start the recording operation. (1) Set recording conditions at the relevant pins. ROM pin: Low level REC/PLAY pin: High level VOS pin: Selection of voice activation recording (high level enables voice activation and low level disables voice activation.) SAM1 and SAM2 pins: Select the smpling frequency. 48 /38 pin: Select the ADPCM bit length. CAO - CAS pins: Specify one of 63 phrases ch01 - ch3F. (2) To start recording, apply a low pulse to the ST pin. To stop recording in progress, apply a low pulse to the SP pin. When recording continues to the end of the memory capacity, recording is automatically stopped. In case of re-recording, voice data will be written in the memory block used by the specified phrase and unused memory blocks. Therefore, the voice data is overwritten on the previously recorded contents. The MON pin outputs a high level during recording. Start pulse Invalid I I ST (1)---U u Stop pulse SP (I) MON (0) Recording in progress I' (stopped in the middle) )I I' Available memory capacity )I ST (I) MON (0) I( Recording in progress )I IE Available memory capacity )I Recording is stopped automatically. 700 OKI Semiconductor MSM6688 • Playback Method (1) Set playback conditions at the relevant pins. ROM...e!!!:._ Low level REC/PLAY pin: Low level SAM1 and SAM2 pins: Select the sampling frequency. 48/38 pin: Specify the ADPCM bit length selected for recording. CAO-CA5 pins: Specify one of 63 phases ch01-ch3F. (2) To start playback, apply a low pulse to the ST pin. When playback for the duration of the recorded data is finished, the playback is stopped automatically. To stop playback in progress, apply a low pulse to the SP pin. The MON pin outputs a high level during playback. Start pulse Sf (I) '~~~~~~~~~- MON (0) I< Playback in progress (same as the recorded time) >I Playback is stopped automatically By maintaining the ST pin at a low level, repeated playback is possible. ' ~ (Stop pulse) (I) MON (0) I.,, 1st playback I )( 2nd playback I )( 3rd playback ) I 701 MSM6688 OKI Semiconductor • ROM Playback Method (1) Apply a high level to the ROM pin. (2) Specify one of 63 phrases ch01 - ch3F by setting the CAO - CA5 pins. (3) To sta!:!£!ayback, apply a low pulse to the ST pin. To stop playback in progress, apply a low pulse to the SP pin. 702 OKI Semiconductor MSM6688 • Voice Activated Recording This MSM6688 has the voice activated recording function to start recording when the level of voice input exceeds a preset amplitude. Using the voice activated function, the unvoiced part prior to voice detection will not be recorded, so that the memory capacity can be utilized efficiently. The unvoiced parts in the middle of recording are not eliminated. In the voice activated recording mode. recording is started when a voice input exceeds the preset thresholds. Therefore. a consonant part with a low level may not be recorded. Voice input level I ------------- --- -------Upperthreshold (ADIN pin) +Vvds 1/2VDD - ------ -----t:--,.,:t~hro '";,:'~' -Vvds " thcoshold t Start signal input VOS pin Voice activation conditions L Voice activation disabled H Voice activation enabled Voice detection threshold Vvds = VDD/32 (± 160 mV) The value in parentheses is for VDD =5.12V. 701 MSM6688 OK.I Semiconductor When a low level is applied to the ST pin in the voice activated mode, the MSM6688 goes to the standby state for voice. When detecting a voiced input, it starts recording and the MON pin outputs a high level. Start pulse ST (I) SP (I) MON (0) ~Standby for voice)IE Recording in progress )I i Determined as voice When a low level is applied to the SP pin during standby state for voice, the MSM6688 finishes the standby state for voice and goes to the standby state for recording. Start pulse Si' (I) Stop pulse LJ Standb~ for SP (I) Standby for recording ~E Standby for voice >~ recording 704 OKI Semiconductor MSM6688 • Method of Stopping Temporarily Record/Playback by Pause Function By applying a low pulse to the PAUSE pin during record/playback, record/pl~ack operation can be stopped temporarily. To resume record/playback, apply a low pulse to the ST pin. To stop record/ playback, apply a low pulse to the SP pin. i Start pulse Start pulse ii_ Sf (I) --U Pause pulse ":>I LJ PAUSE (I) Pause IE ~1 1' Resume ii_ Start pulse Sf (I) LJ ii_ Stop pulse SP (I) Pause pulse ...,,. LJ PAUSE (I) Pause IE ~ 1' Record/Playback finished When record/playback is resumed after temporary stop, the voice activating circuit is not operated and recording is started when a start low pulse is applied to SP pin. 705 C:1 CJ\ • r 0 !e.-l :0 Ql :::r • •m s:: UJ s:: ~ ~ )> ::> Cl> TEST Voo Voo Vee x s:: g. Q. x x l8 DEL ............ ~ SAD SAS RAS XWE RAS WE DOUT J:, O'> LO c.CQ m SP PAUSE WE RWCK WE r en Cl> Ill Ill 3 -::> - c. ...... .,,0 .,, 01/0 DOUT ::> :E :::r .,, 0 PDWN ..,,. ~ C.o o RSEL1 ~ ~ .j>. :E RSEL2 DROM LO :;: CJ'J 0 s:: (/) r- SAM1 co 2 l\)Q:~ SAM2 ~ s:: 0 Ql 0 g: :n:g 48/38 ~ POMO~ (/) )> = Cl> s:: () ~ MCUMu; o; ,__ :::?.rn e 0 VOS ...J a: CS1 _(J'J z L.U Cl CS2 2 ~- c: Q. Q a: Cl>~ 0 CAO 0 CS3 JJ c. !::. ::D <..> CA1 L.U CS4 0 Ql .... 0 a: CA2 s::~~ c: !/~ L.U Min. (/) Cl> Ql CA3 ~ M1 Ql () 3 =i "'r CM I- CJ'J -0-o CA5 6MOUT M2 ~ '2: iii" Ql "2. :E ~ Ql :::r XT CD'< Cl> () O'" ~ 0 Ql Cl> a.. ROM 1j SMH' XT ::> () .... ::> ":::r XT ~ LOUT Cl> 3 Cl> XT AMON 'J- "J;- Circuit Diagram 1: Application circuit in u s:: Cl> ~ m 3 en FIN standalone mode with 4Mbit p. 0 s:: J;. J;. \ MON ~i~~ Af\llT Speaker drive amplifier "' r(l~ TEST Vss Vss DRAMS and 2Mbit serial voice ROMs ::::?. CJ) Cl> 0) (/) CX> loll en O'" CX> CD ~- '< -· () (/) 0 c: ::> (/) ::>Cl> g ~~ 5·=> g. co 5' Q. Ql Cl> 0..... OKI Semiconductor MSM6688 (2) MICROCONTROLLER INTERFACE MODE •FEATURES e 3-bit or 4-bit ADPCM • Built-in 12-bit AD converter • Built-in12-bit DA converter • Built-in microphone amplifier • Built-in low-pass filter Attenuation characteristics -40 dB/oct • External memories DRAM, maximum 32M bits (for variable messages) 1/4/16Mbit DRAM (x1bit configuration) are controlled by DRAM interface LSI (MSM6791). Serial voice ROMs, maximum 4M bits (for fixed messages) 1M bit serial voice ROM (MSM6595), directly addressable 2M bit serial voice ROM (MSM6596), directly addressable 3M bit serial voice ROM (MSM6597), directly addressable • Sampling frequency 4.0 kHz, 5.3 kHz, 6.4 kHz or 8.0 kHz • Number of phrases 63 phrases for variable messages 63 phrases for fixed messages • Maximum recording time (when external 32Mbit RAM is connected) 34 minutes (for 16kbps ADPCM) 23 minutes (for 24kbps ADPCM) 17 minutes (for 32kbps ADPCM) • Voice activation function • Pause function • Master clock frequency: 4.096 MHz • Power supply voltage: 5 V single power supply • Package: 6-pin plastic QFP (QFP56-P-910-V1 K) 707 MSM6688 OKI Semiconductor • PIN LAYOUT (TOP VIEW) CS4 MIN Dl/O 27 MOUT DROM LIN WE LOUT XT SGC XT SG DVDD AVDD RWCK 21 DVDD' MON AMON NAR FIN RESET 18 AOUT WR FOUT RD ADIN CE 1s TEST INDEX MARK 708 NAR VPM RPM BUSY D3 D2 D1 DO WR RD CE CE •m ~ 5 0 ~ 8. Dl/O § TEST TEST Test Status MCU l/F Data 1/0 DROM "c g. ~J:J Circuit Register ~ ~SADX J> SADY 3: I ~ TAS MCUM RESET PDWN Address Controller C"> 0 ;3. ~ :D "' ---+--------< Hi-Z 1----------< RPM (0) >---+--------< Hi-Z 1-------< VPM (0) 1 - - - - + - - - - - 1 Hi-Z f - - - - - { NAR (0) , __ _,___------< Hi-Z 1------< -----~~ Powe< dowo * WR and Mpulses are not accepted Postp<0cess;og X~_st_a_nd_b_y_ Note 1 : When an external clock is used, apply a low level to the PDWN pin and then continue to apply the external clock to the XT pin for ~x· 716 OKI Semiconductor MSM6688 • Data Read Timing (RD Pulse) CE (I) CE (I) tcR RD (I) D0-03 (110) - - - - - - - - - - - - - < 1 • Data Write Timing (WR Pules) CE (I) CE (I) WR (I) tww tows towH DO-D3 (1/0) 717 e Inputting 1-NibbleCommands(NOP, PAUSE, PLAY, REC, START, STOP and DEL Commands) ~ ::::1 00 s::: I WR (I) L1 toRw--r.-+: '~' RD (I) lJ LJ LJ LJ Status output DO-D3 (110) !' 'Command input ta1 , twsLA. twsu ' Status register '' BUSY bit fa 1: NOP, PAUSE, PLAY, REC, START, and STOP commands twsLA: DEL command (deletion of all phrases) tweu: DEL command (deletion of a specified phrase) ~ ~ ~- §' ~ ~ • Inputting 2-Nibble Commands (SAMP, VDS, and LEV Commands) Ul ---'-:-u u u u-- Q Status output .' DO-D3 (1/0) i '\_Command input '\_Data input ; (1st nibble) (2nd nibble) ;" " - -ts2 -- ~·..... ,.... tso -; I- I I Status register ' . 1 BUSY bit The LEV command is used to specify the playback level. See the timing diagram for DC level transition by the LEV command. 3: (/) 3: :::! D I 'I • Inputting 3-Nibble Commands (CHAN and BLKWR Commands) 3:: N CJ) 0 3:: I WR (I) u- -- - LI LI toRw~: : RD (I) i l. LJ LJ l ' LJ LJ I .- Status output ' ' ' ' ii' ' 00-03 (1/0) 'ala input (3rd nibble) Status register ; ts3 i tso ; tso ' ' BUSY bit ' ' , __'-------' ~.... f6l ~- g. ~ ~ • Inputting the BLKRD Command Ul I : tsAo : tsAo : tsAo f-l> Input of WR pulse enabled Status register BUSY bit _ ____,/ i i LJ L ____ ~ ' - - - i_ 1. After making sure thatthe MSM6688 is not in the busy state by checking the BUSY bit of the status register, input the ADRWR command. 2. Then, input 2nd-11th nibble address data after making sure that the MSM6688 is not in the BUSY state by one of the following two methods. • Check of the BUSY bit in the status register • Input the next WR pulse after the waiting time 1sAw or ~o· a ~ ~- g. ~ • Inputting the ADRRD Command ~ ~ WR (I) 8. U, twAR twoR twoR ~ Input of WR and RD pulses enabled : § g. RD (I) _, I i i .' ': LJ' :"'" '' u--------ul---- ': '' :"' ' ~ ' ' ' ' DO-D3 (1/0) -o ".,_ S 6 : "\_Command input o~ ~ q : Address data l\ddress data ; \ddress data Status outpu~ (1st nibble) : output : output : output I : : (2nd nibble) : (3rd nibble) I I : (11th nibble) I I I I I Status register Busy bit -----~: : : ____ _j----L__ 1. After making sure thatthe MSM6688 is not in the busy state by checking the BUSY bit of the status register, input the ADRRD command. 2. Then, the address data is read according to 2nd thro.!!9!J 11th nibble command. The state of the BUSY bit cannot be checked by the RD pulse. Therefore, input the RD pulse either after the waiting time fwAR or fwoR or after verifying the BUSY state at the BUSY output pin. 3: en 3: ~ I • Timing for Record/Playback by START Command s::: ~ (/) s::: RESET (I) : l------. l I WR (I) : : u I Li I : : DO~D3 (1/0) : 1 o: a· : I i "\ START command : "\ (STOP command) ! j tsrcM (Note) , ~ tsPcM (Note) ): '' '' '' MON (I) ' ~-------!, '' '' ''' '' ' ' : tsR ts1 : i ts1 : Status register ,~: ~: _r----u--1 :: I :~ I _____ 1, : : I I : BUSY bit : I I : 1 : I I I I I I : : I I I RPM bit : : ! :' :' ' ~.----..;:~------ ! : I I I NAR bit ' ' ' ' ' ' : i ~tsrcR ::E tA01 ):: : :E tsPCR ): ' :' '' AOUT (0) (playback) ''' I I i Power~ Standby Record/playback XAddresscontro~ Standby X Power down a *ddresscon1ro1X (/) Note: ~CM and \;PcM vary depending on the control mode for record/playback and on record or playback mode. ~­ § g. ~ ~ • Voice Activation Timing ~ WR (I) u--- [_T ___ ---------rr ~· ' ' ' ' ' ' 00-03 (1/0) @" ~ "" START command : ""(STOP command) ""(STOP command) : tspcv (Note) I I tsPcM : : ' MON (0) '' ts1 : ts1 : : ts1 Status register ~ ~: ~ I I I I I -----1 I 1-----i I I I I : : BUSY bit RPM bit -------~:---ll : ---~~--~:---------~ :' : : :' -------~:---l ' VPM bit : : I : : I I I I I 1 NAR bit ' ' ' : I : ' ' ' -*-i<-tsTCR : tAD1 : : tsPCR • ' ' ' ' ' Standby Standby for voice XAddress controlx Recording ("!dress contro?(, Standby Determined as voice J L If the STOP command is input during standby for voice, this state is changed to the standby for recording. Note: tspcv varies depending on the recording mode (flex recording or direct recording). s:: "' s:: ~ t:j Ul 'l • Timing for Continuous ROM Playback by Input of Address Code 3: N c;r, "' 3: WR (I) i I I 1 l I I I I I I I I I I I I 00-03 (1/0) CHAN command START command CHAN command : START command (1st phrase) t , (2nd phrase) STCM ,: MON (0) : : ' ' : : ' : : tsrcR ~ : --*----!.- tsrcN : Status register I I l ~ I I I 1 I : ' ' ' ' RPM bit : l' :' : NAR bit ' '--~~~~~~·~~~~~ ' ' !, tAD1 ,: ' tMID " : ' ''' AOUT (0) Standby Address control 1st phrase playback .ddress contro 2nd phrase playback Standby a ~ ~- g. ~ ~ • Timing for Record/Playback Pause Operation by PAUSE Command en ;<;twEx:)t input:enable 1 MON (0) : output · : : : I I ' I I I I ' I I ' I I ' ' ' ' ' 1/2 VDD level 1112 VDD l~vel AOUT (0) GND Ieve I · , , GND level .~ : . L-- * • I I I ~ Standby Playback ~ ~ Power down Power down w ~- §' ~ ~ • Timing for DC Level Transition by LEV Command &S1 RESET (I) ~- ' ' 2- WR (I) LI Lfl1 LJL_flj' ~ 00-03 (1/0) 6----6--6 PLAY . '-"": 6-6-0,__________,___ PLAY "1": command LEV : command LEV : command coml'X!and ' Status register itLv, tAoR ~tLv_._ tAOF _, I I I ~' ~;' I I I I I I BUSY bit : : ' I I I I ' ~.-~.----- 1 I I : : ~ NAR bit 1/2 VDD level AOUT (0) GND level GND level Power down Standby DC level transition Record/playback DC level transition Power down Standby 3: (/) 3: (;] w i MSM6688 OKI Semiconductor • PIN DESCRIPTION Pin name 1/0 Pin function DVDD I Digital power supply pin DVDD' I Digital power supply pin AVDD I Analog power supply pin DGND I Digital ground pin AGND I Analog ground pin SG,SGC 0 Output pin for analog circuit reference voltage (signal ground) MIN Inverting input pin of the built-in OP amplifier. Non-inverting input pin LIN 0 is internally connected to SG (signal ground). MOUT 0 MOUT and LOUT are output pins of the built-in OP amplifier for MIN LOUT and LIN, respectively. AMON This pin is connected to the LOUT pin in the recording mode and to the 0 DA converter output in the playback mode. Used to connect the built-in LPF input (FIN pin). FIN I Input pin of the built-in LPF. FOUT Output pin of the built-in LPF. Used to connect the AD converter input 0 (ADIN pin) ADIN I Input pin of the built-in 12-bit AD converter. Output pin of the built-in LPF. This pin outputs pla~back waveforms AOUT 0 and used to connect an external speaker drive amp ifier. SADX 0 (Serial Address Data). Used to connect the SAD pin of each external SADY MSM6791 (DRAM interface LSI) and serial voice ROM. ~erial Address Strobe). Used to connect the SAS pin of external SAS 0 SM6791 (DRAM interface LSI) and the SASX and SASY pins of external serial voice ROM. Clock pin to write the serial address. (Transfer Address Strobe). Used to connect the TAS pin of each TAS 0 external MSM6791 d°RAM interface LSI) and serial voice ROM. This pin outputs ad ress strobe outputs to set the serial address data from the SADX and SADY pins into the internal address counter of each MSM6791 (DRAM interface LSI) and serial voice ROM. (Read/Write Clock). Used to connect the RWCK pin of each external RWCK 0 MSM6791 WRAM interface LSI) and the ROCK pin of each external serial voice OM. This pin outputs a clock to read data from or write it into each external serial register ~Write Enable) Used to connect the WE.llin.of each external MSM6791 WE 0 DRAM interface LSI). This pin outputs WE signal to select either read or write mode. ~Data 1/0). Used to connect the DIN pin of DRAM and MSM6791 Dl/O 1/0 DRAM interface LSI). This pin outputs the data to be written into the serial register or inputs the data read from the serial registers. DROM I (Data ROM). Used to connect the DOUT pin of each external serial voice ROM. 734 OKI Semiconductor MSM6688 Pin name 1/0 Pin function 1--- ----------------------------------] CST 0 iChip Select). Used to connect the CS1-CS4 p~of MSM6791 CS2 0 DRAM interface LSI). and the CS (CS1, CS2, CS3) pins of each CS3 0 serial voice ROM CS4 0 RSEL1 I (Register Select~ These are used to select the maximum controlled RSEL2 I size of external AM. RSEL2 L L H H RSEL1 L H L H Total memory size 8Mbit 16Mbit 24Mbit 32Mbit MCUM I This pin is used to select either the stand-alone mode or the microcontroller interface mode. Low level: Stand-alone mode High level: Microcontroller interface mode RESET I A high input level at this pin causes the MSM6688 to be initialized and to go into the power down state. PDWN I (Power Down). When a low level is input to this pin, the MSM6688 goes to the power down state. Unlike the RESET pin, this pin does not force to reset the MSM6688. When an low level is applied to this PDWN pin during recording operation, the MSM6688 is halted, and will be maintained in the power down state while PDWN is low. After this pin is restored to a high level, postprocessing for recording will be performed. DO 1/0 Bi-directional data bus to transfer commands and data to and from an 01 external microcontroller. 02 03 WR I Write pulse input pin. Inputting a low pulse to this WR pin causes a command or data to be input via D0-03 pins. RD I Read pulse input pin. Inputting a low pulse to this RD pin causes status bits or data to be output via D0-03 pins. CE I Chip enable input pins. When the CE pin is set to a low level orue CE I CE pin is set to a high level, the write pulse (WR), read pulse (RD) can be accept!tll When the CE pin_§_set to a high level QLCE pin is set to a low level, the write pulse (WRb and read pulse (RD) cannot be accepted so that data cannot e transferred to and from via D0-03 pins. BUSY 0 Outputs a high level while a command is being executed. When this pin is held high, do not apply any data to D0-03 pins. The state of this BUSY pin is the same as the contents of the BUSY bit of the status register RPM 0 Outputs a high level during recording or playback operation. The state of this RPM is the same as the contents of the RPM bit of the status register. VPM 0 Outputs a high level during the standby for voice after the start of voice activated recording and the record/playback is stopped temporarily by inputting the PAUSE command. The state of this VPM pin is the same as the contents of the VPM bit of the status register. NAR 0 This NAR bit indicates whether the phrase designation by the CHAN command is enabled or disabled. In the ROM playback operation, specify the next phrase after making sure that the NAR output is high, and input the START command. 735 MSM6688 OKI Semiconductor Pin name 1/0 Pin function ACON I Used to select the use or non use of the pop noise suppression circuit at the analog output (AOUT) pin. When low level, the pop noise suppression circuit is used. When high level, the pop noise suppression circuit is not used. XT I Used to connect an oscillator. When an external clock is used, input the clock through this pin. At the power down state, this pin must be set to the ground level. XT 0 Used to connect an oscillator, when an external clock is used, this pin must be left open. MON 0 Outputs a h~h level while the record/playback operation is being performed. utputs a synchronizing clock while record/playback activated by the EXT command is being performed. TEST I Used to test the MSM6688. Input a low level to the TEST pin and a TEST high level to the TEST pin. 736 OKI Semiconductor MSM6688 •FUNCTIONAL DESCRIPTION • Recording Time and Memory Capacity The recording time depends on the memory capacity of the external serial registers, sampling frequency, and ADPCM bit length, and is given by 1.024 x memory capacity (K bits) Recording time = (seconds) sampling frequency (kHz) x bit length (bits) i° For example, if the sampling frequency is 6986 kHz(= 5.333 kHz), ADPCM bit length is 3 bits, and four BM bit serial registers are used, the recording time can be obtained as follows. 1.024 x (8192 x 4- 64) Recording time = 5 .333 x 3 = 2093 seconds = 34 minutes 53 seconds In the above equation, the memory capacity is obtained by subtracting the memory capacity (64 Kbits) for the channel index area from the total memory capacity. 737 MSM6688 OKI Semiconductor • Power Supply Wiring As shown in the following diagram, supply the power to this MSM6688 fromthe same power source, but separate the power supply wiring to the analog portion from that to the logic position. +5V DVDO ovoo· AVDD MSM6688 AGND Do not supply the power to the logic portion and the analog portion from the separate power sources. Otherwise, a problem such as latch-up may occur. Wrong Analogpowersupply---~ Oigitalpowersupply J i 1 DVDD VDD AVDD .sv-rrn Wrong DVDO VDD J; AVDD • Analog Input Amplifier Circuit This MSM6688 has two built-in operational amplifiers for amplifying the microphone output. Each OP amplifier is provided with the inverting input pin and output pin. The analog circuit reference voltage SG (signal ground) is connected internally to the non-inverting input of each OP amplifier. For amplification, form an inverting amplifier circuit and adjust the amplification ratio by using external resistors as shown below. R2 • R4 V (V) R1 • R3 IN During the time the recording operation is performed, the output '!,.o of OP amp 2 is connected to the input FIN of the built-in LPF. The FIN allowable input voltage (vF1N) ranges from 1V to (V 00 - 1)V. Therefore, the amplification ratio must be adjusted so that the VLo amplitude can be within the FIN allowable input voltage range. For example, if Vop= 5V, V~0 becomes 3 V . max. lfV LO exceeds the FIN allowable input voltage range, the output of the LPF will oe a clipped w~eform. The load resistance R0 4"Tti of the OP amp is 200 kQ minimum, so that the feedback resisters R2 and R4 of the inverting amphr1er circuit must be 200 kQ or more. 738 OKI Semiconductor MSM6688 • Connection of LPF Circuit Peripherals The AMON pin is connected internally to the output of the amplifier circuit (LOUT pin) in the recording mode and to the output of the built-in DA converter in the playback mode. Therefore, connect the AMON pin directly to the input (FIN pin) of the built-in LPF. Both the FOUT and AOUT pins are the output pins of the built-in LPF. Connect the FOUT pin to the input (ADIN pin) of the built-in AD converter and connectthe AOUT pin to an external speaker through an external speaker drive amplifier. In the MSM6688, the connection of each of the FOUT and AOUT pins is changed to one of the output of the LPF, GND (ground) level, and SG (signal ground) level, depending on the operation status as shown below. During operation At power down lRESET_Q!n = IJ_ Analog pin (RESET pin = H) Recording mode Playback mode LPF output FOUT pin GND level (recording waveform) LPF output AOUT pin GND level SG level LPF output (playback waveform) Speaker drive amplifier ) )) LIN LOUT AMON FIN AOUT FOUT ADIN f LPF ADC + DAC Record mode ower do n SG GND , Note: This diagram shows the state of each switch during the recording operation. [dB] 20 • LPF Characteristics 10 0 This MSM6688 contains a fourth-order switched- -1 o I\ capacitor LPF. -20 ~ The attenuation characteristic of this LPF is-40 _30 dB/oct. The cut-off frequency and frequency -40 characteristics of this LPF vary in proportion to _50 the sampling frequency (fsamp). The cut-off -60 v frequency is preset to 0.4 times the sampling -70 frequency. The following graph depicts the fre- -80 quency characteristics of the LPF at fsamp = 100 1K 10K [Hz] 8 kHz. LPF Frequency Characteristics (fsamp = 8.0 kHz) 739 MSM6688 OKI Semiconductor • Reset Function By applying a high level to the RESET pin, the MSM6688 stops oscillation to minimize current consumption and goes to the power-down state. At the same time, the control circuit is reset and initialized. When this reset operation is performed, the record/playback condition, such as sampling frequency and ADPCM bit length, and the data stored in the serial registers are set to the data stored just before the reset takes place. In this case, the playback level is set to O dB amplitude. If a high level is applied to the RESET pin during command execution or record/playback operation, the MSM6688 is set to the power-down state and initialized state. Internal data voice data becomes undefined. The following shows the power-down state of the MSM6688. (1) Oscillation is stopped and all operations of the internal circuit are halted. (2) The current consumption is minimized. When an external clock is used, apply a ground (GND) level to the XT pin at power down so that no current can flow into the oscillation circuit. (3) D0-03 pins constituting the data bus go to the high-impedance state, independ the state of the RD, CE, and CE pins. (4) CS1 - CS4 pins are set to a high level to minimize the current consumption of external serial registers and serial voice ROMs. (5) The state of the output pins and input/output pins are as follows. SADX, SAS, TAS, CS1 - CS4, WE, RWCK, and NAR pins: ................................ High level SADY, MON pin: ................................................ Low level 00-03, 01/0, BUSY, RPM, and VPM pins: ........ High impedance AOUT and FOUT pins: ...................................... Ground level After powering up the MSM6688. be sure to initialize it by applying a high level to the RESET pin. 740 OK.I Semiconductor MSM6688 • Power Down by the PDWN pin By applying a low level to the PDWN pin, the MSM6688 is set to the power~down state, in which the frequency oscillation and all operations of internal circuits are halted. Unlike the reset operation by the RESET input, the control circuit will not be initialized by this power-down operation. The power-down operation will not affect the data in the internal control circuit and external serial registers. Therefore, this power-down operation is useful when the battery backup takes place in case of power failure. When PDWN goes to a low level during command execution, this execution of command is halted at the time that power-down operation is performed. When PDWN becomes low during one of the following operations, their respective operations will be performed after the power-down state is released (PDWN = H). (1) When the MSM6688 is powered down (PDWN =L) during the record/playback operation: The record/playback operation is stopped. Afterthe release of the power-down state, the postprocessing will be performed. The end of the postprocessing can be verified by checking the BUSY bit and RPM bit of the status register. (2) When the MSM6688 is prowered down (PDWN = L) during the phrase deleting operation: The phrase deleting operation is temporarily stopped and will be restarted after the release of the power-down state. The end of the phrase deleting operation can be verified by checking the BUSY bit. (3) When the MSM6688 is powered down (PDWN = L) during the time the transition of the AOUT output to a DC level by LEV command is in progress: This transition operation is temporarily stopped and will be continued after the release of the power-down state. The end of the transition to a DC level can be verified by checking the BUSY bit. 741 MSM6688 OK.I Semiconductor • Record/Playback Control Modes There are four types of record/playback mode: flex record/playback, ROM playback by inputting address codes, direct record/playback, and direct ROM playback modes. A desired record/playback control mode can be selected by the command mode set in the SAMP command. Record/ Flex ROM playback Direct Direct playback record/playback by input of record/playback ROM playback control mode address code Command mode ModeO Mode 1 Mode2 Mode 3 Number of phrases 63 255 64 (expandable) As required Indirect addressing Indirect addressing Direct addressing Direct addressing Addressing by by by by phrase designation phrase designation ADRWR command ADRWR command Setting of recording time Setting by BLKWR command - Setting by ADRWR command - 1. Flex record/playback The recording area for each phrase is indirectly specified by phrase designation (CAO-CA5, 63 phrases). The recording area for each phrase is controlled by the MSM6688, so that the address control load of the microcontroller can be reduced. The recording time is specified by the BLKWR command. During recording operation, the MSM6688 searches the memory areas that are not used by other phrases and writes the voice data on them. Therefore, the phrase control by the microcontroller can be performed easily even in applications in which it is required to perform phrase deletion and re-recording frequently. 742 OKI Semiconductor MSM6688 2. ROM playback by input of address codes The playback area of each phrase of the fixed message is indirectly specified by phrase designation (CAO-CA7, 255 phrases). The table containing the start address and stop address that indicate the playback area, sampling frequency and ADPCM bit length, is written in the index area of the serial voice ROM. 3. Direct record/playback The recording area for each phrases is specified directly by inputting the address set in the ADRWR command from the microcontroller after a desired phrase has been specified by phrase designation (CAO-CA5, 64 phrases). This means that the address control such as the allocation of memory capacity (recording time) for each phrases is performed by the microcontroller. This direct record/playback mode is suitable for the case where the number of phrases and the recording time allocated to each phase are fixed. If the table containing the start address and stop address of each phrase is stored in the microcontroller or an external circuit, it becomes possible to perform record/playback of 65 or more phrases. 4. Direct ROM playback The playback area of each phrase for a fixed message is specified directly by inputting the address set in the ADRWR command from the microcontroller. In this case, it is required to store the table containing the start and stop addresses of each phrase, sampling frequency and ADPCM bit length in the microcontroller and the external ROM. If a serial voice ROM products for the MSM6388/MSM6588 ADPCM solid state recorders are used for the MSM6688, this direct ROM playback mode is applied. 743 MSM6688 OKI Semiconductor • Data Configuration of External Serial Registers Th~ external RAM constitutes a virtual memory with a address space of (X addresses in the word direction) x (depth of 1kbits) through ·the DRAM interface (MSM6791 ). This virtual memory is addressable only for X addresses in the word direction. The external RAM is divided into the channel index area that stores the data for address control of each phrase and the voice (ADPCM) data area. The address space and channel index area in the flex record/playback mode are different from those in the direct record/playback mode. 1. Address space allocation of external serial registers 1.1 Address space for the flex recordlplayback mode In the flex record/playback mode, the total memory capacity of external serial registers is equally divided into 256 blocks that are addressable by OOh-FFh. Each block is composed of multiple words each having the depth of 1K bits. X addresses in the word direction are offset addresses in the blocks. The memory capacity of one block and the maximum address of X addresses vary depending on the total memory capacity of serial registers externally RSEL2 L L H H RSEL1 L H L H Total memory capacity BM bits 16M bits 24M bits 32M bits (Number. of serial registers) (1) (2) (3) (4) Memory capacity of one block 32K bits 64K bits 128K bits 128K bits 16kbps 2.0 seconds 4.1 seconds 8.2 seconds 8.2 seconds Recording time of one block 24kbps 1.4 seconds 2.7 seconds 5.5 seconds 5.5 seconds 32kbps 1.0 second 2.0 seconds 4.1 seconds 4.1 seconds Number of words of one block 32 words 64 words 128 words 128 words [Offset address] [00h-1Fh] [00h-3Fh] [00h-7Fh] [00h-7Fh] Number of initially available 254 (FEh) 255 (FFh) 191 (BFh) 255 (FFh) blocks 744 OKI Semiconductor MSM6688 connected. The storing method of 1K-bit ADPCM data in the Y direction varies depending on the ADPCM bit length (3-bit ADPCM or 4-bit ADPCM). (1) For 3-bitADPCM, (3 bitsx340 samples+ unused 4 bits= 1024 bits) are stored in the 1k-bit memory area. One Y address is allocated to two AD PCM data samples, so that Y addresses are addressable by OO-A9h (2) For 4-bit ADPCM, (4 bits x 256 samples= 1024 bits) are stored in the 1K-bit memory area. One Y address is allocated to two ADPCM data samples, so that Y addresses are addressable by 00-7Fh 745 MSM6688 OKI Semiconductor Address Space Allocation of RAM (Flex record/playback, 32M-bit) Block (256 blocks ranging from Ooh-to FFh, 1 block= 128K bits) I OOh 1K bits I~<-----;<>I /I~ ( v Channel index area (64 words x 1K bits= 64K bits) X address (offset address in one block, 128 words from OOh to 7Fh, 1 word = 1K bits) 01h //I ~ ~!<~~~~~~~~~~~>! 1K bits in the Y direction OOh ~:r ~,u; co c..:> 01h 02h 3Eh 3Fh 40h 41h 1 block = 128 words x 1K bits = 128K bits. (/) "E :El~ ~c..:> 0 ::;: co N 7Eh 7Fh 80h 81h '.§,~ ~ c..:> 7Eh 7Fh'--~~~~~~~~~~~~~~~ I BEh BFh /YAddress COh I( OOh * 01h*02h * ---- *A7h*A8h* A9h )I C1h For 3-bit AD PCM I I 16bits16bits16 bits --------16bits16 bits 10 bits I I I .t: ,~ I I . 0 (/) I I ~c..:> I I "'"I(~o=o~h-'>)I <'-(~0~1~h-)-!(-------- )I( 7Eh )I( 7Fh )I For 4-bit FEh FFh ADPCM I 8 bits I 8 bits 1------- I 8 bits I 8 bits I 746 OKI Semiconductor MSM6688 1.2 Address space allocation in the direct record/playback mode In the direct record/playback mode, address control is performed by (X addresses in the word direction) x (1 K bit depth in the Y direction). The maximum address of X addresses in the word direction varies depending on the total memory capacity of RAM externally connected. The header 64 words (64K bits) of the RAM are used as the channel index area. Therefore, addresses after X address 0040h can be used as the voice data area. RSEL2 L L H H RSEL1 L H L H Total memory capacity BM bits 16M bits 24M bits 32M bits No. of words BK words 16K words 24Kwords 32K words X address OOOOh - 1FFFh OOOOh - 3FFFh OOOOh - 5FFFh OOOOh - 7FFFh The storage method of 1K-bit ADPCM data in the Y direction is identical to that for the flex record/ playback mode. For 3-bit ADPCM data, the storage locations are addressable by 00h-A9h, For 4- bit ADPCM data, the storage locations are addressable by 00h-7Fh. 747 MSM6688 OK.I Semiconductor Address Space Allocation of RAM (Direct record/playback) X address (32K words OOOOh - 7FFFh, 1 word =1 K bits) I OOOOh I< 1K bits )I f OOSFh "'""""''-'LLL<.Ll.L! Channel index area (S4K words x 1K bits = S4K bits) 0040h : 1 ADPCM (voice) data area :s::!!:co .Ic:..:>.en. I I I I I I 1K bits in the Y direction : I< )I l 1FFFh ~~ ---.__ I 1word=1K bits --------- ~--------------~ I I I I 2000h ! I /Yaddress 1<00h*01h*02h* ___ *A7h*A8h* A9h )I ~~P~~t Is bits Is bits Is bits 1-----1 sbits Is bits I10 bits I I I I I I I 3FFh '----~ I I< OOh * 01 h * ------- * * 7Eh 7Fh I )I ~~Pb~t I 8 bits I 8 bits 1-------1 8 bits I 8 bits I 4000h 5FFFh ~--~ SOOOh 7FFFh ~--~ 748 OKI Semiconductor MSM6688 2. Channel index area of serial registers 2.1 Channel index area in the flex record/playback mode In the flex record/playback mode, the channel index area for one phrase (1 K bits) consists of 64K-bit address data, 704-bit user data, and 256-bit address control block table. The address data consists of the number of blocks, stop Y address, stop X address, start block, stop block, and PRED block. In the following, these areas are summarized. (1) Number of blocks: This area stores the number of blocks (recorded time) used for recording of one phrase. Address chOO stores the number of unused blocks (available blocks). This number of blocks can be read by the BLKRD command. The recorded time for one phase and the unused capacity (available recording time) of memory can be obtained. (2) Stop Y address: This area stores the stop Y address of the phrase. A Y address location is addressable by one of 00h-A9h for 3-bit ADPCM, and by one of 00h-7Fh for 4-bit ADPCM. (3) Stop X address: This area stores the stop X address of a phrase. This X address is offset address of the block. One X address has a 1K-bit memory area. The memory capacity of one block varies depending on the number of serial registers connected externally, and addressing also varies accordingly. (4) Start block and stop block: The total memory capacity of serial registers is equally divided into 256 blocks. Addresses OOh-FFh are assigned to these blocks. The start block and stop block are stored in the start block area and stop block area, respectively. 749 MSM6688 OKI Semiconductor (5) PRED block: This area stores the address of a block immediately before the stop block. In the flex record/playback mode, each recording area is controlled on a per-block basis. Therefore, a phrase is not always stored continuously in serial registers. For example, if a phrase is recorded in three blocks 03h, 04h and 07h. The PRED block stores 04h. This PRED block is used to change the stop block and stop X address for deleting a tail part of the recorded phrase. (6) User data: This user data area can be used by the user. The data can be written to and read from this area by the CHRW command. This user data area is provided independently for each phrase, so that it is useful to store the sampling frequency, ADPCM bit length and recorded time. (7) Block table: The block table is an area used for the block control. 750 ~ Ul I I< 64 bits >I< 704 bits >I< 2s6 bits >I [-Aai;:ass I I Mb~ User data I< 8 bits >I< 8 bits )j( 8 bits >I< 8 bits >I< 8 bits >I< 8 bits >I< 16 bits I >I Block table I ' Number of I Stop Y i Stop X i Stop PRED Start Unused blocks address l address l block block block Lower Upper Number of blocks (BLO- BL7) I BLO l BL1 i BL2 l BL3 l BL4 i BL5 l BL6 l BL? I I I I I I I I Stop Y address (SPYO - SPY?) lsPvol SPY1 !sPY2l SPY3\SPY4l SPY5\ SPY6l SPY71 Stop X address (SPXO - SPX?) ISPXO l SPX1 l SPX2 !SPX3 !SPX4 !SPX5 !SPX6 \SPX? I Stop block (SPO - SP7) I SPO l SP1 l SP2 l SP3 l SP4 l SP5 l SP6 l SP? I PRED block (PRO- PR7) 1~ 1 ~ 1 ~ 1 ~ 1 ™ 1 ™ 1 ™ 1 ~1 I l I I I I 1 Start block (STO- ST?) lmlmlm!mlmlm!mlml I I l l I t I s:: V> s:: ~ ...... ! MSM6688 OKI Semiconductor 2.2 Channel index area in the direct record/playback mode In the direct record/playback mode, the channel index area for one phrase (1 K bits) consists of 64- bit address data and 960-bit user data. The address data consists of the stop Y address, stop X address, start X address, and unused area. (1) Stop Y address: In the same manner as in the direct record/playback mode, the stop address can be specified by one of 00h-A9h for 3-bit ADPCM and 00h-7Fh for 4-bit ADPCM. (2) Start X address and stop X address: An X address is specified by 16 bits (15 effective bits). The 32K-word X address space can be addressed by OOOh-7FFFh. (3) User data: In the same manner as in the direct record/playback mode, this user data area can be used by the user. The data can be written to and read from this area by the CHRW command. 752 ~ ~ I< Depth of 1Kbits in the Y direction )I §· 8. ~ I< 64 bit )I< 960 bits )I I Address data I Userdata -------------- -1 I 64 bits ---i I< 8 bits )I< 16 bits >I< 16 bits * 24 bits >I Stop : Stop Start Unused Yaddress l Xaddress Xaddress Lower Upper Stop Yaddress (SPYO - SPY?) ISPYO!SPY1iSPY2iSPY3iSPY4iSPY5iSPY6iSPY7] Stop Xaddress (SPXO - SPX15) SPXO i SPX1 i SPX2 ! SPX3 i SPX4 i SPlG i SPX6 i SPX7 i SPXB i SPX9 !SPX10!SPX11 !SPX12!SPX13!SPX14!SPX15 Start Xaddress (STXO - STX15) SlXO i SlX1 i SlX2 i SlX3 i SlX4 i SlX5 i SlX6 i SlX7 i SlX8 i SlX9 !STaX10!SIX11 !SlX12!SlX13!SlX14!SlX15 3:: "' 3:: ~ I MSM6688 OKI Semiconductor • Data Configuration of External Serial Voice ROMs The external serial voice ROMs are composed of (X addresses in the word direction) x {depth of 1K bits). The addressing is possible only for X addresses in the word direction. The maximum address of the X addresses in the word direction varies depending on the total memory capacity of the serial voice ROMs externally connected. In the ROM playback by input of address code, the header 16 words (16K bits) are used as the channel index area, so that the addreses after address 01 Oh can be used as the voice data area. Total memory capacity 1M bits 2M bits 3M bits 4M bits (Number of ROMs) (1) (2) (3) (4) ROM playback Number of 1008 words 2032 words 3056 words 4080 words words by input of address code X address 010h - 3FFh 010h - 7FFh 010h - BFFh 010h - FFFh Number of 1024 words 2048 words 3072 words 4096 words Direct ROM playback words DTRD command X address OOOh - 3FFh OOOh - ?FFh OOOh - BFFh OOOh - FFFh The method for storing the AD PCM data of 1K bits in the Y direction is identical to that for the record/ playback mode. Addressing can be made by 00h-A9h for 3-bit ADPCM and 00h-7Fh for 4-bit ADPCM. When reading data in the serial voice ROMs by the DTRD command, specify the X address and Y address and then perform the read access operation. The address locations can be specified by OOOh-FFFh in the same manner as in the ROM playback. The area of 1K bits in the Y direction is equally divided into 16 of 64K bits each, so that addressing can be performed by Oh-Fh. 754 OKI Semiconductor MSM6688 Address space allocation of serial voice ROMs. X address (4K words OOOh - FFFh, 1 word"' 1K bits) I I< 1k bits >I . . . . . If OOOh I Channel index area (required only for ROM playback by input of address code. ;:::!; OOFh ,...,..~~ 1S words x 1K bits"' 1SK bits) 0 a: 010h Q) I 1 ADPCM (voice) data area <.) I ·c;>VJ I.... I I I I -.;;U I ·c: Q) V> I I I< 1K bits in the Y direction >I I ;:::!; ~--~---------!~_____1_w_o_rd_"'_1_K_b_its_ _ _ _~I I I 3FFh 400h *---- /Yaddress ;:::!; 0 a: Q) I IE OOh ~1E 01h~IE02h ~IE A7h )IE A8h * A9h )I Isbits Is bits Is bits I-----1 sbits Isbits I 1obits I 0 "(51N >VJ 3-bit ADP CM -;;; u ·c: Q) I I V> I I * I I ;:::!; I 01h * ------- )IE ?Eh I 7Fh )I 7FFh 800h 4-bit AD PCM IE OOh I Bbits I Bbits 1-------1 Bbits I Bbits I * ;:::!; 0 a: Q) <.) ·c;r I< Oh * 1h )IE 2h _____ _Eh * Fh )I >VJ -;;; u Read by DTRDI s4 bits I 64 bits 1--------1 S4 bits I ·c: command . . "' V> ;:::!; BFFh COOh ;:::!; 0 a: Q) ·c;loq- <.) >VJ -;;; u ·c: Q) V> ;:::!; FFFh 755 MSM6688 OKI Semiconductor • Command Description The MSM6688 is controlled by 19 types of commands via 00-03 pins constituting the data bus and WR, RD, CE, and CE control pins. The state of the MSM6688 can be know by obtaining the contents of the internal status register via the data bus or the output pins. There are four command modes available: mode 0, mode 1, mode 2, and mode 3.. Some commands need to setthecommand mode before inputting them. The command mode can be selected by setting MOOO bit and MOD1 bit of the SAMP command. 756 OKI Semiconductor MSM6688 1. Command list Code Command Command function D D D D 3 2 1 0 NOP 0 0 0 0 (NON OPERATION) Has no function. PAUSE 0 0 0 1 (PAUSE). Suspends record/playback temporarily. PLAY 0 0 1 0 (PLAYBACK). Sets playback mode. REC 0 0 1 1 (RECORD). Sets recording mode. START 0 1 0 0 (START). Starts record/playback. STOP 0 1 0 1 (STOP). Stops record/playback. Stops execution of CHRW, DTRW, DTRD, and EXT commands. SAMP 0 1 1 0 (SAMPLING FREQUENCY). Specifies the command mode and sampling frequency, in conjunction with 1 nibble following this command. CHAN 0 1 1 1 (CHANNEL). Specifies a phrase, in conjunction with 2 nibbles following this command. BLKWR 1 0 0 0 (BLOCK WRITE). Sets the number of recording blocks (recording time) for the phrase, in conjunction with 2 nibble following this command. BLKRD 1 0 0 1 (BLOCK READ). Reads the number of blocks (recording time) for the phrase stored in the channel index area, in conjunction with 2 nibbles following this command. During execution of this command, the contents of the status register cannot be read. ADRWR 1 0 0 0 (ADDRESS WRITE). Stores the start address and the stop address to the channel index area, in conjunction with 10 nibbles following this command. ADRRD 1 0 0 1 (ADDRESS READ). Reads out the start address and the stop address stored in the channel index area, in conjunction with 10 nibbles following this command. During execution of this command, the contents of the status register cannot be read. 757 MSM6688 OKI Semiconductor Code Command Command function D D D D 3 2 1 0 CHRW 1 0 1 0 (CHANNEL READ WRITE). Reads out the user data stored in the channel index area or writes the user data to the channel index area by the read/write access operation following this command. DTRW 1 0 1 0 (DATA READ WRITE). Transfers data to or from the external serial registers through the data bus, bX the address designation in 5 nibbles following this command and the read write access operation. DTRD 1 0 1 0 (DATA READ). Reads the data in the external serial voice ROMs through the data bus, by the address designation in 5 nibbles following this command and the read/write access operation. EXT 1 0 1 1 (EXTERNAL). Performs record/playback by inputting/outputting ADPCM data through the data bus, in conjunction with the read/write access operation. This command will be used when an SRAM or a hard disk is used for storing voice data. Does not control external serial registers and addresses. VOS 1 1 0 0 (VOICE DETECT SELECT). Selects the ADPCM bit length and voice activated start function, in conjunction with 1 nibble following this command: DEL 1 1 0 1 (DELETE). Deletes the phrase specified by the CHAN command. When chOO is specified by the CHAN command, all phrases are deleted by this command. LEV 1 1 1 0 (LEVEL) Specifies the playback output level and the transition of analog output (AOUT pin) to the DC level, in conjunction of 1 nibble following this command. Th rs level is initialized by the RESET input. NOP 1 1 1 1 (NON OPERATION). Has no function. 758 OKI Semiconductor MSM6688 2. Command format MOD1 0 0 1 1 MODO 0 1 0 1 Code Mode O Mode 1 Mode 2 Mode 3 D D D D 3 2 1 0 HEX 0 0 0 0 Oh NOP NOP NOP NOP 0 0 0 1 1h PAUSE PAUSE PAUSE PAUSE 0 0 1 0 2h PLAY PLAY PLAY PLAY 0 0 1 1 3h REC REC REC REC 0 1 0 0 4h START START START START (Flex record/ (ROM pl~back by (Direct record/ (Direct ROM playback) playback) input of ad ress code) playback) 0 1 0 1 Sh STOP STOP STOP STOP 0 1 1 0 6h SAMP SAMP SAMP SAMP 0 1 1 1 7h CHAN CHAN CHAN CHAN 1 0 0 0 Sh BLKWR BLKWR ADRWR ADRWR 1 0 0 1 9h BLKRD BLKRD ADRRD ADRRD 1 0 1 0 Ah CHRW CHRW DTRW DTRD 1 0 1 1 Bh EXT EXT EXT EXT 1 1 0 0 Ch VDS VDS VDS VDS 1 1 0 1 Dh DEL DEL DEL DEL 1 1 1 0 Eh LEV LEV LEV LEV 1 1 1 1 Fh NOP NOP NOP NOP 759 MSM6688 OKI Semiconductor 3. Command data format Code lcomman~ HEX 03 02 01 DO Note NOP Oh 0 0 0 0 1-nibble command PAUSE 1h 0 0 0 1 1-nibble command PLAY 2h 0 0 1 0 1-nibble command REC 3h 0 0 1 1 1-nibble command START 4h 0 1 0 0 1-nibble command STOP Sh 0 1 0 1 1-nibble command SAMP 6h 1st nibble 0 1 1 0 2-nibble command 2nd nibble MOD1 MODO SA1 SAO Command mode, sampling frequency MOD1 MODO Command mode SA1 SAO Sampling frequency 0 0 ModeO 0 0 foscl1024 (4.0kHz) 0 1 Mode 1 0 1 fosc!768 (5.3kHz) 1 0 Mode2 1 0 foscf640 (6.4kHz) 1 1 Mode 3 1 1 foscf512 (8.0kHz) Values in parentheses are for fosc =4.096 MHz. CHAN 7h 1st nibble 0 1 1 1 3-nibble command 2nd nibble CA3 CA2 CA1 CAO Phrase No. 3rd nibble CA7 GAS GAS CM CA7 CA6 CA5 CA4 CA3 CA2 CA1 CAO Phrase No. 0 0 0 0 0 0 0 0 chOO 0 0 0 0 0 0 0 1 ch01 0 0 0 0 0 0 1 0 ch02 0 0 0 0 0 0 1 1 ch03 I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I 1 1 1 1 1 1 1 0 ch FE 1 1 1 1 1 1 1 1 ch FF 760 OKI Semiconductor MSM6688 Code ~mmand HEX 03 02 01 DO Note BLKWR 8h 1st nibble 1 0 0 0 3-nibble command 2nd nibble BL3 BL2 BL1 BLO Number of blocks 3rd nibble BL7 BL6 BLS BL4 BLKRD 9h 1st nibble 1 0 0 1 3-nibble command 2nd nibble BL3 BL2 BL1 BLO Number of blocks 3rd nibble BL? BL6 BLS BL4 ADRWR 8h 1st nibble 1 0 0 0 11-nibble command 2nd nibble SPY3 SPY2 SPY1 SPYO Stop Y address 3rd nibble SPY? SPY6 SPYS SPY4 4th nibble SPX3 SPX2 SPX1 SPXO Stop X address 5th nibble SPX? SPX6 SPXS SPX4 6th nibble SPX11 SPX10 SPX9 SPX8 7th nibble SPX15 SPX14 SPX13 SPX12 8th nibble STX3 STX2 STX1 STXO Start X address 9th nibble STX? STX6 STXS STX4 10th nibble STX11 STX10 STX9 STX8 11th nibble STX15 STX14 STX13 STX12 ADRRD 9h 1st nibble 1 0 0 1 11-nibble command 2nd nibble SPY3 SPY2 SPY1 SPYO Stop Y address 3rd nibble SPY? SPY6 SPYS SPY4 4th nibble SPX3 SPX2 SPX1 SPXO Stop X address 5th nibble SPX? SPX6 SPXS SPX4 6th nibble SPX11 SPX10 SPX9 SPX8 7th nibble SPX15 SPX14 SPX13 SPX12 Bth nibble STX3 STX2 STX1 STXO Start X address 9th nibble STX? STX6 STX5 STX4 10th nibble STX11 STX10 STX9 STX8 11th nibble STX15 STX14 STX13 STX12 761 MSM6688 OKI Semiconductor Code ~mman~ HEX 03 02 01 DO Note CHRW Ah 1 0 1 0 1-nibble command + read/write access +STOP command DTRW Ah 1st nibble 1 0 1 0 6-nibble command + read/write access +STOP command 2nd nibble 0 0 0 0 Dummy nibble 3rd nibble X3 X2 X1 XO X address 4th nibble X7 X6 XS X4 5th nibble X11 X10 X9 X8 6th nibble X15 X14 X13 X12 DTRD Ah 1st nibble 1 0 1 0 6-nibble command +read access+ STOP command 2nd nibble Y3 Y2 Y1 YO Y address 3rd nibble X3 X2 X1 XO X address 4th nibble X7 X6 XS X4 5th nibble X11 X10 X9 X8 6th nibble 0 0 0 0 Dummy nibble EXT Bh 1 0 1 1 1-nibble command + read/write access +STOP command VOS ch 1st nibble 1 1 0 0 2-nibble command 2nd nibble 0 BIT VD1 VDO ADPCM bit length, voice activation condition BIT ~PCM bit length VD1 VDO Voice detection level Vvos 0 3 bits 0 0 Voice activation disabled 1 4 bits 0 1 ±VDD/64 (±80mV) 1 0 ±VDD/32 (±160mV) 1 1 ±VDD/16 (±320mV) Values in parentheses are for VDD =5.12 V. 762 OKI Semiconductor MSM6688 Code Jcommand HEX 03 02 01 DO Note DEL Dh 1 1 0 1 1-nibble command chOO: Deletion of all phrases ch01 - chFF: Deletion of a specified phrase LEV Eh 1st nibble 1 1 1 0 2-nibble command 2nd nibble LV1 LVO PN1 PNO Playback level, transition to DC level LV1 LVO Playback level PN1 PNO Transition to DC level 0 0 OdB 0 0 Disabled 0 1 OdB 0 1 Disabled 1 0 -6dB 1 Transition from GND 0 to 1/2 VDD. 1 1 -12dB 1 1 Transition from 1/2 VDD to GND. NOP Fh 1 1 1 1 1-nibble command 763 MSM6688 OKI Semiconductor 4. Relationship between record/playback control modes and commands I~ Flex record/ ROM playback Direct record/ Direct ROM playback by input of playback playback address code NOP - - - - PAUSE 0 0 0 0 PLAY © - © - REC © - © - START © © © © STOP 0 0 0 0 SAMP © © © © ------------- --------- ---------- --------- ----------! Command mode © © © © Sampling frequency © - © © CHAN © © © © BLKWR © - - - BLKRD 0 - - - ADRWR 0 - © © ADRRD 0 - 0 - CHRW Data transfer command DTRW Data transfer command DTRD Data transfer command EXT Record/playback without use of serial registers VOS © _________ _, - © © 1-------------- ---------- r---------- ---------- ADPCM bit length © - © © Voice activation © - © - condition DEL © - 0 - ------------- ---------- ---------- --------- ---------- Deletion of all phrases © - 0 - Deletion of 0 - 0 - a SQ_ecified _JJ_hrase LEV 0 0 0 0 Note: © : Required command 0 : Useful command - : Unnecessary command 764 OKI Semiconductor MSM6688 • Status Register The status register used in the MSM6688 is a 4-bit status register. When a low level is applied to the RD pin, the contents of the status register are output to DO-D3 pins to indicate the internal state of the MSM6688. The contents of the status register are also output to the BUSY, RPM, VPM, and NAR pins. 03 02 01 DO NAR VPM RPM BUSY (1) BUSY bit The BUSY bit set to a high level indicates that the MSM6688 is executing RESET operation or command processing operation. When BUSY bit is high, do not input any command from the microcontroller. While any of data read commands is being executed, the state of the BUSY bit cannot be verified by inputting the RD pulse. In this case, input a read command either after waiting a time longer than the duration of BUSY state or after verifying the end of the busy state by the BUSY pin. While the RESET operation is being executed, the BUSY bit is set to a high level, and it returns to a low level after the end of the RESET operation. After a high level pulse is applied to the RESET pin to perform the RESET operation, the BUSY bit is set to a high level during execution of the RESET operation. It goes to a low level after the end of the RESET operation. (2) RPM bit The RPM bit goes to a high level during record/playback operation. While the RPM bit is high, do not input any command except those indicated below. Otherwise, the state of the MSM6688 becomes undefined. NOP, PAUSE, STOP commands, START command for release of temporary stop and playback of next phrase, CHAN command for specifying the next phrase during playback and LEV command for designation of playback output level After a high level pulses is applied to the RESET pin to perform the RESET operation, the RPM bit goes to a low level that is the initial state. 765 MSM6688 OKI Semiconductor (3) VPM bit The VPM bit goes to a high level during standby for voice after start of the voice activated recording and during the time that record/playback is temporarily stopped by the PAUSE command. When the VPM bit is high, do not apply any command except the STOP command and the START command for release of temporary stop. Otherwise, the state of the MSM6688 becomes undefined. After a high level pulse is applied to the RESET pin to perform the reset operation, the VPM bit goes to a low level that is the initial state. (4) NAR bit The NAR bit indicate the enabled or disabled state for phrase designation. When this bit is high, the phrase designation by the CHAN command is enabled. If it is desired to play back different phrases continuously during ROM playback, specify the next phrase and input the START command after verifying that the NAR bit becomes high. After a high level pulse is applied to the RESET pin to perform the reset operation, the NAR bit goes to a high level that is the initial state. 766 OKI Semiconductor MSM6688 BUSY state BUSY bit BUSY causing conditions Symbol verification Note duration Release of reset operation fREX (Note 2) 1 ms Possible Input of RESET pulse Input of 1-nibble command 16µs Possible NOP, PAUSE, PLAY, ta1 REC, START, STOP Input of 2-nibble command ta2 16µs Possible SAMP, VDS, LEV Input of 3-nibble command ta3 16µs Possible CHAN, BLKWR Input of 2-nibble or 3-nibble command data 16µs Possible SAMP, VDS, LEV, tao CHAN BLKWR BLKRD command Input of command twsR 270ms Impossible Output of block data twoR 50µs Impossible ADRWR command Input of command !eAW 270ms Possible Input of address data !sAD 50µs Possible ADRRD command Input of command twAR 270ms Impossible Output of address data twoR 50µs Impossible CHRW command Input of command twcRw 770µs Possible Possible Input of REC command twRc 16µs (Note 1) Possible Input of write data twwo 50µs (Note 1) Input of PLAY command twPL 50µs Impossible Possible Input of STOP command twsP 50µs (Note 1) DTRW and DTRD commands Input of command twRW 16µs Possible Input of address (2nd - 5th nibbles) twA1 16µs Possible Input of address (6th nibble) twA2 270µs Possible Possible Input of REC command twRc 16µs (Note 1) Possible Input of write data twwo 50µs (Note 1) Input of PLAY command twPL 50µs Impossible Possible Input of STOP command twsP 50µs (Note 1) Input of DEL command (all phrases) twBLA 550ms Possible Input of DEL command (a specified phrase) twsu 70ms Possible 767 MSM6688 OKI Semiconductor Note 1: The BUSY state can be verified by the BUSY bit when only the datawrite access operation is executed after the CHRW or DTRW command is input. Note 2: The BUSY state duration after release of RESET operation includes the oscillation startup stabilization time. This oscillation startup stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators. 768 OKI Semiconductor MSM6688 • Inputting the Commands To input a command or data, apply the command or data to DO-D3 pins and then apply a low level pulse (WR pulse) to the WR pin. By inputting a low level pulse (RD pulse) to the RD pin, the contents of the status register or data will be output via DO-D3 pins. The CE pin is used to enable or disable the WR pulse and RD pulse. When a low-level is applied to this CE pin, the enable state is present, so that WR and RD pulses can be accepted. When a high level is applied to this CE pin, the disable state is present, so that WR and RD pulses cannot be accepted and, at the same time, DO-D3 pins are placed in the high-impedance state. TheCEpinalsohasthesamefunctionastheCEpin. However,whenhigh,thisCEpingivestheenable state for the WR and RD pulses, and when low, it gives the disable state. When D0-03 pins are used exclusively for the MSM6688, CE and CE pins can be fixed to a low level and a high level, respectively. An equivalent circuit of the microcontroller interface section of the MSM6688 is shown below. 769 MSM6688 OKI Semiconductor Status register 4 4 NAR VPM RPM BUSY 4 DO- D3 u RD pulse RD WR L1' WR pulse CEr'"l-------l-- CE "----_,_-..rt PDWN r'1-----<-r--- RESET 770 OKI Semiconductor MSM6688 The steps for inputting the commands are described below. (1) Output the contents of the status register by applying the RD pulse (namely, b~plying a low level pulse to the RD pin). VerifythattheBUSYbitisO. If the BUSY bit is 1, inputtheRD pulse repeatedly until the BUSY bit goes to O. The BUSY state can also be verified through the BUSY pin. (2) Set a command to D0-03 pin and input the WR pulse. (3) In case of a 2-nibble or 3-nibble command, verify that the BUSY bit of the status r~ter is 0 in the same way_ as in (1 ). Then, set the command data to D0-03 pins and input the WR pulse. In this case, the WR pulse can also be input after the waiting time that is longer than the BUSY state duration, instead of verifying the BUSY bit of the status register. CE (I) CE (I) WR (I) RD (I) DO~ 03 (1/0) BUSY (0) Busy state duration: I ~ Next command data can be input 771 MSM6688 OKI Semiconductor 1. Inputting a 2-nibble command Status output Verification of BUSY bit Input of the 1st nibble command Status output Verification of BUSY bit (or waiting for BUSY state duration) Input of the 2nd nibble data 772 OKI Semiconductor MSM6688 • Changes of Record/Playback Conditions Re_cord/playback condition POWER ON RESET input PDWN input Command input Record/playback mode REC command Undefined Unchanged Unchanged -+ Record mode (Note 1) PLAY command -+ Plfil/back mode Unchanged Command mode Undefined Unchanged Set by SAMP command j_Note 1i Unchanged Sampling frequency Undefined _(Note 1i Unchanged Set by SAMP command Unchanged Phrase No. Undefined j_Note 1l Unchanged Set by CHAN command Number of phrase recording -Unclfangecf Undefined j_Note 1i Unchanged Set by BLKWR command blocks Unchanged AOPCM bit length Undefined j_Note 1i Unchanged Set by VOS command -Unchangecf Voice activation Undefined j_Note 1i Unchanged Set by VOS command Playback level Undefined OdB Unchanged Set by LEV command Data in serial registers Undefined Unchanged Unchanged - (Note 1) Note 1: RESET is performed without synchronization with the clock. When the RESET pulse is input during standby for commands, record/playback condition will not be changed. When the RESET pulse is input during execution of a command, all record/playback conditions may be changed and the data may become undefined. 773 MSM6688 OKI Semiconductor • Setting and Confirming the Record/Playback Conditions 1. Specifying the control mode for record/playback {by the SAMP command) Specify the control mode for record/playback by setting the command mode (using MOD1 and MODO bits) as shown in the following table. Command MOD1 MOl:?O Control mode for record/playback mode 0 0 ModeO Flex record/playback 0 1 Mode 1 ROM playback by input of address code 1 0 Mode2 Direct record/playback 1 1 Mode3 Direct ROM playback 2. Specifying the sampling frequency (by the SAMP command) Specify the sampling frequency by setting SAO and SA1 bit data of the SAMP command. The relationship between the master oscillator frequency (fosc), and sampling frequency (fSAMP) depends on the SAO and SA1 bit data of the SAMP command as shown in the following table. SA1 SAO Sampling frequency fsamp 0 0 foscl1024 (4.0kHz) ) Values in parentheses are for fosc=4.096MHz. 0 1 foscl768 (5.3kHz) 1 0 foscl640 (6.4kHz) 1 1 foscl512 (8.0kHz) 774 OKI Semiconductor MSM6688 3. Specifying the ADPCM bit length (by the VOS command) Specify the ADPCM bit length by setting the BIT bitdata of the VDS command as shown in the following table. BIT ADPCM bit length 0 3 bit 1 4 bit 4. Specifying the voice activated recording condition (by the VOS command) This MSM6688 has the voice activated recording function to start recording when the level of voice input exceeds a preset amplitude. Using the voice activated function, the unvoiced part prior to voice detection will not be recorded, so that the memory capacity can be utilized efficiently. The unvoiced parts in the middle of recording are not eliminated. In the voice activated recording mode. recording is started when a voice input exceeds the presetthresholds. Therefore. a consonant part with a low level may not be recorded. Voice input level Upper threshold I (ADIN pin) 1/2VDD Lower threshold I ~ Identified as voice and recording start t Start signal input 775 MSM6688 OKI Semiconductor Specify the enable/disable of the voice activated recording function and the voice detection level by VDO and VD1 bit data of the VOS command as shown in the following table. VD1 VDO Voice detection level, Vvc1s 0 0 Voice activation disabled 0 1 ±VDD/64 (±80mV) Values in parentheses are for VDD =5.12 V 1 0 ±VDD/32 (±160mV) 1 1 ±VDD/16 (±320mV) During standby for voice, the VPM bit of the status register is 1. This bit returns to Oat the start of voice activated recording after detection of voiced signal. The RPM bit is 1 during standby for voice and during recording. DO - D3 START command STOP command Status register RPM bit VPMbit I I Standby for recording! Standby for voice! Recording in progress JE Standby for recording >I< >I< L1dentified as voice When the STOP command is input during standby for voice, standby for voice will be finished and changed to standby for recording, If in the flex record/playback mode. the STOP command is input during standby for voice. the contents of the specified phrase will be deleted. DO- D3 START command STOP command Status register RPM bit VPM bit I I . Standby for recording~E Standby for voice )iE Standby for recording 776 ~ 5. Specifying a phrase {by the CHAN command) Specify a phrase by CAO-CA7 bit data of the CHAN command as shown in the following table. (/) CD CA7 CA6 CA5 CA4 CA3 CA2 CA1 CAO Phrase No. Flex record/ ROM playback Direct record/ Direct ROM playback by input of playback playback ~· address code g. ~ 0 0 0 0 0 0 0 0 chOO (Note 1) Disabled 0 0 0 0 0 0 0 1 ch01 0 0 0 0 0 0 1 0 ch02 I I I I I I I I I I I I I I I I I I Enable Enable Enable Enable I I I I I I I I I I I I I I I I I (63 phrases) (255 phrases) (64 phrases) (Note 2) ' 0 0 1 1 1 1 1 0 ch3E 0 0 1 1 1 1 1 1 ch3F 0 1 0 0 0 0 0 0 ch40 0 1 0 0 0 0 0 1 ch41 I I I I I I I I I I : I : I I I I I I I : I : I I I I I I I : Inhibit Inhibit Inhibit 1 1 1 1 1 1 1 0 ch FE 1 1 1 1 1 1 1 1 ch FF s:: (/) s:: 2i i MSM6688 OKI Semiconductor Note 1: In the flex record/playback mode, chOO cannot be used tor recording/playback. This is a special phrase only used for deletion of all phrases and controJ of unused blocks. Note 2: In the direct ROM playback mode, playback will be started after transferring the address data to the channel index area of the serial registers. Therefore, it is required for direct ROM playback to use a phase unused for record/playback operation. Normally, phrase ch3FH is used as the phrase dedicated for direct ROM playback. 6. Specifying the number of phrase recording blocks (by the BLKWR command) In the flex record/playback mode, setthe number of blocks before starting the recording to specify the recording time for a phrase. In this mode, the total memory capacity of serial registers connected externally is divided equally into 256 blocks. Therefore, the memory capacity of one block varies depending on the number of serial registers connected externally. For example, when one BM bit serial register is connected and recording is performed by 4-bitADPCM and 8-kHz sampling, the memory capacity of one block and the recording time of one block are obtained as follows. Memory capacity of one block= 8 ~5~its = 32K bits Memory capacity of one block Recording time/block = Sampling frequency x ADPCM bit length 32x1024 x bits . = 8000 Hz x 4 bits = Approximately 1 second If it is desired to make recording for 10 seconds on a phrase in this example, 1O(OAh) phrase recording blocks are required. 778 OKI Semiconductor MSM6688 The number of phrase recording blocks can be specified by the BLKWR command and is stored in the (corresponding) register in the MSM6688. The BLKWR command is enabled for command mode O or 1. Therefore, before inputting this BLKWR command, it is required to set the corresponding command mode using the SAMP command. Number of phrase BL7 BL6 BL5 BL4 BL3 BL2 BL1 BLO recording blocks (HEX) 0 0 0 0 0 0 0 0 Input inhibit 0 0 0 0 0 0 0 1 1 (01 h) 0 0 0 0 0 0 1 0 2 (02h) 0 0 0 0 0 0 1 1 3 (03h) I I I I I I I I I I I I I I I I I I I I : I I I I : : I I I I : 1 1 1 1 1 1 1 0 254 (FEh) 1 1 1 1 1 1 1 1 255 (FFh) 7. Reading the number of phrase recording blocks (by the BLKRD command) The number of blocks for each phrase stored in the channel index area can be read by the read access operation using the BLKRD command and two nibbles following this BLKRD command. In the flex record/playback mode, the number of blocks (namely, the recording time) of the specified phrase can be obtained. In the BLKRD command, the number of blocks is specified by a binary number consisting of BLO-BL7 in the same way as in the BLKWR command. Before inputting the BLKRD command, the command mode must be set to either mode 0 or mode 1 by using the SAMP command. (1) When chOO phrase is specified: The number of unused blocks (or available blocks) is stored in address chOO of the channel index area. Therefore, the unused and available memory capacity (or available recording time) can be obtained. (2) When one of ch01-ch3F is specified as a phrase: The number of blocks (or recording time) used by the specified phrase can be obtained. 779 MSM6688 OKI Semiconductor BLKRD command flow chart SAMP command Setting of common mode to mode 0 or mode 1 (MODO, MOD1) CHAN command Phrase designation (CAO - CA?) 1st nibble BLKRD command 2nd nibble ---+-----~ Wait for BUSY state duration Input RD pulse Output of lower 4 bits of the number of blocks 3rd nibble -------~ Wait for BUSY state duration Input RD pulse Output of upper 4 bits of the number of blocks Wait for BUSY state duration During execution of the BLKRD command, verification of the status register cannot be performed by input of the RD pulse. When inputting the RD pulse for the 2nd nibble or 3rd nibble or inputting the next command after the BLKRD command, inputthe RD pulse either after the waiting time longer than the BUSY state duration or after verifying that the BUSY status is not present via the BUSY pin. 780 OKI Semiconductor MSM6688 8. Inputting/outputting the address data (by the ADRWR/ADRRD command) In the direct record/playback mode or direct ROM playback, input the start address and stop address of a phrase directly into the channel index area in the RAM by the ADRWR command. The ADRRD command is used to read the address data stored in the channel index area. The header 40 bits of each phrase of the channel index area can be accessed by the ADRWR or ADRRD command. In the flex record/playback mode, these commands can be used to change the address data for deleting the tail part of a recorded phrase. Direct record/playback and Flex record/playback direct ROM playback 03 02 01 DO Contents 03 02 01 DO Contents 1st nibble 1 0 0 * Command 1 0 0 * Command 2nd nibble SPY3 SPY2 SPY1 SPYO Stop Y address BL3 BL2 BL1 BLO Number of blocks 3rd nibble SPY? SPY6 SPY5 SPY4 BL? BL6 BL5 BL4 4th nibble SPX3 SPX2 SPX1 SPXO Stop X address SPY3 SPY2 SPY1 SPYO Stop Yaddress 5th nibble SPX? SPX6 SPX5 SPX4 SPY? SPY6 SPY5 SPY4 6th nibble SPX11 SPX10 SPX9 SPX8 SPX3 SPX2 SPX1 SPXO Stop Xaddress 7th nibble SPX15 SPX14 SPX13 SPX12 SPX? SPX6 SPX5 SPX4 8th nibble STX3 STX2 STX1 STXO Start X address SP3 SP2 SP1 SPO Stop block 9th nibble STX? STX6 STX5 STX4 SP? SP6 SP5 SP4 10th nibble STX11 STX10 STX9 STX8 PR3 PR2 PR1 PRO PRED block 11th nibble STX15 STX14 STX13 STX12 PR? PR6 PR5 PR4 Note: When the address data is input by the ADRWR command in the direct ROM playback mode, the 7th nibble and the 11th nibble are dummy nibbles. Therefore, input Oh data into SPX12-SPX15 (7th nibble) and STX12-STX15 {11th nibble). 781 MSM6688 OKI Semiconductor ADRWR command flow chart SAMP command Setting of command mode to mode 2 or mode 3 (MOD = 1) CHAN command Phrase designation(CAO - CA?) 1st nibble ~-----'"---------. ADRWR command Input of command after verification of BUSY state BUSY bit verification (or waiting for BUSY state duration or longer) Input WR pulse Input of address data 3rd nibble _ __,.__ _ _ _----, 4th nibble -~--------, 10th nibble -~----~ Input WR pulse Verification of address data 782 OKI Semiconductor MSM6688 ADDRD command flow chart SAMP command Setting of command mode to mode 2 or mode 3 (MODO, MOD1) CHAN command Phrase designation (CAO - CA7) 1st nibble ADRRD command Input of command after verification of BUSY state 2nd nibble--+-----~ Wait for BUSY state duration Input RD pulses Output of address data 3rd nibble-~----~ 4th nibble-~----~ 10th nibble---"-----~ 11th nibble --+-----~ Wait for BUSY state duration Input RD pulse Output of address data Wait for BUSY state duration 783 MSM6688 OKI Semiconductor During execution of the ADRRD command, verification of the status register cannot be performed by input of the RD pulse. When inputting the RD pulse for the 2nd nibble to 11th nibbles or inputting the next command after the ADRRD command, inputthe RD pulse either after the waiting time longerthaD the BUSY state duration or after verifying that the BUSY status is not present via the BUSY pin. 784 OKI Semiconductor MSM6688 9. SpecHying the playback level (by the LEV command) For playback,.one of three output levels 0 dB, -6 dB and-12 dB can be selected. The playback level can be specified by LVO and LV1 bit data of the LEV command. If the LEV command is input during playback operation, the playback level will be changed at the moment when the command is input. When the RESET pulse is input, the playback output level is set OdB that is the initial state. LV1 LVO Playback level 0 0 OdB (equal to the voice data amplitude) 0 1 OdB (equal to the voice data amplitude) 1 0 -6dB (one-half of the voice data amplitude) 1 1 -12dB (one-fourth of the voice data amplitude) 785 MSM6688 OKI Semiconductor • Flex Record/Playback Method 1. Deleting phrases 1.1 Deleting all phrases To delete all phrases, specify chOO by the CHAN command and input the DEL command. When all phrases are deleted in this manner, "O" data is written into ch01-ch3F addresses of the channel index area of the serial registers to place these addresses in the unrecorded state. The initial data for address control is written in chOO address. Therefore, whenever the power is turned on. always perform the deletion of all phrases after inputting the RESET pulse. The deletion of all phrases causes the user data area ch00-Ch3F to be cleared to all Os. Note that when the data was transferred to the channel index area by the CHAW command, this data is deleted by the deletion of all phrases. State of the channel index area Phrases No. Address data User data Block table chOO: Initial data Cleared to all Os Initial data ch01-ch3F Cleared to all Os 1.2 Deleting a specified phrase To delete a specified phrase, specify one of ch0-Ch3F by the CHAN command and input the DEL command. The deleted phrase is placed in the unrecorded state. The channel index area for the specified phrase, including the user data, is cleared to all Os. The data stored in chOO address for control of unused blocks is updated. Phrase deletion flow chart CHAN command chOO Deletion of all phrases ch01 - ch3F: Deletion of a specified phrase DEL command 786 OKI Semiconductor MSM6688 2. Method of recording in the flex record/playback mode (1) Before starting the recorciing operation in the flex record/playback mode. always perform the deletion of all phrases after turning power on and resetting the MSM6688 by input of the RESET pulse. Otherwise. the address control cannot be performed correctly. (2) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT) and voice activation condition (VDO, VD1). SAMP command: Set the command mode to mode 0 (MODO = 0, M0[),,1 =0) and specify the sampling frequency (SAO, SA 1). CHAN command: Select phrases (CAO - CA5) from one of 63 phrases ch01-ch3F. BLKWR command: Specify the number of phrase recording blocks (BLO-BL7) REC command: Set to the recording mode. (3) Input the START command to start recording (4) When the number of blocks specified by the BLKWR command is reached or when all available blocks are used for recording, recording is finished. The end of recording can be verified by the RPM bit of the status register. (5) To stop recording in the middle, input the STOP command. The contents of the block counter and the contents of the address counter at this moment are automatically stored in the channel index area as the stop block and the stop address, respectively. In this case, make sure that recording is finished by examining the RPM bit before inputting the next command. (6) To continue recording, specify the record/playback conditions to be modified by the corresponding commands and perform the steps (3)-(5). 787 MSM6688 OKI Semiconductor Flow chart of flex recording in the record/playback mode CHAN command Specify chOO. DEL command Delete all phrases. ADPCM bit length (BIT) VDS command Voice activation condition (VDO, VD1) Set the command mode to mode 0 (MODO =0, MOD1 = 0). SAMP command Specify the sampling frequency (SAO, SA1). CHAN command Select one of 63 phrases (CAO - CA5). BLKWR command Set the phrase recording time (BLO - BL?). REC command Set the recording mode. Start of recording Verify the start of recording. Input record/playback ndltions to be modified by the corresponding commands. Stop of recording Verify the end of recording. 788 OKI Semiconductor MSM6688 3. Playback method in the flex record/playback mode (1) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT) The voice activation condition (VDO, VD1) is invalid for the playback operation. SAMP command: Set the command mode to mode 0 (MODO = 0, MOD1= 0) and specify the sampling frequency (SAO, SA 1). CHAN command: Select one of 63 phrases ch01-ch3F (CAO-CA5). LEV command: Specify the playback output level (LVO, LV1). PLAY command: Set to the playback mode. (2) lnputthe ST ART command to start the playback. The MSM6688 fetches the contents of the block table and the stop address of the specified phrase from the channel index area and starts the playback operation. (3) When the contents of the address counter coincide with the contents of the stop address register, playback is finished. The end of playback is verified by the RPM bit of the status register. (4) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit before inputting the next command. (5) To continue playback, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4). 789 MSM6688 OKI Semiconductor Flow chart of playback in the flex record/playback mode VOS command ADPCM bit length (BIT) Set the command mode to mode 0 (MODO =0, MOD1 =0). SAMP command Specify the sampling frequency (SAO, SA1). CHAN command Select one of 63 phrases (CAO ~ CA5) LEV command Set playback output level (LVO, LV1). PLAY command Set to the playback mode. Start of playback Verify the start of playback. Input record/playback ndltions to be modified Yes Verify the end of playback. by the corresponding commands. STOP of playback Verify the end of playback. This flow chart can apply to the playback operation in the direct record/playback mode, excluding that the command mode is set to mode 2 by the SAMP command and one of 64 phrases (ch00-Ch3F) can be selected by the CHAN command in the direct record/playback mode. 790 OKI Semiconductor MSM6688 • Direct Record/Playback Method 1. Recording method in the direct record/playback mode (1) Input the record/playback conditions by the corresponding commands as follows. VOS command: Specify the ADPCM bit length (BIT) and voice activation condition (VDO, VD1). SAMP command: Set the command mode to mode 2 (MOD =O, MOD = 1) and specify the sampling frequency (SAO, SA1). CHAN command: Select one of 64 phases ch00-ch3F (CAO-CA5). ADRWR command: Input the start address and the stop address. REC command: Set to the recording mode. (2) Input the START command to start the recording. The MSM6688 fetches the start address and the stop address of the specified phrase input by the ADRWR from the channel index area and stores them in the address counter and the stop address register, respectively. Then it starts recording. (3) When the contents of the address counter coincide with the contents of the stop address register, recording is finished. Verity the end of recording by the RPM bit of the status register. (4) To stop recording in the middle, input the STOP command. In this case, the contents of the address counter is automatically stored in the channel index area as a new stop address. Make sure that recording is finished by examining the RPM bit before inputting the next command. (5) To continue recording, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4). 791 MSM6688 OKI Semiconductor Flow chart of recording in the direct record/playback mode ADPCM bit length (BIT) VOS command Voice activation condition (VDO, VD1) Set the command mode to mode 2 (MODO = 0, MOD1 = 1). SAMP command Specify the sampling frequency (SAO, SA1). CHAN command Select one of 64 phrases (CAO - CAS). ADRWR command Input the start address and stop address. REC command Set the recording mode. Start of recording Verify the start of recording. Input record/playback conditions to be modified Verify the end of recording. by the corresponding commands. Stop of recording. Verify the end of recording. 792 OKI Semiconductor MSM6688 2. Playback method in the direct record/playback mode The playback method in the direct record/playback mode is similar to that in the flex record/playback mode, excepting that in the direct playback mode, the command mode is specified to mode 2 by the SAMP command and a phrase can be selected from a total of 64 phrases (ch00-ch3F)by the CHAN command. (1) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT) The voice activation condition (VDO, VD1) is invalid for the playback operation. SAMP command: Set the command mode to mode 2 (MOD = 0, MOD = 1) and specify the sampling frequency (SAO, SA 1). CHAN command: Select one of 64 phrases chOO-ch3F (CA~A5). LEV command: Specify the playback output level (LVO, LV1). PLAY command: Set the playback mode. (2) Input the START command to start the playback. The MSM6688 fetches the start address and the stop address of the specified phrase from the channel index area and stores them in the address counter and the stop address register, respectively. Then it starts the playback operation. (3) When the contents of the address counter coincide with the contents of the stop address register, playback is finished. The end of playback is verified by the RPM bit of the status register. (4) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit before inputting the next command. (5) To continue playback, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4). For the flow chart, refer to the flow chart of record/playback in the flex record/playback mode. 793 MSM6688 OKI Semiconductor • ROM Playback by Inputting of Address Code 1. Method inputting commands (1) Input the record/playback conditions by the corresponding commands as follows. SAMP command: Set the command mode to mode 1 (MODO = 1, MOD1 =O}. The sampling frequency (SAO, SA 1) is invalid. CHAN command: Select one of 255 phrases ch01-chFF (CAO-CA7). LEV command: Specify the playback output level (LVO, LV1) (2) Input the START command to start the playback. The MSM6688 fetches the data of the start address, stop address, sampling frequency, and ADPCM bit length of the specified phrase from the channel index area of the serial voice ROMs and starts the playback operation. (3) When the contents of the address counter coincide with the contents of the stop address register, playback is finished. The end of playback is verified by the RPM bit of the status register. (4) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit before inputting the next command. (5) To continue playback, specify the record/playback conditions to be modified by the corresponding commands and perform steps (2)-(4). 794 OKI Semiconductor MSM6688 Flow chart of ROM playback by Input of Address Code SAMP command Set the command mode to mode 1 (MODO = 1, MOD1 = 0). CHAN command Select one of 255 phrases (CAO ~ CA7) LEV command Set playback output level (LVO, LV1 ). Start of playback Verify the start of playback. Input record/playback ondltions to be modified Yes Verify the end of playback. by the corresponding commands. STOP of playback Verify the end of playback. 795 MSM6688 OKI Semiconductor 2. Continuous ROM playback The procedure for playback-of different phrases such as the time signal continuously is described below. The command inputting procedure for continuous ROM playback is basically equal to that for a single phrase. In this case, during playback of a phrase, the next phrase to be played back can be specified by the NAR bit of the status register. Continuous playback can also be performed by verifying the end of playback of each phrase using the RPM, instead of use of the NAR bit. To make continuous playback using NAR bit perform the following procedure. (1) Specify a phrase by the CHAN command and input the START command to start playback. When the START command is accepted, the NAR bit of the status register goes to 0. (2) When the NAR bit is changed from Oto 1 to indicate that the next phrase can be specified and inputted, specify the next phrase to be played back by the CHAN command and input the START command. After the START command is accepted, the NAR bit goes to O again. (3) In the same way as mentioned above, repeat the designation of a phrase and input of the START command verifying the state of the NAR bit. 796 OKI Semiconductor MSM6688 Flow chart of continuous ROM playback No Verify whether a phrase can be specified or not. Specify one of 255 phrases (CAO - CA?). The specified phrase is accepted. Verify whether playback of the specified phrase is accepted or not. Verify the end playback. 797 MSM6688 OKI Semiconductor • Direct ROM Playback Method MSM6688 playbacks serial voice ROM code products for the MSM6388/MSM6588ADPCM solid- state recorders, use the direct ROM playback mode. The channel index area is not provided at the header area of these serial voice ROMs. Therefore, it is required to prepare an ROM in the microcontroller or an external ROM to store the start and stop addresses, sampling frequency, and ADPCM bit length of each phrase. The start address and stop address of each phrase consists of 32 bits. These addresses are indicated in the voice address corresponding list of the serial voice ROM. For example, the addresses to provide the "Message+ Cattle Voice (English}" are as shown in the following table. Voice Start X address Sto~ X address Sto~ Y address Sampling AD PCM words STX11 - STXO SP 11 - SPXO S Y? - SPYO frequency ts bit length MessaJe+ No. 1 ~attle oice OOOh 010h 5Dh 6.4kHz 4bit (English) Before starting playback, the address data must be transferred to the channel index area of the status register using the ADRWR command. In this case. a phrase that is not used for record/playback must be specified for this direct ROM playback using the CHAN command. When recording a phrase in the flex record/playback mode, chOO is inhibited to specify. Normally, ch3F address is used as the phrase dedicated for direct ROM playback. 798 OKI Semiconductor MSM6688 (1) Input the record/playback conditions by the corresponding commands as follows. VDS command: Specify the ADPCM bit length (BIT}. The voice activation condition (VDO, VD1) is invalid for the playback operation. SAMP command: Set the command mode to mode 3 (MOD1 =1, MODO =1) and specify the sampling frequency (SAO, SA1). CHAN command: Select one of 64 phrases ch00-ch3F (CAO-CA5). Normally ch3F is used for direct ROM playback ADRWR command: Specify the start and stop addresses. (2) Input the START command to start the ROM playback. The MSM6688 fetches the start address and the stop address of the specified phrase from the channel index area of the serial registers. Then it starts the playback operation. (3) To stop playback in the middle, input the STOP command. In this case, make sure that playback is finished by examining the RPM bit. 799 MSM6688 OKI Semiconductor Flow chart of direct ROM playback VOS command ADPCM bit length (BIT) SAMP command Set the command mode to mode 3 (MODO =1, MOD1=1). Specify the sampling frequency (SAO, SA1). CHAN command Select one of 64 phrases (CAO- CA5). Normally, specify ch3F. ADRWR command Input the start address and stop address. Start of playback Verify the start of playback Input record/playback conditions to be modified Yes Verify the end of playback. by the corresponding commands. Stop of playback . Verify the end of playback. 800 OKI Semiconductor MSM6688 • Stopping Temporarily Record/Playback (by the PAUSE Command) The record/playback operation in progress can be stopped temporarily by inputting the PAUSE command. The record/playback operation stopped using the PAUSE command can be restarted by inputting the START command. During temporary stop state, the VPM bit of the status register is 1 and the RPM bit keeps 1. If the START command is input to restart the recording operation that is temporarily suspended by the PAUSE command in the voice activated recording mode, the recording will be started immediately even in the state of silence. The PAUSE command is invalid during record/playback state, temporarily stopped state, and standby state for voice. When the STOP command is input during temporarily stopped state, the record/playback operation --u L1 L1 L1 DO - D3 ----qTART OPAUSE OSTART OSTOP command command command command Status register RPM bit VPM bit ' ' ' Standby i Record/playbacki Temporarily stopped Record/playback i Standby Immediately rest~rted even in l case of voice activated recording is finished and the MSM6688 is placed in the standby state. • Transferring Data to/from External Memories --u L1 L1 DO- D3 ----qTART OPAUSE OSTOP command command command Status register RPM bit VPM bit ' ' Standby i Record/standby i Temporarily stopped Standby 801 MSM6688 OKI Semiconductor • Transferring Data to/from External Memories 1. Method of transferring data to/from external serial registers(bythe CHRW command) The MSM6688 can transfer data to/from the user area in the channel index area of external RAM using the CHRW command. Before starting this data transfer operation, a desired phrase must be specified using the CHAN command. The memory capacity for each phrase is 704 bits (176 nibbles) in the flex record/playback mode and 960 bits (240 nibbles) in the direct record/playback mode. The read/write operation must be performed for the data that does not exceed this memory capacity per phrase. The contents of the user area for a specified phrase or for all phrases will be cleared to all Os (Oh data) using the CHAN and DEL commands. The following shows the procedure for inputting the CHRW command. (1) Set the command mode to mode Oor mode 1 (MOD1=0) using the SAMP command. (2) Specify a phrase using the CHAN command. (3) After inputting the CHAN command, wait for BUSY state duration. The end of the BUSY state duration can also be verified by the BUSY bit of the status register. (4) To write data, input the REC command and then inputthe data to be written by a~ing the WR pulse. It is required to wait for the busy state duration between the contiguous WR pulses. When the data writing operation is performed by inputting a single input of the CH RW command, the state of the BUSY bit of the status register can be verified by inputting the RD pulse. When the data read operation is performed with the data write operation, the state of the BUSY bit cannot be verified by inputting the RD pulse. (5) When reading data, wait for the BUSY state duration after inputting the PLAY command and then input the RD pulse. With this operation, 4-bit data will be output via the data bus. (6) To continue the data read or write operation, specify the read or write mode using the PLAY or REC commands. (7) To stop the data read/write operation, input the STOP command. After waiting for the BUSY state duration, the next command can be input. 802 OKI Semiconductor MSM6688 Flow chart of data transfer by the CHRW command SAMP command Set the command mode to mode 0 or mode 1 (MOD1=0) CHAN command Specify one of 64 phrases (CAO - GAS). CHRW command Wait for BUSY state duration No (Data read) REC command PLAY command Wait for BUSY state Wait for BUSY state duration duration Input WR pulse Data input Input RD pulse Data output Wait for BUSY state Wait for BUSY state duration duration Yes STOP command Wait for BUSY state duration MSM6688 OKI Semiconductor 2. Method of transferring data to and from external RAM (by the DTRW command) The data transfer to/from external RAM is performed using the DTRW command. After inputting the DTRW command, specify an address to be accessed for data read/write. The transfer of each 4-bit data is performed from the starting nibble of the specified address. For the address space, refer to Section 1.2 "Address space allocation in the direct record/playback mode" in "Data Configuration of External RAM." The address designation can be made only in the X direction and random address designation cannot be made in the Y direction to select an arbitrary address in the Y direction. With the input of a single DTRW command, continuous read/write operation can be made in the range of addresses 8Mbit (CS1, CS2, CS3, CS4, ). When the read/write operation is extended to two or more 8Mbits (CS1, CS2, CS3, CS4, ), it is necessary to stop temporarily the read/write operation each time the operation is finished for one serial register, and set the address for another serial register using the DTRW command. (1) Set the common mode to mode 2 (MODO =o, MOD1 =1) (2) Input the DTRW command (3) Specify the X address in a serial register by inputting the WR pulse five times. Wait for the BUSY state duration. The BUSY state can be verified by examining the state of the BUSY bit of the status register. The 2nd nibble of the DTRW command is a dummy nibble. Always input Oh data into the 2nd nibble. (4) For data writing, input the REC command and input the data to be written by inputting the WR pulse. Wait for the BUSY state duration between the contiguous WR pulses. To makethe data write operation by a single input of the DTRW command, the state of the BUSY bit can be verified by inputting the RD pulse. When data write and data read operations are performed jointly, the state at the BUSY bit cannot be verified using the RD pulse. (5) To read data, input the PLAY command and then input the RD pulse after waiting for the BUSY state duration. With this operation, 4-bit data will be output via the data bus. (6) To continue data read/write operation, specify the read or write mode using the PLAY or REC command and make data transfer operation. (7) To finish the data read/write operation, input the STOP command. After waiting for the BUSY state duration, the next command can be input. 804 OKI Semiconductor MSM6688 Flow chart of data transfer using the DTRW command SAMP command Specify the command mode to mode 2 (MODO =0, MOD1 =1). DTRW command Input dummy nibble (0, 0, 0, 0) (2nd nibble) Input X address (XO, X1, X2, X3) (3rd nibble) Input X address (X4, XS, X6, X7) (4th nibble) Input Xaddress (5th nibble). (XS, X9, X10, X11) Input X address (X12, X13, X14, X15) (6th nibble) Walt for BUSY state duration (Data read) REC command PLAY command Wait for BUSY state Walt for BUSY state duration duration Input WR pulse Data input Input RD pulse Data output Walt for BUSY state Walt for BUSY state d duration uration STOP command Walt for BUSY state duration 805 MSM6688 OKI Semiconductor 3. Method of reading data from external serial voice ROMs (by the DTRD command) The data from external serial voice ROMs can be read using the DTRD command. After inputting the DTRD command, specify the address to be read. The data is read in groups of 4 bits from the specified address. For the address space, refer to "Data Configuration of External Serial Voice ROMs." The data can be addressed on a 64-bit basis. With the input of a single DTRD command, continuous read/write operation can be made in the range of addresses assigned to the same serial voice ROM. When the read/write operation is extended to two or more serial voice ROMs, it is necessary to stop temporarily the read/write operation each time the operation is finished for the serial voice ROM, and set the address for another serial voice ROM using the DTRD command. The following shows the procedure for inputting the DTRD command. (1) Set the command mode to mode 3 (MODO = 1, MOD1 = 1). (2) Input the DTRD command. (3) Specify the X address and Y address of the serial voice ROM by inputting the WR pulse five times. Then, wait for the BUSY state duration. The 6th nibble is a dummy nibble. Always input Oh data into this 6th nibble. (4) Input the PLAY command and wait for the BUSY state duration. Then, input the RD pulse, so that 4-bit data will be output via the data bus. (5) To continue data read operation, perform the data read operation inputting the PLAY command and RD pulse in the same way as mentioned above. (6) To finish the data read operation input the STOP command. After waiting for the BUSY state duration, the next command can be input. 806 OKI Semiconductor MSM6688 Flow chart of data read using the DTRD command SAMP command Specify the command mode to mode 3 (MODO =1, MOD1 =1). DTRD command Input Yaddress (YO, Y1, Y2, Y3) (2nd nibbles) Input lower bits of (XO, X1, X2, X3) Xaddress (3rd nibbles) Input middle 4 bits of (X4, X5, X6, X7) Xaddress (4th nibble) Input upper 4 bits of Xaddress (5th nibble) (XS, X9, X10, X11) Input dummy nibble (0, 0, 0, 0) (6th nibble) Walt for BUSY state duration PLAY command Walt for BUSY state duration Input RD pulse Data read Wait for BUSY state duration Yes STOP command Walt for BUSY state duration 807 MSM6688 OKI Semiconductor • Record/Playback by Inputting/Outputting Voice Data via Data Bus When SRAMs (static RAMs) or other hardware memory products are used to store voice data, the record/playback operation will be performed by using the EXT command. In the case of the record/ playback using the EXT command, voice data is directly input or output via the data bus in synchronization with the sampling frequency. In this record/playback mode, the address control and the control of external RAM and serial voice ROMs are not performed. Therefore, the microcontroller performs the recording time control and address control. In this mode, temporary stop of record/ playback operation by the PAUSE command and the voice activated recording cannot be performed. 1. Method of recording using the EXT command (1) Input the record/playback conditions using the corresponding commands as shown below. VOS command: Set the ADPCM bit length (BIT). Specify the disabled state of voice activation (VDO = 0, VD1 = 0) SAMP command: Specify the sampling frequency (SAO, SA1) The command mode (MODO, MOD1) is invalid. REC command: Set to the recording mode (2) Input the EXT command to start the recording. The sampling frequency clock is output via the MON pin. (3) When the MON pin goes high, input the RD pulse to fetch the ADPCM data from the external memory via the data bus. In the case of 3-bit AD PCM, the upper 3 bits (03-D 1 pins) are valid and the lower 1 bit (DO pins) is invalid. (4) Store the ADPCM data into the external memory such as SRAMs. (5) Repeat steps (3) and (4) to continue the recording operation. (6) Input the STOP command to stop the recording operation. Until the STOP command is input, the recording operation will be continued without the limit for the recording time. (7) Dui:!!l9. recording by the EXT command, the contents of the status register cannot be verified by the RD pulse. Therefore, after inputting the STOP command, waitforthe BUSY state duration and then input the next command. 808 OKI Semiconductor MSM6688 Flow chart of recording using the EXT command SAMP command Specify the sampling frequency (SAO, SA1). VOS command Specify the AD PCM bit length (BIT) REC command Set to the recording mode EXT command Start the recording by EXT command. Detection of the rising edge of the pulse at MON output pin fl Input the RD pulse Fetch ADPCM data from memory. Store the ADPCM Store the ADPCM data into an external memory such as SRAM. data into memory STOPcommand. End of recording by EXT command Wait for BUSY state duration 809 MSM6688 OKI Semiconductor 2. Method of playback using the EXT command (1) Input the record/playback conditions using the corresponding commands as shown below. VOS command: Set to the ADPCM bit length (BIT) specified tor recording. Voice activation conditions go invalid. SAMP command: Specify the sampling frequency (SAO, SA1) The command mode (MODO, MOD1) is invalid. PLAY command: Set to the playback mode (2) Input the EXT command to start the playback. The sampling frequency clock is output via the MON pin. (3) When the MON pin goes high, the ADPCM data is ready to be fetched from an external memory such as an SRAM. (4) Input the WR pulse to fetch the AD PCM data from the external memory via the data bus. In the caseof3-bitADPCM, the upper3bits (03--01 pins) are valid and the lower 1 bit(DOpins) is invalid. (5) Repeat steps (3) and (4) to continue the playback operation. (6) Input the STOP command to stop the playback operation. 810 OKI Semiconductor MSM6688 Flow chart of playback using the EXT command SAMP command Specify the sampling frequency (SAO, SA1 ). VOS command Specify the ADPCM bit length (BIT) PLAY command Set to the playback mode EXT command Start the playback by EXT command. etect1on of the nsmg edge of the pulse at MON output pin fl Read ADPCM data from memory. Input the WR pulse Write the ADPCM data. STOP command Stop the playback by EXT command. 811 MSM6688 OKI Semiconductor • Suppression of Pop Noise at AOUT Output (by the LEV Command) The MSM6688 has a on-chip pop noise suppression circuitto prevent pop nose from being generated due to sharp changes of the DC level of the analog output (at the AOUT pin). The enabled or disabled state of this pop noise suppression circuit can be selected using the ACON pin. When the ACON pin is low, this circuit is disabled and when high, this circuit is enabled. 1. When the POP noise suppression circuit is disabled (ACON =low) When the RESET pin is high, the DC level at the AOUT pin is the ground level, and when the RESET pin is low, the DC level at the AOUT pin is the 1/2 VDD level. Each time the state of the RESET pin is changed, the DC level is changed sharply and pop noise is generated. RESET j1/2 VDD level AOUT __ GN_D_l_ev_el_ _,\\ Pop noi$e Pop noise i 1 -----~ ~-----~ Power down Standby Record/playback Power down 812 OKI Semiconductor MSM6688 2. When the POP noise suppression circuit is enabled (ACON = high) The transition of the DC level at the AOUT (analog output) pin is controlled using the LEV command. When the RESET pulse (low) is applied to the RESET pin, the DC level at the AOUT output pin goes to the ground level. If the pop noise suppression circuit is activated using the PNO and PN1 bits of the 2nd nibble of the LEV command, the DC level at the AOUT output pin will be changed from the ground level to the 1/2 VDD level or from the 1/2 VDD level to the ground level slowly to prevent pop noise from being generated. Before starting the record/playback operation. always set the DC level at the AOUT pin to the 1/2 VDD level using the LEV command. When enabling the DC level transition function by the LEV command. first specify the playback mode by the PLAY command and then input the LEV command. PN1 PNO DC level transition 0 0 Disabled 0 1 Disabled Transition from ground 1 0 to 1/2 VDD Transition from 1/2 VDD 1 1 to ground RESET AOUT GND level GND level Power down Record/playback Power down L LEV command 813 00 ...... ,j::>. 0 3 -I • •m 3: (/) 3: 0::::> 0-· a o 0 (I) )> MCU f-----1 RD RW K ti) en::::> Ill 0 ~ DROM :2: -- C..-o en co :!: ~~~ MCUM ffi a..0£ ~~g- 0 RSEL1 ~ 0 O" ::::> z RSEL2 ~ c;; CE U5 ..... co I\);:::;: 0 s:::o=r S2 TEST ~ CS1" :2: Q:JJg ::D w en - )>;:::;: 0 CS2 :2: s::: < -· Ill c: w a: CS4 !!!..~ 3 < (!) "O =i 0-·(I) i-1~ c: ::::> ~ CX> Ul (!) FOUT Speaker drive amplifier ADIN ::::> (!> Cl <( CS2 MIN CS3 MOUT CS4 LIN Dl/O LOUT DROM SGC WE SG XT AVDD XT DVDD RWCK 31 AMON MON FIN NAR AOUT RESET FOUT SP ADIN ST REC/PLAY DGND INDEX MARK NC: No connection (Open) 818 DEL ST SP PAUSE CAO CA1 CA2 CA3 CA4 CA5 TOTO TMDO l l TDT? TMD3 TMD4 TST - TCK TEST TEST SYNC • m r- ~ ""' Ul 3: VDS Address Controller RSEL1 ROM RSEL2 MON SADX NAR SADY SAS C") :D TAS XT :a 0 "' RWCK * CQ. XT WE SBC g ~ .... CS1 REC/PLAY Analyzer/Synthesizer CS2 REC/PLAY CS3 4B/3B CS4 MIN ci •1 12bit 12bit SG MOUT ~.. I I LPF ADC DAG Circuit LIN .~ DVDD AVDD DGND AGND s:: (/) LOUT AMON FIN AOUT FOUT ADIN SG SGC s:: 00 ..... ~ '° &: MSM6788 OKI Semiconductor • ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings Item Symbol Conditions Rating Unit Power supply voltage VDD Ta=25°C -0.3-7.0 v Input Voltage VIN Ta=25°C -0.3-VDD+0.3 v Storage temperature Tstg - -55-+150 ·c • Operating Range Item Symbol Conditions Rating Unit Power supply voltage VDD DGND=AGND=OV +3.5-5.5 v Operating temperature Top - 0-+70 ·c Master clock frequency lose - 6.0-8.192 MHz • DC characteristics DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C Item Symbol Conditions MIN TYP MAX Unit High input voltage V1H - 0.8xVDD - - v Low input voltage V1L - - - 0.2xVDD v High output voltage VOH IOH = -40uA VDD-0.3 - - v Low output voltage VOL IOL= 2mA - - 0.45 v High input current (Note 1) llH1 VIH= VDD - - 10 µA High input current (Note 2) llH2 VIH = VDD - - 20 µA Low input current (Note 1) llL1 VIL= GND -10 - - µA Low input current (Note 2) llL2 VIL= GND -20 - - µA Operating current loo fosc = B MHz, no load - 30 mA consum_Q\ionJ!l 15 Operating current IPD At power down. no load - - 10 µA consum_filionJ2)_ Note 1 : Applies to all input pins excluding the XT pin. Note 2: Applies to the XT pin. 820 OKI Semiconductor MSM6788 • Analog Characteristics DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C Item Symbol Conditions MIN TYP MAX Unit DA output relative error IVoAEI no load - - 10 mV FIN admissible input VFJN - 1 - VDD-1 v voltage range FIN input impedance RFJN - 1 - - Mn Op-amp open loop gain Gop f1N=0-4kHz 40 - - dB Op-amp input impedance R1NA - 1 - - Mn Op-amp load resistance RourA - 200 - - kn AOUT load resistance RAO UT - 50 - - kn FOUT load resistance RFOUT - 50 - - kn 821 MSM6788 OKI Semiconductor • AC Characteristics DVDD=AVDD=4.5N5,5V DGND=AGND=OV Ta=ON70°C fOSC=8.192MHz Item Symbol MIN TYP MAX Unit RESET pulse width tRsT 1 - - µs RESET execution time (Note 1)* tREX - 1 - ms PDWN low level time * tpoL 250 - - µs PDWN high level time * tpoH 250 - - µs Oscillating time after input of PDWN * tpx 125 - 250 µs BUSY time after release of PDWN (Note1)* ts po 0.25 - - ms ST pulse width * tsr 40 - - µs SP pulse width * tsp 40 - - µs PAUSE pulse width * tpsE 40 - - µs DEL pulse width * to EL 40 - - µs Time required to delete all phrases * twBLA 550 - - ms Time required to delete a specified phrase * twsu 70 - - ms Time from input of DEL pulse to CSI fall * toes - - 270 µs Hold time of CAONCA5, REC/PLAY after MON rise tcAH 1 - - ms Address control time at the start of record/playback * tA01 - 1 - ms Time from input of ST pulse to NAR fall * ts TN - - 40 µs Unvoiced time between phrases during repeated playback * tMID 0.75 - 1 ms Record * trMH1 - - 50 ms Time from input of ST pulse Playback * - - 20 ms to MON rise tTMH2 ROM playback* trMH3 - - 1 ms Record * tPMH1 60 - 80 ms Time from input of SP pulse PDMD=H to MON fall Playback * tPMH2 1 - 15 ms ROM playback* tPMH3 1 - 15 ms Time from input of ST pulse to voice activation * tsrvH - - 50 ms standby state Time from input of SP pulse during voice activation standby state to release of voice * tsPVH 60 - 80 ms activation standby state Items with * are proportional to the period of master oscillator frequency fosc. Note 1: The oscillation startup stabilization time is added to tREX and t 8 p 0 . The oscillation startup stabilization time is several tens of milliseconds for crystaloscillators and is several hundreds of microseconds for ceramic oscillators. 822 OKI Semiconductor MSM6788 DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C foSC=8.192MHz Item Symbol MIN TYP MAX Unit Record * trML1 - - 120 ms Time from input of ST pulse to MON rise Playback * trML2 - - 150 ms ROM playback * lrML3 - - 150 ms Record * tPML1 60 - 80 ms Time from input of SP pulse to MON fall Playback * tPML2 64 - 80 ms PDMD=L ROM playback * tPML3 64 - 80 ms Time from input of ST pulse to voice activation * tsrvL - - 120 ms standby state Time from input of SP pulse during voice activation standby state to release of voice * tsPVL 60 - 80 ms activation standby state Standby transition time at start of playback * tAOR - 64 - ms Standby transition time at end of playback * tAOF - 64 - ms Time from input of PAUSE pulse to pause * tpp - - 15 ms Time from input of ST pulse during pause to restart of * - - 15 ms record/playback tpsr Items with * are proportional to the period of master oscillator frequency fosc. 823 MSM6788 OKI Semiconductor • TIMING DIAGRAMS e RESET FUNCTION VDD RESET (I) tREX Undefined Power down Reset operation in progress Standby for record/playback 824 OKI Semiconductor MSM6788 • Power Down by PDWN Pin PDWN (I) L-··-·--··-· I !JPX Note XT(I) ' Oscillation in progress Oscillation in progress XT(O) k ta po )i l l j i ~ i I ~~~~~-~~~P_ow_e_rd_o_w_n~X~P-os-tp-r-oc-es-s-in~gx~~St-an-d-by~- Note 1: When an external clock is used, continue to apply the clock inputto the XTterminal during \>x after the PDWN pin is set to a low level. 825 MSM6788 OKI Semiconductor • Timing for Deletion of All Phrases CAO-CA5(1) ~~-------~~ ! DEL (I) ----; -t-r- toEL twaLA ktoes"' I I : l CST(O) i ! ! Standby ~~__D_e_let_io_n_of_a_ll_ph_ra_se_s_~~~--S-ta-nd_b_y_ _ • Timing for Deletion of a Specified Phrase CAQ;..CAS(I) . .'-----------'~ l +--JE- toEL - - - - ; ; ;,_______,________ DEL (I) twsu i'~ toes ! i CSf(O) Standby St_an_d--"by_ _ Deletion of a specified phrase ..___ _ 826 ~ • Recording Timing (PDMD Pin= High) ~ RESET (I) i : ~- ROM (I) ~ f(////l/ll//lll//11!/16111111!/!; g. BRO, BR1 (I) . . . Bitratedesignation ~ ~ ~ --- CAO-CA5 (I) Phase designation REC/PLAY (I) _ ______,_ . ->i--+-- tsr __,! : -+-----i.--- ! I tcAH · Sf (I) --tt- tsp SP (I) i--.l XT XT (I) (0) ____,K, i Oscillation in progress i I l ! ITMH1 ! i tPMH1 ; : MON (0) tsrN ; ; ' ' l NAR (0) nX -Po_w_e_rd_o_w__ i Standby ! ,., XAddress control X : Recording in progress i X Standby I ~~Po_w_e_r-do_w_n s:: Cb s:: ~ 'I ~ R5 • Timing for Voice Activated Recording (PDMD Pin = High) s:: 00 "'..... s:: O> RESET (I) ~ ROM VDS BRO, BR1 CAO-GAS (I) (I) (I) (I) ... ~ ~ ~~.....,..,.;.,,.'~' ~ Bit rate designation Phrase designation - ~ ~ I ' ~~' -t-+~ REC/PLAY (I) ST (I) :; II --l>i---1<-- tsp :: I: ->i--iE-- tsp ___ :_:___ _ Ii __ __ J 1 SP (I) , I !·--; ! !--.! ! (0) ____f<::::::: XT (I) XT Oscillation in progress ! ! tswH i tsPVH 1 ! tPMH1 1 tsTN : ; i i MON (0) f--------' NAR (0) I tAD1 ~ Power down X Standby 1 Standby for voice , Address control X Recording , Standby XPower down Voice detected L When STOP pulse is input during standby for voice, the MSM6688 goes to the recording standby state. ~ ~- §' ~ e Playback Timing (PDMD Pin= High) ~ ~ ~- RESET (I) ROM (I) ~ ~ @: BRO, BR1 (I) ~ Bitratedesignation ~ ~ CAO-CA5 (I) ~ Phrase designation REC/PLAY (I) ~ ; ~tsr ~tcAH i i _ _ __,_i_-;i i l . ! : ~tsp I ST (I) . : I I ----~ Oscu~ SP (I) XT XT (I) (0) ..: : , : fJ ! i trMH2 i IPMH2 i tsTN !! : i MON (0) I ! ! NAR (0) ! 1/2 VDD level i. ! . 1/2 VDD level i AOUT (0) GND level i t i GND level l ; AD1 ; l Power downX Standby XAddress controlX Playback X Standby ; e5 w ....... ~ ~ ~ • Playback Timing (POMO Pin = Low) >!'>- RESET ROM (I) (I) ~ /11111111111111 I BRO, BR1 (I) - Bit rate designation ~ CAO-CAS REC/PLAY ST (I) (I) (I) .. - ----;~ ~ tsr Phrase designation --+--+- tcAH : -rt- tsp i : SP (I) : ! j. ••• : XT XT (I) (0) ____,k Oscillation in progress l trML2 l ! tPML2 tsTN ';...-~~~~~~~~~~~~~~~~~~~~~~~~~---< MON (0) NAR (0) i ! i 1/2 VDD level I AOUT (0) GNDlevel .~I tA01 v v v V v v - ! t~ V VAddress contra? Power down Y Analog stable time Standby transition Playback i'---+'---~_Power i Standby transition down a ~ ~- ~ Q e ROM Playback Timing (PDMD Pin = Low) ...~ u:i RESET (I) (]) 8. (I)~ ..a ~ ROM CAO~CA5 (I) -- Phrase designation (I) L~ : : ~~ ; . I ; ST SP (I) ~ +i<-- tsp ~- .. : XT XT rn) ~ Oscillation in progress ! trML3 l tPML3 tsrn ' ,_:- - - - - - - - - - - - - - - - - - - - - - - - - - - - ; MON (0) : : NAR (0) _ _ _ _. _ ! ---;! i i : ! 1/2 VDD level ! AOUT (0) GND level ! tAoR i tA01 i GND level Power down~ .,. Y .,. YAddress control Y Playback Y .,. YPower down Analog stable time Standby transition Standby transition s:: en s:: O> 00 VJ ..... (J1 ~ 00 (;.) •Continuous ROM Playback Timing (PDMD Pin = Low) 3:: CJ) °' 3:: RESET (I) !?l ~ ROM (I) """"""'"' CAO-GAS (I) 1st phrase designation ST (I) ~tsp SP XT (I) 1g( ) ir<:::::: ; ; :f i' - ' ;" ...: XT ! 1 , o.,;u,,,. '" '"'"" ! ! i :i i i :: :: t : TML3 : tPML3 STN : i i i MON (0) NAR (0) ~~~~_j_l_Ji~~~~~~ 1 AOUT (0) "''"'' ! . ~A(\(\ 1dvoo ,J,1 (\" ' I GND level Power down 1st phrase playback 2nd phrase playback owerdown Analog stable time Standby transition Address control Standby transition ~ ~ ~- §' ~ ~ • Record/Playback Pause Timing ~ ST (I) -------;u +i<- tsr Start pulse +i<- tsr LJ;-;-Re-st-art-pu-ls_e_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ ~tsp !·g. SP (I) ! ! !···: ~ ~IPSE --*"-*- IPSE i -~~~~~~~~~~~~~--;· i----- : i : PAUSE (I) ~.~._ tpp Note 1 : : ! MON (0) ! 1 i i 1 ! -----~x Standby Record/Playback X Pause XRecord/Playback X Pause X~------- Standby Note 1: This time interval varies depending on the state of PDMD pin and the record/playback mode and is one of tPMH1, tPMH2. tPMH3. tPML2 and tPML3· ~ (/) ~ O> C7:! (;J ..... '1 ~ MSM6788 OKI Semiconductor • PIN DESCRIPTION Pin Name 1/0 Pin function DVDD - Digital power supply pin AVDD - Analog power supply pin DGND - Digital ground pin AGND - Analog ground pin SG,SGC 0 Output pin for analog circuit reference voltage (signal ground) MIN Inverting input pin of the built-in OP amplifier. Non-inverting input LIN I pin is internally connected to SG (signal ground). MOUT MOUT and LOUT are output pins of the built-in OP amplifier for MIN LOUT 0 and LIN, respectively. This pin is connected to the LOUT pin in the recording mode and to AMON 0 the DA converter output in the playback mode. Used to connect the built-in LPF input (FIN pin). FIN I Input pin of the built-in LPF. FOUT 0 Output pin of the built-in LPF. Used to connect the AD converter input (ADIN pin). ADIN I Input pin of the built-in 12-bit AD converter. Output pin of the built-in LPF. This pin outputs playback waveforms AOUT 0 and used to connect an external speaker drive amplifier. (Serial Address Data). Used to connect the SAD pin of each SADX 0 external MSM6791 (DRAM interface LSI) and serial voice SADY ROM. This pin outputs of starting address of read/write. (Serial Address Strobe). Used to connect the SAS pin of external SAS 0 MSM6791 (DRAM interface LSI~ and the SASX and SASY pins of external serial voice ROM. Cloe pin to write the serial address. (Transfer Address Strobe~ Used to connect the TAS pin of each external MSM6791 dDRA interface LSI) and serial voice ROM. TAS 0 This pin outputs ad ress strobe outputs to set the serial address data from the SADX and SADY pins into the internal address counter of each external MSM6791 (DRAM interface LSI) and serial voice ROM. ~ead/Write Cloe~. Used to connect the RWCK pin of each external RWCK 0 SM6791 (DRA interface LSI) and the ROCK pin of each external serial voice ROM. This pin outputs a clock to read data from or write it into each external MSM6791 (DRAM interface LSI). (Write EnablekUsed to connect the WE pin of each external WE 0 MSM6791 (D AM interface LSI). This pin outputs WE signal to select either read or write mode. ~ata 1/0). Used to connect the DIN and DOUT pins of external Dl/O 110 SM6791 (DRAM interface LSI). This pin outputs the data to be written into the external MSM6791 (DRAM interface LSI) or inputs the data read from the external MSM6791 (DRAM interface LSI). DROM I (Data ROM). Used to connect the DOUT pin of each external serial voic ROM. CSf 0 ~Chip Select). Used to connect CS.lli!Lof each external MSM6791 CS2 DRAM interface LSI) and the CS (CS1, CS2, CS3) pins of each serial CS3 voice ROM. CS4 838 OKI Semiconductor MSM6788 Pin Name 1/0 Pin function RSEL1 I (Register Select). These input pins are used to select the number of RSEL2 external RAM to be connected. RSEL2 L L H H RSEL1 L H L H Total memory size 8Mbit 16Mbit 24Mbit 32Mbit This pin is used to select either the stand-alone mode or the MCUM I microcontroller interface mode. Low level: Stand-alone mode High level: Microcontroller interface mode. RESET I A high input level at this pin causes the MSM6788 to be initialized and to go into the power down state. (Power Down). When a low level is input to this pin, the MSM6788 goes to the power down state. Unlike the RESET pin, this pin does PDWN I not force to reset the MSM6788. When an Low level is applied to this PDWN pin during recording operation, the MSM6788 is halted, and will be maintained in the power down state while PDWN is low. After this pin is restored to a high level, postprocessing for recording will be performed. Used to connect an oscillator. When an external clock is used, XT I input the clock through this pin. At the power down state, this pin must be set to the ground level. XT 0 Used to connect an oscillator. When an external clock is used, this pin must be left open. TEST Used to test the L$.Ullilut a low level to the TEST pin and I a high level to the TEST pin. TEST TMDO-TMD3 TDTO -TDT? 1/0 Used to test the MSM6788. This pin must be left open. SYNC TST TCK I Used to test the MSM6788. Input a low level. TMD4 839 MSM6788 OKI Semiconductor Pin Name VO Pin function ROM I When low, selects the record/playback operation. When high, selects the ROM playback operation. REC/PLAY I Used to select the recording mode or the playback mode. This pin is invalid during the ROM playback operation. When low, selects the playback mode. When high, selects the recording mode. ST I When a low-level pulse is applied to this pin, the record/playback or ROM playback is started. SP I When a low-level pulse is applied to this pin, the record/playback or ROM playback is stopped. PAUSE I When a low-level pulse is applied to this pin, the record/playback or ROM operation is stopped temporarily. DEL I When a low level pulse is applied to this pin, all phase deletion or specified phrase deletion can be performed according to the setting of pins CAO through CA5, chOO: All phase deletion ch01 -ch3F: Specified phrase deletion Aftgr 11owerin~ yg, be surg tQ in11yt RESET signal an~ thgn tQ dglete all ghrases. Aftgr QQmgli:tmg this 11rQ!:!!l~uri: start thi: reQQr~Lgl~bi!Qk ggeration. CAO-CA5 I Input pins used to specify desired phases. A total of 63 phrases can be specified independently for the record/playback operation and the ROM playback operation. CA5 CA4 CA3 CA2 CA1 CAO Phrase No. Remarks L L L L L L chOO All phrase deletion L L L L L H ch01 L L L L H L ch02 A total of 63 phrases can be used both for record/playback and ROM playback H H H H H L ch3E operation. H H H H H H ch3F 840 OKI Semiconductor MSM6788 Pin Name 1/0 Pin function BRO I Used to select one of the following four types of bit rate. This pin BR1 is invalid during the ROM playback operation. BR1 BRO Bit rate L L 16.0 kbps L H 12.6kbps H L 10.0 kbps H H No use PDMD I This input pin is used to select the condition for transition to the power-down state. Low level: The MSM67B8 automatically goes to the power-down state, excepting the time the record/playback operation is being performed. High level: The MSM67B8 automatically goes to the standby state, instead of the power-down state, excepting the time the record/playback operation is being performed. In this case, the MSM6788 can be placed in the power-down state by setting the RESET pin to a high level. If it is desired to use the built-in LPF for an external circuit, this standby mode must be selected by applying a high level to the PDMD pin. VDS I Used to select the voice activated recording that starts recording when the voice input exceeds the preset amplitude. A high input level on this pin enables the voice activated recording circuit. MON 0 Outputs a high level while the record/playback operation is being performed. NAR 0 Output pin to indicate the enable or disable state of the operation for specifying a phrase. When continuous ROM playback is performed, the next phrase can be specified after verifying that the NAR pin becomes high. 841 MSM6788 OKI Semiconductor • FUNCTIONAL DESCRIPTION • Bit Rate The master clock frequency (fosc) and sampling frequency (fsam) are shown in the following equation. When the master clock frequency is 8.192 MHz, the sampling frequency is 8.0 kHz. Sampling frequency = Master clock frequency 8.192MHz = 1024 1024 = 8.0 (kHz) In the SBC method, 96 sampled frequencies are grouped into one frame, and coded on the frame basis. Data quantity per frame can be selected out of the following three types of bit rate. Bit rate Data quantity per one frame 16.0 kbps 24 byte (192 bit) 12.6 kbps 19 byte (152 bit) 10.0 kbps 15 byte (120 bit) @fosc=8.192MHz For example, when the data quantity is 24 bytes, the bit rate is calculated as follows: Data quantity per one frame Data quantity per one frame Bit rate= = Sampling cycle x 96 Time per one frame 24 byte 192 bit = 1/8.0 kHz x 96 = 12.0 msec = 16.0 (kbps) • Recording Time and Memory Capacity The recording time depends on the memory capacity of the external DRAM and bit rate, and is given by Recording time= 1.024 x memory capacity (K bits) (seconds) Bit rate (kbps) For example, if the bit rate is 1O kbps and successive 8Mbit DRAM is used, the recording time can be obtained as follows. 1.024 x {8192 - 64 ) Recording time = 10 = 832 seconds = 13 minutes 52 seconds In the above equation, the memory capacity is obtained by subtracting the memory capacity {64Kbits) for the channel index area from the total memory capacity. 842 OKI Semiconductor MSM6788 • Power Supply Wiring As shown in the following diagram, supply the power to this MSM6788 from the same power source, but separate the power supply wiring to the analog portion from that to the logic position. +5V DVDD AVDD MSM6788 AGND Do not supply the power to the logic portion and the analog portion from the separate power sources. Otherwise, a problem such as latch-up may occur. Wrong Wrong Analogpowerst1pply ---~ ,5y~ D1gitalpowersupply~ 1 DVDD AVDD 1 DVDD Jz 1 AVDD • Analog Input Amplifier Circuit This MSM6788 has two built-in operational amplifiers for amplifying the microphone output. Each OP amplifier is provided with the inverting input pin and output pin. The analog circuit reference voltage SG (signal ground) is connected internally to the non-inverting input of each OP amplifier. For amplification, form an inverting amplifier circuit and adjust the amplification ratio by using external resistors as shown below. V1N /LO R1 R2 R4 VLo \.-&!M~~~~-1 ~'"~" 1 GND SG R4 R2 • R4 V VLo= - - VMo= (V) R3 R1 • R3 IN During the time the recording operation is performed, the output VLO of OP amp 2 is connected to the input FIN of the built-in LPF. The FIN allowable input voltage (VFJN) ranges from 1V to (Voo - 1)V. Therefore, the amplification ratio must be adjusted so that the VLO amplitude can be within the FIN allowable input voltage range. For example, if V00 =5V, VLO becomes 3 Vp-p max. If VLo exceeds the FIN allowable input voltage range, the output of the LPF will be a clipped waveform. The load resistance RouTA of the OP amp is 200 kn minimum, so that the feedback resisters R2 and R4 of the inverting amplifier circuit must be 200 kn or more. 84~ MSM6788 OKI Semiconductor • Connection of LPF Circuit Peripherals The AMON_pin is connected internally to the output of the amplifier circuit (LOUT pin) in the recording mode and to the output of the built-in DA converter in the playback mode. Therefore, connect the AMON pin directly to the input {FIN pin) of the built-in LPF. Both the FOUT and AOUT pins are the output pins of the built-in LPF. Connect the FOUT pin to the input (ADIN pin) of the built-in AD converter and connect the AOUT pin to an external speaker through an external speaker drive amplifier. In the MSM6788, the connection of each of the FOUT and AOUT pins is changed to one of the output of the LPF, GND (ground) level, and SG (signal ground) level, depending on the operation status as shown below. When PDMD pin = H: During operation At power down J.RESET .I!!n =Id_ Analog pin (RESET pin =H) Recording mode Playback mode LPF output FOUT pin GND level (recording waveform) LPF output AOUT pin LPF output GND level SG level (playback waveform) When PDMD pin= L: During operation Analog pin At power down Recording mode Playback mode LPF output FOUT pin GND level (recording waveform) LPF output AOUT pin LPF output GND level GND level (playback waveform) 844 OKI Semiconductor MSM6788 When PDMD pin= H: Speaker drive amplifier ) )) LIN LOUT AMON FIN AOUT FOUT ADIN f LPF ADC DAG Record mode Power d wn SG GND / Note: This diagram shows the state of each switch during the recording operation. When PDMD = L: Speaker drive amplifier LIN LOUT AMON FIN AOUT FOUT ADIN LPF ADC DAG Note: This diagram shows the state of each switch during the recording operation. [dB] 20 • LPF Characteristics 10 This LSI contains a fourth-order switched-capacitor 0 I\ LPF. -10 ~ The attenuation characteristic of this LPF is-40 dB/ -20 oct. The cut-off frequency and frequency -30 characteristics of this LPF vary in proportion to the --40 sampling frequency (fsamp). The cut-off frequency is preset to 0.4 times the sampling frequency. The -50 --60 v cut-off frequency is presetto 0.4 times the sampling -70 frequency. The following graph depicts the -80 frequency characteristics of the LPF at fsamp = 100 1K 10K [Hz] 8kHz. LPF Frequency Characteristics (fsamp = 8.0 kHz) MSM6788 OKI Semiconductor • Reset Function By applying a high level to the RESET pin, the MSM6788 stops frequency oscillation to minimiie current consumption and goes to the power-down state. At the same time, the control circuit is reset and initialized. If a high level is applied to the RESET pin during record/playback operation . the MSM6788 is set to the power-down state and initialized state. so that voice data becomes undefined. The following shows the power-down state of the MSM6788. (1). Frequency oscillation is stopped and all operations of the internal circuit are halted. (2) The current consumption is minimized. When an external clock is used, apply a ground (GND) level to the XT pin at power down so that no current can flow into the oscillation circuit. (3) CS1 - CS4 pins are set to a high level to minimize the current consumption of external DRAMs and serial voice ROMs. (4) The state of the output pins are as follows. SADX, SAS, TAS, CS1- CS4, WE, RWCK, and NAR pins: ....... High level SADY, MON pin: ...................................................................... Low level AOUT and FOUT pins: ............................................................. Ground level After powering up the MSM6788. be sure to initialize it by applying a high level to the RESET pin. 846 OKI Semiconductor MSM6788 • Power Down by the PDWN pin By applying a low level to the PDWN pin, the MSM6788 may be set to the power-down state, in which the frequency oscillation and all operations of internal circuits are halted. Unlike the reset operation by the RESET input, the control circuit will not be initialized by this power-down operation. The power-down operation will not affect the data in the internal control circuit and external DRAMs. Therefore, this power-down operation is useful when the battery backup takes place in case of power failure. When PDWN becomes low during one of the followi~rations, their respective operations will be performed after the power-down state is released (PDWN = H). (1) When the MSM6788 is powered down (PDWN = L) during the record/plaback operation: The record/plaback operation is stopped. After the release of the power-down state, the postprocessing will be performed. (2) When the MSM6788 is prowered-down (PDWN = L) during the phrase deleting operation: The phrase deleting operation is temporalily stopped and will be restarted after the release of the power-down state. = (3) When the MSM6788 is powered down (PDWN L) during the time the transition of the AOUT output to a DC level is in progress: This transition operation is temporalily stopped and will be continued after the release of the power-down state. QA7 MSM6788 OKI Semiconductor • Record/Playback Control Mode Either record/plaback mode or ROM playback mode can be selected through the ROM pin as described below. ROM pin Record/plaback control mod L Record/plaback H ROM playback 1. Record/playback The recorded voice data is stored in DRAMs. The recording area is indirectly allocated to each phrase by setting the phase specifying pins CAO to CA5 (63 phrases). The recording area for each phrase is managed by the MSM6788 as described below. The total memory capacity of the connected external DRAMs is equally devided into 256 memory blocks. When recording is performed, voice data is written into the memory blocks unused by other phrases. When a specified phase is deleted, the blocks used by this phrase become unused blocks. When recording is performed, voice data is written in the memory area consisting of the memory blocks used by this phase and the unused memory blocks. The memory capacity of one memory block and the number of initially available memory blocks (recording time) vary according to the total memory capacity of the connected DRAMs. RSEL2 L L H H RSEL 1 L H L H Total memory capacity BM bits 16M bits 24M bits 32M bits Memory capacity of one block 32K bits 64K bits 128K bits 128K bits 16kbps 2.0 seconds 4.1 seconds 8.2 seconds 8.2 seconds Recording time of one block 12.6kbps 2.6 seconds 5.2 seconds 10.3 seconds 10.3 seconds 10.0kbps 3.3 second 6.6 seconds 13.1 seconds 13.1 seconds Number of initially available 254 191 255 blocks 255 848 OKI Semiconductor MSM6788 2. ROM playback For playback of the voice data stored in the connected serial voice ROM, the playback area is allocated indirectly to each fixed message phase by setting phrase specifying pins CAO to CA5 (63 phases). The start address, stop address, sampling frequency, and bit rate which specify the playback area for each phase are written in the index area of the serial voice ROM. When the plaback operation is started, these data fetched into the MSM6788. 849 MSM6788 OKI Semiconductor • Deleting phrases 1. Deleting all phrases All 63 phrases ch01 through ch3F can be deleted by specifying chOO and applying a low pulse to the DEL pin. When all phrases are deleted, all phreases ch01-ch3F (63 phrases) go to the unrecorded status and, at the same time, the initial data for address control is written in the DRAMs. Therefore, whenever the MSM6788 is powered up, delete all phrases after applying a high level to the RESET Pio.- 2. Deleting a specified phrase By specifying one of ch01-ch3F phrases and applying a low level to the DEL pin, the specified phrases can be deleted and put to the unrecorded state. The blocks for the deleted blocks are added to available unused blocks (available recording time). 850 OKI Semiconductor MSM6788 • Recording Method Whenever the MSM6788 is powered up. be sure to delete all phrases after applying a high level to the RESET pin. Then. start the recording operation. (1) Set recording conditions at the relevant pins. ROM pin: Low level REC/PLAY pin: High level VDS pin: Selection of voice activation recording (high level enables voice activation and low level disables voice activation.) BRO, BR1 pins: Select the SBC bit rate. CAO - CA5 pins: Specify one of 63 phrases ch01 - ch3F. (2) To start recording, apply a low pulse to the ST pin. To stop recording in progress, apply a low pulse to the SP pin. When recording continues to the end of the memory capacity, recording is automatically stopped. In case of re-recording, voice data will be written in the memory block used by the specified phrase and unused memory blocks. Therefore, the voice data is overwritten on the previously recorded contents. The MON pin outputs a high level during recording. ST (I) Stop pulse SP (I) MON (0) Recordina in proaress I< (stopped Tn the nlldale) Available memory capacity I< ST (I) MON (0) Recording in progress Available memory capacity Recording is stopped automatically. 851 MSM6788 OKI Semiconductor • Playback Method (1) Set playback conditions at the relevant pins. ROM.£.!!!.:_ Low level REC/PLAY pin: Low level BRO, BR1 pins: Select the SBC bit rate. CAO-CA5 pins: Specify one of 63 phrases ch01-ch3F. (2) To start playback, apply a low pulse to the ST pin. When playback for the duration of the recorded data is finished, the playback is stopped automatically. To stop playback in progress, apply a low pulse to the SP pin. The MON pin outputs a high level during playback. Start pulse ST (I) __,/~~~~~~~~~- MON(O) ~ Playback in progress (same as the recorded time) )I Playback is stopped automatically Start pulse ST (I) / ~~~LJ.--~~~~~~~~,~S-to_p_p-uls-e~~~~~~ ~~~~~~~~~~~~~ SP (I) MON(O) Playback in progress I< (stopped in the middle) Recorded time By maintaining the ST pin at a low level, repeated playback is possible. ST (I) /(Stop pulse) SP (I) MON(O) j< 1st playback ~< 2nd playback )~ 3rd playback )I 852 OKI Semiconductor MSM6788 • ROM Playback Method (1) Apply a high level to the ROM pin. (2) Specify one of 63 phrases ch01 - ch3F by setting the CAO - CA5 pins. (3) To sta!!.Q)ayback, apply a low pulse to the ST pin. To stop playback in progress, apply a low pulse to the SP pin. 853 MSM6788 OKI Semiconductor • Method of Stopping Temporarily Record/Playback by Pause Function By applying a low pulse to the PAUSE pin during record/playback, record/pl~ack operation can be stopped temporarily. To resume record/playback, apply a low level to the ST pin. To stop record/ playback, apply a low pulse to the SP pin. ST (I) PAUSE (I) ST (I) SP (l) PAUSE (I) When record/playback is resumed after temporary stop, the voice activating circuit is not operated and recording is started when a start low pulse is applied to SP pin. 854 !!?. -l Ill • • a ~ Oil> :::r JJ :::l (J) DVDD AVDD )>o 53- 9. ~ ~REC/PLAY vcc vcc s:: 0 0 a ffi S: .,,:s: 8. DEL Sf SP PAUSE TAS~ RWCK .----t--1TAS RWCK WE DOUT XDIN ~ SADX SA5X SADY Sfi..SV .RWCK IRDCK g ~ ~ ~ ::;; ~3 9: Ill o~ £~ill rQ, 3 ~:::l ..... "s: c. en~ :::r s:: 0 ~ (IJ r- m 0 "T1 .,,.,, l> i t - - - - - - - < RESET WE (j) ... (IJ PDWN Dl/O CS1 -..J s:: Ill r- co C" :::l RSEL1 RSEL2 CS2 ...o.-· - - Ill 0 o-o ~ TEST DROM IDOUT Ill DROM JJ"O :::l BRO c. )>o g- BR1 ~ ~g. 6 POMO z f MCUM gs I\)~ :::l VOS ,_ s:: Q ~'§ (J) 9. TEST ~ C" c: .., "' ::;; CS2 CS2 ;:;:CIJ g :::0 CAO CA1 CS3 CS3 ~~;:;: 0 CA2 ~ CS4 CS4 ;:!.Ill~ c: 4 ~en Ill CA3 CA4 ffi Cl er: :r. XT s::'< 0 ;;------1 ROM JCT Circuit diagram 1: Application circuit in standalone mode with 4Mbit DRAMs and 2Mbit serial voice ROMs en cr :::r w- ill 0 :::r Ci) " (J) XT 0 3 s:: JCT ;b J;. Ill m en iii 3 s:: TEST VSSVSS ;b ;ft 0 Q (j) g en o:i ~~c;;· NAR TDT0-7 )) ) 10 0 c: o en c. :::l s:: "' (J) :::l c. TMD0-3 (J) - · s:: ~ $4. :::l ...., 0) c.n s·st Cl cc (J) Cl MSM6788 OKI Semiconductor (2) MICROCONTROLLER INTERFACE MODE •FEATURES •SBC method • Built-in 12bit AD converter • Built-in 12bit DA converter • Built-in microphone amplifier • Built-in low-pass filter Attenuation characteristics -40 dB/oct • External memories DRAM maximum 32M bits (for variable messages) 1/4/16M bit DRAMs (x 1 bit configuration) are controlled by DRAM interface LSI (MSM6791) Serial voice ROMs, maximum 4M bits (for fixed messages) 1M bit serial voice ROM (MSM6595), directly addressable 2M bit serial voice ROM (MSM6596), directly addressable 3M bit serial voice ROM (MSM6597), directly addressable • Bit rate 10.0k, 12.6k, 16.0kbps (at 8kHz sampling freq.) 7.5k, 9.5k, 12.0kbps(at 6kHz sampling freq.) • Number of phrases 63 phrases for variable messages 255 phrases for fixed messages • Maximum recording time (when external 32M bit RAM is connected) 13.8 minutes (for 10.0kbps SBC) 18.4 minutes (for 7.5 kbps SBC) 11.0 minutes (for 12.6kbps SBC) 14.6 minutes (for 9.5 kbps SBC) 8.5 minutes (for 16.0kbps SBC) 11.5 minutes (for 12.0 kbps SBC) • Voice activation function • Pause function • Master clock frequency: 6.0MHz - 8.192 MHz • Power supply voltage: 5 V single power supply • Package: 80-pin plastic QFP (QFP80-P-1420-V1K) 856 OKI Semiconductor MSM6788 • PIN LAYOUT (TOP VIEW) 80 LEAD PLASTIC FLAT PACKAGE cc :z :z 8~ CS2 MIN 'CS3 MOUT 'CS4 38 LIN 01/0 LOUT DROM SGC wt SG XT AVDD Xf DVDD 73 RWCK 14 31 AMON MON 75 FIN NAR 76 AOUT RESET FOUT WR ADIN RD CE DGND INDEX MARK NC: No connection (Open) 857 ~ 00 TST TCK NAR VPM RPM BUSY D3 D2 D1 DO WR RD CE CE • OJ ~ 3: ~ 5 0 ~ TMD4 TMDO-TMD3 TDTO-TDT7 Test Circuit Status Register MCU l/F Data 1/0 Dl/O DROM ":;;::c SYNC C> :D TEST l> TEST SADX SADY :s: SAS MCUM TAS C") :0 RESET Address Controller 0 ct> RWCK Timing a re. "'- PDWN ACON EXTD Controller ~ 0 - ~ - ct> WE CS1 CS2 MON CS3 CS4 SBC XT XT osc Analyzer/Synthesizer I' x RSEL1 RSEL2 MIN o •r DVDD ~ 12bit 12bit SG MOUT~~ I LPF ADC DAG Circuit AVDD LIN .~ DGND AGND ~ ~- fr LOUT AMON FIN AOUT FOUT ADIN SG SGC ~ OKI Semiconductor MSM6788 • ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings Item Symbol Conditions Rating Unit Power supply voltage VDD Ta=25°C -0.3-7.0 v Input voltage VIN Ta=25°C -0.3-VDD+0.3 v Storage temperature Tstg - -55-+150 ·c • Operating Range Item Symbol Conditions Rating Unit Power supply voltage VDD DGND=AGND=OV +3.5-+5.5 v Operating temperature Top - 0-+70 ·c Master clock frequency lose - 6.0-8.192 MHz • DC characteristics DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C Item Symbol Conditions Min. Typ. Max. Unit High input voltage V1H - O.BxVDD - - v Low input voltage V1L - - - 0.2xVDD v High output voltage VOH IOH =-40µA VDD-0.3 - - v Low output voltage VOL IOL = 2mA - - 0.45 v High input current (Note 1) llH1 VIH = VDD - - 10 µA High input current (Note 2) llH2 VIH = VDD - - 20 µA Low input current (Note 1) llL1 VIL= GND -10 - - µA Low input current (Note 2) llL2 VIL= GND -20 - - µA Operating current consumption loo lose = 8 MHz, no load - 15 30 mA (1) Operating current consumption IPO At power down. no load - - 10 µA (2) Note 1: Applies to all input pins excluding the XT pin. Note 2: Applies to the XT pin. MSM6788 OK.I Semiconductor e Analog Characteristics DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C Item Symbol Conditions Min. Typ. Max. Unit DA output relative error IVoAEI no load - - 10 mV FIN admissible input voltage range VFIN - 1 - VDD-1 v FIN input impedance RFIN - 1 - - MQ Op-amp open loop gain Gop f1N = 0-4kHz 40 - - dB Op-amp input impedance R1NA - 1 - - MQ Op-amp load resistance RouTA - 200 - - kQ AOUT load resistance RAO UT - 50 - - kQ FOUT load resistance RFQUT - 50 - - kQ 860 OKI Semiconductor MSM6788 • AC Characteristics DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C fosc=8.192MHz fsam=B.OkHz Item Symbo Min. Typ. Max. Unit RESET pulse width tRsT 1 - - µs RESET execution time (Note 1)* tREX - 1 - ms PDWN low level time * tPDL 250 - - µs PDWN high level time * tPDH 250 - - µs Oscillating time after input of PDWN * tpx 125 - 250 µs BUSY time after release of PDWN (Note1)* tBPD 0.25 - 80 ms RD pulse width tRR 200 - - ns Setup and hold time of CE and CE for RD tcR 30 - - ns Time from RD fall to data valid to RE - - 200 ns Time from RDrise to data float to RF - 10 50 ns WR pulse width tww 200 - - ns Setup and hold time of data for WR tcw 30 - - ns Data setup time to WR rise tows 100 - - ns Data hold time from WR rise tDWH 30 - - ns RD and WR disable time tDRW 250 - - ns BUSY time after release of RESET (Note 1)* tsR - - 1 ms BUSY time after input of 1-nibble command * ts1 - - 16 µs BUSY time after input of 2-nibble command * ts2 - - 16 µs BUSY time after input of 3-nibble command * ts3 - - 16 µs BUSY time after input of 2-nibble or 3-nibble command data** tso - - 16 µs WAIT time after input of BLKRD command * twBR 270 - - µs WAIT time after output of BLKRD command block data * twoR 50 - - µs BUSY time after input of ADRWR command * tsAW - - 270 µs BUSY time after input of ADRWR command address data * tsAD - - 50 µs WAIT time after input of ADRRD command * twAR 270 - - µs WAIT time after output of ADRRD command address data * twoR 50 - - µs Address control time at start of record/playback * tAD1 - 1 - ms Items with * are proportional to the period of master oscillator frequency fosc. Note 1: The oscillation start-up stabilization time is added to tREX· tspo and tsR· The oscillation start-up stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators. 861 MSM6788 OKI Semiconductor DVDD=AVDD=4.5-5.5V DGND=AGND=OV Ta=0-70°C fosc=8.192MHz fsam=8.0kHz Item Symbol Min. Typ. Max. Unit Flex record * tsrcM - - 50 ms Time from input of START Flex playback * tsrcM - - 20 ms command to MON rise ROM playback * tsrcM - - 1 ms Flex record * tSPCM 60 - 80 ms Time from input of STOP Flex playback * tsPCM 1 - 15 ms command to MON fall ROM playback * ISPCM 1 - 15 ms Time from input of START command to setting of RPM bit * tsTCR - - 16 µs Time from input of STOP command to end of record/playback * tsPCR - - 15 ms Time from input of STOP command to release of standby * tspcv - - 80 ms for voice Time from input of START command to NAR bit fall during * tsTCN - - 16 µs continuos playback Unvoiced time between phrases during continuous playback* tMID - 13.25 - ms Time from input of PAUSE command to setting of VPM bit * tPSCP - - 16 µs Time from input of START command during pause to * tsrcP - - 500 µs resetting of VPM bit Time from input of STOP command during pause to * tsPcP - - 500 µs resetting of VPM bit WAITtime after input of command * twcRw 770 - - µs WAIT time after input of REC command * twRC 16 - - µs CHRW WAIT time after input of write data * twwo 50 - - µs command WAIT time after input of PLAY command * twPL 50 - - µs WAIT time after input of STOP command * twsP 50 - - µs WAIT time after input of command * twRw 16 - - µs WAIT time after input of address (2nd-5th nibbles) * twA1 16 - - µs DTRW and WAIT time after input of address (6th nibble) * twA2 270 - - µs DTRD WAIT time after input of REC command * twRc 16 - - µs commands WAIT time after input of write data * twwo 50 - - µs WAIT time after input of PLAY command * twPL 50 - - µs WAIT time after input of STOP command * twsP 16 - - µs Items with • are proportional to the period of master oscillator frequency fosc. 862 OKI Semiconductor MSM6788 DVD D=AVDD=4.5V-5. 5V DGND=AGND=OV Ta=0-70°C fosc=8.192MHz fsam=B.OkHz Item Symbo~ Min. Typ. Max. Unit WAIT time for deletion of all phrases after input of DEL 1 command * twBLA 550 - - ms WAIT time for deletion of aspecified phase after input of DEL1 command * twsu 70 - - ms WAIT time for deletion of aspecified phase after input of DEL2 command * twsu 70 - - ms Time to start of DC level transition after input of LEV command * tLV - - 16 µs DC level transition time (GND to 1/2 VDD) * tAOR - 64 - ms DC level transition time (1/2 VDD to GND) * tAOF - 64 - ms Set-up/hold time of EXTD to WR/RD pulse trnw 30 - - ns MON clock cycle * tME - 12 - ms MON high level time * tMH - 6 - ms Time from input of EXT command to RPM bit set * trn - - 16 µs Time from input of EXT command to RPM bit reset* tEsP - - 250 µs Time from EXT command input to MON rise * tEMR 15 - 16 ms during recording EXT Disable time of RD pulse of SBC data during * tEOR - - 4 µs command recording Time from input of EX command to MON rise * tEMP 3 - 4 ms during playback Disable time of WR pulse of SBC data during * trnw - - 4 µs playback BUSY occurence time after SBC data read/write * tsrn - - 4 µs within one frame Time from SBC data read/write end to NAR reset * tENR - - 4 µs within one frame Items with * are proportional to the period of master oscillator frequency fosc. 86'.l MSM6788 OKI Semiconductor • TIMING DIAGRAMS • Reset Function VDD RESET (I) BUSY (0) ~H;-z ~~~~~~~---.Ir--~~~~ r~~~~~~ r~~~~- Undefined Power down Reset operation Standby for in progress record/playback 864 OKI Semiconductor MSM6788 • Power Down by the PDWN pin tpoL tpoH PDWN (I) JPX Note l· XT (I} 1 l XT (0) ~-O_sc_il_lat_io_n_in~p_ro~g_re_s_s_~-------'(:::::__o~s~ci~lla~ti~on~i~n~pr~o~gr~es~s__ tspo BUSY (0) >----t----l Hi-Z f - - - - - - - l RPM (0) >----t----l Hi-Z r-------1 VPM (0) 1-----i----l Hi-Z r-------1 ------~ Power down XPostprocessing X~_st_an_d_bY__ WR and RD pulses are not accepted Note 1: When an external clock is used, apply a low level to the PDWN pin and then continue to apply the external clock to the XT pin for \>x· 865 MSM6788 OKI Semiconductor • Data Read Timing (RD Pulse) CE (I) CE (I) tcR RD (I) tRR to RF D0-03 (1/0) • Data Write Timing (WR Pulse) CE (I) CE (I) WR (I) tww tows towH D0-03 (1/0) 866 e Inputting 1-Nibble Commands (NOP, PAUSE, PLAY, REC, START, STOP, DEL1 and DEL2 Commands) ~ ~ WR (I) toRW~l u !· §- ' : RD (I) ' '' ' ~ Status outP.ut D0-03 (1/0) "-command input te1, tweLA. tweu Status register '' ' ' BUSY bit tsr NOP, PAUSE, PLAY, REC, START, and STOP commands twBLA: DEL 1 command (deletion of all phrases) twBL 1: DEL 1 command (deletion of a specified phrase)and DEL2 command (deletion of tail) :s::: "'~ :s::: ~ 'I 8! 00 s:(/) °' 00 e Inputting 2-Nibble Commands (BRATE, FLGWR, VOS, and LEV Commands) s: ~ g: u - toRW~: WR (I) u,--- : I: LI: RD (I) LJ : i LJ LJ :i LJ u- 00-03 (1/0) i "'-Command input '-oata input ! (1st nibble) (2nd nibble) Status register BUSY bit - ! ts1 I ' ,, ...-1 ' I . ..._ '' I tso ,, The LEV command is used to specify the playback level. For DC level transition by the LEV command, see the timing diagram for DC level transition by the LEV command. ~ ""' ~ ! •Inputting 3-Nibble Commands (CHAN and BLKWR Commands) ~ Ul ; $ ~ 00 'l s:: 0 e Inputting the BLKRD1, BLKRD2 Command "' s:: ~ ~ WR (I) LI twsR twoR twoR ~ Input of WR and RD pulses enabled : I I I I I : I I I~·~~~- RD (I) 0 ' ' '' '' '' ' ' ' DO-D3 (1/0) 0 0! ~ d """ Status output """Command input ~ata output :"'-oata output ; (1st nibble) ! (2nd nibble) ; (3rd nibble) ' ' Status register BUSY bit --- ---------L__J----~ 1. After making sure that the MSM6788 is not in the busy state by checking the BUSY bit of the status register, input the BLKRD command. 2. Then, the data is read according to the 2nd and 3rd nibble command data. However, the status of the BUSY bit connot be verified by inputting the RD pulse. Therefore, input the RD pulse either after the waiting time twsR or twoR or after verifying the BUSY state at BUSY output pin. a ~ ~- @: ~ •Inputting the ADRWR Command ~ ""~ WR (I) u-u- ---u-- LI LJ ~- I I I I §' --u-+u------u-+u-----u-tu-·------LJ i I I I I RD (I) I I I I ~ : : : : D0-03 (1/0) : : :. - ·------~ ADRWR command input: "Address data input: ~ddress data input : ~ddress data input (1st nibble ! (2nd nibble) : (3rd nibble) ! (11th nibble) __ tsAw : tsAo : tsAD : tsAo ~ Input of WR pulse enabled Status register BUSY bit _ ___,i i i LJ L ____ _j i~ 1. After making sure that the MSM6788 is not in the busy state by checking the BUSY bit of the status register, input the ADRWR command. 2. Then, input 2nd-11th nibble address data after making sure that the MSM6788 is not in the BUSY state by one on the following two methods. • Check of the BUSY bit in the status register •Input the next WR pulse after the waiting time tsAw or tsAo. s: s:"' 00 'l ...... !?! ~ 00 s: tj • Inputting the ADRRD Command "' s: ~ ~ WR (I) LI, twAR twoR twoR :-----? Input of WR and RD pulses enabled : u--------u •' I' -1 1· -1 I I I I ' RD (I) LJ LJ :' :' :' ' ' DO-D3 (1/0) "\. i 'Command input Address data \ddress data Status outpu~ (1st nibble) output output (2nd nibble) (11th nibble) Status register Busy bit i ____ _r---i_ 1. After making sure that the MSM6788 is not in the busy state by checking the BUSY bit of the status register, input the ADRRD command. 2. Then, the address data is read according to 2nd through11th nibble command data. The state of the BUSY bit cannot be checked by the RD pulse. Therefore, input the RD pulse either after the waiting time twAR or twoR pr after verifying the BUSY state at the BUSY output pin. ~ ~ ~- §- ~ •Timing for Record/Playback by START Command ~ ~ RESET (I) ,, !:'------ §· WR (I) ' LI --u 8. :' ' ' ~ D0-03 (110) ' ' Q : : "'-START command : "'- (STOP command) · ' : tsTCM (Note) ' ~ tsPCM (Note) .' I ~ I -I I 1_ I _ I : I I : MON (0) ' '' ' J tBR : t91 : i t01 :: H :: :: Status register ~ ~ ___r---t__J-1 I ,-----; : : I I BUSY bit : I 1 I I I I ' ' ' '' '' RPM bit I I : : I NAR bit : : : : l : : : • I : ' :. l : t 1 : ' ---*- tsrcR I O 'E : AD ..: :I( tsPCR ' ): ' ''' ''' ' '' : ' AOUT (0) (playback) I I I f I I I I I Power~ Standby XAddress controlX Record/playback XAddress contro~ Standby x~P_o_w_e_rd_o_w_n_ Note: tsrcM and tsPCM vary depending on the control mode for record/playback and on record or playback mode. 3!:: rn 3!:: 00 ~ ~ Bl ~ ~ • Voice Activation Timing en ~ ~ ~ WR (I) Lf -----f~T___ ~-T ' ' ' ' ' ' DO-D3 (1/0) : '\_START command '\_(STOP command) : "'-(STOP command) ' tspcv i tsPcM (Note) ' ' MON (0) ' ' ' ' ' ' '' '' ' : ts1 ts1 : : ts1 Status register i<--->I ~ I : I i<--->I I I : I ,-----j I 1-----j I I I 1 I I I BUSY bit I ' I ' I 'I : I I RPM bit ' ' -------~:--l: : ,>-------- : I I : VPMbit ' ' ' -------~--1 ' I I I I -------~:__,· : I NAR bit : ' t t +--;.- tsrcR : I I 0 i< AD1 ~: SPCR I I I I I I I I ' ' ' ---St-an_d_b_y_~x~--S-t-an_d_by-fo-r-vo-ic_e_ _XAddress controlX Recording XAddress controK Standby Determined as voice J L If the STOP command is input during standby for voice, this stare is changed to the standby for recording. ~ en / H n !<-->/ n !<-->/ !<-->/ H~'---;---- RPM bit I I I l I I I I I I ----t-s-rc-R--c~--<:. ! --J-+tpscP j( tsrcP > ~tpscP ~ tspcp > : · l • I I I I : I I I I VPM bit ' ' : ------------------ ' ~~---- ' ' ' ' : ' I ' I -----~--~X Record/playback Standby X Pause X Record/playback X Pause ~ ~ ~ ~­ g §- ~ •Timing for Data Transfer by CHRW Command ~ as2 ~- twsP ~~ext command twcRw , , twRc , twwD , : input enabled WR (I) -u. u-u . . ~ 'LI t '~ u-- §- ~ WPL : : : • I I : I I I : : : : I I I I RD (I) : : :: : : : : : : : : I DO-D3 (1/0) ---~6 :6-0 : ~C "-write data ! : b "'PLAY d Read data/' i 61----- "-STOP command , command : command ---~x Command execution X Write access X Read access X~--------- 3: tn 3: 00 ::j ~ ~ (XJ 3:: ;xi •Timing for Data Transfer by DTRW en 3:: en ...... ~ twsP ~Next ~WR~ ~WA1, ~WA1, ~WA1, ~WA1, ' twA2 ' ' twRc ' ' twwo :.-----.1 ~ommand ~~~~~I l~I --U- I WR (I) I I I I I I I I I I I I I I I I ----- • input ....------1 enabled : : twPL : RD (I) I I I ; I I ; I I ; I I I I I 1 I I I I I I I I I I I I I I ' '' '' : I I -u··- --------; '' 1 1 :: :: :: : : :: : : : : :: :: :: : : : : : : DO-D3 (110) ., Write data ' :,_,PLAY Read data DTRW Dummy\ X4-X7 command command "Oh" XO-X3 X8-X11 ---~* Address input X Write access X Read access X~------ ~ g2 ~- §- ~ • Timing for Data Read by DTRD command ~ ~ ~WRVf !WA1, !WA1, !WA1, !WA1, , twA2 .,--------.., twSP ~Input of next ;.--.! command enabled ~- ---------u-- ~ ~ ~ ~ ~ WR (I) I I I I I I I I I I I I I §' : I : : I I : I J I : I : I : I : I twPL : I J I ~ l I I I I I I I I I I RD (I) ! I I I I I I I I I I I I I I I I I .-------~------- I I I I I I I I I I I I :: :: :: :: :: : : : : :: :; : : :: D0-03 (110) ' LAY Read data DTRD command command XO-X3 X8-X11 ' _ _ ___,X~----A-dd-re_s_s-inp_u_t ---....,X Read access X.________ s: 00 ~ I 00 00 31:: 0 • Recording by EXT Command ~ '' '' --- --- -- ------i__ i EXTD (I) ;.----------~ i 1E tERw >E tERW. ),1 1EtERwj )E tERw 1 ) WR (I) u---- I ' I I -; I ' Lf ' '' '' '' RD (I) : ' ; : I_,. LJ J.f-,LJi~-i--- I ' ' '' ' ' : ' D0-03 (110) - - - < I - - - - - ( : EXT command SBC data Stat , STOP us • command ' : ~ tEMR * tMel' ) MON (0) 1: I ' tMH I ' r-------;h~ : : tEsP ->1---!E- Status register >I IE teR je >I : : : I I I I I I I I I I I I I I I I I I ' ' ' RPM bit I I I I ' I I ' I I I I I I I I I I I I I I I I I I I I I I I ' ' VPM bit NAR bit ~~~~-J ' '' LJ LJ-- ' ~ w ~- g. ~ • Read Access in a Frame during EXT Recording a ~ ~- EXTD (I)~-··------------- ~le trnR ~ RD (I) LJ : I u u >I : I : I u : : I I ; :I : : I ·,__'------ I §' ~ I l I I I I I 1 00~03 (1/0) b b b b : Lower SBC : Upper SBC : Lower : :Upper ;5 b bl--'------ : Lower : : Upper ~:~ :~ i 1st byte ! ! 2nd byte! ! ! Nth byte! : ~ 1 ~ I l I ~~ I I ~ I ii -----.-- ' '' '''' '''' ' MON (0) ---.--- '' ' -- '' '' '' '' '' ------:.:'''' :'' ' ':' ' '' :: ' ' ''' '.' '' I I I t' ' ' I I ' ' ' Status register :: :~ '"'" ~-T--- :· : ' : ' BUSY bit -----: .i: I LJ LJ LJ tMH L .i • ' -- - -- .,- VPM bit NAR bit s: (/) s: 00 00 ~ ...... ~ r:¥J 3: R5 • Playback by EXT Command (/) ~ ~ ' ' ' ' EXTD (I) 'r------------' 1(trnwj )( tERW) I ' WR (I) '~ ~ ; Note) (Frame byte number+ 1) x 2 Frame byte number x 2 ' RD (I) ' ' ' ' :' ' ·- - ~ DO-D3 (1/0) r-{)0---fr------{}-fr-Q-{)-- : EXT command SBC data SBC data SBC data : STOP command ' : tEMR tME MON (0) : j : tMH : r-J : i tESP4 11---- Status register *-ttrn ; ; j · ; I I I I I I I I I I I I I I RPM bit I I I I I I I I I I I I I I I I I I I I I I I VPM bit NAR bit '' '' ' '' ' ' ' ''' a ~ Note) During playback, the 1st frame writes (byte number in a frame+ 1 byte), and the following frames writes the byte number of each frame. i •Write Access in a Frame during EXT Recording ~ (/) I g §' k 64 bit >I< >I< >I ~ 704 bit 2s6 bit I Ad~!::s I User data I Block table I I 64 bit I< s bit >I< 16 bit >I< s bit >I< s bit >I< 24 bit >I Number of PRED Stop frame Stop block Others blocks block Lower Upper Number of blocks (BLO - BL7) Isi.o ! Bt.1 ! sl.21 sl3l8L4TBL5TBL6T BL? I I I I I I I l Stop frame (SFO - SF15) ISFO j SF1 j SF2 ! SF3 j SF4 ! SFS j SF6 ! SF? I SF8 ! SF9 !SF10 !SF11 !SF12 !SF13 j SF14 j SF@ Stop block (SPO - SP7) [SPOJSP1T SP2 i SP3 i SP4 i SP5 i SP6lSP7J PRED block (PRO - PR?) [ PRoTf'Ri : ·P-R2T PR31 PR4 l-PR51 PR6 i PR7 j I J I l I I I s:: "'s:: 00 \0 ~ 'l ~ MSM6788 OKI Semiconductor • Command Description The MSM6788 is controlled by 22 types of commands via 00-03 pins constituting the data bus and WR, RD, CE, and CE control pins. The state of the MSM6788 can be know by obtaining the contents of the internal status register via the data bus or the output pins. There are four command modes available: mode 0, mode 1, mode 2, and mode 3.. Some commands need to setthe command mode before inputting them. The command mode can be selected by setting MODO bit and MOD1 bit of the BRATE command. 898 OKI Semiconductor MSM6788 Code Command Command function D D D D 3 2 1 0 NOP 0 0 0 0 (NON OPERATION). Has no function. PAUSE 0 0 0 1 (PAUSE). Suspends record/playback temporarily. PLAY 0 0 1 0 (PLAYBACK). Sets playback mode. REC 0 0 1 1 (RECORD). Sets recording mode. START 0 1 0 0 (START). Starts record/playback. STOP 0 1 0 1 (STOP). Stops record/playback. Stops execution of CHRW, DTRW, DTRD, and EXT commands. BRATE 0 1 1 0 (BIT RATE). Specify the command mode and bit rate in conjunction with 1 nibble following this command. CHAN 0 1 1 1 (CHANNEL). Specifies a phrade, in conjunction with 2 nibbles following this command. BLKWR 1 0 0 0 (BLOCK WRITE). Input the following block data into the internal block re~ister, in conjunction with the nibble following this command: Before record: Specify the number of phrase recording blocks (recording time). Before a specified block pla~back: Specify the lock at the head of playback start block as OOh. Before DEL2 command input: Specify the location to erase the phrase tail. BLKRD1 1 0 0 1 (BLOCK READ1 ). Reads the number of blocks (recording time) for the phrase stored in the channel mdex area, in conjunction with 2 nibbles following this command. During execution of this command, the contents of the status register cannot be read. BLKRD2 1 0 0 1 (BLOCK READ2). Reads the number of blocks accessed before during record/playback in conjunction with the lead access of 2 nibbles following this command, in order to know the record/playpack time progress. During record/playback standby, reads the number of blocks accessed in the last record/playback. During this period, the contents of status register cannot be read. ADRWR 1 0 0 0 (ADDRESS WRITE). Stores the start address and the stop address to the channel index area, in conjunction with 10 nibbles following this command. ADRRD 1 0 0 1 (ADDRESS READ). Reads out the start address and the stop address stored in the channel index area, in conjunction with 10 nibbles following this command. During execution of this command, the contents of the status register cannot be read. 899 MSM6788 OK.I Semiconductor Code Command Command function D D D D 3 2 1 0 CHRW 1 0 1 0 (CHANNEL READ WRITE). Reads out the user data stored in the channel index area or writes the user data to the channel index area by the read/write access operation following this command. DTRW 1 0 1 0 (DATA READ WRITE). Transfers data to or from the external RAM through the data bus, by the address designation in 5 nibbles following this command and the read/write access operation. DTRD 1 0 1 0 (DATA READ). Reads the data in the external serial voice ROMs through the data bus, by the address desi~nation in 5 nibbles following this command and the read/write access operation. EXT 1 0 1 1 (EXTERNAL). Pertorms record/playback by inputting/outputting SBC data through the data bus, in conjunction with the read/write access operation. This command will be used when an SRAM or a hard disk is used for storing voice data. Does not control external RAM and addresses. FLGWR 1 1 0 0 (FLAG WRITE). Sets and resets the RDFLG and PLFLG. By RESET input, this commnad is reset to 0. RDFLG: O: BLKRD 1 commnad 1: BLKRD 2 command PLFLG: O: Usually playback. Playback from the first record. 1: Specified block playback VOS 1 1 0 0 (VOICE DETECT SELECT). Select voice activated start function, in conjunction with 1 nibble following this command. DEL1 1 1 0 1 (DELETE1 ). Deletes the phrase specified by the CHAN command. When chOO is specified by the CHAN command, all phrases are deleted by this command. DEL2 1 1 0 1 (DELETE2). Deletes the tail of the command specified by the CHAN command. Deletes the contents recorded after specified by the BLKWR command. LEV 1 1 .1 0 (LEVE~. Specifies the playback output level and the transition of analog output ~AO T pin) to the DC level, in con1unction of 1 nibble following this command. his level is initialized by the RESET input. NOP 1 1 1 1 (NON OPERATION). Has no function. 900 OKI Semiconductor MSM6788 1. Command List MOD1 0 0 1 1 Note MODO 0 1 0 1 Code ModeO Mode 1 Mode 2 Mode 3 D D D D 3 2 1 0 HEX 0 0 0 0 Oh NOP NOP NOP NOP 0 0 0 1 1h PAUSE PAUSE Disabled Disabled 0 0 1 0 2h PLAY PLAY PLAY PLAY 0 0 1 1 3h REC REC REC REC 0 1 0 0 4h START START Disabled Disabled (Record/playback) (ROM playback) 0 1 0 1 5h STOP STOP STOP STOP 0 1 1 0 6h BRATE BRATE BRATE BRATE 0 1 1 1 7h CHAN CHAN CHAN CHAN 1 0 0 0 Sh BLKWR BLKWR ADRWR ADRWR 1 0 0 1 9h BLKRD1 BLKRD1 ADRRD ADRRD RDFLG=O BLKRD2 BLKRD2 ADRRD ADRRD RDFLG=1 1 0 1 0 Ah CHRW CHRW DTRW DTRD 1 0 1 1 Bh EXT EXT EXT EXT 1 1 0 0 Ch FLGWR FLGWR VOS VOS 1 1 0 1 Oh DEL1 DEL1 DEL2 DEL2 1 1 1 0 Eh LEV LEV LEV LEV 1 1 1 1 Fh NOP NOP NOP NOP 901 MSM6788 OKI Semiconductor 2. Command data format Code lcomman~ HEX 03 02 01 DO Note NOP Oh 0 0 0 0 1-nibble command PAUSE 1h 0 0 0 1 1-nibble command PLAY 2h 0 0 1 0 1-nibble command REC 3h 0 0 1 1 1-nibble command START 4h 0 1 0 0 1-nibble command STOP 5h 0 1 0 1 1-nibble command SAMP 6h 1st nibble 0 1 1 0 2-nibble command 2nd nibble MOD1 MODO BR1 BRO Command mode, bit rate MOD1 MODO Command mode BR1 BRO Bit rate 0 0 Mode O 0 0 16.0 kbps 0 1 Mode 1 0 1 12.6 kbps 1 0 Mode 2 1 0 10.0 kbps 1 1 Mode 3 1 1 Disabled Values in parentheses are for fosc = 8.192 MHz. CHAN 7h 1st nibble 0 1 1 1 3-nibble command 2nd nibble CA3 CA2. CA1 CAO Phrase No. 3rd nibble CA7 CA6 CA5 CA4 CA? CA6 CA5 CA4 CA3 CA2 CA1 CAO Phrase No. 0 0 0 0 0 0 0 0 chOO 0 0 0 0 0 0 0 1 ch01 0 0 0 0 0 0 1 0 ch02 0 0 0 0 0 0 1 1 ch03 I I I I I I I I I I I I I I I I I I I I I I I I I I I l l l l l l l l l 1 1 1 1 1 1 1 0 ch FE 1 1 1 1 1 1 1 1 ch FF 902 OKI Semiconductor MSM6788 Code Pomman~ HEX 03 02 01 DO Note BLKWR 8h 1st nibble 1 0 0 0 3-nibble command 2nd nibble BL3 BL2 BL 1 BLO Block data 3rd nibble BL? BL6 BLS BL4 BLKRD 9h 1st nibble 1 0 0 1 3-nibble command 2nd nibble BL3 BL2 BL1 BLO Block data 3rd nibble BL? BL6 BLS BL4 ADRWR 8h 1st nibble 1 0 0 0 11-nibble command 2nd nibble BL3 BL2 BL1 BLO Number of blocks 3rd nibble BL? BL6 BL5 BL4 4th nibble SF3 SF2 SF1 SFO Stop frame 5th nibble SF? SF6 SF5 SF4 6th nibble SF11 SF10 SF9 SF8 7th nibble SF15 SF14 SF13 SF12 8th nibble SP3 SP2 SP1 SPO Stop block 9th nibble SP? SP6 SP5 SP4 10th nibble PR3 PR2 PR1 PRO PRED block 11th nibble PR? PR6 PRS PR4 ADRRD 9h 1st nibble 1 0 0 1 11-nibble command 2nd nibble BL3 BL2 BL1 BLO Number of blocks 3rd nibble BL? BL6 BL5 BL4 4th nibble SF3 SF2 SF1 SFO Stop frame 5th nibble SF? SF6 SFS SF4 6th nibble SF11 SF10 SF9 SF8 7th nibble SF15 SF14 SF13 SF12 8th nibble SP3 SP2 SP1 SPO Stop block 9th nibble SP? SP6 SP5 SP4 1Oth nibble PR3 PR2 PR1 PRO 11th nibble PR? PR6 PRS PR4 903 MSM6788 OK.I Semiconductor Jcommand Code HEX 03 02 01 DO Note CHRW Ah 1 0 1 0 1-nibble command +read/write access +STOP command DTRW Ah 1st nibble 1 0 1 0 6-nibble command +read/write access +STOP command 2nd nibble 0 0 0 0 Dummy nibble 3rd nibble X3 X2 X1 XO X address 4th nibble X7 X6 X5 X4 5th nibble X11 X10 X9 XS 6th nibble X15 X14 X13 X12 DTRD Ah 1st nibble 1 0 1 0 6-nibble command + read access + STOP command 2nd nibble Y3 Y2 Y1 YO Y address 3rd nibble X3 X2 X1 XO X address 4th nibble X7 X6 X5 X4 5th nibble X11 X10 X9 XS 6th nibble 0 0 0 0 Dummy nibble EXT Bh 1 0 1 1 1-nibble command +read/write access +STOP command FLGWR Ch 1st nibble 1 1 0 0 2-nibble command 2nd nibble 0 0 PLFLG RDFLG Flag data PLFLG Playback mode RDFLG Command selection 0 Usual playback 0 BLKRD1 1 Playback with block specified 1 BLKRD2 904 OKI Semiconductor MSM6788 Code ~mmand HEX 03 02 01 DO Note VOS Ch 1st nibble 1 1 0 0 2-nibble command 2nd nibble VD3 VD2 VD1 VDO Voice activation condition VD3 VD2 VD1 VDO Voice activation condition 0 0 0 0 Voice activation disabled 0 0 0 1 Voice detection level 1 0 0 1 0 Voice detection level 2 1 1 1 1 Voice detection level 15 DEL1 Oh 1 1 0 1 1-nibble command chOO: Deletion of all phrases ch01 ~ ch3F: Deletion of a specified phrase DEL2 Oh 1 1 0 1 1-nibble command LEV Eh 1st nibble 1 1 1 0 2-nibble command 2nd nibble LV1 LVO PN1 PNO Playback level, transition to DC level LV1 LVO Playback level PN1 PNO Transition to DC level 0 0 OdB 0 0 Disabled 0 1 OdB 0 1 Disabled 1 -6dB 1 0 Transition from GND 0 to 1/2 VDD. 1 1 -12dB 1 1 Transition from 1/2 VDD to GND. NOP Fh 1 1 1 1 1-nibble command 905 MSM6788 OKI Semiconductor 3. Relationship between record/playback control modes and commands ~ EX command Record/display ROM playback record/playback NOP - - - PAUSE 0 0 - PLAY @ - @ REC @ - @ START @ @ - STOP 0 0 @ BRATE @ @ @ ------------- ------------- ------------- ------------- Command mode @ @ - Bit rate @ - @ CHAN @ @ - BLKWR @ - - BLKRD1 0 - - BLKRD2 0 - - ADRWR 0 - - ADRRD 0 - - CHRW Data transfer command DTRW Data transfer command DTRD Data transfer command EXT - - @ FLGWR 0 - - VOS 0 - - DEL1 @ --------------! Deletion of all phrases @ Deletion of a specified phase 0 - - DEL2 0 - - LEV 0 0 0 Note: @ : Required command O : Useful command - : Unnecessary command 906 OKI Semiconductor MSM6788 • Status Register The status register used in the MSM6788 is a 4-bit status register. When a low level is applied to the RD pin, the contents of the status register are output to D0-03 pins to indicate the internal state of the MSM6788. The contents of the status register are also output to the BUSY, RPM, VPM, and NAR pins. 03 02 01 DO NAR VPM RPM BUSY (1) BUSY bit The BUSY bit set to a high level indicates that the MSM6788 is executing RESET operation or command processing operation. When BUSY bit is high, do not input any command from the microcontroller. While any of data read commands is being executed, the state of the BUSY bit cannot be verified by inputting the RD pulse. In this case, input a read command either after waiting a time longer than the duration of BUSY state or after verifying the end of the busy state by the BUSY pin. While the RESET operation is being executed, the BUSY bit is set to a high level, and it returns to a low level after the end of the RESET operation. After a high level pulse is applied to the RESET pin to perform the RESET operation, the BUSY bit is set to a high level during execution of the RESET operation. It goes to a low level after the end of the RESET operation. (2) RPM bit The RPM bit goes to a high level during record/playback operation. While the RPM bit is high, do not input any command except those indicated below. Otherwise, the state of the MSM6788 becomes undefined. NOP, PAUSE, STOP, BLKRD2 commands, START command for release of temporary stop and playback of next phrase, CHAN command for specifying the next phrase during playback, and LEV command for designation of playback output level After a high level pulses is applied to the RESET pin to perform the RESET operation, the RPM bit goes to a low level that is the initial state. 907 MSM6788 OKI Semiconductor (3) VPM bit The VPM bit goes to a high level during standby for voice after start of the voice activated recording and during the time that record/playback is temporarily stopped by the PAUSE command. When the VPM bit is high, do not apply any command except the START command for release of temporary stop. Otherwise, the state of the MSM6788 becomes undefined. After a high level pulse is applied to the RESET pin to perform the reset operation, the VPM bit goes to a low level that is the initial state. (4) NAR bit The NAR bit indicate the enabled or disabled state for phrase designation. When this bit is high, the phrase designation by the CHAN command is enabled. If it is desired to play back different phrases continuously during ROM playback, specify the next phrase and input the START command after verifying that the NAR bit becomes high. After a high level pulse is applied to the RESET pin to perform the reset operation, the NAR bit goes to a high level that is the initial state. 908 OKI Semiconductor MSM6788 BUSY state BUSY bit BUSY causing conditions Symbol verification Note duration Release of reset operation tREX (Note 2) 1 ms Possible Input of RESET pulse Input of 1-nibble command ts1 16 µs Possible NOP, PAUSE, PLAY, REC, START, STOP Input of 2-nibble command ts2 16 µs Possible BRATE, FLGWR, VDS, LEV Input of 3-nibble command t93 16 µs Possible CHAN, BLKWR Input of 2-nibble or 3-nibble command data tao 16µs Possible BRATE, FLGWR, VDS, LEV CHAN BLKWR BLKRD command Input of command twaR 270 µs Impossible Output of block data twoR 50µs Impossible ADRWR command Input of command laAW 270µs Possible Input of address data taAD 50 µs Possible ADRRD command Input of command twAR 270µs Impossible Output of address data twoR 50µs Impossible CHRW command Input of command twcRw 770 µs Possible Possible Input of REC command twRc 16 µs (Note 1) Possible Input of write data twwo 50µs (Note 1) Input of PLAY command twPL 50µs Impossible Possible Input of STOP command twsP 50 µs (Note 1) DTRW and DTRD commands Input of command twRW 16 µs Possible Input of address (2nd - 5th nibbles) twA1 16 µs Possible Input of address (6th nibble) twA2 270 µs Possible Possible Input of REC command twRc 16 µs (Note 1) Possible Input of write data twwo 50 µs (Note 1) Input of PLAY command twPL 50 µs Impossible Possible Input of STOP command twsp 50 µs (Note 1) Input of DEL 1 command (all phrases) twaLA 550ms Possible Input of DEL1 command (a specified phrase) twau ?Oms Possible Input of DEL2 command (tail erased) twBL1 ?Oms Possible Note 1: The BUSY state can be verified by the BUSY bit when only the data write access operation is executed after the CHRW or DTRW command is input. Note 2: The BUSY state duration after release of RESET operation includes the oscillation start-up stabilization time. This oscillation start-up stabilization time is several tens of milliseconds for crystal oscillators and is several hundreds of microseconds for ceramic oscillators. 909 MSM6788 OKI Semiconductor • Inputting the Command To input a command or data, apply the command or data to DO-D3 pins and then apply a low level pulse (WR pulse) to the WR pin. By inputting a low level pulse (RD pulse) to the RD pin, the contents of the status register or data will be o~ut via DO-D3 pins. _ _ The CE pin is used to enable or disable the WR pulse and RD pulse. When a low-level is applied to this CE pin, the enable state is present, so that WR and RD pulses can be accepted. When a high level is applied to this CE pin, the disable state is present, so that WR and RD pulses cannot be accepted and, at the same time, DO-D3 pins are placed in the high-impedance state. The CE pin also has the same function as the CE pin. However, when high, this CE pin gives the enable state for the WR and RD pulses, and when low, it gives the disable state. When DO-D3 pins are used exclusively for the MSM6788, CE and CE pins can be fixed to a low level and a high level, respectively. An equivalent circuit of the microcontroller interface section of the MSM6788 is shown below. Status register 4 4 NAR VPM RPM BUSY 4 DO - D3 u RD pulse RD WR 1..§ WR pulse CE CE PDWN RESET 910 OKI Seiniconductor MSM6788 The steps for inputting the commands are described below. (1) Output the contents of the status register by applying the RD pulse (namely, bY!Pplying a low level pulsetotheRDpin). Verifythatthe BUSYbitisO. If the BUSY bit is 1, inputthe RD pulse repeatedly until the BUSY bit goes to 0. The BUSY state can also be verified through the BUSY pin. (2) Set a command to DO-D3 pin and input the WR pulse. (3) In case of a 2-nibble or 3-nibble command, verify that the BUSY bit of the status register is O in the same way_ as in (1 ). Then, set the command data to DO-D3 pins and input the WR pulse. In this case, the WR pulse can also be input after the waiting time that is longer than the BUSY state duration, instead of verifying the BUSY bit of the status register. CE (I) CE (I) WR (I) RD (I) DO- D3 (1/0) '\ l 1\ ~ l Status output ~ommand input Status output BUSY (0) Busy state duration: I ~ Next command data can be input 911 MSM6788 OKI Semiconductor 1. Inputting a 2-nibble command Status output Verification of BUSY bit Input of the 1st nibble command Status output Verification of BUSY bit (or waiting for BUSY state duration) Input of the 2nd nibble data 912 OKI Semiconductor MSM6788 • Changes of Record/Playback Conditions Record/playback condltton POWER ON RESET Input PDWN Input Command input REC command Record/playback mode Undefined Unchanged Unchanged ~ Record mode (Note 1) PLAY command ~ Pl~back mode Command mode Undefined Unchanged Unchanged Set by BRATE command J_Note ti. Unchanged Bit rate Undefined Unchanged Set by BRATE command _!Note 1i Unchanged Unchanged Phrase No. Undefined Set by CHAN command 1Note 1f Unchanged Block data Undefined Unchanged Set by BLKWR command 1Note 1i PLFLG, RDFLG Undefined Reset to O Unchanged Set by FLGWR command Voice activation Voice activation Undefined disabled Unchanged Set by VOS command Playback level Undefined OdB Unchanged Set by LEV command Data in RAM Undefined Unchanged Unchanged - J.Note 1i Note 1: RESET is performed without synchronization with the clock. When the RESET pulse is input during standby for command, record/playback condition will not be changed. When the RESET pulse is input during execution of a command, all record/playback conditions may be changed and the data may become undefined. 913 MSM6788 OKI Semiconductor • Setting and Confirming the Record/Playback Conditions 1. Specifying the control mode for record/playback (by BRATE command) Specify the control mode for record/playback by setting the BRATE command data and the command mode (using MOD1 and MODO bits). Command MOD1 MODO Control mode for record/playback mode 0 0 Mode 0 Record/playback 0 1 Mode 1 ROM playback by input of address code 2. Specifying the bit rate (by the BRATE command) Specify the bit rate by setting BRO and BR1 bit data of the BRATE command. The bit rate varies depending on the master clock frequency (f08c). BR1 BRO Bit rate 0 0 16.0 kbps 0 1 12.6 kbps 1 0 10.0 kbps 1 1 Disabled fosc=8.192MHz 914 OKI Semiconductor MSM6788 3. Specifying the voice activated recording{by the VOS command) This MSM6788 has the voice activated recording function to start recording when the level of voice input exceeds a preset amplitude. Using the voice activated function, the unvoiced part prior to voice detection will not be recorded, so that the memory capacity can be utilized efficiently. The unvoiced parts in the middle of recording are not eliminated. In the voice activated recording mode. recording is started when a voice input exceeds the preset thresholds. Therefore. a consonant part with a low level may not be recorded. 4. Specifying a phrase {by the CHAN command) Specify a phrase by CAO-CA7 bit data of the CHAN command according to the following table. Phrase CA7 CA6 CA5 CA4 CA3 CA2 CA1 CAO No. Record/playback ROM playback 0 0 0 0 0 0 0 0 chOO (Note 1) Disabled 0 0 0 0 0 0 0 1 ch01 0 0 0 0 0 0 1 0 ch02 I I I I I I I I I I I I I I I I I I Enabled Enabled I I I I I I I I I I I I l I I I I (63 phrases) (255 phrases) 0 0 1 1 1 1 1 0 ch3E 0 0 1 1 1 1 1 1 ch3F 0 1 0 0 0 0 0 0 ch40 0 1 0 0 0 0 0 1 ch41 I I I I I I I I I I I I I I I I I I I I I I I I I I I I l I I I I I I Disabled 1 1 1 1 1 1 1 0 ch FE 1 1 1 1 1 1 1 1 ch FF Note 1: In the record/playback mode, chOO cannot be used for recording/playback. This is a special phrase only used for deletion of all phrases and control of unused blocks. 915 MSM6788 OKI Semiconductor 5. Specifying the number of phrase recording blocks (by the BLKWR command) The block data is set for the following operations: Before recording: Specify the number of phrase recording blocks (recording time). Before specified block playback: Specify the block at the head of playback start block as OOh. Before DEL 2 command input: Specify the location to delete the tail of phrase. In the record/playback mode, the total memory capacity of RAM connected externally is divided equally into 256 blocks. Therefore, the memory capacity of one block varies depending on the number of RAM connected externally. For example, when 8Mbit RAM is connected and recording is performed by 16kbps, the memory capacity of one block and the recording time of one block are obtained as follows. Memory capacity of one block = 8Mbits = 32Kbits 256 Recording time/block = Memory capacity of one block bit rate 32 x 1024 bits 1600 = 2 second If it is desired to make recording for 40 seconds on a phrase in this example, 20 (14h) phrase recording blocks are required. The number of phrase recording blocks can be specified by the BLKWR command and is stored in the corresponding register in the MSM6788. The BLKWR command is enabled for command mode O or 1. Therefore, before inputting this BLKWR command, it is required to set the corresponding command mode using the BRATE command. Number of phase BL7 BL6 BL5 BL4 BL3 BL.2 BL1 BLO recording blocks (HEX} 0 0 0 0 0 0 0 0 0 (OOh) 0 0 0 0 0 0 0 1 1 (01h) 0 0 0 0 0 0 1 0 2 (02h) 0 0 0 0 0 0 1 1 3 (03h) I I I I I I I I I I I I I ' I I I I I I I I I I I I I l l I l I I 1 1 1 1 1 1 1 0 254 (FEh) 1 1 1 1 1 1 1 1 255 (FFh) 916 OKI Semiconductor MSM6788 6. Reading the number of phrase recording blocks (by the BLKRD1 command) The number of blocks for each phrase stored in the channel index area can be read by the read access operation using the BLKRD1 command and two nibbles following this BLKRD1 command. In the record/playback mode, the number of blocks (namely, the recording time) of the specified phrase can be obtained. In the BLKRD command, the number of blocks is specified by a binary number consisting of BLO-BL7 in the same way as in the BLKWR command. Before inputting the BLKRD1 command, the command mode must be set to either mode Oor mode 1 by using the BRATE command. And RDFLG is cleared to zero by using the FLGWR command. (1) When chOO phrase is specified: The number of unused blocks (or available blocks) is stored in address chOO of the channel index area. Therefore, the unused and available memory capacity (or available recording time) can be obtained. (2) When oneofch01-ch3F is specified asa phrase: The number of blocks (or recording time) used by the specified phrase can be obtained. 7. Reading the number of blocks during record/playback (by the BLKRD2 com- mand) The number of blocks given access before during the record/playback operation can be read by the read access operation using the BLKRD2 command and two nibbles following this BLKRD2 command, and the record/playback duration can be obtained. While waiting for the record/playback operation, the number of blocks given access when the last record/playback operation is carried out. The number of blocks can also be counted from 01 when the recorded phrase is played back halfway by the specified block playback command. Data set by the BLKRD2 command is invalid during the ROM playback operation. Standby X~----R~ec_o_rd/~pl~ay~ba_c_k-----I ~ 11;) CIO (.) 1 Kbits in the Y direction k ~ 1FFFh 2000h 3FFFh 4000h 5FFFh 6000h 7FFFh 938 OKI Semiconductor MSM6788 3. Method of reading data from external serial voice ROMs (by the DTRD command) Data from external serial voice ROMs can be read using the DTRD command. After inputting the DTRD command, specify the address to be read. Data is read in groups of 4 bits from the specified. With the input of a single DTRD command, continuous read/write operation can be made in the range of addresses assigned to the same serial voice ROM. When the read/write operation is extended to two or more serial voice ROMs, it is necessary to stop temporarily the read/write operation each time the operation is finished for the serial voice ROM, and set the address for another serial voice ROM using the DTRD command. The following shows the procedure for inputting the DTRD command. (1) Set the command mode to mode 3 (MODO =1, MOD1 =1). (2) Input the DTRD command. (3) Specify the X address and Y address of the serial voice ROM by inputting the WR pulse five times. Then, wait for the BUSY state duration. The 6th nibble is a dummy nibble. Always input Oh data into this 6th nibble. (4) Input the PLAY command and wait for the BUSY state duration. Then, input the RD pulse, so that 4-bit data will be output via the data bus. (5) To continue data read operation, perform the data read operation inputting the PLAY command and RD pulse in the same way as mentioned above. (6) To finish the data read operation input the STOP command. After waiting for the BUSY state duration, the next command can be input. 939 MSM6788 OKI Semiconductor Flow chart of data read using the DTRD command BRATE command Specify the command mode to mode 3 (MODO =1, MOD1 =1). DTRD command Input Y address (YO, Y1, Y2, Y3) (2nd nibbles) Input power bits of (XO, X1, X2, X3) Xaddress (3rd nibbles) Input middle 4 bits of (X4, X5, X6, X7) Xaddress (4th nibble) Input upper 4 bits of (XS, X9, X10, X11) Xaddress (5th nibble) Input dummy nibble (0, 0, 0, 0) (6th nibble) Walt for BUSY state duration PLAY command Walt for BUSY state duration Input RD pulse Data read Walt for BUSY state duration STOP command Walt for BUSY state duration 940 OKI Semiconductor MSM6788 Address Space of Serial Voice ROMs {by the DTRD command) X address (4 K words from OOOh to FFFh, 1 word= 1 Kbits) f I< OOOh 1 Kbits >I ~ 0 a: Q) (,) ·~ ca u lu; ·;::: Q) 1 Kbits in the Y direction ~"' I< >I 3FFh ~1 I 1 word = 1 Kbits I I Yaddress I ~ I I 400h I I ::2: k Oh >I< 1h >I< >I< Fh >I 0 a: Q) (,) I 64bits I 64bits I I 64bits I ·c;I"" > ca u (J) ·;::: Q) "' ::2: 7FFh 800h ::2: 0 a: Q) "olM (,) > (J) ca u ·;::: Q) "' ::2: BFFh CO Oh ::2: 0 a: Q) (,) ·c;1-.i- > (J) ca u ·;::: Q) "' ::2: FFFh 941 MSM6788 OK.I Semiconductor • Methods of Record/Playback Using the EXT Command When using notthe RAM but an SAAM or hard desk to store the voice data, record/playback operation is made by the EXT command. In the record/playback operation by the EXT command, the voice data (SBC data) is inpuVoutput through the direct bus on the frame basis. In this case, since address control and external RAM control are not made, the microcontroller controls the recording time and address. Stopping temporarily record/playback, voice start, and specifying the phrase can not be established. The enable commands are PLAY, REC, STOP, BRATE (BRO, BR1 data), LEV, and EXT. 1. Status register at the EXT command and pin functions The contents of status registers at the EXT command are as follows. (1) BUSY bit: Goes high during transferring SBC. Input the following WR or RD pulses when changed to low level. Without confirming the BUSY bit, following WR and RD pulses can be input after the BUSY state duration. (2) RPM bit: Goes high during record/playback operation by the EXT command. (3) VPM bit: After the EXT command is input, the clock at the same frame cycle as the one at the MON pin. This bit transfers one frame of SBC data between high levels. (4) NAR bit: When the SBC within one frame is transferred, set to low level, and when VPM bitand MON pin go low, set to high level. The functions of MON and EXTD pins are as follows. (5) MON pin: After the EXT command is input, the clock is output atthe frame cycle. While the MON pin is set high, one frame of SBC data is transferred. The VPM bit of status register also outputs the same clock. (6) EXTD pin: When the SBC data is input, set the EXTD pin high . In case of the command input and status output, set it low. 2. Methods of EXT recording (1) Specify the bit rate using BRATE command data bit BRO and BR1. (2) Set to the record mode by inputting the REC command. (3) Start the record, inputting the EXT command. Then the clock pulse at the frame cycle is output at the MON pin. (4) Input the RD pulse while the MON pin goes high, store one frame of SBC data output from the data bus. Setthe EXTD pin to high level when inputting the SBC data. As for the method of reading the one frame of SBC data, refer to "4. Method of reading/writing the SBC data." (5) When inputting the STOP command, the recording operation is finished. Since recording continues until the STOP command is input, recording at any duration can be established. 942 OKI Semiconductor MSM6788 Flow chart of recording by the EXT command BRATE command Specify the bit rate (BRO, BR 1) REC command Set the record mode EXT command Record start EXTD="H" Use the data bus to input/output the SBC data No Confirm the MON rise Lower 4 bits of SBC data Input the RD pulse Upper 4 bits of SBC data Ext. memory f- SBC data Confirm the MON fall EXTD="L" STOP command End of recording by EXT command 943 MSM6788 OKI Semiconductor 3. Method of playback using the EXT command (1) Specify the bit rate when recorded, using the BRATE command data bit BRO and BR1. (2) Set to the playback mode by inputting the PLAY command. (3) Start the playback operation by inputting the EXT command. The clock pulse at the frame cycle is output at the MON pin. (4) Input the WR pulse while the MON pin goes high, and input one frame of SBC data from the data bus. When inputting the SBC data, setthe EXTD pin high. As for the method of writing data within one frame, refer to "4. Methods of reading/writing the SBC data." (5) When inputting STOP command, the playback operation is finished. 944' OKI Semiconductor MSM6788 Flow chart of playback by the EXT command BRATE command Specify the bit rate (BRO, BR1) PLAY command Set to the playback mode EXT command Playback start EXTD="H" Use the data bus to input/output the SBC data No Confirm the MON rise 11 frame write access- ! SBC Ext. data t- memo I Input the WR pulse Lower 4 bits of SBC data Input the WR pulse Upper 4 bits of SBC data The number of bits varies by the 1st frame and the 2nd and succeeding frame. Confirm the MON fall EXTD="L" STOP command End of playback by EXT command 945 MSM6788 OKI Semiconductor 4. Method of reading and writing the SBC data Input/output one frame of SBC data while the MON pin and VPM bit goes high. 1 byte of SBC data is divided into two portion, and input the lower 4 bits and then upper 4 bits. Set the EXTD pin low when the inputting and outputting the SBC data. In the recording operation, number of bytes at one frame over all frames are read. In the playback operation, at the 1st frame, number of bytes at one frame + 1 byte are written and at the 2nd and succeeding frames, number of bytes at one frame is written. ~ 1st frame 2nd frame Bit rate bytes RD, WR pulses bytes RD, WR pulses 16.0 kbps 24 48 24 48 Recording 12.6 kbps 19 38 19 38 10.0 kbps 15 30 15 30 16.0 kbps 25(Note 50(Note) 24 48 Playback 12.6 kbps 20(Note 40(Note) 19 30 10.0 kbps 16(Note 32(Note) 15 30 In the playback operation, atthe 1stframe, the data at 1stframe and the data atthe 1 byte of 2nd frame are written. At the 2nd and succeeding frame, the data at the 2nd byte of its own frame and the dummy data at the following frame are written. At the final frame, the data at the final frame and 1 byte of dummy data are written. 946 -I Q :::r (1) ~ 3 loll ga. en :::r ~ ~o ..... , 03 m vcc vcc -· ::l g ~q~ =- ~ 01 SAOX _ SADX ~ Ill g 9: I 00 SAS _ XWE ~ O ~ J!:l m 'RD SADY TAS XDIN [g :D ~ ii3 Q '!{B RWCK ~ ~~3 "11 CE TAS WE ::;: -· Ill _. RESET 'PDWN RWCK ~ DOUT $- £3 ~0 J> :::i, ~ WE ll>o:E ~ Dl/O £ @- ~ C MCUM Giii ::l 0 RSEL1 DROM .- g_ -gJ :'J>! RSEL2 «> :if: 7 "2. ~ CE ~ ~ ESTVSS (/) <: 5· Q- TEST ~ (/) ~ - -· e z ::;: 1)l -..! :if: 0 ACON CSf CS1 ::;: CO O" ::i 0 ~ ~ - - ~~~ m ~ ~ ~ ll>oa - TCK ~~ gj u CS3 CS3 ::ic.. :D !:. >- OlJ ~ CS4 ~ ~:if:~ C ~ ~ owll> - RPM ~ ~ 0 M1 ~c ~ ~- ..... -I SYNC ~ M2 ~w ~ TDT0-7 oo < ~ :E TMD0-3 1;l XT Q. Ill ~ TMD 4 "' T - · ·· · JCT Circuit diagram 1: Application circuit in microcontroller £ ~ g. interface mode with 4Mbit DRAMs :D CD S: XT ""' ~ -1.. - -1.. and 2Mbit serial voice ROMs 0 8 CD T T :?: ..... :if: JCT LOUT m m Ul .g: (/) Q T T m 711 I AMON FIN TEST vss vss !!?.. iii" :if: ~ ';§- Ol ~ loll MON FOUT Speaker drive amplifier Ill ~ ~ ~ NAR ADIN !'--. r<'1 ))) Ci) "'" ~ n3UJ §. g CD ~ ::i 3 CD :;i ~ g_~ ~ (j)CD::l ..., c..~s: "' n. Q m-i • •m Q ....~ x:::r DVDD AVDDI -i CD 0 Q. x )> Ul a. r- ::i SAS a.~· m @- SADY ii> 3 I\) .,, 0 Q. 0H '~§ RWCK WE CJ) :::r 0 :E )> "'tJ "'tJ Dl/O CJ) II> r- DROM :::::l a. 0 ~ II> 00 "O ,__ 00 "2. "' ::;;: UJ ::;;: g 6z CS1 5· a: UJ Cl a: 0 CS2 CS3 :::::l 0 ~r - 0 :IJ ~ §: 0 a: UJ CS4 CD x c: ~((< I- ~ UJ II> 3 =i 6 "O ::::; 0 UJ _co <-> CD :E UJ T :::r ff :::r g. Circuit diagram 2: CD s:: en s:: Ol -...J CXl )) ) CXl c;;· c CJ) s:: (/) I ·- ;t• SG'rl CD a. s::Ol :E '°...... CJl 7J7 g '"""' ~ Voice Register /ROM OKI Semiconductor MSM6389 1,048,576-WORD x 1-BIT SOLID STATE RECORDER DATA REGISTER GENERAL DESCRIPTION MSM6389 is a solid state recorder data regis- the direction of words is possible by an exter- ter in 1,048,576 words x 1 bit configuration. nal serial address input. MSM6389 has a built-in internal address 18-pin plastic QFJ (PLCC) is used as the pack generator circuit allowing continuous serial are and the operating temperature range is read/write operation by single external clock between 0°C and 70°C. input. The internal address is automatically incremented or decremented by one by read/ MSM6389 is suitable for storing large capacity write operation. Address increment or dec- data with battery backup. A solid state record- rement can be selected by external input. ing and playback system can easily be built-in combination with OKI' s voice synthesizer LSis, Address designation in units of 1024 words in MSM6388 and MSM6588. FEATURES • Configuration: 1,048,576 x 1 bit • Wide operating supply voltage range: • Serial access operation: Single 3.5 to 5.5V Serial access time 3.0µs • Refresh operation: Serial read/write cycle time 4.0µs Self-refresh (refresh-free) • Low current consumption: • 18-pin Plastic QFJ (PLCC) 100 µA max. (for data holding, (QFJ18-P-R290) Vcc=4.0V) • 16-pin Plastic DIP (DIP16-P-300-W1) 9."i.S MSM6389 OKI Semiconductor PIN CONFIGURATION 1: Data input 16 PIN Plastic DIP 18 PIN Plastic LCC 2: Write enable (Top View) (Top View) 3: Test input 4: Chip select 5: No connection 6: Serial address data 7: Serial address strobe 8: Transfer address strobe 9: Power supply (+5V) 1O: Test input 11 : Test input 12 : Test input 13 : Read/write clock 14 : No connection 15 : Address up/down select 16 : Test input TAS Vee TESTitS'f 17 : Data output 18 : Ground (OV) FUNCTIONAL BLOCK DIAGRAM ,---OTEST + -r--OVcc ~~~ VBB Generator AU/D ~Vss DIN cs 1,048,576 Data Register DOUT SAS TEST WE RWCK TEST Clock TEST TEST TAS 956 OKI Semiconductor MSM6389 ELECTRICAL CHARACTERISTIC Absolute Maximum Ratings Parameter Symbol Conditions Rating Unit Terminal voltage VT Ta = 25°C, relative to Vss -1.0- +7.0 v Output short-circuit current los Ta= 25°C 50 mA Power dissipation Po Ta= 25°C 1 w Operating temperature Top - 0- +70 oc Storage temperature Tstg - -55 - +150 oc Recommended Operating Conditions (Ta= o- +70°C) Parameter Symbol Min. Typ. Max. Unit Terminal voltage Vee 3.5 5.0 5.5 v Terminal voltage Vss 0 0 0 v "H" input voltage V1H Vce-0.5 Vee Vee+ 0.5 v "L" input voltage V1L -0.5 0 0.5 v DC Characteristics (Vee= 3.5V - 5.5V, Ta=0-+70°C) Parameter Symbol Conditions Min. Max. Unit "H" output voltage VoH loH= -0.5mA Vee- 0.5 - v "L" output voltage VoL loL= 0.5mA - 0.4 v Input leakage current lu V1 = OV - Vee -1 1 µA Output leakage current ILO Vo= OV-Vce -10 10 µA Supply current (in operating state) lee1 Vee= 4V, tRe = 4µs - 5 mA Supply eurrnet (in standby state) lee2 Vee= 4V - 100 µA 957 MSM6389 OKI Semiconductor • AC Characteristics (Vee= 3.5V - 5.5V, Ta=0-+70°C) Parameter Symbol Min. Max. Unit Refresh cycle tREF - - ms Read/write cycle time tRwc 4,000 - ns Access time t.Acc - 3,000 ns Output turn off delay time tQFF 0 50 ns Input signal rise/fall time tr 3 50 ns RWCK precharge time tRWP 1,000 - ns RWCK pulse width tRW 3,000 10,000 ns SAS cycle time tssc 100 - ns SAS pulse width tsAS 50 - ns SAS precharge time tsAP 50 - ns Address setup time t.As 0 - ns Address hold time lAH 50 - ns TAS setup time tATS 50 - ns TAS to RWCK setup time trns 50 - ns TAS pulse width trAS 50 - ns Read command setup time tRRS 0 - ns Read command hold time tRRH 250 - ns Write command setup time twRs 0 - ns Write command hold time twRH 50 - ns Write command pulse width twp 50 - ns Write command to RWCK lead time tRWL 50 - ns Data setup time tos 0 - ns Data hold time toH 50 - ns RWCK to WE delay time tRWD 100 - ns AU/D setup time tuos 0 - ns AU/D hold time tuoH 50 - ns AU/D to TAS setup time tuors 0 - ns 958 OKI Semiconductor MSM6389 Read/Write/Read Modify Write Cycle Address Up/Down Select Mode ~~.---------~--~~---~--- SAS -----ul1 LI ',~\LI SAD -x~~xxc=:1----- TAS ~ LJ AU/D r-uiJ~r-----utJJuU DOUT ------..r----00000--s~ooo-- XnYO XnY023 Xn+ 1Y1 XmY1023 XmY1 Xm-1Y1023 XnY1 Xn+1YO XmY1023 XmYO 959 MSM6389 OKI Semiconductor PIN FUNCTIONS AND OPERATION MODES Pin Function SAD (Serial Address Input) Pin for inputting the read/write starting address-Designation in units of 1024 words is possible. The 1,024 address data can be input as 10-bit (AO-A9) serial from the SAD pin. "SAS (Serial address strode) Pin for the clock used to store the serial address data into the internal register. TAS (Address transfer strode) Input pin for setting the serial address data stored in the address register to the internal address counter. When the TAS falls, and the Y address is set to address Oin the increment mode or to address 1023 in the decrement mode. RWCK (Read/write clock) Input pin for the data register information read/write clock. Internal operation starts at the following edges of RWCK. The information in the data register is output to the DOUT pin in the read mode, and the information at the DIN pin is written into the data register in the write mode. The internal address counter is auto- matically incremented or decremented also when RWCK falls. WE (Write enable) Input pin for selecting the read mode, write mode or read modify write mode. The read mode is set when WE is "H", and the write mode is set when WE is "L". When WE falls from "H" to "L" while RWCK is active, the read modify write mode is set. DIN (Data input) Input pin for write data. The information at the data input pin is stored at the falling edge of RWCK in the write mode, and at the falling edge of WE in the read modify write mode. DOUT (Data output) The data output pin is always in kept in the high impedance state when RWCK or CS is kept at "H". When "H" or "L" information is read in the read operation. the output pin is set to "H" or "L" and holds the read information until RWCK is again set to "H". In the early write mode the output pin maintains the high impedance state, so 110 common operation by connecting DIN and DOUT is possible. AU/D (Address up/down select) Input pin for selecting the direction of automatic address updating. When the TAS signal is input with the AU/D pin set to "H", the internal address counters are set to the externally set address for X and to address Ofor Y. Then the address is incremented by 1 every time RWCK is input. When the TAS signal is input with the AU/D pin set to "L", the internal address counters are set to the externally set address in the same way for X but set to address 1023 for Y. Then the address is decremented by 1 every time RWCK is input. In either case, the X address is automatically incremented or decremented by 1 when read/write operation for 1024 words ends. The AU/D pin setting change is possible in any read/write cycle so long as the timing specifications for tuos. tuoH are satisfied. cs (Chip select) Input pin for disabling all input and output pins. This pin enables parallel use of multiple MSM6389s by connecting the data input and output pins. 960 OK.I Semiconductor MSM6587 524,288-WORD x 1-BIT SERIAL REGISTER GENERAL DESCRIPTION MSM6587 is a serial register in 524,288 words A refresh timer and refresh counter are built x 1 bit configuration featuring medium speed in to eliminate the need of the external refresh operation with low-power consumption. circuit and to realize low power consumption. MSM6587 has a built-in internal address 18-pin plastic QFJ (PLCC) is used as the generator circuit allowing continuous serial package and the operating temperature range read/ write operation by external clock input. is between 0°C and 70°C. The internal address is automatically incremented or decremented by one by read/ MSM6587 is suitable for storing large capacity write operation. Address increment or dec- data with battery backup. A solid state re- rement can be selected by external input. cording and playback system can easily be built-in combination with OKI's voice synthe- Address designation in uni ts of 1024 words in sizer LSis, MSM6388 and MSM6588. the direction of words impossible by an exter- nal serial address input. FEATURES • Configuration: 524,288x1 bit • Wide operating supply voltage range: • Serial access operation: Single 3.5 to 5.SV Serial access time 3.0 µs • Refresh operation: Serial read/write cycle tiem 4.0 µs Self-refresh (refresh-free) • Low current consumption: • 18-pin Plastic QFJ (PLCC) 100 µA max. (for data holding, (QFJ18-P-R290) Vcc=4.0V) 961 ·MSM6587 OKI Semiconductor PIN CONFIGURATION (Top View) 1 : Data input 2: Write enable 3: Test input 4: Chip select 5: No connection 0 6: Serial address data 7: Serial address strobe 8: Transfer address strobe AU/D 9: Power supply (+5V) NC NC 10: Test input 11 : Test input SAD RWCK 12: Test input 13: Read/write clock SAS TEST 14: No connection 15: Address up/down select 16: Test input 17: Data output TAS Vee TEST TEST 18: Ground (OV) FUNCTIONAL BLOCK DIAGRAM ~TEST Vee SAD VBB Generator ~Vss .,,. AU/D DIN cs 524,288 Data Register 1/0 Control DOUT SAS TEST Refresh Counter Timing WE RWCK Generator TEST Clock TEST TEST TAS 962 OKI Semiconductor MSM6587 ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings Parameter Symbol Conditions Rating Unit Terminal voltage VT Ta= 25°C, relative to Vss -1.0 - +7.0 v Output short-circuit current los Ta= 25°C 50 mA Power dissipation Po Ta= 25°C 1 w Operating temperature Top - 0- +70 oc Storage temperature Tstg - -55 - +150 oc Recommended Operating Conditions (Ta = 0 - +70°C) Parameter Symbol Min. Typ. Max. Unit Terminal voltage Vee 3.5 5.0 5.5 v Terminal voltage Vss 0 0 0 v "H" input voltage V1H Vee- 0.5 Vee Vee+ 0.5 v "L" input voltage V1L -0.5 0 0.5 v DC Characteristics (Vee= 3.5V - 5.5V, Ta=0-+70°C) Parameter Symbol Conditions Min. Max. Unit "H" output voltage VoH loH=-0.5mA Vee- 0.5 - v ''L" output voltage VoL loL= 0.5mA - 0.4 v Input leakage current lu V1= OV-Vcc -1 1 µA Output leakage current ILo Vo= OV - Vee -1 1 µA Supply current (in operating state) lcc1 Vee= 4V, tRc = 4µs - 5 mA Supply currnet (in standby state) lce2 Vee= 4V - 100 µA 963 MSM6587 OKI Semiconductor • AC Characteristics (Vee= 3.5V - 5.5V, Ta=0-+70°C) Parameter Symbol Min. Max. Unit Refresh cycle tREF - - ms Read/write cycle time tRwc 4,000 - ns Access time 1Acc - 3,000 ns Output turn off delay time tm 0 50 ns Input signal rise/fall time tr 3 50 ns RWCK precharge time tRWP 1,000 - ns RWCK pulse width tRw 3,000 10,000 ns SAS cycle time tssc 100 - ns SAS pulse width tsAS 50 - ns SAS precharge time lsAP 50 - ns Address setup time tAS 0 - ns Address hold time tAH 50 - ns TAS setup time 1ATS 50 - ns TAS to RWCK setup time trns 50 - ns TAS pulse width trAS 50 - ns Read command setup time tRRS 0 - ns Read command hold time tRRH 50 - ns Write command setup time twRs 0 - ns Write command hold time twRH 50 - ns Write command pulse width twp 50 - ns Write command to RWCK lead time tRWL 50 - ns Data setup time tos 0 - ns Data hold time toH 50 - ns RWCK to WE delay time tRWO 50 - ns AU/D setup time tuos 0 - ns AU/D hold time tuoH 50 - ns AU/D to TAS setup time tuors 0 - ns 964 OKI Semiconductor MSM6587 Read/Write/Read Modify Write Cycle Address Up/Down Select Mode cs~1--~--1i~~----'~~~~~~~- sAs -ut 1J 1 ',~1 lJ SAD-xn=:~~r--- TAS ~ Li AU/D r-wJuUr-------uLJJlllj DOUT -----~~~000- XnYO XnY023 Xn+ 1Y1 XmY1023 XmY1 Xm-1Y1023 XnY1 Xn+ 1YO XmY1023 XmYO Note: AO to A7 are enable and AB, A9 is stable in the 1Obit (AO - A9). 971 MSM6586 OKI Semiconductor PIN FUNCTIONS AND OPERATION MODES Pin Function SAD (Serial Address Input) Pin for inputting the read/write starting address-Designation in units of 1024 words is possible. The 1,024 address data can be input as 10-bit (AO-A9) serial from the SAD pin.(AO-A? has enable address, AB and A9 keep "L".) SAS (Serial address strode) Pin for the clock used to store the serial address data into the internal register. TAS (Address transfer strode) Input pin for setting the serial address data stored in the address register to the internal address counter. When the TAS falls, and the Y address is set to address Oin the increment mode or to address 1023 in the decrement mode. RWCK (Read/write clock) Input pin for the data register information read/write clock. Internal operation starts at the following edges of RWCK. The information in the data register is output to the DOUT pin in the read mode, and the information at the DIN pin is written into the data register in the write mode. The internal address counter is auto- matically incremented or decremented also when RWCK falls. WE (Write enable) Input pin for selecting the read mode, write mode or read modify write mode. The read mode is set when WE is "H", and the write mode is set when WE is "L". When WE falls from "H" to "L" while RWCK is active, the read modify write mode is set. DIN (Data input) Input pin for write data. The information at the data input pin is stored at the falling edge of RWCK in the write mode, and at the falling edge of WE in the read modify write mode. DOUT (Data output) The data output pin is always in kept in the high impedance state when RWCK or CS is kept at "H". When "H" or "L" information is read in the read operation, the output pin is set to "H" or "L" and holds the read information until RWCK is again set to "H". In the early write mode the output pin maintains the high impedance state, so 1/0 common operation by connecting DIN and DOUT is possible. AU/D (Address up/down select) Input pin for selecting the direction of automatic address updating. When the TAS signal is input with the AU/D pin set to "H", the internal address counters are set to the externally set address for X and to address Ofor Y. Then the address is incremented by 1 every time RWCK is input. When the TAS signal is input with the AU/D pin set to "L", the internal address counters are set to the externally set address in the same way for X but set to address 1023 for Y. Then the address is decremented by 1 every time RWCK is input. In either case, the x address is automatically incremented or decremented by 1 when read/write operation for 1024 words ends. The AU/D pin setting change is possible in any read/write cycle so long as the timing specifications for tuns. tuoH are satisfied. cs (Chip select) Input pin for disabling all input and output pins. This pin enables parallel use of multiple MSM6586s by connecting the data input and output pins. 972 OKI Semiconductor MSM6595-XXX 1M-bit Serial Voice ROM GENERAL DESCRIPTION The MSM6595 is a Serial Voice ROM of a The combination of the Serial Voice ROM 1,048,576-word x 1-bit for the voice system. (MSM6595), the Solid State recorder The MSM6595 enables to continue the serial (MSM6388, MSM6588) and Serial Voice Reg- read operation due to the input of one external ister (MSM6389, MSM6587, MSM6586) can clock for the built-in internal address generat- easily make up the record and playback sys- ing circuit. tem with the fixed message which is stored in the Serial Voice ROM. The internal address is automatically made to +1 with the read operation and the address Note: MSM6388 or MSM6588 can not control can designate 1024-word to X direction and only MSM6595-XXX without the Serial Voice 1024-word to Y direction by inputting the Register. external serial address. FEATURES • Configuration: • Package: 18-pin plastic LCC 1,048,576-word x 1-bit (QFJ 18-P-R290) • Serial access: 24-pin plastic SOP Serial read cycle time: 2.Sµs (SOP 24-P-430-VK) • Power supply: 5V single voltage 18-pin plastic DIP (DIP 18-P-300-Wl) PIN CONFIGURATION MSM6595-xxxJS MSM6595·xxxGS·VK MSM6595·xxxRS (18PIN plastic LCC) (24PIN plastic SOP) (18PIN plastic DIP) ~ i5 0 !:; l"5 (7$ ~ g SAOY @ GND SASV NC mr DOUT 'C'S" TEST01 NC NC NC NC NC NC NC NC SADX NC 'SAS)( ROCK TEST02 ™ VDD TEST 973 MSM6595-XXX OKI Semiconductor FUNCTIONAL BLOCK DIAGRAM SADX 10 VDD SASX GND SADY TEST TEST TEST 01 Bt !ig TEST 02 n:l::c :cm "' "' SASY OOUT TAS ROCK cs CS CONTROL 974 OKI Semiconductor MSM6595-XXX ELECTRICLAL CHARACTERISTICS • Absolute Maximum Ratings Parameter Symbol Conditions Rating Unit Power supply voltage VDD Ta= 25°C -0.3 - +7.0 v Input voltage V1N Ta= 25"C -0.3 - VDD+0.3 v Storage temperature Tstg - -55-+150 ·c • Operating Conditions Parameter Symbol Conditions Range Unit Power supply voltage VDD GND = OV +3.5- +5.5 v Operating temperature Top - -40-+85 ·c • DC Characteristics (VDD = 3.5-5.5V, Ta= -40 - +85°C) Value Parameter Symbol Conditions Unit Min. Typ. Max. 'H" level input voltage V1H - 0.8xVDD - - v "L' level input voltage V1L - - - 0.8 v "H" level output voltage VoH loH=-40µA 4.2 - - v "L' level output voltage VoL loL= 2mA - - 0.45 v "H" level input current iiH V1H= VDD - - 10 µA "L" level input current l1L V1L= GND -10 - - µA Operating consumption current (1) loo tRDC =2.5µs - - 15 mA Operating consumption current (2) los CS = VDD- 0.2V - - 10 µA 0'71: MSM6595-XXX OKI Semiconductor • AC Characteristics (VOO= 3.5 - 5.5V, Ta= -40 - +85°C) Value Parameter Symbol Conditions Unit Min. Max. CS • SAS set-up time less - 1000 - ns SASX, SASY cycle time tssc - 500 - ns SASX, SASY precharge time lsAP - 250 - ns ~. SASY pulse width lsAS - 250 - ns Address set-up time lAS - 100 - ns Address hold time lAH - 100 - ns TAS set-up time lATS - 500 - ns TAS • ROCK set-up time trns - 500 - ns TAS pulse width irAS - 250 - ns Read cycle time lROC - 2500 - ns Access time !Ace - - 1500 ns Output turn off delay time lOFF - 0 200 ns ROCK precharge time lROP - 1000 - ns ROCK pulse width lRO - 1500 - ns 976 • :::! •~ :! 3: 3 m :r - (Q ., 0 (/) CD 0 ~ :a -t Ul §. 8::::1 :::!. ~ !!!. @' CS (I) ~ Q. ca Ill ~ Ill SADX (I) ... =:,,:::,...._....,....,....,....,....,...,;,.., 5' tAs - "C c: SASX(I) SADY (I) >>>>>:>>>.>:> SASY (I)~ ~ tsAs 1~--\.- l~I 1:-- tsAP ~ ~ ~ ~ ~ ~ I. iATS tcss • I. tssc. I TAS(I) ~ trASU- I 1~3: O> UI ~ s: )> 'tJ '2. r- "'ens:: en s: O> CJ1 co DVDD DVDD' AVDD VDD VDD VDD .. !j0 c;· 1» 5· 0 U1 :::> s. D3 D2 D1 SAD SAS TAS SAD SAS TAS s:: Cr = SADX SASX TAS ~ s:: g ~ 0 =r z (') s ""' MCU DO RWCK WE RWCK (/) ROCK s:: (/) 0 c :a -s:: 0 :::> WE m :n CJ)m (') RD ::+ a - WR Dl/O DIN s:: DOUT ~ ~~ S:::n DOUT 8:5> 0 c: 0 CE .S::< °'O cor- :::j SASY ~(§ :::> ""'l .:;:: "' "" 00 W - OOC") TEST RSEL1 RSEL2 TEST TEST m "' u; :n 0 s:: "' s:: i -; CJ1 MIN XT ::0 ct> (Q MOUT ;i;. ;i;. ~ sr, I LIN LOUT AMON AOUT ) ) ) ~ !ml FIN SG SG Ul FOUT (f) ADIN 8. () DGND AGND I I 1g g. n.Q OKI Semiconductor MSM6596-XXX 2M-bit Serial Voice ROM GENERAL DESCRIPTION The MSM6596 is a Serial Voice ROM of a The combination of the Serial Voice ROM 1,048,576-word x 1-bit x 2-bank for voice sys- (MSM6596), the Solid State recorder tems. The MSM6596 enables the continuing (MSM6388, MSM6588) and Serial Voice Reg- of the serial read operation with the input of a ister (MSM6389, MSM6587, MSM6586) can single external clock for the built-in internal easily provide a record and playback system address generating circuit. with a fixed message which is stored in the Serial Voice ROM. The internal address is automatically incremented to +1 with the read operation Note: MSM6388 or MSM6588 can not control and the address can designate 1024-word to X only MSM6596-XXX without the addition of a direction and 1024-word to Y direction by Serial Voice Register. inputting the external serial address. The bank is switched by CSl, CS2. FEATURES • Configuration: • Package: 18-pin plastic LCC 1,048,576-word x 1-bit x 2-bank (QFJ 18-P-R290) • Serial access: 24-pin plastic SOP Serial read cycle time: 2.5µs (SOP 24-P-430-VK) • Power supply: SV single voltage 18-pin plastic DIP (DIP 18-P-300-Wl) PIN CONFIGURATION MSM6596-xxxJS MSM6596-xxxGS-VK MSM6596-xxxRS (1BPIN plastic LCC) (24PIN plastic SOP) (18PIN plastic DIP) >- ~ ~ "' "'z o 0 0 <( 0 SADY @ GND 'SASY NC CS2 DOUT CSf 4 TEST01 NC NC NC NC NC NC NC SADX fu\SX ROCi( o ™ VDD TEST02 TEST I~ >0 t;; ~ "' 0 t;; w >- 981 MSM6596-XXX OKI Semiconductor FUNCTIONAL BLOCK DIAGRAM SADX 10 8t ~g 10 ;;1,, "'fll VDD SiiSX "' GND SADY TEST TEST 01 TEST 02 8t 10 ~g m:iJ :iJm "' "' Si\SY IOCK DOUT m ROCK CS2 CS1 982 OKI Semiconductor MSM6596-XXX ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings Parameter Symbol Conditions Rating Unit Power supply voltage VDD Ta= 25°C ---0.3 - +7.0 v Input voltage V1N Ta= 25°C -0.3 - VDD +0.3 v Storage temperature Tstg - -55- +150 oc • Operating Conditions Parameter Symbol Conditions Range Unit Power supply voltage VDD GND = OV +3.5- +5.5 v Operating temperature Top - -40- +85 oc • DC Characteristics (VDD = 3.5-5.5V, Ta= -40 - +85°C) Value Parameter Symbol Conditions Unit Min. Typ. Max. "H" level input voltage V1H - O.BxVDD - - v "L" level input voltage V1L - - - 0.8 v "H" level output voltage VoH loH=-40µA 4.2 - - v "L" level output voltage VoL loL= 2mA - - 0.45 v "H" level input current iiH V1H= VDD - - 10 µA "L" level input current iiL V1L= GND -10 - - µA Operating consumption current (1) loo tROC =2.5~s - - 15 mA Operating consumption current (2) los CS1 =CS2 = VDD - 0.2V - - 10 µA 983, MSM6596-XXX OKI Semiconductor • AC Characteristics (VDD = 3.5 - 5.5V, Ta= -40 - +85°C) Value Parameter Symbol Conditions Unit Min. Max. CS •SAS set-up time tcss - 1000 - ns SASX, SASY cycle time tssc - 500 - ns SASX, SASY precharge time tsAP - 250 - ns SASX, SASY pulse width tsAS - 250 - ns Address set-up time tAs - 100 - ns Address hold time lAH - 100 - ns 'i'AS set-up time lATS - 500 - ns 'i'AS • RDCK set-up time trns - 500 - ns TAS pulse width trAS - 250 - ns Read cycle time tRDC - 2500 - ns Access time tACC - - 1500 ns Output turn off delay time tQFF - 0 200 ns RDCK precharge time tRDP - 1000 - ns RDCK pulse width tRD - 1500 - ns 984 • ::! ...~ :I 3: 3 m s· CS1(1) ~ I~ - a:i fl) CD 0 ::c )> ::ti -I en CD 8. 8::s :::!. !!!. g. ~I I~ CS2(1) Q. ~ .... Cil Ill Ill SADX (I) ~ AXO l AX1 X AX2 X AX3 XAX4 XAX5 X AX6 X AX7 X AX8 XAX9 ~ I "C:; ... c: -!As ~. I SASX(I) SADY (I) SASY (I) less I lssc TAS (I) 3: ITAS 0 3: ~ \0 00 (J1 a MSM6596-XXX OKI Semiconductor • Read Access Timing a.. Q $ g $ Q $ 986 OKI Semiconductor MSM6596-XXX PIN FUNCTION EXPLANATION Terminal 110 Function VDD - Power supply pin. GND - Ground pin. SADX I (SERIAL ADDRESS) This is pin for input of X address header of read. This pin can designate 1024 words and can input 1024 address data as serial data of 10-bit (AXO-AX9). SADY I (SERIAL ADDRESS) This is pin for input of Y address header of read. This pin can designate 1024 words and can input 1024 address data as serial data of 1obits (AYO-AY9). SASX I (SERIAL ADDRESS STROBE) This is clock input pin for input of serial address data of X address to internal register. SASY I (SERIAL ADDRESS STROBE) This is clock input pin for input of serial address data of Y address to internal register. fAS I (TRANSFER ADDRESS STROBE) This is input pin to set serial address data to be taken in address register to internal address counter. X address and Y address are taken in by fall of TAS pin . ROCK I (READ CLOCK) This clock pin to read out information of data register. Internal operation starts with the falling edge of ROCK and the information of the data register is output from DOUT pin. In addition, pin address counter is automatically incremented by the fall of ROCK. DOUT 0 (DATA OUT) If both CS1 and CS2 or ROCK are held to "H", DOUT remains in the high impedance state. If information of "H" or "L" is read out during read, DOUT pin is set to "H" or "L" and information read out is held until ROCK is restored to "H". CS1 I (CHIP SELECT) When CS1 goes "L", bank 1 is selected and when CS2 CS2 goes "L", bank 2 is selected. In addition, all input pins are disabled when both CS1 and CS2 go "H". This pin can be used in parallel by connecting data output pins of multiple serial Mask ROM's. TEST I This is pin for LSI test. Input "L" level. TEST01 0 This is pin for LSI test. TEST02 Open this pin . 987 6S5 z • 00 0 ~ ~ t,, s:: "2.. r- en 0 s:: O> DVDD DVDD' AVDD ~f r+ ~ ~ ():) VDD I I a· 5 ~ D2 D3 :I 2 :::I 0 z :::I s. 8:::I MCU D1 DO "" ;;:: Cr ;;::= a· c 0 5i rn ~~ ~~ O' "" 3: =t en s:: Xm :D en ffi 0 3: ~ ;;:: m g ;;:: ~ :;; rn § s:: 0 en s "' ~ "'~ ~ < 0 c:;· ~MIN CD l MOUT ;J;- sa: CD :"' AOUT r - - - - - - ) ) ) ~ .... SG I + - en ([) ~­ . ·- AGND g g. § OKI Semiconductor MSM6596-XXX GENERAL-PURPOSE CODE FOR quest. Standard LSis for general purpose MSM6596 are also available. The Serial Voice ROM is available for a The specifications for the standard LSis are custom order depending on the user's re- as follows: Product Name Application Contents Japanese time stamp for answering machine, MSM6596-600 Japanese/English, female English and Japanese demonstration. Japanese time stamp and English time stamp for MSM6596-629 answering machine, greetings of 8 languages, and Japanese/English, female the another demonstration. 989 MSM6596-XXX OKI Semiconductor MSM6596-600 Voice Word Address Corresponding List (for time stamp and demonstration) M6388, M6388 M6588 fs Playback Address Voice Words M6588 Stop Address Lower Start M6588Upper Stop (kHz) Time Address Stop Address Address No. 1 01 9=-ii'Y 0 10 5D 6.4 0.67 sec No. 2 02 9=-~i 11 1F 31 6.4 0.58 sec No. 3 03 ;( .:r 20 2B 27 6.4 0.45 sec No. 4 04 :IH' (~) 2C 37 27 6.4 0.45 sec No. S OS ~ \ "5 (~) 38 42 74 6.4 0.44 sec No. 6 06 ';: (~) 43 4A 33 6.4 0.30 sec No. 7 07 '15 fi, (~) 4B SS OF 6.4 0.40 sec No. 8 08 J; (~) S6 SD 01 6.4 0.28 sec No. 9 09 z: (~) SE 64 4F 6.4 0.26 sec No.10 OA 0< (~) 65 6F 43 6.4 0.42 sec No.11 OB f.t.f.t. (~) 70 7A 39 6.4 0.42 sec No.12 OC ';t "5 (~) 7B 86 27 6.4 OAS sec No.13 OD < (~) 87 8D 1D 6.4 0.2S sec No.14 OE [; i9>? (~) 8E 98 S7 6.4 0.43 sec No.1S OF [;19i?~''5 (~) 99 AD 25 6.4 0.81 sec No.16 10 [; i9>? ,;: (~) AE BD 15 6.4 0.61 sec No.17 11 ~ BE C2 SF 6.4 0.19 sec No.18 12 [; i9>? C3 CE 21 6.4 OAS sec No.19 13 1: [; i9>? CF DD OD 6.4 0.S6 sec No.20 14 '15 fi, [; i9>? DE EE 27 6.4 0.65 sec No.21 15 J;fi,[;19>-j EF FF 7B 6.4 0.68 sec No.22 16 Z:l5i9>? 100 10D 1F 6.4 0.53 sec No.23 17 ~'-::> (;f) 10E 117 SF 6.4 0.39 sec No.24 18 -/5/i, (;f) 118 121 69 6.4 0.39 sec No.2S 19 J; fi, (;f) 122 12B 23 6.4 0.37 sec No.26 1A .... '- (;f) 12C 133 79 6.4 0.32 sec No.27 1B 0-::i (;t) 134 13D 13 6.4 0.37 sec No.28 1C f.t.f.t. (;f) 13E 148 3B 6.4 0.42 sec No.29 1D l;t-::i (;f) 149 152 2D 6.4 0.37 sec No.30 1E ~19>? (;f) 153 15B 07 6.4 0.32 sec No.31 1F [; i9> -::> (;f) 15C 166 6F 6.4 0.44 sec No.32 20 1: [; $-::> (;f) 167 17S 19 6.4 0.57 sec No.33 21 '15/i,[;19>? (;f) 176 186 77 6.4 0.68 sec No.34 22 J;fi,[;19>? (;f) 187 198 37 6.4 0.70 sec No.3S 23 Z:l5i9>? (;f) 199 1A6 53 6.4 O.SS sec 990 OKI Semiconductor MSM6596-XXX MSM6596-600 Voice Word Address Corresponding List (for time stamp and demonstration) M6388, M6388 M6588 fs Playback M6588 Stop Address Lower Address Voice Words Start M6588Upper Stop (kHz) Time Address Stop Address Address No.36 24 1!0 1A7 1B1 11 6.4 0.41 sec No.37 25 -~'/,, 1B2 1BA 33 6.4 0.34 sec No.38 26 -~: /,, 1BB 1C3 40 6.4 0.34 sec No.39 27 1~ 1C4 1CO 31 6.4 0.38 sec No.40 28 1'9 1CE 102 37 6.4 0.18 sec No.41 29 ;{ ·;l'l?-;J+f\'~(8;j5:~) 103 216 5F 4.0 4.34 sec No.42 2A ;< ·;liz-;J+f\'~(8;j5:~) 217 277 35 5.3 4.66 sec No.43 28 ;< ·rl?-;J+'!if~(8;j5:~) 278 2EE 47 6.4 4.74sec No.44 2C ;< ·rl?-:J+'!if~(8;j5:~!) 2EF 377 47 8.0 4.37 sec No.45 20 ;{ ·:; i? - ;; +i:j::O) fl' ( 8 *~!) 378 3BO 13 4.0 3.59 sec No.46 2E ;{ ·:; i?-;J+l:j::O)fl'(8;j5:~g) 381 405 19 5.3 4.07 sec No.47 2F ;{ ·:; i?-;J+l:j::O)fl'(8;j5:~g) 406 464 60 6.4 3.79 sec No.48 30 ;{ ·:; i?- ;J+l:j::O)fl'( 8 *~!) 465 400 6F 8.0 3.45 sec No.49 31 Message+Music (English) 401 510 49 4.0 4.07 sec No.50 32 Message+Music (English) 511 571 50 5.3 4.67 sec No.51 33 Message+Music (English) 572 5E8 15 6.4 4.73 sec No.52 34 Message+Music (English) 5E9 663 58 8.0 3.93 sec No.53 35 Message+Cattle Voice (English) 664 6A5 11 4.0 4.17 sec No.54 36 Message+Cattle Voice (English) 6A6 707 70 5.3 4.73 sec No.55 37 Message+Cattle Voice (English) 708 77A 45 6.4 4.58 sec No.56 38 Message+Cattle Voice (English) 77B 7F3 25 8.0 3.85 sec (Total playback time: 85.56 sec) qq1 MSM6596-XXX OKI Semiconductor MSM6596-629 Voice Word Address Corresponding List (for time stamp and demonstration) M6388, M6388 M6588 length fs Playback Address Voice Words M6588 Stop Address Lower Start M6588Upper Stop (kHz) Time Address Stop Address Address No. 1 01 AL RAM 0 B 71 4blt 6.4 0.48 sec No. 2 02 SETTING c 16 4B 4blt 6.4 0.42 sec No. 3 03 ON 17 1E 55 4blt 6.4 0.31 sec No. 4 04 OFF 1F 25 67 4blt 6.4 0.27 sec No. 5 05 HOUR 26 2E 67 4blt 6.4 0.35 sec No. 6 06 MINUTE 2F 37 35 4blt 6.4 0.34 sec No. 7 07 SECOND 38 41 OB 4blt 6.4 0.36 sec No. 8 OB NINE 42 4D OD 4blt 6.4 0.44 sec No. 9 09 TEN 4E 56 31 4blt 6.4 0.34 sec No. 10 OA ELEVEN 57 65 37 4blt 6.4 0.5B sec No. 11 OB 'TWELVE 66 70 47 4blt 6.4 0.42 sec No. 12 oc ZERO 71 7F 09 4blt 6.4 0.56 sec No. 13 OD lWEN- BO B5 33 4blt 6.4 0.22 sec No. 14 OE THIR- B6 BA 57 4blt 6.4 0.19 sec No. 15 OF FIF- BB 90 47 4blt 6.4 0.22 sec No. 16 10 TY-FOUR 91 A2 OD 4blt 6.4 0.6B sec No. 17 11 TY-FIVE A3 B6 47 4blt 6.4 0.7B sec No. 1B 12 TY-SIX B7 C6 5B 4blt 6.4 0.63 sec No. 19 13 TY-SEVEN C7 D6 01 4blt 6.4 0.60 sec No. 20 14 TY-EIGHT D7 E6 4B 4bit 6.4 0.62 sec No. 21 15 TY-NINE E7 F6 6B 4bit 6.4 0.63 sec No. 22 16 -TY F7 FD 2B 4blt 6.4 0.25 sec No. 23 17 -TEEN FE 106 3D 4blt 6.4 0.34 sec No. 24 1B ONE 107 110 39 4blt 6.4 0.3B sec No. 25 19 'TWO 111 11B 1B 4blt 6.4 0.29 sec No. 26 1A THREE 119 121 01 4blt 6.4 0.32 sec No. 27 1B FOUR 122 12B OD 4blt 6.4 0.36 sec No. 2B 1C FIVE 12C 135 4B 4blt 6.4 0.3B sec No. 29 1D SIX 136 140 2D 4bit 6.4 0.41 sec No. 30 1E SEVEN 141 14A 51 4blt 6.4 0.39 sec No. 31 1F EIGHT 14B 152 2B 4blt 6.4 0.29 sec No. 32 20 O'CLOCK 153 163 35 4bit 6.4 0.66 sec No. 33 21 SIX- 164 16B 73 4bit 6.4 0.32 sec No. 34 22 SEVEN- 16C 176 05 4blt 6.4 0.40 sec No. 35 23 EIGHT- 177 17D 2B 4blt 6.4 0.25 sec 992 OKI Semiconductor MSM6596-XXX MSM6596-629 Voice Word Address Corresponding List (for time stamp and demonstration) M6388, M6388 M6588 length fs Playback Addrass Voice Words M6588 Stop Address Lower Start M6588Upper Stop (kHz) Time Address Stop Address Address No. 36 24 NINE- 17E 186 11 4blt 6.4 0.33 sec No. 37 2S TY-ONE 187 196 OF 4blt 6.4 0.60 sec No. 38 26 TY-TWO 197 1A6 4S 4blt 6.4 0.62 sec No. 39 27 TY-THREE 1A7 187 38 4blt 6.4 0.66 sec No. 40 28 OH 188 18F 6S 4blt 6.4 0.31 sec No. 41 29 FOR- 1CO 1C6 31 4blt 6.4 0.26 sec No. 42 2A TOGO 1C7 104 29 4blt 6.4 O.S3 sec No. 43 28 IT'S 1DS 1DC 11 4blt 6.4 0.29 sec No. 44 2C Silence SOmS 1DD 1DE 1D 4blt 6.4 O.OS sec No. 45 20 Silence 200mS 1DF 1E3 70 4blt 6.4 0.20 sec No. 46 2E AM 1E4 1F2 SS 4blt 6.4 O.S9 sec No. 47 2F PM 1F3 201 73 4blt 6.4 0.60 sec No. 48 30 lf.iii 202 212 SD 4blt 6.4 0.67 sec No. 49 31 lf.fl 213 221 31 4blt 6.4 O.S8 sec No. 50 32 .)( 'E 222 220 27 4blt 6.4 0.4S sec No. 51 33 ti.~' (~) 22E 239 27 4blt 6.4 0.4S sec No. 52 34 ~''5 (B~) 23A 244 74 4blt 6.4 0.44 sec No. 53 3S ';: (B~, ~) 24S 24C 33 4blt 6.4 0.30 sec No. S4 36 t5 A, (Bil') 240 2S7 OF 4blt 6.4 0.40 sec No. SS 37 J: (B~) 2S8 2SF 01 4blt 6.4 0.28 sec No. S6 38 ;:: (B~) 260 266 4F 4blt 6.4 0.26 sec No. S7 39 -3 < (Bi\') 267 271 43 4blt 6.4 0.42 sec No. S8 3A t.l:t.1: (Bil') 272 27C 39 4blt 6.4 0.42 sec No. S9 38 ~'5 (Bil') 270 288 27 4blt 6.4 0.4S sec No. 60 3C < (B~) 289 28F 1D 4blt 6.4 0.2S sec No. 61 30 t;,,.? (Bil') 290 29A S7 4blt 6.4 0.43 sec No. 62 3E [;"'? ~''5 (Bil') 298 2AF 2S 4blt 6.4 0.81 sec No. 63 3F t;,,.?,: (Bil') 280 28F 1S 4blt 6.4 0.61 sec No. 64 40 Bil' 2CO 2C4 SF 4blt 6.4 0.19 sec No. 6S 41 t;,,,? 2CS 200 21 4blt 6.4 0.4S sec No. 66 42 ';: t;.? 201 2DF OD 4blt 6.4 O.S6 sec No. 67 43 t5 A,[;.? 2EO 2FO 27 4bit 6.4 0.65 sec No. 68 44 J:A,t;,,.? 2F1 301 78 4bit 6.4 0.68 sec No. 69 45 L:t;•? 302 30F 1F 4bit 6.4 O.S3 sec No. 70 46 ~'? 310 319 SF 4bit 6.4 0.39 sec 993 MSM6596-XXX OKI Semiconductor MSM6596-629 Voice Word Address Corresponding List (for time stamp and demonstration) M6388, M6388 M6588 length fs Playback AddlUS Voice Words M6588 Stop Address Lower Start M6588Upper Stop (kHz) Time Address Stop Address Address No. 71 47 ~A, (;}) 31A 323 69 4blt 6.4 0.39 sec No. 72 48 .I. A, (;}) 324 320 23 4bit 6.4 0.37 sec No. 73 49 ;::: (;}) 32E 335 79 4blt 6.4 0.32 sec No. 74 4A -3? (;}) 336 33F 13 4blt 6.4 0.37 sec No. 75 4B t.tt.t (11) 340 34A 3B 4blt 6.4 0.42 sec No. 76 4C Ii? (;}) 34B 354 20 4blt 6.4 0.37 sec No. 77 40 ~19>? (;}) 3SS 3SO 07 4bit 6.4 0.32 sec No. 78 4E [;19>? (;}) 35E 368 SF 4blt 6.4 0.44 sec No. 79 4F 1;: [;19>? (;}) 369 377 19 4blt 6.4 0.57 sec No. 80 so ~A,[;19>? (;}) 378 388 77 4blt 6.4 0.68 sec No. 81 51 J:A,[;19>? (;}) 389 39A 37 4blt 6.4 0.70 sec No. 82 52 O:::t; 19>? (;}) 39B 3A8 53 4blt 6.4 0.55 sec No. 83 53 1!'-3 3A9 3B3 11 4blt 6.4 0.41 sec No. 84 54 ..~,;,,, 384 38C 33 4bit 6.4 0.34 sec No. 85 55 .s;1i, 380 3C5 40 4bit 6.4 0.34 sec No. 86 56 1!f 3C6 3CF 31 4blt 6.4 0.38 sec No. 87 57 't"t 300 304 37 4blt 6.4 0.18 sec No. 88 S8 ~ 30S 30F 3S 4blt 6.4 0.42 sec No. 89 59 *- 3EO 3E5 30 4blt 6.4 0.22 sec No. 90 SA 3E6 3EE 2S 4blt 6.4 0.33 sec No. 91 * 3EF 3F8 70 4blt 6.4 0.40 sec No. 92 SB SC * ~ 3F9 402 18 4blt 6.4 0.37 sec No. 93 50 ± 403 409 17 4bit 6.4 0.2S sec No. 94 SE 8 40A 414 73 4bit 6.4 0.44 sec No. 9S SF lllB 415 421 40 4blt 6.4 0.50 sec No. 96 60 (Chinese) 422 434 71 4blt 6.4 0.60 sec No. 97 61 j!i:Jt (Chinese) 435 448 41 4blt 6.4 0.62 sec No. 98 62 Hello (English) 449 45A 59 4blt 6.4 0.57 sec No. 99 63 Good-bye (English) 458 46E 05 4blt 6.4 0.61 sec No.100 64 Guten tag (Germane) 46F 487 05 4bit 6.4 0.77 sec No.101 65 Aufwiedershen (Germane) 488 4A1 59 4blt 6.4 0.82 sec No.102 66 Bonjour Monsieur (French) 4A2 48C 73 4bit 6.4 0.86 sec No.103 67 Au revoir Monsieur(French) 480 405 3F 4blt 6.4 0.78 sec No.104 68 Buenos dlas (Spanish) 406 4EO 50 4blt 6.4 0.76 sec No.105 69 Adios (Spanish) 4EE 5FB 77 4blt 6.4 0.45 sec 994 OKI Semiconductor MSM6596-XXX MSM6596-629 Voice Word Address Corresponding List (for time stamp and demonstration) M6388, M6388 M6588 length fs Playback Voice Words M6588 Stop Address Lower Address Start M6588Upper Stop (kHz) Time Address Stop Address Address No.106 6A (Korean) 4FC 522 58 4bit 8.0 1.24 sec No.107 68 (Korean) 523 549 17 4bit 8.0 1.22 sec No.108 6C ;:: Iv~= "5 ~;J: (Japanese) 54A 55E 4F 4bit 8.0 0.66 sec No.109 60 Cl J; ? fJ:? (Japanese) 55F 576 3F 4bit 8.0 0.75 sec No.110 6E Buongirno Signore (Italian) 577 5A1 27 4bit 8.0 1.35 sec No.111 6F Arrivederla Signore (Italian) 5A2 508 48 4bit 8.0 1.75 sec No.112 70 Salutation of Japanese 3 bits 509 5EF 49 3blt 8.0 0.95 sec No.113 71 Salutation of Japanese 4 bits SFO 600 65 4bit 8.0 0.95 sec No.114 72 Salutation of English 3bits 60E 61 F 15 3bit 8.0 0.73 sec No.115 73 Salutation of English 4bits 620 636 5F 4bit 8.0 0.73 sec No.116 74 Effective sound-1 637 660 29 4bit 8.0 1.32 sec No.117 75 Effective sound-2 661 68A 7F 4bit 8.0 1.34 sec No.118 76 Effective sound-3 688 6EB 29 4bit 8.0 3.08 sec No.119 77 Barking of dog 6EC 709 70 4bit 8.0 0.96 sec No.120 78 Roar of lion 70A 789 27 4bit 8.0 4.07 sec No.121 79 Lowing of cattle 78A 7E1 43 4bit 8.0 2.80 sec 995 OK.I Semiconductor MSM6597-XXX 3M-bit Serial Voice ROM GENERAL DESCRIPTION The MSM6597 is a Serial Voice ROM of a 1,048,576-word x 1-bit x 3-bank for voice system. The MSM6597 enables to continuing of the serial read operation with the input of a single external clock for the built-in internal address generating circuit. The internal address is automatically incremented to+ 1 with theread operation and the address can designate 1024-word to X direction and 1024-word to Y direction by inputting the external serial address. The bank is switched by CSl, CS2 and CS3. The combination of the Serial Voice ROM (MSM6597) to which the voice data is added, the Solid State recorder (MSM6388, MSM6588) and Serial Voice Register (MSM6389, MSM6587, MSM6586) can easily provide a record and playback system with a fixed message which is stored in the Serial Voice ROM. Note: MSM6388 or MSM6588 can not control only MSM6597-XXX without the addition of a Serial Voice Register. FEATURES • Configuration: • Power supply: 5V single voltage 1,048,576-word x 1-bit x 3-bank • Package: 24-pin plastic SOP • Serial access: (SOP 24-P-430-VK) Serial read cycle time: 2.5µs PIN CONFIGURAATION SADY SASY CS2 CS1 NC NC NC NC SADX SASX TAS VDD 997 '°'° (XJ .,, c: 3: z 0 "'3:en -I U'I co ..... 6 z a I Sin xI 0 Memory Cell )> :oT a T Q)> 10 m r- m)> (") Matrix eo 10 co 20 1 0 0 m r- C/) 0 -I :0 m 393216 x 8 -I :0 mm mm 2 :0 0 :0 C/) - :0 C/) C/) Voo 0 C/) GND CK LD CK "c5> 1 ~TEITT c;) 0 m MULTIPLEXER TEST01 ::c )> st Is I I~ Sin TEST02 s: :o1 m )> co eo 10 20 0 mI ~ I C/) -I :0 mm :0 C/) S3 Cf) I .. 1 MULTIPLEXER C/) CK LD.QJS__ - DOUT •~~ I CS2 CS CONTROLLER ~ CS3 OKI Semiconductor MSM6597-XXX ELECTRICAL CHARACTERISTICS Absolute Maximum Ratings Parameter Symbol Condition Rating Unit Power supply voltage Voo Ta= 25'C -0.3 - +7.0 v Input voltage V1N Ta= 25'C -0.3 - Vcc+0.3 v Storage temperature Tstg - -55 - +150 'C Operating Conditions Parameter Symbol Condition Range Unit Power supply voltage Voo GND = OV +3.5 - +5.5 v Operating temperature Top - -40 - +85 oc DC Characteristics (Voo = 3.5-5.5V, Ta= -40 - +85°C) Value Parameter Symbol Condition Unit Min. Typ. Max. "H" level input voltage V1H - 0.8xVoo - Voo-0.3 v "L" level input voltage V1L - -0.3 - 0.8 v "H" level output voltage VoH loH = -40µA Voo-0.3 - Voo v "L" level output voltage VoL loL = 2mA 0 - 0.45 v "H" level input current iiH V1H = Voo - - 10 µA "L" level input current l1L V1L = GND -10 - - µA Operating consumption current (1) loo tROC =2.5µS - - 15 mA - - --· Operating consumption current (2) lpo CS1 =CS2=CS3=Voo-0.2V - - 10 µA 999 MSM6597-XXX OKI Semiconductor AC Characteristics (VDD= 3.5 - 5.5V, Ta= -40 - +85°C) Value Parameter Symbol Unit Min. Max. CS • SAS set-up time tcss 1000 - ns SASX, SASY cycle time tssc 500 - ns SASX, SASY precharge time tsAP 250 - ns SASX, SASY pulse width tsAS 250 - ns Address set-up time tAS 100 - ns Address hold time tAH 100 - ns TAS set-up time tATS 500 - ns TAS • ROCK set-up time tTRS 500 - ns TAS pulse width trAS 250 - ns Read cycle time tRDC 2500 - ns Access time tACC - 1500 ns Output turn off delay time to FF 0 200 ns ROCK precharge time tRDP 1000 - ns ROCK pulse width tRD 1500 - ns 1000 -I 3· ::! s:: s· m (Q ~.... Ul 0 :::D -I §· CS2 (I) I e!.. g.:::1 )> Q. Q. n. Q CS3 (I) I aen en 5" "C SADX (I) ~ AXO ;:( AX1 X AX2 X AX3 X AX4 X AX5 X AX6 X AX? X AX8 X AX9 ~ c.... SASX (I) SADY (I) SASY (I) tcss tssc s:: "'s:: TAS (I) tTAS ~ ...... 0 0 ...... a MSM6597-XXX OKI Semiconductor Read Access Timing u.. u.. .s D.. c u .$ c .....a: c .$ E en a: .l= u $ § I- => 0 c 1002 OKI Semiconductor MSM6597-XXX TERMINAL FUNCTION EXPLANATION Pin Name 1/0 Function VDD - Power supply pin. GND - Ground pin. SADX I (SERIAL ADDRESS) This is pin for input of X address header of read. This pin can designate 1024-word and can input 1024 address data as serial data of 10-bit (AXO-AX9). SADY I (SERIAL ADDRESS) This is pin for input of Y address header of read. This pin can designate 1024-word and can input 1024 address data as serial data of 10-bit (AYO-AY9). SASX I (SERIAL ADDRESS STROBE) This is clock input pin for input of serial address data of X address to internal register. SASY I (SERIAL ADDRESS STROBE) This is clock input pin for input of serial address data of Y address to the internal register. TAS I (TRANSFER ADDRESS STROBE) This is input pin to set serial address data to be taken in address register to internal address counter. X address and Y address are taken in by fall ofiAS" pin. ROCK I (READ CLOCK) This is clock pin to read out information of data register. Internal operation starts with the falling edge of ROCK and the information of the data register is output from DOUT pin. In addition. internal address counter is automatically increased by the fall of ROCK. DOUT 0 (DATA OUT) lf'CSf, CS2 andCS3 or ROCK are held to "H", DOUT remains in the high impedance state. If information of "H" or "L" is read out during read, DOUT pin is set to "H" or "L" and information read out is held until ROCK is restored to "H". cs I (CHIP SELECT) When 'CSf goes "L", bank 1 is selected, when CS2 goes CS2 "L", bank 2 is selected. and when CS3 goes "L", bank 3 is selected. In CS3 addition, all input pins are disabled when 'CSf, CS2 and CS3 go "H". This pin can be used in parallel by connecting data output pins of multiple serial Voice ROM's. TEST I This is pin for LSI test. Input "L" level. TEST01 0 This is pin for LSI test. TEST02 Open this pin. 1003 MSM6597-XXX OKI Semiconductor APPLICATION CIRCUIT Application Circuit for MSM6588 DVDD DVDD' AVDD Voo Voo D3 SAil .s.8Q SADX ~ ~ D2 SASX "' ~ D1 MCU DO ml RWCK WE c ;;:: en en ~ CT "" w Dl/O DIN DOUT ;;:: en ;;:: "' "' CX> DOUT SASY SADY ;;:: 93 "' "'> RESET f CX> MON i)) XI MIN XT 4.096MHz MOUT ;:;.;. ;:;.;. LIN AOUT :] 1)) LOUT AMON FIN FOUT ADIN SG DGND AGND Note: When MSM6597 is driven by MSM6388 or MSM6588, a serial register is required. (MSM6597 can not operate without it.) 1004 Interface LSI OKI Semiconductor MSM6690 ROM Interface LSI DESCRIPTION TheMSM6690is a LSI capable of driving3 devices of 131,072 x 8 bit EPROM or MASKROM. DOUT TEST01 The MSM6690 is provided with a built-in internal TEST02 address generator circuit and one external clock TEST input enables continued serial read operations. m The internal address counter is automatically ROCK incremented by 1 each time of read operation. A16 The external serial address input allows 1,024 A15 words to be addressed toward the X-direction, and 1,024 words toward the Y-direction. A12 A14 A7 42 Pin A13 The ROM is selected through CSl, CS2 and CS3. A6 DIP AB A5 A9 By combining a MSM6690, a voice data-stored A4 ROM, an OKI solid recording LSI (MSM6388 or A3 MSM6588), and an OKI serial register (MSM6389, A2 MSM6587 or MSM6586), a record player with a A1 CE3 fixed message can be easily structured. And the AO 07 MSM6690 can be used for evaluating voice data to DO 06 be stored in a serial voice ROM (M6595, M6596, or 01 05 M6597). 02 04 vss 03 " When driving theMSM6690 with the MSM6388 or the MSM6588, a serial register is required. FEATURES ... ~~~ :;: "':;: ~ ~ :;: <~ 1~<.> ~<.> • Capable of driving 3 devices of 1 Mbit EPROM • Capable of driving 3 devices of 1 Mbit MASKROM SASY 07 • Supply voltage: Single 5V SASX 06 • Package: 42 pin plastic DIP (DIP42-P-600) SADY 05 44 pin plastic QFP (QFP44-P-910- SADX 44 Pin 04 VK) voo OFP 03 VDO VOO OOUT vss TEST01 02 TEST02 01 TEST DO m AO "' :::: ~ Sl! :;: ~ "'< "'< <"' !:;;: ~ < AG A7 CAS4 AB CAS3 A9 CAS2 44 Pin A10 CASf FLAT VDD VDD RWCK TEST DOUT N.C. ~ N.C. N.C. N.C. 1017 MSM6691 OKI Semiconductor Circuit Configuration TEST GND Voo + T TT SAD ::t_ Sin Pour 10 _.. --,. Row Address 10 _.. --,. Column or Row 11 ... Address 11 Counter Address Multi- AO to A10 plexer CK j ~ LD ~ Multiplexer rl A10 ,_=r 11 ~R Column Refresh !-- !-----" Address Counter XT osc Counter XT I .. ~ WE Timing RWCK and 4M/1M Control ~ CS1 to CS4 4 > XWE DRAM RAS GAS CONTROL BANKO BANK1 DO -. D1 LE 01 ~ 00 .. Control 4 CAS1 to CAS4 BKLE Dour ....- XDIN 1018 OKI Semiconductor MSM6691 Electric Characteristics Absolute Maximum Ratings Item Symbol Conditions Rated Value Unit Power Voltage VDD 0.5 to +7 v Input Voltag VI Ta= 25·c 0.5 to VDD+0.5 v Output Voltag Vo Standard is 0.5 to VDD+0.5 v Input Current II Vss = OV 10to +10 mA Output Current lo 20 to +20 mA Storage Temperature Tstg - 65to+150 ·c Operation Range VSS =OV Item Symbol Rated Value Unit Power Voltage VDD 4.5 to +5.5 v Operation Temperature VOPR oto +70 ·c Oscillation Frequency fosc 8 MHz 1019 MSM6691 OKI Semiconductor DC Characteristics (Ta = 0 to 70 ·c, VDD = 5V±10%, Vss = OV) Rated value Item Symbol Conditions Unit Minimum Standard *1 Maximum H Level Input Voltage V1H - 3.5 - Voo+0.3 v L Level Input Voltage V1L - 0.3 - 1.5 v H Level Input Current l1H V1H = Voo - 0.01 10 µA L Level Input Current l1L V1L = Vss 10 -0.01 - µA 3-state Output Leak IOZH VOH = Voo - 0,01 10 µA Current (Including open drain output) IOZL VOL= Vss -10 -0.01 - H Level Output loH = -5.0mA 2.4 4.20 v VoH Voo Voltage L Level Output Voltage VoL loL = +5.0mA Vss 0.24 0.5 v Operating Current Output Open VIH=VO Consumption loo fOSC=8MHz VIL=Vss - - 3 mA (Note)*1 Standard when Voo = 5.0V, Ta = 25°C 1020 OKI Semiconductor MSM6691 AC Characteristics (Ta =0 to 70 °C, Voo = 5V±10%, Vss = OV) Item Symbol MIN TYP MAX Unit CS,• SAS Setup Time tcss 1000 - - ns SAS Cycle Time tssc 100 - - ns SAS Precharge Time !SAP 500 - - ns SAS Pulse Width !SAS 500 - - ns SAD Address Setup Time tAS 200 - - ns SAD Address Hold Time !AH 200 - - ns TAS, Setup Time tATS 800 - - ns TAS,• RWCK Setup Time tTRS 800 - - ns TAS Pulse Width tTAS 400 - - ns Read/Write Cycle Time IRWC 1800 - - ns Access Time tACC - - 875 ns Output Turnoff Time to FF - - - ns RWCK Precharge Time IRWP 90 - - ns RWCK Pulse Width IRW 900 - - ns Read/Write Instruction Setup Time tWRS 20 - - ns Read/Write Instruction Hold Time tWRH 200 - - ns DRAM• DIN Data Setup Time tos 0 - - ns DRAM• DIN Data Set Hold Time tDH 1000 - - ns RWCK • RAS, Delay Time tRRS 125 - 375 ns RAS, Pulse Width - IRAS - 750 - ns CAS, Pulse Width tCAS - 500 - ns Low Address Setup Time IASR - 125 - ns Low Address Hold TimetRAH !RAH - 125 - ns Column Address Setup Time IASC - 125 ns Column Address Hold Time ICAH - 500 - ns Write Instruction Setup Time twcs - 375 - ns Write Instruction Hold Time IWCH - 625 - ns XDIN Data Input Setup Time toes 250 - - ns XDIN Data Input Hold Time IDCH 0 - - ns 1021 MSM6691 OKI Semiconductor AC Characteristics (Continued) Item Symbol MIN TYP MAX Unit Refresh ~cle Time tRRC - 8000 - ns Refresh RAS Pulse Width tRRAS - 1000 - ns tRRAS2 125 - 875 ns Refresh Precharge Time tRRP2 - 125 - ns Bank Select Setup Time tBKS 1000 - - ns Bank Select Hold Tim tBKH 1000 - - ns m Ul (j) tssc c. §. c. Cll en 0 § SAS" (I) S" §- n. ...c: "O 0 .... SAD (I) ,,,//~/7\.:.:::_}"f.CLL.C.l\:...:.:..J~ I ::1 3 I. tATS 'l~TA~I s· $2 TAS (I) ~ I owe j. trns .j: tRw -~I• tRwP :1 0 '< (') RWCK (I) CD' twRH twRs twRH WE (I) /CCC?/CCCCC c c c c c c c c c c c c c c c c c c c c c c c c c c c c c 1 f~~I. toH to FF Dour(O) ---+----~ High-Z High-Z Serial Address Input Read Cycle Write Cycle 3: "' 3: ...... 0 N (JJ !.... ...... 0 N c 3: (/) """ ~ 3: s: I.... tRWC c 1: tRw •I• tRwP :1 ~· CD RWCK (I) -t twRs 3· twRH twRH 3' co WE (I) ~ IRAS a: CD RAS (0) ---+-___; fJ0 'ffe' CA5n (O) I• tcAs ,j =E tcAH = CD -t AO to A10 RA RA (Refresh Address) ColumnADR RA 3· (0)-----,· .!,. XWE (0) I• twcs •I• twcH •I ~ MSM6388DIN -------------~~--------------------~~----- Output VALID VALID ~ ~- DRAM DIN -------------~ ~--------------------~ ~----- Input @' ~ c 0 :XI )> s:: ...~ Ul c oc j.--~·_RAS_2- - - ~ !. t/I :::r CASn (0) AO to%~ RAm 1 X RAm+1 J X RAm+2 11 ~ RAm+3 I ~RAm+3 m~---RA_m_+4 _ _ __ 0 Cl !: Execution Address RAn J t Execution Address RAn+1 '-------v----' When RNJ execution timing and refresh timing overlap ~ ~ ~- fr ~ c :::c )> ~ ~ c:::l. """ Ul CD < ~ ~- -t § 3· §' XT (I) _IUlfl_fUlJl_- - __ _ s· (Q §-.... ~ ::r ~ :J ~ !~~~2 ____ _ _ ___ iBRJl~2- ___ _ lRRAS .___ ___,__ lRRP2 r+ 3· RAS (0) -----t-----__! s· (Q I» :J c. CASn (0) i., ~ C/I AOto%~ RAm ® ColumnADR X RAm+1 /l RAm' ~1 ::r r+ I Execution ReadNJrite 3· RAS Only Refresh Timing Timing RAS Only Refresh Timing s· (Q 0 < ~ ::::!.. I» ~ I s::en _. s:: O> 0 O> N 'I .... When not usin 3: BKLE (I) "L" BANKO) BANK1 (I} BANKn-1 ~ I BANKn I luuuuuu a Ul >'-' .;;;"' vooo ~ ~gwsw I~ '-' >'-' vooo~~gwsw >"' "' ~ '-' >'-' .;;;"' vooo~ ~gwsw I~ >"' '-' ~ f- vooo~~gwsw "' I~ 1;: 0Cl Ci ::J ~ 2 ~-~ . 0 o mo 1 ~ I~ I~ Ci 1500 ~5 1&3 5 1~ 5 i~~ E~o 2 <-<:;;: x .... ~699WSW f- ~ en >"' "' ~ ren I"'en ~ltn~~,~~ 0 0 LU<<><:Z Qf-CCCCCCC!l 1032 Q .. I~ .... en 0 t"l :::i o" tl) "' ( MSM6588) ;, DVO ~ffllGK TAS ... --.. TAS RWGK XDIN DOUT DIN tl) IS' ..... t"l WE WE tl) 0... co co DOUT i- DOUT ~ AO AO g <( 0 0 <( 0 0 <( 0 0 o" '-<: ~ ~ DIN f----- 18 l l ::;;: ::;;: ::;;: ::;;: ... CST tt:l BANKO BANK1 CAS4 z~ BKLE - GAS GAS GAS GAS .!"""' GND l.QND TEST 4M/1 M Vss Vss Vss Vss II I I 71T 1~ Li I BANKO~ BANK1 I \II I I 3:: I~ ...... 0 (,;) (,;) OKI Semiconductor MSM6791 DRAM INTERFACE LSI GENERAL DESCRIPTION MSM6791 can be used as a memory for which DRAM stores a voice data by connecting OKI solid- state recording and playback LSis (MSM6788 and MSM6688). FEATURES • DRAM (x 1-bit configuration) 1M-bit DRAM (MSM511000A, MSM511001A) : 8 pcs. can be connected. 4M-bit DRAM (MSM514100A, MSM514101A): 8 pcs. can be connected. 16M-bit DRAM (MSM5116100) : 2 pcs. can be connected. Note: MSM511002A/MSM514102A that corresponds to a static column mode can not be used. • Power supply voltage: SV single rail • Built-in refresh circuit (RAS only refresh) • Original oscillation frequency: SMHz • Bit rates: lOkbps, 12.Skbps, 16kbps in MSM6788 connection (SkHz sampling fixation) 7.Skbps, 9.4kbps, 12kbps in MSM6788 connection (6kHz sampling fixation) 16kbps-32kbps in MSM6688 connection (4kHz-8kHz sampling) • Package: 44-pin plastic QFP (QFP44-P-910-VK) 1035 MSM6791 OKI Semiconductor PIN CONFIGURATION A2 A3 A4 0 CASS CAS4 CAS3 AS CAS2 A6 44-Pin CAS1 VDD FLAT VDD A7 TEST AS M2 A9 M1 ~ A10 CS4 A11 CS3 Note: Open the N.C. pin. 1036 OKI Semiconductor MSM6791 BLOCK DIAGRAM TEST TEST VSS VSS VDD VDD SAD ( 1 Sin r 13 13 12 Column ..... Pout ~ and Row Column ~ AO or Row Address Address Q A1 Counter 3 CK 1 .... LO CK ,----. Multi- plexer Row.A11 y A2 Q A3 10 ¢ A4 1 Address Multi- A5 ( plexer x 9 A6 ;:> A? ~ R I-+- ') AB XT 1 ( - - osc Column Address Counter Rerfresh Counter 12 ;:> A9 ;:> A10 ') A11 1 WE ") CAS1 RWCK & A ') CAS2 ) CS1 c,> CAS3 CS2 v- Timing Q CAS4 Controller CS3 c'.> Q CAS5 CS4 v- DRAM Controller Q CAS6 i.- h> ~ y CAS7 A CAS M1 y CASB Controller M2 -/ ) XWE ') RAS DOUT XDIN 1037 MSM6791 OKI Semiconductor ELECTORICAL CHARACTERISTICS Absolute Maximum Ratings Parameter Symbol Conditions Rating Unit Supply voltage VDD -0.5 - +7 v Input voltage VI Ta= 25·c -0.5 - VDD+0.5 v Output voltage Vo -0.5 - VDD+0.5 v Input current II vss = ov -10-+10 mA Output current lo -20- +20 mA Storage temperature Tstg - -65- +150 ·c Operating Conditions vss,.ov Parameter Symbol Rating Unit Supply voltage VDD 4.5 - 5.5 v Operating temperature TOP -40 - +85 'C Oscillation frequency fosc 8 MHz DC Characteristics (Ta" -40-+ss·c, VDD" 5V:t10% vss" OV) Rating Parameter Symbol Conditions Unit MIN. TYP .. 1 MAX. "H" level input voltage VIH - 3.5 - VDD+0.3 v "L" level input voltage VIL - -0.3 - 1.5 v "H" level input current llH VIH = VDD - 0.01 10 µA "L" level input current Ill VIL= VSS -10 -0.01 - µA 3-state output leak current IOZH VoH = VDD - 0.01 10 µA (includes open-drain output) IOZL VOL= VSS -10 -0.D1 - µA H" level output voltage VoH !OH= -5.0 mA 2.4 4.20 VDD v "L" level output voltage Vol IOL = 5.0 mA vss 0.24 0.5 v Output open lose= BMHZ Operational loo VIH = VDD - - 3 mA current consumption VIL= VSS (Note) ·1 TYP means VDD = 5.0 V, Ta= 25·c 1038 OKI Semiconductor MSM6791 AC Characteristics (Ta =-40 - +85°C, VDD = 5V :t 10%, vss =OV) Parameter Symbol MIN. TYP. MAX. Unit CS•SAS setup time tcss 1000 - - ns SAS cycle time tssc 1000 - - ns SAS precharge time !SAP 500 - - ns SAS pulse width !SAS 500 - - ns SAD address setup time !AS 200 - - ns SAD address hold lime !AH 200 - - ns TAS setup time !ATS 800 - - ns TAS•RWCK setup time ITRS 800 - - ns TAS pulse width ITAS 400 - - ns Read/ write cycle time IRWC 1800 - - ns Access time !Ace - - 875 ns Output turn off time !OFF - - - ns RWCK precharge time 1RWP 900 - - ns RWCK pulse width IRW 900 - - ns Read/ write instruction setup time twRS 200 - - ns Read/write instruction hold time twRH 200 - - ns DRAM•DIN data setup time IDS 0 - - ns DRAM•DIN data sethold time IDH 1000 - - ns RWCK•RAS delay time 1RRS 125 - 375 ns RAS pulse width IRAS - 750 - ns CAS pulse width tCAS - 500 - ns Row address setup time IASR - 125 - ns Row address hold time !RAH - 125 - ns Column address setup time IASC - 125 - ns Column address hold time ICAH - 500 - ns Write instruction setup time twcs - 375 - ns Write instruction hold time twCH - 625 - ns XDIN data input setup time toes 250 - - ns XDIN data input hold time tocH 0 - - ns Refresh cycle time 1RRC - 8000 - ns IRRAS - 1000 - ns Refresh RAS pulse width IRRAS2 125 - 875 ns Refresh precharge time 1RRP - 125 - ns 1039 ..... ::t 3: * Serial Address Input Timing & Read/Write Cycle 3:: m 0 ::c ~ ~ co .... ~ csn (I) SAS (I) SAD (I) ''''''F''V\.'...:.=./mL.:.:J TAS (I) I I • trns , : IRw + tRwc tRwP : I RWCK(I) twRH tWRs twRH WE (I) '''YYY'>'''"'YY''YY''YYY''''''''''''''''''''''''''''''' ~ ~ w DOUT (O) --+------, High-Z High-Z !· §' ~ Serial address input Read cycle Write cycle ~ loll DRAM Drive Timing (Write cycle at recording) ~ ~- IRwc §' 1 : IRw •I • tRwr : I RWCK(I) fr lwRH iwRS twRH WE(I) IRAS RAS (0) ---+--~ CASn (0) ----+---+-~ !As~1. lcAH AO to A11 (0) XWE (0) RA 11· I lwcs •!• lwcH -r1-~~~~~=:r ·: RA (refresh address) ! I OW ColumnADRS II r·- - - RA t - - - - · I/ 01/0 output of MSM6688/678B DIN;,,,. I _ - - s:: VALID Of DRAM VALID "'s:: ...... .... O> $'. ..... .... --' ~ ~ CD ...... ...... 0 3:: t "'3:: ~ .... CD DRAM Drive Timing (When execution timing and refresh timing overlap) XT (I) ___fLflflfUliL----- --- Internal 1/2XT Internal execution RAS _______ !fif!A~L _______ 'RRAS IRRAS2 _______IJJJJP.132 ________ _ IRRAS IRRP I •I I• IRRP IRAS RAS (0) - - - 1 - - - - - - - ; lcAS CASn (0) AOtoA11(0) RAm X]D( ColumnADR X RAm+1 n RAm' ~ RAS-only refresh timing Read/write execution timing RAS-onlv refresh timin ~ as2 i OKI Semiconductor MSM6791 PIN DESCRIPTION Pin name 1/0 Pin explanation VDD - Powersu~n vss - GND pin XT I Oscillator connecting pin XT 0 Oscillator connecting pin TEST I Test pin for LSI. Use this pin by settif!g_to 'L' level. TEST I Test pin for LSI. Use this pin ~setting to 'H' level. SAD I Pin to input the read/write head address SAS I Clock pin to take the serial address data in the internal register. Input pin to set the serial address data taken in the address register to the internal address TAS I counter Clock input pin to read out and write the information of the data register. The internal operat- ion starts by the fall edge of RWCK. In a read mode, the data taken in XDIN is latched and it is RWCK I output to DOUT pin. In a write mode, the Dl/O output data of MSM6788 (MSM6688) is taken in the DIN of DRAM. In addition, the internal address counter automatically increments by the fall edge of RWCK and the address data output from AO to A11. WE I Pin to select a read mode and write mode XWE 0 DRAM control pin AO-A11 0 DRAM address output pin RAS 0 DRAM control pin CAS1 ' 0 DRAM control pin CASS XDIN I Pin to input the data DOUT 0 Pin to output the data CS1 Pin to input the chip select data in connecting DRAM CS2 By inputting a "L" level signal to each pin, up to 32M-bit of memory (BM-bit of memory for I CS3 each pin) can be controlled for 4 pins. CS4 These pins become the input pins to select the highest address in 16M-bit DRAM connection. Input pin to set the connecting pattern of DRAM. Connecting M1 M2 M1 DRAM connecting pattern mode I Mode o L L 1M-bit DRAM x 1-8pcs. connectable M2 Mode 1 L H 4M-bit DRAM x 1-8pcs. connectable Mode 2 H L (4M-bit DRAM x 1pcs.) + (1 M-bit DRAM x 0-3pcs.) connectable Mode 3 H H 16M-bit DRAM x 1-2pcs. connectable 1045 MSM6791 OKI Semiconductor FUNCTIONAL DESCRIPTION The relations between CSn and CASn in MSM6791 by connection mode are listed-Oelow. Connection mode 0 Connection mode 1 M1 = M2 = "L" CS2 - CS4 = "H" M1 = "H", M2 ="L" ' Chip Select pin of MSM6791. Connection to "CAS" pin of Chip Select pi~MSM6791. Connection to GAS pin of Connection to MSM6788/6688 1M·blt DRAM is made via this Connection to CSn MSM6788/ 4M·bit DRAM is made via this is made via this pin. pin. 6688 is made via this pin. _Qjn. CS1 CAS1 CAS2 'CS2 *1 'CAS3' CAS4 CS1" CAST -CASS 'CS3 *1 CASS CASS 'CSif *1 CAS7 CAS8 Connection mode 2 Connection mode 4 M1 = "L", M2 = "H", CS2 - CS4 = "H" M1 =M2= "H" Chip Select pin of MSM6791. Connection to GAS of 4M/ Chip Select pin of MSM6791. Connection to GAS of 16M·blt Connection to MSM6788/6688 1M·bit DRAM is made via Connection to MSM6788/6688 DRAM is made via this pin. is made via this pin. this pin is made via thi~n. To GAS of 4M-bit DRAM CS1" CAS1 CAS1 To GAS of 1M-bit DARM CS2 CS1" CAS2 To GAS of 1M·bit DARM CAS3 CS3 *1 Ci'iS2 To GAS of 1M-bit DARM CAS4 CS4 * 1 *1) In the connection mode 1 and connection mode 3, some input pin may be needless depending on the number of DRAMs conneced. At this time, the unused pin should at "H" level. Example) In the connection mode 1, when 1to2 4Mbit DRAMs are connected, unused input pins should be treated as shown below. CS2, CS3, CS4 : "H" level 1046 OKI Semiconductor MSM6791 OSCILLATOR OF MSM6791 Refer to the following circuit on the oscillator of MSM6791. (LSI internal) C1 To internal circuit XO Oscillation circuit C2 Oscillator (quartz or ceramic) Figure 1. Quarty/Ceramic Oscillation Circuit Maker Oscillation frequency Oscillator (X) Type C1=C2 RFB Kyocera Ceramic KBR-8.0M 33pF Ceramic Kyocera KBR-8.0MWS -*2 (chip type) BM Hz 1MQ Murata Ceramic CSA8.00MTZ 30pF Ceramic Murata CSAB.OOMTW -*2 (chip type) *2) KBR-8.0MWS and CSA8.00MTW include C1 and C2. The configuration and resistance value of the oscillation circuit and the value of the capacitor differs depending on the oscillation frequency and the oscillator used. When using an oscillator circuit, evaluate the characteristics according to the actual conditions of use. Determine the circuit configuration and the circuit constants. 1047 -' 0 .,,.,, )> 3:: *"' 00 .... "' 3:: 1M-bit DRAM x 8 0)> .... (J) .... 0 0 0 )> 0 0 0 )> 0 )> 0 )> 0 0 0 )> 0 0 0 )> .... m AG A6 )> CJ) AS AS 3 :§ ~ ~ :§ ~ -:::i ~ :§ A4 A4 s:: A3 s:: en s:: en en A3 A2 A2 s:: 0 s:: s:: m ~ m °' m A1 A1 " 0) 0) 0) 0) CS1 CS1 " ~ AO AO GAS VSS CS2 CS2 CS3 CS3 CAS1 CS4 CS4 CAS2 CAS3 CAS4 CASS J M1 M2 CAS6 CAS7 I J ~ XT CASS "" Ul Q ~ !ml 0 Ul CD > .... 0 §· AVDD DVDD I I I TEST VDD VDD I I z ::; vcc Q @" RAS RAS ::D Q. SADX SAD 0 ..... XWE WE 0 SAS SAS XDIN c TAS TAS DOUT S: s: s: s: s: s: s: s: =t RWCK RWCK A11 DIN m s: U) s: U) s: U) s: U) s: U) s: U) s: U) s: m RSEL1 WE WE A10 A10 ~ ~ ~ ~ ~ ~ ~ ~ ~ ...,, RSEL2 01/0 DOUT A9 A9 -"" ~ ~ ~ ~ ~ ~ ~ ~ 3l:: A8 A8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 A7 A7 )> )> )> )> )> )> )> )> A6 A6 r3 w ~ c:;; :§ 3 :§ m A5 A5 ~ ~ ~ ~ en s: s: U) Cf) s: U) A4 A4 s: 0 s: (j')~ (j') s: (j') A3 A3 A2 A2 "' "' (j') co co © A1 A1 co co ~ AO AO CS1 CS1 GAS CS2 CS2 CS3 CS3 CAS1 CS4 CS4 CAS2 CAS3 CAS4 CASS M1 M2 CAS6 CAS7 XT CASS Xf AGND DGND I 8MHz~or{ TEST VSS VSS J; J; Figure 3. Application Circuit Example in eight 4M-bit DRAM connections. s:: (/) (connection mode 1) s::en ...... ...... 0 *"" \0 .... CD ...... 0 l> 3: (J1 0 "ti "ti r- "' 3: O> 4M-bit DRAM x 1 1M-bit DRAM x 3 ...... 0 co ..... l> ,-A-, .... 0 AVDD DVDD I I I TEST VDD VDD I I I I I I z 0 vcc vcc vcc vcc $ 0 ~'W~ RAS RAS RAS RAS RAS SAS "SAS XWE WE WE WE nE c TAS TAS XDIN DOUT DOUT DOUT DOUT ::j RWCK RWCK All f- L---.j DIN DIN DIN DIN m RSEL1 WE WE A10 A9 AlO S:: A9 rn A9 s:: rn s:: rn A9 s:: rn ~ RSEL2 Dl/O DOUT A8 A8 s:: A8 s:: s:: A8 s:: 3: A7 A7 ~ A7 ~ ~ A7 ~ "ti r- A6 ~ ~ ~ AS A6 0 0 0 AS 0 0 m AS AS 00 AS 0 AS Ch s:: s:: s:: rn A4 A4 )> A4 0 )> 0 )> M 0 )> rn rn c;; s:: 0 s:: CJ)~ s:: CJ) A3 A3 ~ A2 ~ A3 A2 1\3 ~ ~ A3 -:;;: A2 ~ ..... CJ) CJ) ..... A2 ()) ()) ()) ()) ~ Al A1 A1 Al AO AO AO AO CS1 CSl CS2 CS2 GAS VSS GAS VSS GAS vss GAS vss CS3 "CS3 CASl CS4 + "CS4 CAS2 M2 CAS3 Ml CAS4 CASS CASS CAS7 Q XT Xf CAS8 Figure 4. Application Circuit Example in one 4M-bit DRAM ....~ C/l and three 1M-bit DRAM connections. 0 r- ....~ 16M·bit DRAM x 2 en 0 (!) > .... 0 §· z :::l AVDD DVDD I I TEST VDD VDD I I Q §- VCC VCC vcc vcc ~ :0 0.... RAS RAS RAS 0 c ~·m~D XWF. WE WE SAS SAS OOUT :::j XDIN DOUT TAS TAS DIN DIN m RWCK RWCK A11 A11 A11 ~ RSEL1 RSEL2 WE Dl/0 WE DOUT A10 A9 AB A10 :S:: A9 ~ A8 ~ A10 :S:: A9 ~ AB ~ .,,r-3: A7 A7 A7 a; m A6 '" °' ~ '" en ;;;:: ;;;:: ;;;:: A5 (/) (/) (/) A4 ;;;:: 0;;;:: ;;;:: °' -.J ~ a> a> °' -.J A3 A2 00 00 ....i 0 (Q VI ....., ..... -' 0 Ul 4M-btt DRAM x 8 ,,,, )> 3:: fl) N r 3:: J_J 0 ~ co .... ~ AVDD OVDD 'ITTT VDD VDD vcc m m SAO XWt XWt 0 m m XDIN DOUT z DIN 0 11 A11 llWCK wr A10 :0 qt IRSEL1 /Ill 11.111 DOUT NJ 0 RSEL2 A7 AS c P!5 ::j A4 DROM f-------1 A3 m ~ ;;:: ;;:: "2 "' s: A1 - ;;:: ,,s:: (/) ;;:: 0 AO n ~I I.ii 11111 <:Sf "' ili m-;£3 r 1 ~~ m ~ m CJ) CAS2 = c:AS4 Ci\S5 C7iS6 ?'J§ C7iS6 AGND DGND 1l vcc vcc Figure 6. Application Circuit Example When DRAM is used as a recordy/ playback memory of MSM6788/ 6688 and two 2M-bit serial voice a ~ ROM (MSM6596-XXX) are used. ~- g- ~ TEST VSS TEST VSS Pitch Control OK.I Semiconductor MSM6322 PITCH CONTROL LSI FOR THE SPEECH SIGNAL GENERAL DESCRIPTION The MSM6322 converts in realtime the pitch 16 steps by four binary input lines. of the speech signal in a range of one octave upward or downward. Since a microphone preamplifier and a low pass filter are built in, the pitch conversion set Two pitch control methods can be selected. can easily be configured by connecting a mi- One is to change the pitch in 17 steps by two crophone, amplifier and speaker in the pe- switch inputs, and the other is to select one of ripheral circuit. FEATURES • Built-in microphone preamplifier • SV single power supply • Built-in low pass filters (4th order LPF • Silicon construction (Si gate CMOS IC) on input and 3rd order LPF on output) Note) Designed for application to home • Built-in 8-bit AD converter electronic equipment (toys). • Built-in 9-bit DA converter • 24-pin plastic SOP • Speech pitch alterable in 17 steps (SOP24-P-430-K) • Oscillation frequency at 4 MHz PIN ASSIGNMENT (Top View) 24 Lead Plastic SOP UP.C(P2) 0 DVDD DW.C(P1) XT PD(P3) XT STB/ACT DGND PRST(PO) N.C. MS SG TEST1 AGND TEST2 SGC DAO MICIN FIN2 LOUT AOUT LIN AVDD FIN1 1055 MSM6322 OKI Semiconductor CIRCUIT CONFIGURATION MICIN LOUT LIN FIN1 DAO FIN2 LPF SG SG 8-bit ADC 9-bit DAC AVDD SGC DVDD AOUT PD(P3) AGND UP.C(P2) VOICE DW.C(P1) CHANGER DGND PRST(PO) Circuit MS osc XT STB/ACT XT TEST1 TEST2 ELECTRICAL CHARACTERISTICS • Absolute Maximum Ratings Parameter Symbol Conditions Rating Unit Supply voltage (1) DVDD -0.3 - +7.0 v Supply voltage (2) AVDD For DGND and -0.3 - +7.0 v Analog input voltage V1N AGND AGND -0.3 - AVDD +0.3 v (ANALOG) Ta= 25°C Digital input voitage V1N DGND -0.3 - AVDD +0.3 v (DIGITAL) Storage temperature range Tstg - -55 - +150 oc • Operating Ratings Parameter Symbol Conditions Rating Unit Supply voltage (1) DVDD For DGND 4.0 - 6.0 v Supply voltage (2) AVDD For AGND 4.0 - 6.0 v Rated operating Top - --40 - 85 oc temperature range 1056 OKI Semiconductor MSM6322 • DC Characteristics (Ta= -40-+85°C, Fosc = 4MHz, DVDD = AVDD = 4.5V-5.5V, DGND = AGND = OV) Limits Parameter Symbol Conditions Unit Min. Typ. Max. "H" input voltage (excluding XT and RST) V1H(1) - 3.6 - - v "H" input voltage (applicable to XT and RST) V1H(2) - 0.8 xVDD - - v "L" input voltage V1L - - - 0.8 v "H" input current for match 3, 4, 6, 22, 23 pin llH1 V1H = DVDD - - 10 µA 'H" input current for match 1, 2, 5, 7, 8 pin hH2 V1H = DVDD - - 400 µA 'L" output current l1L V1L = DGND -10 - - µA Output impedance LOUT R0LOUT - - 15 - kn Output impedance DAO ROoAo - - 10 - kn AOUT ROAOUT - - 15 - kn FIN1 R0FIN1 - - 15 - k.Q Input impedance MICIN RIMICIN - - 100 - Mn LIN RluN - - 100 - Mn FIN2 RIFIN2 - - 30 - Mn AD conversion precision IVADE I AVDD = DVDD = 5V - - 40 mv DA conversion precision IVoAE I AVDD = DVDD = 5V - - 40 mv No load Operating current consumption loo In case of 4 MHz - - 10 mA oscillator Standby current los In case of 4 MHz - - 7 mA oscillator with STB/ACT'="H" Power down current lop In case of PD= "H" - - 10 µA 1057 MSM6322 OKI Semiconductor • AC Characteristics (Ta= -40-85°C, Fosc = 4MHz, DVDD = AVDD = 4.5V-5.5V, DGND = AGND = OV) Parameter Symbol Conditions Min. Max. Unit DAO output delay from falling edge of STB/ACT tcso - - 15.36 ms DAO output delay from falling edge of PD tpoo - - 15.36 ms Pulse width of PRST, UP.C, DW.C pulses tuoPw - 61.44 - ms Time between UP.C, and DW.C pulses tRUD - 30.72 - ms Scale change delay from positive edge of PRST tcHG1 - 61.44 - ms Scale change delay from falling edge of UP.C and DW.C tcHG2 - - 15.36 ms Maximum operating frequency tcMAX - - 4.5 MHz • LPF Characteristics (Ta= 25°C, AVDD = DVDD = 4.5V-5.5V,, DGND = AGND = OV) Frequency Gain characteristic (dB) (Hz) Min. Typ. Max. 300 - le -3.0 - 3.0 le - -3.0 - 2 xlc - - -20.0 See the pitch conversion Table 1058 OKI Semiconductor MSM6322 TIMING DIAGRAM STB/AITl'(I) PD (I) 1 tcso tpoo 1/2AVDD DAO (0) tuoPw PRST (I) 4 tuoPw ... tRUD UP.C (I) DW.C(I) tcHG1 tcHG2 Pitch change Add (Reduce) pitch timing Pitch Step is 8 (no change) by PRST step by UP.C (DW.C) MSM6322 OKI Semiconductor • PIN FUNCTION (Setting method ="UP/DOWN") [MS pin fixed to "L"] Pin Name 1/0 Function MS I Mode select pin always connected to the "L" level. MICIN I Connects the microphone input via a coupling capacitor. LOUT 0 Output obtained by amplifying the audio signal input from the microphone. LIN I Input pin for connecting the LOUT output or line out signal from other audio equipment. FIN1 0 Sets the input audio signal amplitude in combination with the LIN pin. The gain of the built-in amplifier can be set by two pins each of MICIN and LOUT, and LIN and FIN1. UP.C I Pulse switch input to raise the pitch by one stage at a time. DW.C I Pulse switch input to lower the pitch by one stage at a time. The pitch varies by one stage upward (or downward) each time a pulse is input to the UP.C (or DW.C) pin along the 17 stages shown in the pitch conversion table. Cyclic up or down operation is also possible. STB/ACT I Standby/active pin. When the standby/active is at the "H" level, the processing is interrrupted by stopping only the clocks other than the oscillator clock. The DAO pin outputs 1/2 VDD for about 15ms (in case of 4MHz oscillator) after the standby/active goes to the "L" level. PD I Power down pin. All clocks including the oscillator are stopped when the power down pin is set to the "H" level. The DAO pin outputs the "L" level in this state. It requires ten milliseconds after the power down pin is set to the "L" level until clock stabilization. PRST I Reset pin to connect the pulse switch input to set the scale to stage 8 upon resetting. TEST1 I Test pins to be fixed to the "L" level. TEST2 XT,XT 1,0 Crystal oscillator connecting pins SG,SGC I Reference voltage pins. DAO 0 DA converter output. FIN2 I Input pin for built-in filter (for output). AOUT 0 Output pin for built-in filter (for output). DGND - Power supply pins. DVDD AGND - Analog power supply pins. AVDD 1060 OKI Semiconductor MSM6322 • PIN FUNCTION (Setting method= "BIN") [MS pin fixed to "H"] Pin Name 1/0 Function MS I Mode select pin always connected to the "H" level. MICIN I Pin for connecting the microphone input via a coupling capacitor. LOUT 0 Output obtained by amplifying the audio signal input from the microphone. LIN I Input pin for connecting the LOUT output or line out signal from other audio equipment. FIN1 0 Sets the input audio signal amplitude in combination with the LIN pin. The gain of the built-in amplifier can be set by two pins each of MICIN and LOUT, and LIN and FIN1. P3 I 16 stages are set by 4-bit of P3 (MSB) to PO (LSB). Stages o(p3=P2=p1 =P0=0) to P2 16 (P3=P2=P1 =P0=1) shown on the pitch conversion table can be set. P1 PO STB/ACT I Chip select pin. The processing is interrupted by stopping clocks other then the oscillator when the chip select pin level "H". The DAO outputs 1/2 VDD for about 15ms (in case of 4 MHz oscillator) after the chip select pin is set to the "L" level. TEST1 I Test pins to be fixed to the "L" level. TEST2 XT,XT 1,0 Crystal oscillator connecting pins. SG,SGC I Reference voltage input pins. DAO 0 DA converter output pin. FIN2 I Input pin for built-in filter (for output). AOUT 0 Output pin for built-in filter (for output). DGND - Power supply pins. DVDD AGND - Analog power supply pins. AVDD 1061 MSM6322 OKI Semiconductor FUNCTIONAL EXPLANATION • Analog Input/output (MICIN, LOUT, the input gain. Fig.1 shows the basic circuit. LIN and FIN1) Amplifier 1, and the LIN and FINl pins are connected to the input and output of ampli- These pins are to connect microphone or fier 2. other audio equipment line inputs and to set Microphone Figure 1 Analog Input Block Amplifier and speaker DAO F1N2 AOUT 9-bit LPF DAC Figure 2 Analog Output Block 1062 OKI Semiconductor MSM6322 The output of amplifier 2 is also connected • Analog Output (DAO, FIN2 and to the LPF (low pass filter) configured by the AOUT} SCF (switched capacitance filter). The output signal after scale conversion is For input from the microphone, DC cutoff of output through the 9-bit DAC (digital-ana- the microphone input is carried out by ca- log converter) to the DAO pin. The maxi- pacitor Cl (approx. lµF), (1/2 AVDD be- mum amplitude of this signal is ±2.SV with comes the center internally.) 1/2 AVDD as the reference voltage. The DAO signal again goes through the internal The amplitude (generally ten millivolts) of LPF using SCF to amplifier 3 for impedance the microphone input is amplified by Rl conversion, and the resultant signal is out- and R2 (to VLOUT= (R2/Rl)*VMIN). Similarly, put from the AOUT pin. the DC component of the LOUT output is cut off by capacitor C3 (approx. lµF), and It is possible to insert an external filter or the resultant signal is amplified by R3 and equalizer between the DAO and FIN2 pins. R4 (to VFINI = (R4/R3)*VLOUT). • Analog Reference Voltage (SG and Capacitors C2 and C4 are to prevent oscilla- SGC) tion of the internal amplifier. 20 to 50pF is used. The SC and SGC pins are to connect external capacitors for stabilizing the internal analog When considering connection of other au- reference voltage of 1/2 AVDD. dio equipment, it is recommended to sup- press the maximum amplitude at the LOUT Connect respective these pins to the ground pin to within 500mV. The maximum ampli- through capacitor CS or C6 as shown in Fig. tude shall be suppressed towithin5V (AVDD 3. - AGND voltage width) by the FINl pin. ~ !]W CS !Jr-SG_C____ Figure 3 Analog Reference Voltage Block 1063 MSM6322 OKI Semiconductor • Pitch-control Circuit 16 pitch stages are provided however the 16th stage cannot be set. [BIN mode] (P3, P2, Pl and PO) [UP /DOWN mode] (UP.C, DW.C andPRST) As shown in Fig. 4, this LSI has an internal 46ms chattering prevention circuit. P2 to PO As shown in Fig. 4, this LSI has internal are internally terminated by over lOkn re- 46ms chattering prevention circuit. sistors. [BIN mode] P3 Valid P2 Chattering Data P1 prevention To scale register -.---{J-1--j circuit PO [UP/DOWN mode] UP.C PULSE Chattering DW.C To scale register INPUT prevention PRST circuit Figure 4 Scale Control Circuit A high input to the UP.C pin raises the scale cally, change from scale stage 0to16or16 to by one stage, and inputting one pulse to the 0 occurs. The UP.C, DW.C and PRST pins DW.C pin lowers the scale by one stage. are terminated by over lOkn resistors. The One pulse input to the PRST pin sets the no tone scale stage is undefined after power on. scale conversion state (scale stage 8). First of all, use the circuit at the state of changeless tone scale by using the PRST. Since the scale stage change functions cycli- 1064 OKI Semiconductor MSM6322 • System Control Circuit ter power on or the fall of the PD. [BIN model (STB/ ACT) Such an abnormal output, however, can hardly be distinguished from pop noise. The STB/ ACT signal is the power control signal not affecting the scale. • Oscillation circuit (XT and XT) When the STB/ ACT goes to the "H'' level, Since the feedback resistor and amplifier are any scale stage control signal input is ig- provided internally, the oscillation circuit nored. can be realized by connecting only a crystal or ceramic oscillator and oscillation stabiliz- The DAO pin, however, outputs 1 /2 AVDD ing capacitors (C7 and C8) externally. It is if theSTB/ ACT is "H", or outputs the AGND recommended to use C7 = C8 = 30pF for irrelevant to the STB I ACT state if the PD is Murata's ceramic oscillator CSA4.00MG, "H". CST4.00MGW, 4.19 MHz OR 4.SMHz, or use C7 = C8 = 33pF for Kyocera's ceramic Since the oscillation circuit is instable for ten oscillator KBR-4.0MS. milliseconds after power on or the falling edge of the PD, it is recommended to set the Fig. 5 shows the circuit example. To use the STB/ ACT to "H" in this period and make the external clock, input it to the XT pin and STB/ ACT fall after the stabilization of the leave the XT pin open. oscillator to minimize abnormal output af- . - - - - - - - - - - - + - - - < . r - - - + - - - - - + - - - Internal clock 4MHz crystal or4MHz 0 RFB ceramic 1MO(TYP) oscillator XT Figure 5 Oscillation Circuit 1065 MSM6322 OKI Semiconductor • Power Supply Circuit (DVDD/DGND, betweenDVDDandDGNDtoobtainastable AVDD and AGND) level without power noise. To prevent the power noise from entering Be sure that the capacity between AVDD the analog circuit, insert a capacitor of about and AGND equals the capacity between lOµF each between AVDD and AGND and DVDD and DGND. DVDD DGND AVDD AGND Note: The voltages of AVDD and DVDD should rise from ov to 4V within 2ms when the power is risen. Figure 6 Power Supply Circuit 1066 OKI Semiconductor MSM6322 APPLICATION CIRCUIT EXAMPLE 1 [BIN mode] AVDD DVDD MIC --------11-------....----; MICIN DVDD > - - - - - - - - - - + - - - - - - - < ..--w.--<"---+-----1 LOUT AVDD > - - - - - - - - - < ,___ _ _ ________, LIN DAO ....._,,,..:------1 FIN1 ____,_ __,p3 FIN2 0 -----1-----1P2 Effective data -----1---1P1 ____,_ __, PO STB/ACT D- mark denotes -~-- - - - . - - - - - - - - 1 LIN line out FINt - - - - - - - - - - - < UP.C 1---------1DW.C ~------1 PRST D- mark denotes -~-----+---+--+---+--+---+-->---+---+--! .!il 0.4 'C Vcc=6V :0 :;; ;;: 0 a_ 0.2 ~ ~ a_ 0.2 I---+--+-+--+--+-+--+---+-+-~ ....- Vcc=4.5V 0.0 f: I- Vcc=3'j M ~I Vcc=4.l5V 0.0 --t- ~=3V 0 Vcc=6V M 0 "' "' Lt) Lt) d d d d d d d d Output power Pout(W) Output power Pout(W) 1078 OKI Semiconductor MSC1191/1192 Circuit current vs power supply voltage (example) Circuit current vs power supply voltage (example) 2.5 6.0 lcc2 D!In=}H' 5.0 0.01µ ~ 2.0 < N Power supply voltage Vcc(V) Power supply voltage Vcc(V) Output voltage vs load current (example) Output voltage vs load current (example) 2.0 ~~-~~~-~-~~~-~ 2.0 ~~-~~~-~-~~~-~ Ain 1.8 1--+--+---+--+----1-+--+---+--+---+-input--i 1.8 ~ 1.6 l--+--+--+---+---l-+--+--+---+---1-+-7"'1 1.6 ~ 1.4 HH--1H--1--1H--1H7""1!---1'-IV-1 1.4 J 1.2 1--+-+--+-+---1-t.--fv"--1-1---1-+---1-+--1 1. 2 l--+--+---+---+---l~+--+---+--+----1-+--< ~ 1_0 l-t-+-::::::l--"1J....-1F-t-J.----t--i2_V_SV+=cc:..c:!:+6-V+--t---1 ~ g vr 0.8 i...-<:i:--1---1--+--+--l---l---l--+--+-+--1 1. 0 l--+--+--+--+--+--+---1----:+--t+--+--+----i 0.8 l--l--+--+-+--l--+-+-b.L-f-"""'r3""1"---1 ~ 0.6 t--+--+--+--+--+--+. ~t ~ 0.6 i--r--t--i--+--t---t--:l,._T:7.,...._ ~ 0.4 J{IL~1~~ GN~ $~ 0.4 l--+--+---+---+---1,,_,,...,__,,..,_--+--+----I-+--< 0. 2 1---i--+--+--+--+---+•• "'"' ,I,. ,I,. "' 0.2 HH--:b>-.:::i;;.<:i'-IH--1H--1--1--1 0.0 _l _[_ _l _l _l 0. 0 i.-:c:__J..._,,L_..,L__!__J__J___L__L__J,__J__J C> C> C> .,., C> C> C> C> g C> C> C> .,., C> C> g '7 '7 "'~ "' "' "" "' Load current lout(mA) Load current lout(mA) Output voltage vs load current (example) Output voltage vs load current (example) 2.0 ~-~~~-~-~~~-~-~ 2.0 ~~~~~~~~---,~~-~~ 1.8 >---+---+--+----1-+---+---+---+---1-+- Din 1.8 rr:-::if-;::::!:::::::=±::::::;+-+-t--t""I input ~ 1.6 l--+-+--t---+--+---+--+--t---1-1--+---l 1.6 ~ 1.4 l--f--l--+-+-+--+--+--H1--1+.--1-::i.,...::::i-+---1-1 1.4 J.,, 1.2 l-+-+-+--+---ll-t-:::::1---4--t-l-+---i _.i--V' 2VSVcc:!:6V 1.2 .e 1.0 l-+--11----:.....-1±:--1"':.+-t----1-==t'-""f=-+--t-l 1.0 l--+--+--+--+-+--+---11--+-->i--' g ~ 0.6 o ~ 0.8 b.-4J....---+-r-+- 0.4 l+--1f-+--+--+-+-l-+-I 1---il---i--t--+-+ nO.Ofiµ Vee Iµ + STBY e~ Din ·~ SP !!'~l lout I 0.8 t--+-+--l--l-+--+=r='7+-+-="~"'-1 0.6 l--f-f-f-f-1--::~~~-1 0.4 t--+-+--1-=*"':>f"S;;..f'--+-+-+--+--+---I 0.2 l--~~:i.c::::f-l---HHH---1---1---1 0.2 I--+--+--+--+--+ .... 0.0 '--'--'--'--'----"'----"_1_,___1_,___1_,___1_,___1_,___1_,___, 0.0 """'-'--'--'---'--'-----'--''--..__..__-'---'--' C> C> u;> .,., C> .,, C> 0 g 8 ~ ~ "" Load current lout(mA) Load current lout(mA) 1079 M$C1191/1192 OKI Semiconductor Total harmonic distortion rate vs output power (example) f=1 kHz ?;: Cl :J: I- 10 V~c=3.0V It Vcc=4.5V t T EJ i ~ L=Sn --1 Rlo:Sn 1 Vcc"3:0v Vcco:4.5V~ Vcc"6.0V _ 5 RLo:1(n~ 1 l RL=16n I 1 _L JL I I RL=32n 0 ±t l_ IL r/- I/L l ./ _j_ _L1 Vcc=6.0Vii RL=16n v 0 g "' Output power Pout(mW) lotal harmonic distortion rate vs output power (example) 1=3kHz ~1 If Vcc=3liV Vcc"4:Sv f RL=Sn - B RL=Sn 1 Vcc=3.0V l Vcc=4.5V _L h Vcc=6.0V _ RL=16n-----, l RL=16n_:::i 1 _L RL=32n l _L 1 _L l l _L _L IL .I, ~ ±± 1-z 7- v _j_ Vcc=6.g RL=1n ~ 0 0 0 0 U') Output power Pout(mW) Ripple elimination ratio vs frequency (example) Voltage gain vs frequency (example) 80 12 70 9 a;- 60 6 "O a: a: 50 C2-10µF a;- 3 "O 0 40 ij[ J M' 0 ~ iC';o:4.7µ,f. N > c: 20 -6 N "' ~,J;. :§ C> a; 10 t - - 0.01µ ="'0 -9 . v > "' Ci. c. cc 0 :=f· 50 100 ew cc SP 5b?~ GND~ V ,L_J. 1k 10k 50k -12 -15 20 100 1k 10k 20k Frequency !(Hz) Frequency !(Hz) 1080 OKI Semiconductor MSC1191/1192 MSC1191/1192 PAD LAYOUT Die size : X = 1.84 mm Y = 2.6 mm Die thickness : 350 ± 30 µm Pad size : 112 x 112 µm Substorate Voltage: GND Pad location diagram Y-LAY •• 2 1 •• 8 7 x-LAY 3 6 • 5 • •• 4 Pad Positions (the die center is located at X=O, Y=O) (Unit: µm) PAD No. PAD Name X-AXIS Y-AXIS 1 VR -442 1134 2 Ain -754 1134 3 SP -754 -754 4 GND -126 -1134 5 Vee 126 -998 6 SP 754 -754 7 STBY 754 1134 8 Din 442 1134 1081 Demonstration Board OKI Semiconductor MSM6375 MSM6375 Demonstration Board 1. Board Outline Frequency control Power switch variable resistor Speaker amplifier (transistor x 2) for RC oscillation Power LED I' ,-, 'I 0 ' ;o: ' 1,----,........,D Speaker jack 1,g,: 0 Speaker check pin 0 20-pin connector D - - + - Speaker amplifier (MSC1192) FC20A2MSby OKI Electric Cable I~__M_s_M_G3_7_s_~I @------+-- Sound volume control DD D 14- 16 10-13 ST i i High order Low order address switch address switch L srart 0011oo 2. Voice Reproduction Procedure 2.1 Turn the power switch to the ON side. _. The power LED lights. 2.2 Set the high order and low order switches to the predetermined addresses. (The white numbers on the operator's side are addresses.) 2.3 Press the start button. _. The Voice is reproduced. (When the ROM option is set to "CPU Interface", the voice is reproduced two times when the start switch is pressed.) 2.4 Turn the power switch to the OFF side. -t The power LED goes off. 1085 MSM6375 OK.I Semiconductor 3. Circuit Design FC1 1 5 10 15 20 0 0 tlU ~ ::: ~ ~ ;:!: ~ :£ I~ Ii It;; I~ I~ UJ~, VDD 1086 OKI Semiconductor MSM6376 MSM6376 Demonstration Board 1. Board Outline 0 0 ® sv GND OFF 1,;~1 256k-bits ON Power switch @UTISwitching of ROM capacity EJ EJ []} (28-pin) @El Switching of @ BUSYorNAR 6 '-o e-@ ® @ Switching of RC or XT \ 0 El a ® DD~ 6 A\ Switching of Start button 1..V AMP or TR Speaker _ [ +O C?ntinuous ( pin -0 @_) 0 1. Switching of CPU Interface or switch input. .@ { 2. Switching of RC or XT ................. @ @Address 3. Switching to standby .................. @ specification switch 2. How to Use Board CD ROM capacity switching jumper 256K-bit and lM-bit (x 8-bit) CMOS type EPROMs can be used. For a 256K-bit EPROM, bridge the lower pins. For a lM-bit EPROM, bridge the upper pins. Note: Use an INTEL equivalent type 1 Megabit EPROM (27C010) @ EPROM socket Insert EPROMs with the smaller address sequentially from the left. The EPROM socket has 32-pin. For 256K-bit EPROMs (28-pin), align them to the lower end. @ RC/XT selector switch and jumper This switch selects RC oscillation or crystal oscillation. To operate the IC with RC oscillation, turn the DIP switch to OFF and set the jumper to the left. To operate the IC with crystal oscillation, turn the DIP switch to ON and set the jumper to the right. 1087 MSM6376 OKI Semiconductor @ CPU interface/switch input interface selector switch This switch selects the operation by CPU or by the momentary button labeled ST. When using only this demonstration board, select "Switch Input" (at the DIP switch to OFF). When connecting the demonstration board to the CPU, turn the DIP switch to ON. When the CPU is connected, all necessary signals are connected to the 20-pin connector. The connector pins are arranged as shown below. Connector Connector Signal Signal pin No. pin No. 1 VDD 11 15 2 VDD 12 16 3 VDD 13 2CH 4 N.C. 14 RESET 5 N.C. 15 ST 6 10 16 RCS 7 11 17 BUSY/NAR 8 12 18 GND 9 13 19 GND 10 14 20 GND Note: Leave NC lines open connect. The RCS signal at Pin 16 to Low level. ® Standby selector switch When the standby selector switch is turned to ON and the board is not activated within 3 seconds after the voice is terminated, the board enters the standby state. (In the standby state, all the functions of the LSI are stopped.) @) BUSY /NAR switching jumper When the jumper is turned to the left side, the BUSY signal is output from the 20-pin connector. When the jumper is turned to the right side, theNARsignalisoutputfrom the 20-pin connector. Please refer to the data sheet for the timing of the BUSY or NAR signal. (J) AMP /TR switching jumper To amplify an analog signal provided by the output pin AOUT with the transistor, turn the jumper to the right side. To amplify an analog signal provided by the output pin AOUT with the amplifier, turn the jumper to the left side. @ Address specification switch When using only this demonstration board, select a word to be reproduced by this HEX switch. The left is the MSB side and the right is the LSB side. When OF is set, for example, 0001111 is set in 16 to IO. When connecting the board to the CPU, set the address to 00 and remove the capacitor 0.1 µF (C18) nearby the start switch. 1088 OKI Semiconductor MSM6376 ® DA converter output pin (without LPF) @ Input frequency check pin @ GNDpin @ Variable resistor (VR2) for adjusting the frequency of RC oscillation @ Variable resistor for volume control (shared by the amplifier and transistor) Note: Use a CMOS type 27C256 or 27C010 EPROM. When a NMOS type 27256 or 27010 EPROM is used, the supply current of the EPROM fluctuates, causing noise. 3. Voice Reproduction Procedure 3.1 Set the address specification switch. 3.2 Press the start button. 1089 ...... ~ s: 0 Power~GND "'s: ~ 5 Vr source 20-pin FC wiring diagram 0 SV GND OKI MSM6376 EVA BOARD . ROM socket layout 0 81 VDD •00• JP1 Pin 1 for 32-pin socket g c:::::::::J = = = = ~ 1M-bit ~ 0 1M ROM1 ROM2--._, ROM3--._, ROM4 --._, 0 0 Pin 1 for g 0 0 0 ~ -..__; J------..,.._,, f-----,__,---j For 27C256 256k-bit g 0 0 0 g l±E NCO NC05 0 g / 256K g 0 g 0 Selection of EPROM type 10--0 11--0 0= 12--0 13--0 D 14--010 15--0 16--0 2C:A--O ~--0 = BUSY ~= NAR Si--015 B RCS--0 Clockcheckpin vR02 o " ' - - Selection . of output ~/NAR--0 r--r- p20 SP ~C3 ~ to20-pin FC Speaker - - I DA output -c::J-'Z.._ (RC OSCI·11 . Cl +• '-.,.e DAO = ! Volume control ~ CR XT 0 at1on) GND Speaker -· ffiffiO+o=B SP -c::::>- (ill) o+ = VR1 l:!.:.!E.J A~pGI = G Note: Fix the RCS signal at Pin 16 to the Low level. = • 0 TR AMP GND 16-14 13-10 0 x"' -0 :::! !;Q No.11101 0 a en (!) ~- c 0 (/) Set the jumper to AMP 00 :0 -l ::;: "' Set the switch to CR. No crystal oscillator is mounted. g. ~ ~ I0 AVDD DVDD DVDD DVDD DVDD . ~ DVDD r'":T - r';J, 1 31 ;· '], '], 1 31 '], 0 """ RA 4 BS 100 KO 13 Vpp PGM Vee 13 Vpp PGM Vee :;• ~ Is ~ E; Do Oo Oo Oo 00 (") ~ Is D1 01 0 1 0 1 0 1 C i:::. I, D2 02 02 02 02 -• () 0 l3 03 o, 05 03 o, Os 03 o, Os 03 o, Os 03 o. Os c .... -· :g.:; I2 Ds Os Os Os Os Q) >--- 11 D1 0 7 07 0 7 0 7 (Q ~ 1, ""l 0 Ao Ao Ao Ao Ao D.) roi 3$/STB A1 A2 A1 Ai 8 ~ At A2 ~ 8 At A2 ~ 8 A1 A2 ;?: 8 3 CP~W CO A3 A3 § A3 ~ A3 ~ A3 § CR/XT t--- A4 A4 A4 m A4 m A4 m _ 2CH ra ~ As As As As i.o ~ N As As ~ N As As ~ N As As g N RESET 00 A7 A7 A7 A7 A7 ~ Aa As As As As A9 As As Ag As BUSY A10 A10 A10 A10 NAR Au A11 Au A 11 RCS A12 A12 A12 A 12 A13 A13 A13 A14 A14 A14 OSC 3 -,a,.,...,.., A1s A1s A 15 Ats A1s ~ m~= ~~= 24 22 16 24 22 16 OSC1 0 0 0 z 0 "' "- (§ &\ < ?J 30 29 111 181--1112A ~ :~ I I I I ~PROM insertio;2 31 I 20 9 I I I 27C256 $ 27C010 i..::-..i~-- G, G, ~~ 2S~2SA495 .. TR2 AVUU TA1 3 27C256 28-pin 30 Note:FixtheRCSsignalatPin16tolowlevel. I VR 11 mkol l M.vuu i*1Tc -- 16L__.,_____J17 5vo-o'o ! c1! c2!cg- r Is: DVDD AVDD I I _.., ~rl;~~y ·~;;~ ~~~µF ~_ ""~ ~~n : tt----1 ~ ~ 111 ~. s: (/) 6 ~ GND D ' ' 'c::r:::;J; l DGN~ AGND lU u I ~~ MSM6654 OKI Semiconductor MSM6654 Demonstration Board 1. Board outline SV~GND 0 SV 0 ®GND 0 GND ON Power switch OFF ITIJ ® ® ®VR2 ITO © D +O -0 r,,. .jack 20-pin ® @VR1 CVOSC3 0 ITO ® connector, FC20A2MS by ® OKI Electric MSM6654 DODD Cable DODD DODD D rn (j) ITIJ ® DODD RESET @ 2. How to Use Board Q),@ Standalone/microcontroller interface switching jumpers and XT /CR switching jumpers The jumpers ir{lare used to select the operation by a standalone-mode or by a microcon troll er interface-mode. The jumpers in @are used to select RC oscillation or crystal oscillation. When a standalone-mode is used, for RC oscillation, set the jumpers in(D to the lower right side and set the three jumpers in® to the lower side. For crystal oscillation, set the jumpers in Q) to the upper right side and set the three jumpers in@ to the ~per side. When a microcontroller is used, only CR oscillation is settable. Set the jumpers in IJ) to the upper left side and set the three jumpers in @ to the upper side. @ BUSY /NAR switching jumper When the jumper is turned to the right side, the BUSY signal is output from pin 17 of the 20- pin connector. When the jumper is turned to the left side, the NAR signal is output from the same pin. When a standalone computer is used, turn the jumper to the right side. ·® AMP /TR switching jumpers To amplify an analog signal which is output from AOUT, with transistors, set the two jumpers to the right side. To amplify it with an amplifier, turn the two jumpers to the left. @ 20-pin connector All necessary signals are connected to the 20-pin connector when a microcontroller is used. The connector pins are arranged as shown below. 1092 OKI Semiconductor MSM6654 Connector pin Signal Connector pin Signal No. No. 1 vcc 11 15 2 vcc 12 16 3 vcc 13 CH 4 N.C. 14 RESET 5 N.C. 15 ST 6 10 16 CMD 7 11 17 BUSY/NAR 8 12 18 GND 9 13 19 GND 10 14 20 GND @ Address specification switch When a standalone-mode is used, select a word to be reproduced by this HEX switch. 0-7 in this HEX switch correspond to AO-A2 in binary data. When a microcontroller is used, set the HEX switch to 0. (j) Frequency check pin (OSC3) This pin monitors and checks the oscillation frequency. @ Speaker amplifier volume (VR1 shared by AMP /TR) Turn the volume switch to the right to increase the sound volume. Turn the volume switch to the left to reduce the sound volume. ® GNDpin @ OSC/VDD switching jumper Set the jumper to the left side. @ Variable resistor (VR2) for adjusting the frequency of RC oscillation This variable resistor can change the frequency of RC oscillation, When the resistor is turend to the right, the frequency goes low. When the resistor is turned to the left, the frequency goes high. In this case, the frequency can be monitored by pin 7. 1093 MSM6654 OKI Semiconductor @ Complete SW input interface When a standalone computer is used, press the 1-F buttons to reproduce voices correspond- ing to 1-F of SW3-SWO. Press the lower left ST button (random voice reproduction button) to reproduce voices that are randomly selected from 31 types of phrases corresponding to AO and SW3-SWO. But, when the ST switch is pressed while turning the power ON or during the input of RESET, firstly voice reproduction is made starting from the the 1st phrase and beyond secondly it is made randomly. 1094 1 2 3 4 12 13 14 15 16 17 18 19 20 ~ t ??? ~GND U) 0 ~ +-y 25 14 A5 46 7 A5 -.J -.J -.J -J 26 15 A647 6A6 ~ 2) ~ A C> 27 16 A7 48 5 A7 O 0 0 C> s: (/) AS u ABO u 0 0 C> >----<>''0---.---+----'1"- 6 CPU s: a> A10 A11 A10 A11 .__-<>''0-1-"-''-'-.-+----~1 7~ SIR!Al a> A12 A12 <11 An M3 l----<>''('}--l~-'--1r-+----~15 x:rtrn C> A14 A14 '--n'-r>--IL-.:'.-!_:__,r-+----~~~"STS'i' m A15 A15 ~ A16 A17 A16 NC(A17) ~~~ 31 A1S im;l) 3 A20 OEB CEB GND ~J 24 22 16 24 22 22 22 FG1 '2MSOVr ~-.---------~12"-< OSC3 FG2~s 11 05c2 50 01 0-4 ~-2 v '"' 13 ~ ' -, D~; 10 05C1 10Q. 14 0 ~ OH I I m oGNo aGNo sP ~ mIT - - 31 7 6 15~ GND 0 0 w9 0 3: CJ) 3: ~ ...... 0 ~ MSM6378A OKI Semiconductor MSM6378A Demonstration Board There are two types of MSM6378A (OTP built-in voice synthesis LSI) demonstration boards. The demonstration board using a transistor as a speaker amplifier is the No. 1 type and the board using MSCl 191 is the No. 2 type. (Only No. 2 types are being manufactured at present.) 1. Board Outline and Name of Each Unit No. 1 type No. 2 type MSM 6378-2 OSC frequency 0 0 adjustment Volume control MSM6378 OSC frequency adjustment 2. Voice reproduction procedure When the power switch is pressed, the voice is output repeatedly. 3. Specifications • Power source: No. 1 type: ................. AM 3, 4 each, No. 2 type: ................. AM3, 2 each (The guaranteed power supply range for accurate reproduc- tion through the internal LPF is from +2.7V - +5.SV.) • Sampling frequency: The MSM6378A sampling frequency of the demonstration board is 8 kHz. • Pin option: · Repeated output: ...... REP= H Output pin: ............... AOUT (LPF output) • Power amplifier: No. 1 type: ................. 2 transistors, No. 2 type: ................. MSC1191 • Speaker: 8 n, 2 W 1100 OKI Semiconductor MSM6378A 4. Circuit Diagram No. 1 type ·1 (AM 3, -=- i 4 each) = Open 2SA562 No. 2 type •1 ~(AM 3, J:2 each) •Note: The quaranteed voltaqe of LPF output of MSM6378 ranqes from 2.7 V - 5.5 V. 1101 MSM6388 OKI Semiconductor MSM6388 Demonstration Board 1. Board Outline 0 MON @ ~tt 0 sv LJO 0 4 3 2 GND MIKE JACK POWER AMPLIFIER I LM386 I 0 0 VOLUME CONTROL @ POWER 0 [Q] ~B BBB CA 0 C\j ~BBB B :::!: og, ST•SP UJ a: ::5CL I SPEAKER JACK ::; C\j :::!: :::!: ::> ::; C\j @ (/) () _J (/) () <( (/) <( (/) () :::!: (/) a: a: _J (/) 2. Connection 2.1 Insert the mike into the mike jack. 2.2 Insert the speaker into the speaker jack. 3. Set operating parameters 3.1 Set RSLl and RSL2 of the DIP switch as shown in the tabel below depending on the number of serial registers mounted. Number of serial 1 Each 2 Each 3 Each 4 Each registers RSL1 OFF ON OFF ON RSL2 OFF OFF ON ON 3.2 Set MCUM of the DIP switch to OFF. The MSM6388 enters the stand-alone mode. (When MCUM is set to ON, the MSM6388 enters the microcontroller interface mode.) 1102 OKI Semiconductor MSM6388 3.3 Specify the sampling frequency by SAM1 and SAM2 of the DIP switch. SAM1 OFF ON OFF ON SAM2 OFF OFF ON ON Sampling frequency fosc fosc fosc fosc 512 288 256 224 fsam (3.9kHz) (6.9kHz) (7.8kHz) (8.9kHz) ): sampling frequency at f0 ," = 2 MHz 3.4 Specify the number of channels by CSL1 and CSL2 of the DIP switch. The number of channels is as shown in the table below depending on the number of serial registers specified in Section 3.1. CSL1 OFF ON OFF ON CSL2 OFF OFF ON ON 1, 2, or 4 serial 8-word 4-word 2-word 1-word Number of registers channels 3 serial 6-word 3-word 2-word 1-word registers The recording time of each channel can be obtained from the following equation: R ecord .mg t·1me =-------~-~------~---- 1.024 x 1024 (k bit) x No. of serial registers (sec) Sampling frequency (kHz) x 4 (bit) x No. of channels For example, the recording time for each channel with two serial registers on 8-channel at a sampling frequency of 7.8 kHz (RSL1 is set to ON, RSL2 to OFF, CSL1 to OFF, CSL2 to OFF, SAM1 to OFF, and SAM2 to ON) is as follows: 1.024 x 1024 (k bit) x 2 (each) Recording time=------~-~-~-~- :7;: 8 (sec) 7.8 (kHz) x 4 x 8 1103 MSM6388 OKI Semiconductor 4. Recording 4.1 Turn the toggle switch on the upper right of the demonstration board to ON to engage power. The LED (POWER) on the lower left of the demonstration board comes on. 4.2 Set the conditions as specified in Section 3, "Set operating parameters". 4.3 Set the rotary switch (CA) to the channel for recording. Number of channels: 8-word: 0- 7 6-word: 0-5 4-word: 0-3 3-word: 0-2 2-word: 0-1 4.4 Set the toggle switch on the lower right of the demonstration board to REC to select the recording mode. 4.5 Press the push button (ST.SP) once and record voice via the mike. During recording, the LED (MON) on the demonstration board is on. When the channel recording time runs short (4 seconds before the end of the recording time for 7.8 kHz sampling), the LED starts blinking, though voice can be recorded until the LED goes off. To stop recording halfway, press the push button (ST.SP) once again. The recording is terminated. 5. Reproduction 5.1 Set the rotary switch (CA) to the channel for reproduction. 5.2 Set the toggle switch on the lower right of the demonstration board to PLAY to select the reproduction mode. 5.3 Press the push button (ST.SP) once to start reproduction. During reproduction, the LED (MON) is on. To stop reproduction halfway, press the push button (ST.SP) once again. The reproduction is terminated. 5.4 Use the variable resister to adjust. 6. Microcontroller interfacing 6.1 Set MCUM of the DIP switch to ON. 6.2 Set RSLl and RSL2 of the DIP switch as specified in Section 3.1. 6.3 Remove the DIP switch (CSLl, CSL2, SAMl, and SAM2), the rotary switch, the pull-down resistors (RAl and RA2) used for them, LED (MON), and the resistor (Rl) from the board. 6.4 Mount a 20-pin flat cable connector at the left end of the demonstration board. The pins to be interfaced with the micrcomputer are connected. (Refer to the circuit diagram of the demonstration board on the next page.) 1104 f;l .""" IQ ~ ~ .,; CG G5 G4 G3 0 ::::;· "'"' ill "' ill "' ~ n. DOUT ::;; ::; • ODD ~ a: CJ') () (_) POWER () >- UJ < 0:: 2. Conditions setting method Set the recording conditions by the 2 DIP switchers and 1 rotary switch. After setting the switches, the recording for 85sec. can carry out by using the 2 serial registers of lM-bit at 8kHz sampling (3-bit ADPCM 8kHz sampling). 2.1 Set MCUM of the DIP switch to OFF The MSM6588 enters the stand-alone mode. (When MCUM is set to on, the MSM6588 enters the microcomputer interface mode. 2.2 Set RSLl and RS12 of the Dip switches as shown in the table below depending on the number of serial registers mounted. RSL2 OFF ON RSL1 OFF ON OFF ON Number of 256K or 512K·bit 1M·bit 1M·bit 1M-bit serial registers 1pc. 1pc. 2pcs. 4pcs. 1106 OKI Semiconductor MSM6588 2.3 Specify the control mode and channel number for recording by CSU and CSL2 of the DIP switch. RSL2 OFF ON RSL1 Control mode OFF l ON Fixed mode OFF ON Flex mode Number of channels 8-word I 4-word 2-word 8-word Fixed mode: The recording time of each channel is given as the time equivalent to the memory capacity that equally divided the memory capacity of the external serial registers by the number of chnnels. The recording of each channel can be obtained from the following equations. 1.024 x 1024 (k bit) x Number of serial registers Recording time= (sec.) Sampling frequency (kHz) x 3 (bit) x Number of channels For example, the recording time for each channel with 2 serial registers on 2 channels at the sampling frequency of 8kHz (RSU =OFF, RSL2 =ON, CSU =OFF, CSL2 =ON and SAM =ON) is as shown below. 1.024 x 1024 (k bit) x 2 Recording time = -------------,,,.--,¥.-l(se¢) 8 (kHz) x 3 x 2 Flex mode: The recording time of each channel becomes free within the range of the memory capacitor for the external serial registers and is recorded to chO, chl, ......... and ch7. 1107 MSM6588 OKI Semiconductor 2.4 Set the rotary switch (CA) to the channel to be recorded. Fixed mode Flex mode CA S·word 4-word 2-word 8-word 0 chO chO cl10 1 ch1 chl chO 2 ch2 ch2 ch1 3 ch3 ch3 4 ch4 ch4 ch2 5 ch5 ch5 ch1 6 ch6 ch6 ch3 7 ch7 ch7 2.5 Specify the sampling frequency at SAM of the DIP switch. SAM OFF ON Sampling fosc 1osc frequency 768 512 fsam (5.3kHz) (8.0kHz) The frequencies within the parentheses are at the original oscillation f osc = 4.096MHz. 2.6 Usually, set the PDMD of the DIP switch to ON. OFF: The MSM6588 enters the power-down state expect recording and playback. ON: The MSM6588 always enters the stand-by state and the time lag up to starting the playback decreases after input. 2.7 Select whether or not the voice is activated by VDS of the DIP switch OFF: Ordinary mode, the voice is not activated. ON: The voice is activated. Note: When the activation of the voice is required, use the DC stabilized power supply without using the battery driving power. In the case of the battery, the power fluctuation of a few mV in starting the recording is amplified and it results in judgement that there is the voice. 1108 OKI Semiconductor MSM6588 3. Recording method 3.1 Turn the toggle switch on the upper right of the demonstration board to ON to engage power. The LED (power) on the lower left of the demonstration board comes on. 3.2 Set the conditions as specified in section 2 "Conditions setting method." 3.3 Set the toggle switch on the lower right of the demonstration board to REC to select the recording mode. 3.4 Press the ST button once and record the voice via the mike. During recording, the LED (MON) on the.demonstration board comes on. 3.5 When the voice is recorded till the last of the channel memory, the recording automatically finishes. To stop recording halfway, press the SP button. 4. Playback method 4.1 Set the toggle switch on the lower right of the demonstration board to PLAY to select the playback mode. 4.2 Press the ST button once to start the playback. During the playback, the LED (MON) comes on. 4.3 When the playback is achieved till recorded time, the recording is automatically termi- nated. To step the playback halfway, press the SP button once again. 4.4 Use the volume control to adjust the playback volume. 5. Pause method of playback 5.1 During the playback, when the PAUSE button is pressed, the playback enters pause. 5.2 Press the ST button once again, and the playback starts again. 1109 ..... ..... OVOO FC 1 20 - pin flat cable connector (plug) ..... (For microcomputer interface) _ 19 20 DVDD C 17 AVDD c 16 !'> 3:: CA 0 1·2 -j ""i-1.,.,lcojr-.fmjojoj.-(~j ~ Ll.1µF K OK OVOD C6 OK DVOO 3:: In microcomputer interface, i ... 0 I this is not mounted DGND ~--------·------, :::1;;1~1;:;11tJ1iai1~1~ll~I~ 17 16 ~· 12 DVDD 27 SAD c SAS TAS 25 B TAS TAS 7 ::+ Q. .A or RWCK 41 13 RWGK ROCK 8 ·~ cc WE 40 ~ cc c ODDO D II MSM6375/6588 MSM6588 CPU Board MSM6595/96/97 Control Board No. 11176 No. 11214 Note: When the serial register is not mounted, to IC1 on the MSM6588 CPU board (No. 11176) the circuit does not operate normally. In the meantime, when the serial register is mounted to IC2 - IC4, the normal operation is not obtained either. 1112 ~ 42-pinDIP 32 -pin DIP 32 ·pin DIP 32 ·pin DIP 18-pin PLCC ~ 0.1µF ~ •. f-+: Q r··9 1 OOUT VOO AO 17 12 AO VOO voo 9 1.2 .., en LO ::iA.lJX - SA.DY 1 5 "'g ar I8 4 39 SASX A6 11 6 A6 : •~ J2lt: A 13 33 28 A 13 29 A 14 f--- ~ 36 CS2 A 14 34 I--- !• •~ ~ A 15 8 3 A 15 0 0 J 11'1::::'. 2 A 16 8 0 0 1----- 80 35 cs 1 A 16 7 r----! 2 ~ ;::: ;::: ;::: Jumper switch g DO 18 13 00 "' ::;; N ::;; r----! "' ::;; 19.20 19.20 T I 1 MSC1191 0 0DDD Binary mode switch Up switch Reset switch Down switch 0 Speaker check pin 2. Operating prdcedure 2.1 Set the mode control unit to the mode to be used. Before changing the mode, turn power OFF. (The default setting is the UP /DOWN mode.) The mode control unit is connected with jumper plugs. Thestatusof the mode control unit in each mode is as follows: UP /DOWN mode (default) BIN mode • • • • • • • • • • 2.2 Turn the power switch on. The power LED comes on. 3.2 UP /DOWN mode Change the voice pitch using the UP switch, DOWN switch, or RESET switch. BIN mode Change the voice pitch using the BIN rotary switch. 2.4 Turn the power switch off. The power LED goes off. 1114 !-r-> ~ ~ Q g1 o+-----1 1 UP.C (P2) as:: ~ ! 2 DW.C(P1) ;::+ 0. ~- 3 PD (P3) ~.:------~:-, STB/•ACT a;· g. cc I I 111 11 : 6 ! 5 PAST (PO) DGND 121 Q1 ~ 3 I T 1U.U1 µF YTEST1 TEST 2 I ' T ;;:: 200pFl47µF en ;;:: ~ N SGC ~AOUT 10J FIN 2 Power 1001 Y 11 SPOUT LO:i:I ~ ~~ x2 121 AVDD D--0 560K ,___ _ _ _Fl_N1 ~ I 1001 220 µF '----ii 0.022µF I 2 Ain ______ s_,,,p,eaker jack [ AGND DGND s: "' s: ~ ...... ...... ...... 01 MEMO NOTICE 1. The information contained herein can change without notice owing to product and/ or technical improvements. Please make sure before using the product that the information you are referring to is up-to-dated. 2. The outline of action and examples of application circuits described herein have been chosen as an explanation of the standard action and performance of the product. When you actually plan to use the product, please ensure that the outside conditions are reflected in the actual circuit and assembling desigris. 3. NO RESPONSIBILITY IS ASSUMED BY US FOR ANY CON- SEQUENCE RESULTING FROM ANY WRONG OR IMPROPER USE OR OPERATION, ETC. OF THE PRODUCT. 4. Neither indemnity against nor license of a third party's indus- trial and intellectual property right, etc. is granted by us in connection with the use of the product and/or the information and drawings contained herein. No responsibility is assumed by us for any infringement of a third party's right w,hich may result from the use thereof. 5. The products described herein falls within the category of strategical goods, etc. under the Foreign Exchange and Foreign Trade Control Law. Accordingly, before exporting the product you are required under the Law to file the application for the export license by your local Government. 6. No part of the contents contained herein may be reprinted or reproduced without our prior permission. 7. MS-DOS is a registered trademark of Microsoft Corporation. Copyright 1994 OKI ELECTRIC INDUSTRY CO., LTD. OKI Oki Electric Industry Co., Ud. Head Office Annex 7-5-25 Nishishinjuku, Shinjuku-ku, ToRyo 160, Japan Tel : 3-5386-8100 Fax: 3-5386-8110 Telex:J27662 OKIDENED Electronic Devices Group Overseas Marketing Dept. Oki Semiconductor 785 North Mary A.-enue . Sunnyvale. CA 94086 U S A Tel.408-720-1900 FSJl.: 408-720-1918 Telex-296687 OKI SNTA Oki Electric Europe GmbH Hellersbergstral>e 2 , 0-414 60 Neuss Germany Tel: 213H5960 Fax : 2131-103539 Telex 8517427 OKI D Oki Electronics (Hong Kong) Ud. Suite 1801-4, Tower 1. China Hong Kong City, 33 Canton Road. Tsim Sha Tsui Kowloon, Hong Kong Tel 7362336 Fax 7362395 Telex 45999 OKIHK HX For turthef 1nl01mat1 ori please COl'11act Printed in Japan E3S022984