OKI ML2502 ML2502 DATA SHEET RECORD/PLAYBACK LSI with 128Kbit Analog Cell Storage Flash Memory n Preliminary Revision 8.0 Apr. 01, 1999 GENERAL DESCRIPTION ML2502 is a record/playback LSI that stores analog signal directly into on-chip Flash memory (128Kbit Cell) without digital conversion utilizing new Analog Storage technology. Such unique features as low voltage operability (2.7 ~ 3.3V), no backup requirement and no external MCU requirement makes the ML2502 an ideal choice for handy Voice Memo, Message Card, toys and other consumer applications. n FEATURES • On-chip 128Kbit Cell Analog Storage Flash Memory Program/Erase Cycles 10K cycles Data Retention Period 10 years • Record/Playback Control via Switch Input • Phrasing Mode • • Single-phrase or Dual-phrase Record/Playback Time Length (At 6.4 kHz sampling frequency) In Dual-phrase Mode Max. ap. 10 sec each (Entire memory area divided into 2) In Single-phrase Mode Max. ap. 20sec (Using the whole memory area by wiring REC1 and REC2 pins, PLAY1 and PLAY2 pins together) Sampling Frequencies Selectable from 4.0 kHz, 5.3 kHz, 6.4 kHz • Built-in Mic. Amplifier with AGC (Auto Gain Control) • Built-in LPF (Low Pass Filter) • Built-in Speaker Driver Allows to use either Piezo or Dynamic speaker by externally setting up an amplitude ratio. • On-chip Oscillation Circuit (No requirement for an external oscillator) • Operating Voltage 2.7V ~ 3.3V • Operating Temperature -10°C ~ +70°C • Packaging 30-pin SSOP, Die Form ML2502 Data Sheet (Revision 8.0) 1 OKI n ML2502 BLOCK DIAGRAM MOUT LIN MIN LOUT + + SG AGC + - LPF ROSC 128K Bit Cell Analog Storage Flash Memory Array SAM1 SAM2 Sampling Clock Address Decoder SPOUT+ SPOUT- Power Supplies Controller REC1 n SPIN Analog Write & Read Circuits Internal Oscillator REC2 PLAY1 PLAY2 ERASE MON AOUT AVDD AGND DVDD DGND PIN LAYOUT PKG Code: SSOP30-P-56-0.65 (TOP VIEW) NC 1 30 NC DVDD 2 29 SAM1 REC1 3 28 SAM2 REC2 4 27 ROSC PLAY1 5 26 DGND PLAY2 6 25 MON ERASE 7 24 TEST MIN 8 23 NC MOUT 9 22 NC LIN 10 21 AOUT LOUT 11 20 SPIN AVDD 12 19 AGND AVDD 13 18 SPOUT- SPOUT+ 14 17 AGND NC 15 16 NC ML2502 Data Sheet (Revision 8.0) 2 OKI n ML2502 PIN DESCRIPTION PIN I/O REC1 I REC2 I PLAY1 I PLAY2 I ERASE I Description Input start-recording signal for Phrase 1 to this pin. "H" level input to this pin initiates recording to Phrase 1 memory area. Recording goes on while this pin being held "H". In single-phrase mode, the pin is connected to the REC2 pin. The REC1 pin is internally pulled down. Input start-recording signal for Phrase 2 to this pin. "H" level input to this pin initiates recording to Phrase 2 memory area. Recording goes on while this pin being held "H". In single phrase mode, the pin is connected to the REC1 pin. The REC2 pin is internally pulled down. Input start-playback signal for Phrase 1 to this pin. A "H" pulse input to this pin initiates playback of Phrase 1. Re-inputting a "H" pulse during playback causes to stop playback. In single phrase mode, the pin is connected to the PLAY2 pin. The pin is internally pulled down. Input start-playback signal for Phrase 2 to this pin. A "H" pulse input to this pin initiates playback of Phrase 2. Re-inputting a "H" pulse during playback causes to stop playback. In single phrase mode, the pin is connected to the PLAY1 pin. The pin is internally pulled down. Erase-enable signal input pin, used together with the REC1 and/or REC2. Input "H" level to the REC1/REC2 pin with this pin being held "H" to erase respective phrase. The pin is internally pulled down. Pins used to select a sampling frequency. SAM1 SAM2 I MON O ROSC I MIN I MOUT O LIN I LOUT O AOUT O SPIN I SPOUT+ SPOUT- O DVDD − DGND − AVDD − AGND − SAM1 SAM1 Fs L L 4.0kHz L H 5.3kHz H L 6.4kHz H H Unused Output "H" level during record or playback operation. Insert a 30kΩ resistor between this pin and the DGND pin. The resistor determines the oscillation frequency for the internal oscillation circuit. Input to the Microphone amplifier. Output from the Microphone amplifier. Voltage amplitude is automatically controlled to an appropriate output level by the internal AGC circuit. Input to the Line amplifier. Connected to inverted input for the internal Op. amplifier. Output from the Line amplifier. Connected to the output pin from the internal Op. amplifier. Connecting resistors to the LIN and LOUT pins configures an inverted amplifier. Output analog signal for playback. Input to the speaker driver. The resistor's value inserted between the AOUT and SPIN pin determines voltage amplitude of the speaker driver. Select an appropriate value depending on types of speaker in use. Output from the speaker driver. Connect a speaker in-between these pins. Output two phase-inverted analog signals for playback from the speaker driver. Digital power supply pin. Insert a 0.1µF or larger bypass capacitor between this pin and the DGND pin. Digital ground pin. Analog power supply pin. Insert a 0.1µF or larger bypass capacitor between this pin and the AGND pin. Analog ground pin. ML2502 Data Sheet (Revision 8.0) 3 OKI n ML2502 Record/Playback Operation ML2502 has two record/playback modes, Dual-phrase record/playback mode and Singlephrase record/playback mode. While in Dual-phrase record/playback mode the total memory space is divided evenly into two areas for 2-phrase record/playback, the entire memory space is used for one phrase record/playback in Single-phrase record/playback mode. In Dual-phrase record/playback mode the first half of the memory, i.e. from the top address up to the center address, is assigned to Phrase 1, and the second half, i.e. from the center address to the last address, is assigned to Phrase 2. Record/playback of Phrase 1 can be controlled via the REC1 and PLAY1 pins, while Phrase 2 can be controlled via the REC2 and PLAY2 pins respectively. In Single-phrase mode record/playback must be performed with the REC1 being connected to the REC2 pin and the PLAY1 being connected to the PLAY2 pin respectively. In both playback modes repetitive playback function for the same phrase is available. 1. Dual-Phrase Record/Playback Mode 1.1 Phrase 1 Recording Operation (1) Keep on inputting “H” level to the REC1 pin to power up and start recording from the top address of the memory. Recording goes on while the REC1 pin being held “H” level. The LSI automatically ends recording when the center address has been reached. The LSI automatically shifts to low-power consumption mode after recording ends. To stop recording for phrase 1 before reaching the center address, bring the REC1 pin down to “L” level. The LSI automatically shifts to low-power consumption mode after recording stops. During recording operation any signal input to other pins than the REC1 is disregarded. (2) (3) (4) (5) Note: Re-recording always causes to overwrite the existing recording data for a given phrase. Start Invalid Input Stop REC1 REC2 MON Status Power Down Powering Up Recording Powering Down Power Down Stopping Process Figure 1.1 Timing Chart for Phrase 1 Recording Operation ML2502 Data Sheet (Revision 8.0) 4 OKI ML2502 1.2 Phrase 1 Playback Operation (1) Input a “H” pulse to the PLAY1 pin to power up and start playback from the top address of the memory. The LSI automatically ends playback when the last address of the recorded phrase has been reached. The LSI automatically shifts to low-power consumption mode after playback ends. To stop playback of phrase 1 before reaching the last address, input a “H” pulse again to the PLAY1 or PLAY2 pin. This will cause the LSI to stop playback and then automatically shift to low-power consumption mode. During playback operation signal input to the PLAY1 or PLAY2 pin only is valid, any other signal input is disregarded (2) (3) (4) (5) Start Pulse Stop Pulse PLAY1 PLAY2 MON Status Power Down Powering Up Playing Back Powering Down Power Down Figure 1.2 Timing Chart for Phrase 1 Playback Operation 1.3 Phrase 1 Erasing Operation (1) While inputting “H” level to the ERASE pin, input a “H” pulse to the REC1 pin to start erasing Phrase 1. (2) After Phrase 1 having been erased, the LSI automatically shifts to power-down mode for low-power consumption. Note: Erasing operation cannot be abandoned in the middle once getting started. Internally, the LSI performs erasing Phrase 1 by recording “Silence” from the top address to address 250. Therefore, if you attempt to playback the erased phrase, the playback starts at the top address of the memory and ends at address 250. Start Pulse ERASE REC1 MON Status Power Down Powering Up Erasing Powering Down Power Down Figure 1.3 Timing Chart for Phrase 1 Erasing Operation ML2502 Data Sheet (Revision 8.0) 5 OKI 1.4 (1) ML2502 Phrase 2 Recording Operation Keep on inputting “H” level to the REC2 pin to power up and start recording from the top address of the memory. Recording goes on while the REC2 pin being held “H” level. The LSI automatically ends recording when the last address of the memory has been reached. The LSI automatically shifts to low-power consumption mode after recording ends. To stop recording for Phrase 2 before reaching the last address, bring the REC2 pin down to “L” level. The LSI automatically shifts to low-power consumption mode after recording stops. During recording operation any signal input to other pins than the REC2 is disregarded. Note: Re-recording always causes to overwrite the existing recording data for a given phrase. (2) (3) (4) (5) Start Invalid Input Stop REC1 REC2 MON Status Power Down Powering Up Recording Powering Down Power Down Stopping Process Figure 1.4 Timing Chart for Phrase 2 Recording Operation 1.5 Phrase 2 Playback Operation (1) Input a “H” pulse to the PLAY2 pin to power up and start playback from the center address of the memory. The LSI automatically ends playback when the last address of the recorded phrase has been reached. The LSI automatically shifts to low-power consumption mode after playback ends. To stop playback of Phrase 2 before reaching its last address, input a “H” pulse again to the PLAY1 or PLAY2 pin. This will cause the LSI to stop playback and then automatically shift to low-power consumption mode. During playback operation signal input to the PLAY1 or PLAY2 pin only is valid, any other signal input is disregarded (2) (3) (4) (5) Start Pulse Stop Pulse PLAY1 PLAY2 Stop MON Status Power Down Powering Up Playing Back Powering Down Power Down Figure 1.5 Timing Chart for Phrase 2 Playback Operation ML2502 Data Sheet (Revision 8.0) 6 OKI ML2502 1.6 Phrase 2 Erasing Operation (1) While inputting “H” level to the ERASE pin, input a “H” pulse to the REC2 pin to start erasing Phrase 2. After Phrase 2 having been erased, the LSI automatically shifts to power-down mode for low-power consumption. (2) Note: Erasing operation cannot be abandoned in the middle once getting started. Internally, the LSI performs erasing Phrase 2 by recording “Silence” from the center address as far as to address 250. Therefore, if you attempt to playback the erased phrase, the playback starts at the center address of the memory and ends at address 250. Start Pulse ERASE REC2 MON Status Power Down Powering Up Erasing Powering Down Power Down Figure 1.6 Timing Chart for Phrase 2 Erasing Operation ML2502 Data Sheet (Revision 8.0) 7 OKI ML2502 2. Single-phrase Record/Playback Mode 2.1 Recording Operation (1) In this mode the REC1 has to be connected with the REC2 pin. Keep on inputting “H” level to the REC1 and the REC2 pin to power up and start recording from the top address of the memory. Recording goes on while the REC1 and the REC2 pin being held at “H” level. The LSI automatically ends recording when the last address of the memory has been reached. The LSI automatically shifts to low-power consumption mode after recording ends. To stop recording before reaching the last address, bring the REC1 and the REC2 pin down to “L” level. The LSI automatically shifts to low-power consumption mode after recording stops. During recording operation any signal input to other pins than the REC1 and the REC2 is disregarded. (2) (3) (4) (5) Note: Re-recording always causes to overwrite the existing recording data for a given phrase. Start Invalid Input Stop REC1 REC2 PLAY1 PLAY2 MON Status Power Down Powering Up Recording Powering Down Power Down Stopping Process Figure 2.1 Timing Chart for Single-phrase Recording Operation ML2502 Data Sheet (Revision 8.0) 8 OKI ML2502 2.2 Playing Back Operation (1) Input “H” pulses to the PLAY1 and the PLAY2 pins simultaneously to power up and start playback from the top address of the memory. The LSI automatically ends playback when the last address of the recorded phrase has been reached. The LSI automatically shifts to low-power consumption mode after playback ends. To stop playback of the phrase before reaching its last address, input “H” pulses again to the PLAY1 and the PLAY2 pins simultaneously. This will cause the LSI to stop playback and then automatically shift to low-power consumption mode. During playback operation signal input to the PLAY1 or PLAY2 pin only is valid, any other signal input is disregarded. (2) (3) (4) (5) Start Pulse Invalid Input Stop Pulse PLAY1 PLAY2 REC1 REC2 MON Status Power Down Powering Up Playing Back Powering Down Power Down Figure 2.2 Timing Chart for Single-phrase Playback Operation ML2502 Data Sheet (Revision 8.0) 9 OKI ML2502 2.3 Erasing the Phrase 2 (1) While inputting “H” level to the ERASE pin, input “H” pulses to the REC1 and REC2 pins simultaneously to start erasing the phrase. After the phrase having been erased, the LSI automatically shifts to power-down mode for low-power consumption. (2) Note: Erasing operation cannot be abandoned in the middle once getting started. Internally, the LSI performs erasing by recording “Silence” from the top address as far as to address 250. Therefore, if you attempt to playback the erased phrase, the playback starts at the top address of the memory and ends at address 250. Start Pulse ERASE REC1 REC2 MON Status Power Down Powering Up Erasing Powering Down Power Down Figure 2.3 Timing Chart for Single-phrase Erasing Operation ML2502 Data Sheet (Revision 8.0) 10 OKI ML2502 3. Repeating Playback Operation (1) (2) (3) (4) (5) To repeat playback of the same phrase, keep on inputting “H” level to the PLAY1 or PLAY2 pin. “H” level input to the PLAY1 or PLAY2 causes the LSI to power up and start playback. The LSI automatically restarts playback when the last address of the phrase has been reached. When the playback reaches to the last address of the phrase, with the PLAY1 or PLAY2 pin being held “L” level, the LSI automatically ends playback. The LSI automatically powers down after playback ends. To stop playback before repetitive playback session ends, bring the PLAY1 or PLAY2 pin down to “L” level once, and then re-input a “H” pulse to the PLAY1 or PLAY2 pin. The LSI automatically shifts to low-power consumption mode after playback stops. Start Pulse Stop Pulse PLAY1 PLAY2 End Playing Resume Plaing MON Status Power Down Powering Up Playing Back Interval Playing Back Powering Down Power Down Figure 3.1 Timing Chart for Repetitive Playback Operation ML2502 Data Sheet (Revision 8.0) 11 OKI n ML2502 ABSOLUTE MAXIMUM RATINGS Parameter Symbol Power Supply Voltage VDD VIN TSTG Input Voltage Storage Temperature n Conditions Ta = 25°C — Rating Unit -0.3 ~ +6.0 V -0.3 ~ V DD + 0.3 V -55 ~ +150 °C RECOMMENDED OPERATING RANGES Parameter Symbol Conditions Range Unit Power Supply Voltage VDD TOP DGND=AGND=0V 2.7 ~ 3.3 V — -10 ~ + 70 °C Operating Temperature n ELECTRICAL CHARACTERISTICS • DC Characteristics DVDD=AVDD=2.7V ~ 3.3V,DGND=AGND=0V,Ta= -10 ~ +70°C Parameter "H" Input Voltage "L" Input Voltage "H" Output Voltage "L" Output Voltage "H" Input Current * 1 "L" Input Current * 1 "H" Input Current * 2 "L" Input Current * 2 Symbol VIH VIL VOH VOL IIH1 IIL1 IIH2 IIL2 Conditions DGND=AGND=0V Min. 0.8 X V DD Typ. — Max. — Unit V — — — 0.2 X V DD V IOH=40µA VDD - 0.3 — — V IOL=2mA — — 0.45 V VIH=VDD — — 10 µA VIL=0V -10 — — µA VIH=3.0V 10 — 100 µA VIL=0V -10 — — µA Operating Current Consumption IDD SPOUT Output No Load — 40 TBD mA Powerdown Current Consumption IDDS1 IDDS2 Ta= -10 ~ +50°C — — 10 µA Ta= +50 ~ +70°C — — 100 µA Note: 1. Applicable only to those input pins without a pull-down resistor. 2. Applicable only to those input pins with a pull-down resistor. (REC1, REC2, PLAY1, PLAY2, ERASE pins) ML2502 Data Sheet (Revision 8.0) 12 OKI • ML2502 AC Characteristics DVDD=AVDD=2.7V ~ 3.3V,DGND=AGND=0V,Ta= -10 ~ +70°C At fsamp = 6.4 kHz Parameter Power-on Reset Time Symbol tPOR Min. — tW RECST 256 Min. "L" Pulse Width for Record-Stop Input tW RECSP 17 Min. Pulse Width for Playback-Start Input tW PLYST 17 Min. Pulse Width for Playback-Stop Input tW PLYSP 17 Min. Pulse Width for Erase-Start Input to REC1,REC2 tWERSST 17 Setup Time for Erase Input - REC1, REC2 Input 0 tWERSS 0 Hold Time for Erase Input - REC1, REC2 Input tW ERSH Powering Up Time 1 (at Erasing) 15.4 tWS1 Powering Up Time 2 252 tWS12 Max. Record/Playback Time Length (2-phrase mode) *1 9.5 tWRP2 Max. Record/Playback Time Length (1-phrase mode) *1 19 tWRP1 Erase Execution Time *1 52 tW E Max. Time for MON to Fall Down at Stop Recording*1 14.8 tW S3 Powering Down Time 14.8 tW S4 Min. "H" Pulse Width for Record-Start Input Note: *1. Typ. — Max. 10 Unit ms — — ms — — ms — — ms — — ms — — ms — — µs — — µs 15.6 15.8 ms 256 279 ms 10 10.5 s 20 21 s 54 56 ms 15.6 16.5 ms 15.6 16.5 ms In proportion to sampling frequency. ML2502 Data Sheet (Revision 8.0) 13 OKI • ML2502 Analog Circuit Characteristics DVDD=AVDD=2.7V ~ 3.3V,DGND=AGND=0V,Ta= -10 ~ +70°C Parameter MIN Input Resistance Symbol Conditions — Min. 4.2 Typ. 6 Max. 7.8 RMIN 28 — Mic. Amp. Voltage Gain Control Range — 8 GMIC LIN Input Impedance — 1 — — RIOP Line Amp. Open-loop Gain fIN = 0~4kHz — — 40 GOLINE VMOTP Output Voltage from MOUT, LOUT, AOUT on Powering Up and Powering 1.35 1.45 VLOTP tWS12 and tWS4 1.25 Down VAOTP 1/2 VDD 1/2 VDD VSPOTP Output Voltage from SPOUT +/1/2 VDD tWS12 and tWS4 -0.1 +0.1 on Powering Up and Powering Down VSNOTP MOUT- LOUT Load Resistance — — — 200 ROOP SPOUT+ / SPOUTAmplifier Open-loop Gain SPOUT+/SPOUT- Voltage Gain SPIN Input Impedance SPOUT +/- Output "H" Voltage SPOUT +/- Output "L" Voltage SPOUT Output Offset Voltage SPOUT Output Load Impedance SPOUT Load Current at Peak Output Unit kΩ V/V MΩ dB V V kΩ GOSP fIN = 0~4kHz 40 — — dB GSPC RISP VSPH VSPL VOFF RSPC ISPO — 0.95 1 1.05 V/V — 1 — — MΩ IOH = 10mA VDD-0.25 — — V IOL = 10mA — — 0.25 V No Signal Playback — — ±0.3 V — 16 — — Ω — — — ±125 mA ML2502 Data Sheet (Revision 8.0) 14 OKI ML2502 n TIMING CHARTS u Digital Circuit Section • Powering Up 2.5V VDD Internal Reset Signal Status Unstable State Reseting Power Down State tPOR Switch Input Allowed • Start Recording Phrase 1 tWRECST REC1 REC2 MON Status Power Down State Powering Up Time Recording tW RP1,tWRP2 tWS12 • End Recording Phrase 1 (Recording reaches to the last address) REC1 REC2 MON Status Recording Powering Down tWRP1,tWRP2 tWS4 Power Down State ML2502 Data Sheet (Revision 8.0) 15 OKI ML2502 • Stop Recording Phrase 1 (Recording stopped before the last address) tW RECSP REC1 REC2 MON Status Recording Post-Recording Process Powering Down Power Down State tWS3 tWS4 • Start Playback Phrase 1 tW PLYST PLAY1 PLAY2 MON Status Power Down State Powering Up Time Playing Back tWS12 tWRP1, tW RP2 • End Playback Phrase 1 (Playback reaches to the last address) PLAY1 PLAY2 MON Status Playing Back tWRP1,tW RP2 Powering Down Power Down State tWS4 ML2502 Data Sheet (Revision 8.0) 16 OKI ML2502 • Stop Playback Phrase1 (Recording stopped before the last address) tW PLYSP PLAY1 PLAY2 MON Status Playing Back Powering Down Power Down State tW S4 • Start Erasing Phrase 1 tWERSS tWERSST tWERSH ERASE REC1 MON Status Power Down State Powering Up Time Erasing tW E tWS1 • End Erasing Phrase 1 ERASE REC1 MON Status Erasing Powering Down tW E tWS4 Power Down State ML2502 Data Sheet (Revision 8.0) 17 OKI ML2502 u Analog Circuit Section • Start Recording (Phrase 1) REC1 MON MOUT GND Level V MOTP LOUT GND Level V LOTP AOUT GND Level SPOUT+ Hi-Z SPOUT- Hi-Z tWS12 Status • Power Down Powering UP Recording Stop Recording (Phrase 1) REC1 MON MOUT VMOTP LOUT AOUT VLOTP GND Level GND Level SPOUT+ Hi-Z SPOUT- Hi-Z Status GND Level Recording tWS3 tWS4 Post-Recording Process Powering Down ML2502 Data Sheet (Revision 8.0) PowerDown 18 OKI • ML2502 Start Playback (Phrase 1) PLAY1 MON MOUT GND Level LOUT GND Level AOUT GND Level SPOUT+ Hi-Z SPOUT- Hi-Z V AOTP V SPOTP V SNOTP tWS12 Status • Power Down Playing Back Powering UP Time Stop Playback (Phrase 1) PLAY1 MON GND Level MOUT GND Level LOUT AOUT VAOTP SPOUT+ VSPOTP SPOUT- VSNOTP GND Level Hi-Z Hi-Z tWS4 Status Playing Back Powering Down ML2502 Data Sheet (Revision 8.0) Power Down State 19 OKI n ML2502 Application Circuit Sample Single-phrase Record/Playback, at 4 kHz sampling frequency and with a Dynamic Speaker. NC NC 30 2 3 DVDD SAM1 29 REC1 SAM2 28 4 5 REC2 ROSC 27 PLAY1 DGND 26 6 PLAY2 7 ERASE 8 MIN 9 MOUT 10 LIN 11 12 ML2502 MIC 1 MON 25 TEST 24 NC 23 NC 22 AOUT 21 LOUT SPIN 20 AVDD AGND 19 13 AVDD SPOUT- 18 14 SPOUT+ AGND 17 15 NC NC 16 ML2502 Data Sheet (Revision 8.0) LED Speaker 20