RECORD/PLAYBACK LSI with
128Kbit Analog Cell Storage Flash MemoryRevision 8.0 Apr. 01, 1999
nGENERAL 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.
nFEATURES
•On-chip 128Kbit Cell Analog Storage Flash Memory
Program/Erase Cycles10K cycles
Data Retention Period10 years
• Record/Playback Control via Switch Input
• Phrasing ModeSingle-phrase or Dual-phrase
• Record/Playback Time Length (At 6.4 kHz sampling frequency)
In Dual-phrase ModeMax. ap. 10 sec each (Entire memory area divided into 2)
In Single-phrase ModeMax. 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)
Input start-recording signal for Phrase 1 to this pin.
REC1I
REC2I
PLAY1I
PLAY2I
ERASEI
SAM1
SAM2
"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.
I
SAM1
SAM1
Fs
L
L
4.0kHz
L
H
5.3kHz
H
L
6.4kHz
H
H
Unused
MONOOutput "H" level during record or playback operation.
ROSCI
MINIInput to the Microphone amplifier.
MOUTO
LINIInput to the Line amplifier. Connected to inverted input for the internal Op. amplifier.
LOUTO
AOUTOOutput analog signal for playback.
SPINI
SPOUT+
SPOUT-
DVDD
DGND
AVDD
AGND
Insert a 30kΩ resistor between this pin and the DGND pin. The resistor determines the
oscillation frequency for the internal oscillation circuit.
Output from the Microphone amplifier. Voltage amplitude is automatically controlled to an
appropriate output level by the internal AGC circuit.
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.
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.
O
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
OKIML2502
nRecord/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.
(2) The LSI automatically ends recording when the center address has been reached.
(3) The LSI automatically shifts to low-power consumption mode after recording ends.
(4) 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.
(5) During recording operation any signal input to other pins than the REC1 is disregarded.
Note: Re-recording always causes to overwrite the existing recording data for a given
phrase.
StartStopInvalid Input
REC1
REC2
MON
Status
Power DownPowering UpRecordingPower DownPowering Down
Stopping Process
Figure 1.1 Timing Chart for Phrase 1 Recording Operation
ML2502 Data Sheet (Revision 8.0)
4
OKIML2502
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.
(2) The LSI automatically ends playback when the last address of the recorded phrase has been
reached.
(3) The LSI automatically shifts to low-power consumption mode after playback ends.
(4) 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.
(5) During playback operation signal input to the PLAY1 or PLAY2 pin only is valid, any other
signal input is disregarded
Start PulseStop Pulse
PLAY1
PLAY2
MON
Status
Power DownPowering UpPlaying BackPower DownPowering 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 DownPowering UpErasingPower DownPowering Down
Figure 1.3 Timing Chart for Phrase 1 Erasing Operation
ML2502 Data Sheet (Revision 8.0)
5
OKIML2502
1.4 Phrase 2 Recording Operation
(1) 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.
(2) The LSI automatically ends recording when the last address of the memory has been
reached.
(3) The LSI automatically shifts to low-power consumption mode after recording ends.
(4) 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.
(5) 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.
StartStopInvalid Input
REC1
REC2
MON
Status
Power DownPowering UpRecordingPower DownPowering 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.
(2) The LSI automatically ends playback when the last address of the recorded phrase has been
reached.
(3) The LSI automatically shifts to low-power consumption mode after playback ends.
(4) 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.
(5) During playback operation signal input to the PLAY1 or PLAY2 pin only is valid, any other
signal input is disregarded
Start PulseStop Pulse
PLAY1
PLAY2
Stop
MON
Status
Power DownPowering UpPlaying BackPower DownPowering Down
Figure 1.5 Timing Chart for Phrase 2 Playback Operation
ML2502 Data Sheet (Revision 8.0)
6
OKIML2502
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.
(2) After Phrase 2 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 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 DownPowering UpErasingPower DownPowering Down
Figure 1.6 Timing Chart for Phrase 2 Erasing Operation
ML2502 Data Sheet (Revision 8.0)
7
OKIML2502
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.
(2) The LSI automatically ends recording when the last address of the memory has been
reached.
(3) The LSI automatically shifts to low-power consumption mode after recording ends.
(4) 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.
(5) During recording operation any signal input to other pins than the REC1 and the REC2 is
disregarded.
Note: Re-recording always causes to overwrite the existing recording data for a given phrase.
REC1
REC2
PLAY1
PLAY2
MON
Status
StartStopInvalid Input
Power DownPowering UpRecordingPower DownPowering Down
Stopping Process
Figure 2.1 Timing Chart for Single-phrase Recording Operation
ML2502 Data Sheet (Revision 8.0)
8
OKIML2502
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.
(2) The LSI automatically ends playback when the last address of the recorded phrase has been
reached.
(3) The LSI automatically shifts to low-power consumption mode after playback ends.
(4) 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.
(5) During playback operation signal input to the PLAY1 or PLAY2 pin only is valid, any other
signal input is disregarded.
Start PulseStop PulseInvalid Input
PLAY1
PLAY2
REC1
REC2
MON
Status
Power DownPowering UpPlaying BackPower DownPowering Down
Figure 2.2 Timing Chart for Single-phrase Playback Operation
ML2502 Data Sheet (Revision 8.0)
9
OKIML2502
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.
(2) After the phrase 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 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 DownPowering UpErasingPower DownPowering Down
Figure 2.3 Timing Chart for Single-phrase Erasing Operation
ML2502 Data Sheet (Revision 8.0)
10
OKIML2502
3. Repeating Playback Operation
(1) 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.
(2) The LSI automatically restarts playback when the last address of the phrase has been
reached.
(3) 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.
(4) The LSI automatically powers down after playback ends.
(5) 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 PulseStop Pulse
PLAY1
PLAY2
End PlayingResume Plaing
MON
Status
Power Down Powering UpPlaying BackPower DownPowering Down
IntervalPlaying Back
Figure 3.1 Timing Chart for Repetitive Playback Operation