OKI MS87V1021

PEDS87V1021-01
1Semiconductor
MS87V1021
This version: Sept. 2000
Recording and Playback IC with Built-in 2-Mbit DRAM
GENERAL DESCRIPTION
The MS87V1021 is a single chip recording and playback IC that is controlled by the microcontroller in serial mode,
compresses voice with the 4-bit OKI ADPCM algorithm or 4-bit OKI ADPCM2 algorithm with high tone quality,
and has 2-Mbit DRAM in which recorded data is stored and 512-Kbit mask ROM in which fixed messages reside.
The MS87V1021 includes such features as Normal Recording and Playback, Delayed playback, Retroactive
playback, Fast forwarding, and Rewinding.
The internal memory in which voice data is stored allows a recording/playback system to be constructed merely by
externally connecting it to a microphone, a speaker driving amplifier, and a speaker.
FEATURES
• Serial microcontroller interface (clock synchronized)
• Built-in 512-Kbit mask ROM for fixed messages
ROM playback time :
Approx. 15 seconds (Fsam = 8.0 kHz)
Approx. 20 seconds (Fsam = 6.4 kHz)
Approx. 30 seconds (Fsam = 4.0 kHz)
• Voice analyzing and synthesizing system :
4-bit OKI ADPCM or 4-bit OKI ADPCM2 algorithm
8-bit OKI non-linear PCM algorithm (for ROM playback only)
• Sampling frequency (source oscillation frequency: 4.096 MHz) :
4.0 kHz, 5.3 kHz, 6.4 kHz, 8.0 kHz, or 10.6 kHz
• Recording time:
Approx. 60 seconds (Fsam = 8.0 kHz)
Approx. 80 seconds (Fsam = 6.4 kHz)
Approx. 120 seconds (Fsam = 4.0 kHz)
• Built-in 14-bit A-to-D and D-to-A converters
• Built-in LPF: Attenuation rate –40 dB/oct
• Number of phrases
Variable message: 255 phrases
Fixed phrases: 255 phrases
• Source oscillation frequency: 4.096 MHz
• Supply voltage: 2.7 to 3.6 V
• Operating current:
15 mA max. (source oscillation frequency : 4.096 MHz, Supply voltage : 3.6 V)
• Operating temperature: –20 to +70° C
• Package: 32-pin TSOP Type I
1/63
PEDS87V1021-01
1Semiconductor
MS87V1021
CONTENTS
GENERAL DESCRIPTION .................................................................................................................................1
FEATURES ..........................................................................................................................................................1
BLOCK DIAGRAM .............................................................................................................................................4
PIN CONFIGURATION (TOP VIEW)................................................................................................................4
PIN DESCRIPTION .............................................................................................................................................5
APPLICATION CIRCUIT EXAMPLE................................................................................................................6
ABSOLUTE MAXIMUM RATINGS ..................................................................................................................7
RECOMMENDED OPERATING CONDITIONS............................................................................................... 7
ELECTRICAL CHARACTERISTICS .................................................................................................................7
DC Characteristics. .............................................................................................................................................7
AC Characteristics ..............................................................................................................................................8
1. Microcontroller interface mode....................................................................................................................8
2. BUSY time when a command is executed ..................................................................................................8
3. Status flag time when a command is executed...........................................................................................10
Analog Characteristics... ...................................................................................................................................11
Analog Input Amplifier Circuit.........................................................................................................................11
LPF Characteristics...... .....................................................................................................................................12
AD, DA Converter Full Scale... ........................................................................................................................12
NOTICE.......................................... ....................................................................................................................13
Power Supply Connection.................................................................................................................................13
Supplementary Explanation on SG Pin .............................................................................................................14
TIMING DIAGRAMS ........................................................................................................................................15
Serial microcontroller interface mode...............................................................................................................15
Ready for recording with Rec command...........................................................................................................17
Ready for playback with Play command...........................................................................................................17
Starting recording with Start command ............................................................................................................18
Starting playback with Start command .............................................................................................................18
Ending recording/playback with Stop command ..............................................................................................19
Pause of recording/playback with Pause command ..........................................................................................19
Setting voice area block with Area1 commnand...............................................................................................20
Setting voice area with Area2 command...........................................................................................................20
Setting Delay value with Delay command ........................................................................................................21
Deleting phrase with Del command. .................................................................................................................21
Outputting STATUS with Status command......................................................................................................22
Reading recording/playback start address with Adrrd command......................................................................23
Writing recording/playback start address with Adrwr command......................................................................23
Copying page data with Copy command ..........................................................................................................24
Fast forward/rewind with Cue/rew command ...................................................................................................24
Data transfer with Dtrw command ....................................................................................................................25
Ending Dtrw mode with End command ............................................................................................................25
Continuous ROM playback with Rply command .............................................................................................26
Reset function ...................................................................................................................................................27
Power down function. .......................................................................................................................................27
LIST OF COMMANDS......................................................................................................................................28
Delayed Play Mode...........................................................................................................................................28
Retroactive Play Mode (1/2) .............................................................................................................................29
Retroactive Play Mode (2/2) .............................................................................................................................30
Normal Mode(1/2) ............................................................................................................................................31
Normal Mode(2/2) ............................................................................................................................................32
Other Commands (Common in All Modes) (1/2). ............................................................................................33
Other Commands (Common in All Modes) (2/2). ............................................................................................34
Fast Forward/Rewind Playback (Valid only in Retroactive Play Mode and Normal Mode) ............................35
FLOWCHARTS .................................................................................................................................................36
2/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Delayed Play Mode...........................................................................................................................................36
Retroactive Play Mode (1) ................................................................................................................................37
Retroactive Play Mode (2) ................................................................................................................................38
Recording in Normal Mode ..............................................................................................................................39
Playback in Normal Mode .................................................... ............................................................................40
Dtrw Command.................................................................................................................................................41
STATUS TRANSITION DIAGRAM.................................................................................................................42
SUMMARY OF OPERATING MODES AND FUNCTIONS...........................................................................43
Delayed Play Mode............................................................................................................................................43
Retroactive Play Mode......................................................................................................................................44
Normal Mode ....................................................................................................................................................45
Fast Forward/Rewind Function (Cue/Rew) ......................................................................................................46
Copy Command ................................................................................................................................................47
MEMORY ALLOCATION ................................................................................................................................49
Storing Sound Data to DRAM (In Pages) .........................................................................................................49
Storing Sound Data to DRAM (In Blocks). ......................................................................................................50
Controlling Address in Retroactive Play Mode ................................................................................................53
Controlling Address in Normal Mode...............................................................................................................54
Address Control Data for Each Phrase..............................................................................................................55
Addressing with the Adrrd and Adrwr Commands...........................................................................................56
Memory Allocation of Mask ROM...................................................................................................................57
Memory Map.....................................................................................................................................................58
Recording Time Length...................... ..............................................................................................................59
Delay Time in Delayed Play Mode and Retroactive Play Mode.......................................................................61
PACKAGE DIMENSIONS ................................................................................................................................62
3/63
PEDS87V1021-01
1Semiconductor
MS87V1021
BLOCK DIAGRAM
AOUT SG
LOUT
LIN
LPF
DAC
ADC
LPF
SG
AIN
Volume
SG
AMON
Controller
ADPCM
Analizer/
CS
SI
SO
SK
BUSY
Synthesizer
DARM
MaskROM
2M-Bit
512k-Bit
MCU
I/F
TEST
Timing Controller
XT
XT
TEST
RESET
PIN CONFIGURATION (TOP VIEW)
MGND
1
32
AGND
TEST
2
31
SG
TEST
3
30
LIN
TEST
4
29
LOUT
TEST
5
28
AMON
TEST
6
27
AOUT
TEST
7
26
AIN
TEST
8
25
AVDD
TEST
9
24
DGND
TEST
10
23
TEST
BUSY
11
22
TEST
SK
12
21
TEST
SO
13
20
RESET
SI
14
19
XT
CS
15
18
XT
MVDD
16
17
DVDD
32-pin plastic TSOP Type I (TSOP32-P814-K)
4/63
PEDS87V1021-01
1Semiconductor
MS87V1021
PIN DESCRIPTION
Pin No.
Symbol
I/O
14
SI
I
Inputs 8-bit command or data.
Description
13
SO
O
Outputs 8-bit status or data.
12
SK
I
Data transfer clock for SI and SO.
15
CS
I
The SK pulse is accepted when this pin is “L”. The SK pulse is not accepted when
this pin is “H”.
11
BUSY
O
Outputs “H” level during command execution. At that time, do not input a
command from the external microcontroller.
19
XT
I
18
XT
O
Crystal oscillator connection pins. When using an external clock, input the clock
via the XT pin and leave the XT pin unconnected. When an external clock is used
in power down mode, fix the XT pin at the GND level.
20
RESET
I
The device is reset when “L” level is input. When oscillation starts, set this pin to
“L” level until oscillation becomes stable, and set to “H” level after oscillation
becomes stable. Data stored in the internal DRAM is cleared when “L” level is
input, while data is not erased when a reset signal is input for the purpose of
releasing the Pdwn1 mode.
31
SG
O
Analog reference voltage (signal ground). Connect a 1 µF capacitor between
AGND and this pin.
30
LIN
I
Inverting input pin for internal OP amplifier. The non-inverting input pin is
internally connected to SG.
29
LOUT
O
Output pin for internal OP amplifier
27
AOUT
O
Output pin for playback LPF. This pin outputs playback waveforms and is
connected to the speaker driving amplifier.
2
TEST
I
Testing pin. The TEST pin is fixed at the VDD level and the TEST pins are fixed at
the GND level.
Output pin for analog testing. Leave it unconnected.
3-10,
21-23
TEST
28
AMON
O
26
AIN
I
Input pin for analog testing. Fix it at the GND level.
Digital power supply pin. Connect a 0.1 µF or more bypass capacitor between
DGND and this pin.
17
DVDD
—
24
DGND
—
Digital GND pin
16
MVDD
—
Power supply pin for DRM. Connect a 0.1 µF or more bypass capacitor between
MGND and this pin.
1
MGND
—
Ground pin for DRAM
25
AVDD
—
Analog power supply pin. Connect a 0.1 µF or more bypass capacitor between
AGND and this pin.
32
AGND
—
Analog GND pin
5/63
PEDS87V1021-01
1Semiconductor
MS87V1021
APPLICATION CIRCUIT EXAMPLE
SI
MVDD DVDD AVDD
SO
SK
MCU
CS
RESET
TEST
BUSY
TEST
MS87V1021
Voice input
MSC1157
AOUT
LIN
SG
+
LOUT
OPEN
AMON
XT
AIN
XT
MGND DGND AGND
6/63
PEDS87V1021-01
1Semiconductor
MS87V1021
ABSOLUTE MAXIMUM RATINGS
(GND = 0 V)
Symbol
Condition
Rated value
Unit
Power supply voltage
Parameter
VDD
Ta = 25°C
–0.5 to 4.6
V
Pin voltage
VT
Ta = 25°C
–0.5 to VDD+0.5
V
Output shortcircuit current
IOS
Ta = 25°C
50
mA
Power dissipation
PD
Ta = 25°C
1
W
Operating temperature
TOPR
—
–20 to +70
°C
Storage temperature
TSTG
—
–55 to +150
°C
RECOMMENDED OPERATING CONDITIONS
(Ta= –20 to +70°C)
Parameter
Symbol
Min.
Max.
Power supply voltage
VDD
2.7
3.6
V
Power supply voltage
GND
0
0
V
VIH
VDD–0.2
VDD
V
“L” input voltage
VIL
–0.2
Source oscillation frequency
fOSC
“H” input voltage
Unit
0.2
V
4.096
MHz
ELECTRICAL CHARACTERISTICS
DC Characteristics
(Ta = –20 to +70°C)
Symbol
Condition
Min.
Typ.
Max.
Unit
“H” output voltage
Parameter
VOH
IOH = –1 mA
VDD–0.3
—
—
V
“L” output voltage
VOL
IOL = +1 mA
—
—
0.3
V
–10
—
10
µA
–20
—
20
µA
Input leakage current
(Note 1)
Input leakage current
(Note 2)
Operating current
ILI1
ILI2
0 V < VIN < VDD
Non-measured pins are at 0 V.
0V < VIN < VDD
Non-measured pins are at 0 V.
IDD
fOSC = 4.096 MHz no load
—
10
15
mA
Standby current 1
IDDS
When powered down, no load,
with DRAM refreshing
—
—
70
µA
Standby current 2
IDDS2
When powered down, no load,
without DRAM refreshing
—
—
40
µA
Notes: 1. Applicable to input pins excluding XT and XT.
2. Applicable to XT and XT.
7/63
PEDS87V1021-01
1Semiconductor
MS87V1021
AC Characteristics
1. Microcontroller interface mode
(VDD = 2.7 to 3.6 V, Ta = –20° to +70°C)
(fOSC = 4.096 MHz Fsam = 8.0 kHz)
Parameter
Symbol
Min.
Typ.
Max.
Unit
Note
RESET pulse width
tRST
1
—
—
µs
1
RESET execution time
tREX
—
—
5
ms
Setup and hold time of SK for CS
tSKS
500
—
—
ns
SK pulse width “H”
tSKH
1000
—
—
ns
SK pulse width “L”
tSKL
1000
—
—
ns
Setup time of SI for SK rise
tDS
250
—
—
ns
Hold time of SI for SK rise
tDH
250
—
—
ns
Data valid time from fall of CS
tCSE
—
—
200
ns
Data Hi-Z time from rise of CS
tCSF
—
—
200
ns
Data valid time from fall of SK
tDD
—
—
200
ns
BUSY rise time from rise of CS
tBSY
—
—
200
ns
Source oscillation duty cycle
tDUTY
40
50
60
%
2. BUSY time when a command is executed
(VDD = 2.7 to 3.6 V, Ta = –20 to +70°C)
(fOSC = 4.096 MHz Fsam = 8.0 kHz)
Parameter
Symbol
Min.
Max.
Unit
tBR
—
300
µs
BUSY time after input of mode setting command
tMODB
—
300
µs
BUSY time after input of Area1 command
(3)
tAR1B
—
1
ms
tAR2B
—
1
ms
tDLYB
—
1
ms
—
65
ms
—
1
ms
tPLYB
—
65
ms
tPLYB
—
1
ms
BUSY time after input of command
Normal mode
Note
Delayed play mode
BUSY time after input of Area2 command
(3)
Retroactive play mode
Normal mode
Retroactive play mode
BUSY time after input of Delay command (3)
Normal mode
Delayed play mode
BUSY time after input of Rec command (2)
Retroactive play mode
tRECB
2
Normal mode
BUSY time after input of
Play command (2)
During
recording
Delayed play mode
Retroactive play mode
2
Delayed play mode
During pause
Retroactive play mode
Normal mode
8/63
PEDS87V1021-01
1Semiconductor
MS87V1021
(VDD = 2.7 to 3.6 V, Ta = –20 to +70°C)
(fOSC = 4.096 MHz Fsam = 8.0 kHz)
Parameter
Symbol
During
recording
BUSY time after input of Play2
command (2)
During
pause
Retroactive
play mode
tPLAYB
Normal mode
BUSY time after input of Stop
command
After input of Stop command
during pause
tSPB
During ROM playback
(Non-linear)
BUSY time after input of Pause command
BUSY time after input of Adrrd command (2)
tPB
Retroactive
play mode
Normal mode
tADRB
BUSY time after input of Adrrd command (8)
Min.
Max.
Unit
Note
—
65
ms
2
—
1
ms
—
65
ms
—
1
ms
—
65
ms
—
300
µs
—
1
ms
—
1
ms
2
2
BUSY time after input of Adrwr command (8)
tADWB
—
1
ms
BUSY time after input of Cue/Rew command (2)
tCRB
—
65
ms
2
BUSY time after input of Del command (2)
2
tDELB
—
65
ms
BUSY time after input of Dtrw command
tBR
—
300
µs
BUSY time after input of Bytew command
tBR
—
300
µs
BUSY time after input of Byter command
tBR
—
300
µs
BUSY time after input of End command
tBR
—
300
µs
tCPYB
—
10
ms
BUSY time after input of Vol command
tBR
—
300
µs
BUSY time after input of Rply command
tBR
—
300
µs
BUSY time after input of Status command
tBR
—
300
µs
BUSY time after input of Nop command
tBR
—
300
µs
BUSY time after input of Copy command (7)
1 page
A number in parenthesis indicates the number of bytes of each command.
9/63
PEDS87V1021-01
1Semiconductor
MS87V1021
3. Status flag time when a command is executed
(VDD = 2.7 to 3.6 V, Ta = –20 to +70°C)
(fOSC = 4.096 MHz Fsam = 8.0 kHz)
Parameter
Symbol
Min.
Max.
Unit
Rec command to RPM bit set
tRECR
—
1
ms
Play command to RPM bit set
tPLYR
—
1
ms
tRPLYR
—
2
ms
Play2 command to RPM bit set
tPLYR
—
65
ms
Stop command to RPM bit set
tSPR
—
2
ms
tRSPR
—
1
ms
STOP command (during pause) to RPM bit set
tPSPR
—
1
ms
Rec command to REC bit set
tREC
—
1
ms
—
65
ms
—
1
ms
During ROM playback
During ROM playback
Play command to PLY bit set
During
recording
Note
2
Delayed play mode
Retroactive play mode
2
tPLY
During pausing
Normal mode
Pause command to PAUSE bit set
tPUS
—
65
ms
Pause command to PAUSE bit reset
tPUSR
—
300
µs
tAD
—
2
ms
—
65
ms
—
1
ms
—
65
ms
—
1
ms
Address control time during repeated ROM playback
Oscillation stop from rise of CS after input of Pwdn1 command
During ROM playback
Oscillation stop from rise of CS after input of Pwdn2 command
During ROM playback
Note
tPXT
2
1: When powering on or releasing the power down mode, input “L” level to the RESET pin until
crystal oscillation becomes stable. Moreover, when powering on, input again “L” level to the
RESET pin for more than tRST to initialize the internal circuit.
2: Depending on sampling frequency Fsam.
10/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Analog Characteristics
(VDD = 2.7 to 3.6V,Ta = -20 to +70°C)
Parameter
Symbol
Condition
Min.
Max.
Unit
DA output relative error
|VDAE|
No load
LPF input voltage range
VFIN
—
—
5
mV
1/4 × VDD
3/4 × VDD
V
OP-amp open loop gain
GOP
fIN = 0 to 4 kHz
10
OP-amp input impedance
RINA
—
1
—
MΩ
OP-amp load resistance
ROUTA
—
100
—
kΩ
AOUT load resistance
RAOUT
—
100
—
kΩ
dB
Analog Input Amplifier Ciricuit
This IC contains an OP amplifier with the inverting input pin and output pin.
The analog circuit reference voltage (signal ground) is internally input as the non-inverting input. When
amplification is required, adjust the amplification factor using an external resistor after constructing the inverting
amplifier circuit.
VDD
VLO
VIN
+
–
R1
R2
VLO
LOUT
LIN
1
V
2 DD
Inside LSI
–
+
VFIN (min)
GND
SG
VLO =
VFIN (max)
R2
R1
VIH
The output pin, LOUT, of OP amplifier is internally input to LPF (Low Pass Filter). Adjust the gain using the
external resistor so that the VLO is within the accessible input voltage range VFIN. If VLO is over the VFIN, the LPF
output waveform will be distorted.
The example of SCF input voltage range is shown below.
Model
Supply voltage VDD
MS87V1021
3V
SCF admissible voltage range
Min.
Max.
0.75 V
2.25 V
SCF admissible input voltage
1.5 Vp-p
The minimum value of OP-amp load resistance is 100 kΩ. The feedback resistance R2 of inverting amplifier
circuit must be larger than 100 kΩ.
11/63
PEDS87V1021-01
1Semiconductor
MS87V1021
LPF Characteristics
The MS87V1021 contains a 4-th order LPF in which the switched capacitor filter technique is adopted. The LOUT
pin is internally connected to the input of LPF.
The attenuation rate is –40 dB/oct. The cut-off frequency and frequency characteristics vary in proportion to
sampling frequency (Fsam).
The cut-off frequency is designed to 4/10 of sampling frequency.
The characteristics of LPF when Fsam = 8 kHz are shown below.
[dB] 20
10
0
–10
–20
–30
–40
–50
–60
–70
–80
100
1k
10k
[Hz]
LPF characteristics (Fsam = 8.0 kHz)
AD, DA Converter Full Scale
Model
MS87V1021
AD, DA converter full scale
Min. (V)
Max. (V)
Amplitude (Vp-p)
1/4 × VDD
3/4 × VDD
1/2 × VDD
VDD (3 V)
3
VDD (2.25 V)
4
1
V (1.5 V)
2 DD
1
VDD (0.75 V)
4
0 V (0 V)
A value in parenthesis
indicates a voltage when
VDD is 3.0 V.
AD, DA converter full scale
LPF admissible input voltage range
12/63
PEDS87V1021-01
1Semiconductor
MS87V1021
NOTICE
Power Supply Connection
The power of this IC is supplied from a single power supply as shown below, which should be connected to the
analog section, logic section and memory section separately.
DVDD
DGND
AGND
MGND
AVDD
MVDD
Power source
Ground
If the analog section, digital section and memory section are supplied from different power sources, a latch-up may
occur. Be sure to avoid the power supply connections shown below.
Power source
Power source 1
Power source 2
Power source 1
Power source 2
Power source 2
AVDD
DVDD
LSI
MVDD
DVDD
MVDD
AVDD
LSI
AVDD
Power source 1
MVDD
LSI
DVDD
DVDD
MVDD
AVDD
LSI
13/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Supplementary Explanation on SG Pin
Connect a 1 µF electrolytic capacitor between the SG pin and AGND.
After reset or releasing the power down mode, do recording or playback after the voltage level of SG pin becomes
stable. The voltage level becomes stable at 1/2 of VDD. The time to be stabilized is approximately 50 ms in case
shown below.
Inside of LSI
Approx. 20 kΩ
Approx. 20 kΩ
External circuit
SG pin
+
1 µF
AGND
14/63
PEDS87V1021-01
1Semiconductor
MS87V1021
TIMING DIAGRAMS
Serial microcontroller interface mode
[Data write operation]
2nd byte
1st byte
CS (I)
SK (I)
MSB D6 D5
SI (I)
D4 D3 D2 D1 LSB
MSB D6
D5 D4 D3 D2
Hi-Z
SO (O)
BUSY (O)
Data I/O disabled
[Data read operation]
CS (I)
Data input
Data output
SK (I)
SI (I)
SO (O)
MSB D6
Hi-Z
MSB Q6 Q5 Q4 Q3 Q2
D5 D4 D3 D2
Hi-Z
Q1 LSB
BUSY (O)
Data I/O disabled
15/63
PEDS87V1021-01
1Semiconductor
MS87V1021
[Data write operation]
CS (I)
tSKL tSKH
tSKS
tSKS
(Note) “L” level
SK (I) (Note) “L” level
tDS
SI (I)
tDH
D6
MS
D1
LSB
Hi-Z
SO (O)
tBSY
BUSY (O)
(Note) Be sure to set SK to “L” when CS is at “H” level.
[Data read operation]
CS (I)
tSKL tSKH
tSKS
SK (I)
tSKS
(Note) “L” level
(Note) “L” level
SI (I)
tDD
tCSE
SO (O)
Hi-Z
MS
Q6
tCSF
D1
Hi-Z
LSB
tBSY
BUSY (O)
(Note) Be sure to set SK to “L” when CS is at “H” level.
16/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Ready for recording with Rec command
CS
SK
SI
Rec command (1)
Rec command (2)
BUSY
tRECB
tBR
Standby
Executing Rec
command (1)
Standby
Executing Rec
command (2)
Standby
Ready for playback with Play command
CS
SK
SI
Play command (1)
Play command (2)
BUSY
tBR
Standby
Executing Play
command (1)
tPLYB
Standby
Executing Play
command (2)
Standby
17/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Starting recording with Start command
CS
SK
SI
Rec command
(1)
Rec command
(2)
Start command
tSTB
BUSY
tRECR
RPM bit
Standby
Executing Rec
command (1)
Recording
Standby
Standby
Executing Start
command
Executing Rec
command (2)
Starting playback with Start command
CS
SK
SI
Play command
(1)
Play command
(2)
Start command
tBR
BUSY
tPLYR
RPM bit
Standby
Standby
Executing Play
command (1)
Standby
Executing Play
command (2)
Playing
Executing Start
command
18/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Ending recording/playback with Stop command
CS
SK
SI
Stop command (1)
BUSY
tSPB
tSPR
RPM bit
Recording/playing
Stop processing
Standby
Pause of recording/playback with Pause command
CS
SK
SI
Pause command
Pause command
Pause command
BUSY
tPUS
PAUSE
bit
Recording/playing
tPB
tPB
tPB
tPUSR
Pausing
Executing Pause
command
Recording/playing
Executing Pause
command
Pausing
Executing Pause
command
19/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Setting voice area block with Area1 command
CS
SK
SI
Area1
command (1)
Area1
command (2)
Area1
command (3)
BUSY
tBR
tBR
Standby
Standby
Standby
Executing Area1
command (1)
tAR1B
Executing Area1
command (2)
Standby
Executing Area1
command (3)
Setting voice area with Area2 command
CS
SK
SI
Area2
command (2)
Area2
command (1)
Area2
command (3)
BUSY
Standby
tAR2B
tBR
tBR
Standby
Executing Area2
command (1)
Standby
Executing Area2
command (2)
Standby
Executing Area2
command (3)
20/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Setting Delay value with Delay command
CS
SK
SI
Delay
command (1)
Delay
command (3)
Delay
command (2)
BUSY
Standby
tDLYB
tBR
tBR
Standby
Executing Delay
command (1)
Standby
Executing Delay
command (2)
Standby
Executing Delay
command (3)
Deleting phrase with Del command
CS
SK
SI
Del command (1)
Del command (2)
BUSY
tDELB
tBR
Standby
Executing Del
command (1)
Standby
Executing Del
command (2)
Standby
21/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Outputting STATUS with Status command
CS
SK
SI
Status command
SO
Status output
BUSY
tBR
Standby
Executing Status
command
tBR
Status output
Standby
22/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Reading recording/playback start address with Adrrd command
CS
SK
SI
Adrrd(1)
Adrrd(2)
SO
tADRB
tBR
Stadr
[23:16]
Stadr
[15:8]
tBR
tBR
Stadr
[7:0]
tBR
Enadr
[23:16]
tBR
Enadr
[15:8]
tBR
Enadr
[7:0]
tADRB
BUSY
Standby
Standby
Executing
Adrrd (1)
command
Standby
Executing
Adrrd (2)
command
Standby
Executing
Adrrd (3)
command
Standby
Executing
Adrrd (4)
command
Standby
Executing
Adrrd (5)
command
Standby
Executing
Adrrd (6)
command
Reading Stadr address
Standby
Executing
Adrrd (7)
command
Standby
Executing
Adrrd (8)
command
Reading Enadr address
Writing recording/playback start address with Adrwr command
CS
SK
SI
Adrwr(1)
Stadr
[23:16]
Adrwr(2)
tBR
tBR
Stadr
[15:8]
tBR
Stadr
[7:0]
tBR
Enadr
[23:16]
tBR
Enadr
[15:8]
tBR
Enadr
[7:0]
tADRB
tBR
BUSY
Standby
Standby
Executing
Adrwr (1)
command
Standby
Executing
Adrwr (2)
command
Standby
Executing
Adrwr (3)
command
Standby
Executing
Adrwr (4)
command
Writing Stadr address
Standby
Executing
Adrwr (5)
command
Standby
Executing
Adrwr (6)
command
Standby
Executing
Adrwr (7)
command
Standby
Executing
Adrwr (8)
command
Writing Enadr address
23/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Copying page data with Copy command
CS
SK
SI
PgStart
[7:0]
PgStart
[15:8]
Copy(1)
tBR
tBR
PgEnd
[15:8]
tBR
PgEnd
[7:0]
tBR
Target
[15:8]
tBR
Target
[7:0]
tBR
tCPYB
BUSY
Standby
Standby
Executing
Copy (1)
command
Standby
Standby
Executing
Copy (3)
command
Executing
Copy (2)
command
Standby
Executing
Copy (4)
command
Standby
Executing
Copy (5)
command
Standby
Executing
Copy (6)
command
Standby
Executing
Copy (7)
command
Fast forward/rewind with Cue/Rew command
CS
SK
SI
Cue/
Rew(1)
Cue/
Rew(1)
Cue/
Rew(2)
tCRB
tBR
Cue/
Rew(2)
tCRB
tBR
BUSY
Normal playing
Standby
Fast forwarding/rewinding (double speed)
Standby
Executing
Cue/Rew (1)
command
Executing
Cue/Rew (2)
command
Standby
Fast forwarding/rewinding
(single speed)
Standby
Standby
Executing
Executing
Cue/Rew (1) Cue/Rew (2)
command
command
24/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Data transfer with Dtrw command
CS
SK
SI
Dtrw(1)
Dtrw(3)
Dtrw(2)
Write
Data
Bytew(1)
Dtrw(4)
Byter(1)
SO
tBR
tBR
tBR
tBR
tBR
tBR
tBR
Read
Data
tBR
BUSY
Standby
Executing Dtrw command
Executing Bytew
command
Executing Byter
command
Standby
Ending Dtrw mode with End command
CS
SK
SI
End command
BUSY
tBR
Standby
Executing End
command
Standby
25/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Continuous ROM playback with Rply command
CS
SK
SI
Rply
(1)
Rply
(2)
Phrase 1
tBR
tBR
Rply
(1)
Rply
(2)
Rply
(1)
Rply
(2)
Phrase 3
Phrase 2
BUSY
NAR bit
RPM bit
tAD
Voice
output
Playing phrase1
tAD
Playing phrase2
Playing phrase3
(Note)
When ROM is being continuously played, other commands than Rply command, Stop command, Vol
command and Status command cannot be acceptable.
26/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Reset function
VDD
Specified power
supply voltage
tRST
RESET
tREX
BUSY
XT
XT
Oscillation start
Stable oscillation
[Reset after powering on]
When powering on, be sure to initialize the internal circuit by inputting an “L” level pulse to the RESET pin for a
specified time after the power supply voltage level reaches the specified level and oscillation becomes stable.
Power down function
CS
SK
SI
Power down
command
tRST
RESET
tREX
BUSY
tPXT
XT
XT
Stable oscillation
Standby
Power down
command input
Power down command
processing
Oscillation stop
Power down
Oscillation
start
Stable oscillation
Oscillation start Executing
RESET
RESET input
Standby
27/63
PEDS87V1021-01
1Semiconductor
MS87V1021
THE COMMANDS LIST
Delayed Play Mode
Command
Code
Mode
1st Byte 01h
Area2
1st Byte 39h
2nd Byte Start2[7:0]
3rd Byte End2[7:0]
Delay
Rec
1st Byte 38h
2nd Byte Dly[15:8]
3rd Byte Dly[7:0]
1st Byte
10h
2nd Byte Method[7:4]
Samp[3:0]
Description
Sets the operating mode to Delayed Play Mode.
Selects a sound data area.
Start Block Address; address range: 00h to FFh, by default set to: 00h
End Block Address; address range: 00h to FFh, by default set to: FFh
The memory area starting from the block specified with the Start2 up to that
specified with the End2 is selected. Up to 256 blocks can be selected.
Each value set with this command remains valid until you enter Reset or
the Mode command to change the operating mode.
You may not set the Start2 address value that is lower than the End2
address.
Defines the Delay time (i.e. a time lag between recording and its playback).
The value for the Dly
The Delay time can be obtained with the following formula:
(Dly × 250 ÷ Sampling Frequency)
For more details on setting the Dly value, see “Delay Time in Delayed Play
Mode and Retroactive Play Mode” later in this document.
Sets the LSI to record-ready state and selects the Method and Samp
values.
The value for the Method.
The value for the Samp.
Entering the Start command following the Rec command input initiates
recording, which keeps going on until the Stop command is entered.
While recording, playback will not start until the Play command is entered.
If you enter the Rec command while recording and playing, the LSI stops
playing and outputs SG level from the AOUT pin. In this case, recording
still goes on even after playback stops.
Voice Synthesis Algorithm
Method
0h
1h
Algorithm
ADPCM
ADPCM2
Others
Prohibited
Sampling Frequency
Samp
3h
4h
5h
6h
7h
8h
9h
Sampling Frequency
4.0kHz
4.0kHz
5.3kHz
6.4kHz
8.0kHz
8.0kHz
10.6kHz
Others
fosc = 4.096 MHz
Play
1st Byte
2nd Byte
20h
Method[7:4]
Samp[3:0]
Start
Stop
1st Byte
1st Byte
30h
40h
(fosc/1024)
(fosc/1024)
(fosc/768)
(fosc/640)
(fosc/512)
(fosc/512)
(fosc/384)
Prohibited
Sets the LSI to play-ready state and selects the Method and Samp values.
The value for the Method.
The value for the Samp.
Entering the Play command while recording causes the LSI to start playing
what has been recorded the Delay time ago, with recording still going on.
For more details on the Method and Samp, see description on the Rec
command earlier in this document.
Starts recording/playing.
Stops recording/playing.
28/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Retroactive Play Mode (1/2)
Command
Mode
1st Byte
02h
Description
Sets the operating mode to Retroactive Play Mode. (Cue/Rewind
function available)
Area2
1st Byte
2nd Byte
39h
Start2[7:0]
Selects a sound data area.
Start Block Address; address range: 00h to FFh, by default set to: 00h
3rd Byte
End2[7:0]
End Block Address; address range: 00h to FFh, by default set to: FFh
The memory area starting from the block specified with the Start2 up to
that specified with the End2 is selected. Up to 256 blocks can be
selected.
Each value set with this command remains valid until you enter Reset or
the Mode command to change the operating mode.
You may not set the Start2 address value that is lower than the End2
address.
Defines the Delay time (i.e. a time to go back to the past).
Delay
Rec
Code
1st Byte
38h
2nd Byte
3rd Byte
Dly[15:8]
Dly[7:0]
1st Byte
01h
2nd Byte
Method[7:4]
Samp[3:0]
Play
Play2
1st Byte
20h
2nd Byte
Method[7:4]
Samp[3:0]
1st Byte
21h
2nd Byte
Method[7:4]
Samp[3:0]
The value for the Dly
Use this command to set the Delay time, that is the time length going
back to the past from the time when the Play or Play2 command is
entered.
The Delay time can be obtained with the following formula:
(Dly × 250 ÷ Sampling Frequency)
For more details on setting the Dly value, see “Delay Time in Delayed
Play Mode and Retroactive Play Mode” later in this document.
Sets the LSI to record-ready state and selects the Method and Samp
values.
The value for the Method.
The value for the Samp.
For more details on the Method and Samp, see description on the Rec
command in Delayed Play Mode earlier in this document.
Sets the LSI to play-ready state and selects the Method and Samp
values.
The value for the Method.
The value for the Samp.
Entering the Play command while recording causes the LSI to play once
from what was recorded the Delay time ago up to the time when the Play
command is entered. In this case, recording stops.
For more details on setting the Dly value, see “Delay Time in Delayed
Play Mode and Retroactive Play Mode” later in this document.
Sets the LSI to repeat-play-ready state and selects the Method and
Samp values.
The value for the Method.
The value for the Samp.
Entering the Play2 command while recording causes the LSI to repeat
playing from what was recorded the Delay time ago up to the time when
the command is entered. In this case, recording stops.
For more details on setting the Dly value, see “Delay Time in Delayed
Play Mode and Retroactive Play Mode” later in this document.
29/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Retroactive Play Mode (2/2)
Command
Adrrd
Code
Description
1st Byte 51h
Use this command to read the Start and End address values of the
recorded data.
2nd Byte 00h
Set this to “00h”.
3rd Byte Stadr[23:16](O) Outputs the start-record address (in serial from the SO pin).
4th Byte Stadr[15:8](O)
5th Byte Stadr[7:0](O)
6th Byte Enadr[23:16](O) Outputs the end-record address (in serial from the SO pin).
7th Byte Enadr[15:8](O)
8th Byte Enadr[7:0](O)
You need to know the exact address where sound data is stored to play
the data again in Retroactive Play Mode after record/play operation in
the mode is complete. This command allows you to read the start-record
and end-record addresses.
Adrwr
1st Byte 50h
Use this command to write the Start and End address values of the
playback data.
2nd Byte 00h
Set this to “00h”.
3rd Byte Stadr[23:16]
The value for the start-play address. You need to set the lower 7 bits to
“0”.
4th Byte Stadr[15:8]
5th Byte Stadr[7:0]
6th Byte Enadr[23:16]
7th Byte Enadr[15:8]
The value for the end-play address. You need to set the lower 7 bits to
“1”.
8th Byte Enadr[7:0]
You need to specify the address where sound data is stored to play the
data again in Retroactive Play Mode after record/play operation in the
mode is complete. This command enables you to write the start-play
and end-play addresses. Normally you specify the addresses that you
read by using the Adrrd command.
Pause
1st Byte 41h
Pauses recording or playing.
Re-entering the command resets pause state and resumes the earlier
operation.
Start
1st Byte 30h
Starts recording or playing in Retroactive Play Mode.
Entering the Start command following the Rec command causes the LSI
to start recording in Retroactive Play mode. Meanwhile, entering the
Start command following the Play1 or Play2 command causes the LSI to
start playing, looking up address information on the internal Stadr/Enadr
register that contains the record-start and record-end addresses.
Stop
1st Byte 40h
Stops recording or playing in Retroactive Play Mode.
30/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Normal Mode (1/2)
Command
Mode
1st Byte
03h
Description
Sets the operating mode to Normal Play Mode. (Cue/Rew function
available)
Area1
1st Byte
2nd Byte
36h
Start1[7:0]
Selects an area for address control and sound data.
Start Block Address; address range: 00h to FFh, by default set to: 00h
3rd Byte
End1[7:0]
End Block Address; address range: 00h to FFh, by default set to: FFh
The memory area ranging from the block specified with the Start1 up to
that specified with the End1 is selected for storing both address control
and sound data. Up to 256 blocks can be selected.
Each value set with this command remains valid until you enter Reset.
The Area1 command is valid in Normal Play Mode only.
You may not set the Start1 address value that is lower than the End1
address.
Selects a sound data area.
Area2
Rec
Play
Play2
Code
1st Byte
39h
2nd Byte
3rd Byte
Start2[7:0]
End2[7:0]
1st Byte
10h
2nd Byte
Method[7:4]
Samp[3:0]
1st Byte
20h
2nd Byte
Phrase[7:0]
1st Byte
21h
2nd Byte
Phrase[7:0]
Start Block Address; address range: 00h to FFh, by default set to: 00h
End Block Address; address range: 00h to FFh, by default set to: FFh
This command is used to select a sound data area within the memory
area defined by using the Area1 command. The area ranging from the
block specified with the Start2 up to that specified with the End2 is
selected.
Each value set with this command remains valid until you enter Reset or
the Mode command to change the operating mode.
The first 2 blocks (02h; 16 pages) of the memory area selected by the
Area1 command are automatically assigned to the Address Control Data
Area. Therefore, blocks you can actually select as Sound Data Area are
the third block and thereafter (the value for the Start1 + 02h). The values
defined by the Start1, Start2 and End1, End2 must satisfy the following
formula:
Start2 ≥ Start1 + 02h; End2 ≤ End1
For more details, see “Controlling addresses in Normal Play Mode” later
in this document.
Note: You may not set the Start2 address value that is lower than the
End2 address.
Sets the LSI to record-ready state and selects the Method and Samp
values.
The value for the Method.
The value for the Samp.
For more details on the Method and Samp, see description on the Rec
command in Delayed Play Mode earlier in this document.
Sets the LSI to one-time-play-ready state and selects a phrase to be
played.
The value for the Phrase. Range: 01h to FFh
For playback the LSI uses the Method and Samp values set with the Rec
command.
Sets the LSI to repeat-play-ready state and selects a phrase to be
played.
The value for the Phrase. Range: (01h to FFh)
For playback the LSI uses the Method and Samp values set with the Rec
command.
31/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Normal Mode (2/2)
Command
Adrrd
Code
1st Byte
51h
Description
Use this command to read the Start and End address values of the
specified phrase.
2nd Byte Phrase[7:0]
The value for the Phrase. Range: 01h to FFh
3rd Byte
Stadr[23:16](O)
Outputs the Start Address (in serial from the SO pin).
4th Byte
Stadr[15:8] (O)
5th Byte
Stadr[7:0] (O)
6th Byte
Enadr[23:16](O) Outputs the End Address (in serial from the SO pin).
7th Byte
Enadr[15:8](O)
8th Byte
Enadr[7:0](O)
This command allows you to read the Start Address and End Address of
the phrase specified.
Adrwr
1st Byte
50h
Use this command to write the Start and End address values of the
specified phrase.
2nd Byte Phrase[7:0]
The value for the Phrase. Range: 01h to FFh
3rd Byte
Stadr[23:16]
The value for the Start Address. You need to set the lower 7 bits to “0”.
4th Byte
Stadr[15:8]
5th Byte
Stadr[7:0]
6th Byte
Enadr[23:16]
7th Byte
Enadr[15:8]
8th Byte
Enadr[7:0]
The value for the End Address. You need to set the lower 7 bits to “1”.
With this command you can define a phrase and the Start and End
addresses of the phrase. Addressing is in Pages. You should specify
the page's top address (the lower 7 bits = 0) for the Start Address, while
the page's end address (the lower 7 bits = 1) for the End Address.
If you specify Stadr = Enadr, the LSI performs endless (loop) recording.
Note: You may not specify the Start address value that is larger than the
End address.
Del
1st Byte
70h
2nd Byte Phrase[7:0]
Deletes the specified phrase(s).
The value for the Phrase. Range: 01h to FFh
If you specify “00h” for the Phrase, all phrase data will be erased.
Pause
1st Byte
41h
Pauses recording or playing.
Re-entering the command resets pause state and resumes the earlier
operation.
Start
2nd Byte Phrase[7:0]
Starts recording or playing.
Stop
1st Byte
Stops recording or playing.
40h
32/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Other Commands Common in All Modes (1/2)
Command
Code
Description
Nop
1st Byte
00h
Represents “No Operation”. The command is ignored.
Dtrw
1st Byte
60h
Use this command to make an access to the on-chip DRAM or Mask
ROM.
2nd Byte
Adr[23:16]
Specify the head address at which you want to start reading or writing.
3rd Byte
Adr[15:8]
4th Byte
Adr[7:0]
You can’t access to DRAM and Mask ROM simultaneously. If you want to
access to the other memory address, you need to enter the End
command to end Dtrw mode once, and then set up the new address by
using the Dtrw command again.
Bytew
1st Byte
61h
Use this command to write data to the on-chip DRAM.
2nd Byte
Data[7:0]
Writing data.
After writing data is complete, the address pointer for writing is
incremented by one. When the last address of the DRAM is reached, the
next address automatically returns to the top address of the DRAM.
Byter
1st Byte
62h
Use this command to read data from the on-die DRAM or Mask ROM.
2nd Byte
Data[7:0]
Reading data (in serial from the SO pin).
After reading data is complete, the address pointer for reading is
incremented by one. When the last address of the DRAM or Mask ROM is
reached, the next address automatically returns to the top address of
each memory.
End
1st Byte
63h
Use this command to end Dtrw mode.
Pdwn1
1st Byte
80h
Use this command to let the LSI enter power-down state.
The on-chip DRAM enters self-refresh mode to preserve all the stored
data.
Pdwn2
1st Byte
88h
Use this command to let the LSI enter power-down state.
Test
1st Byte
F0h
The LSI test command. Do not enter the command.
Rply
1st Byte
24h
Use this command to play Mask ROM data.
2nd Byte
Phrase[7:0]
Data on the DRAM will be lost.
Sets ROM phrase value.
The Mask ROM Phrase values are independently controlled, separately
from the Phrase values for DRAM recording.
Vol
1st Byte
28h
Use this command to set up a volume level.
2nd Byte
Vol[7:0]
The default value for the Vol is “0h”.
Vol values and Attenuation
Vol
Attenuation
Vol
0h
1h
2h
3h
0 dB
–3 dB
–6 dB
–9 dB
4h
5h
6h
7h
Attenuation
–12 dB
–15 dB
–18 dB
–21 dB
33/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Other Commands Common in All Modes (2/2)
Command
Copy
Code
1st Byte
68h
2nd Byte PgStart[15:8]
3rd Byte
PgStart[7:0]
4th Byte
PgEnd[15:8]
5th Byte
PgEnd[7:0]
6th Byte
Target [15:8]
7th Byte
Target [7:0]
Description
Use this command to move data in Pages.
Enter the top address of the page where the data you want to move is
stored.
Enter the last address of the page where the data you want to move is
stored.
Enter the top address of the starting page to which you want to move the
data.
The data from the page specified with the PgStart to the page specified
with the PgEnd is moved to the pages starting from the page specified with
the Target.
Status
1st Byte
FFh
Reads LSI’s status.
2nd Byte Status[7:0](O) Outputs the LSI’s status signals. (in serial from the SO pin)
Status Bit Function
Bit
7
6
Name
Description
PAUSE Outputs “H” during pausing.
Outputs “H” during playing.
PLY
5
REC
Outputs “H” during recording.
4
RPM
Outputs “L” while processing recording or playing
data. Outputs "H" while the ADPCM unit is ready.
3
NAR
Outputs “H” when the LSI gets ready to accept the
next phrase data while playing Mask ROM data.
2
1
0
—
—
—
No function.
No function.
No function.
34/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Fast Forward/Rewind Playback (Valid only in Retroactive Play mode and Normal Mode)
Command
Cue/Rew
Code
1st Byte 23h
2nd Byte Unit[7:4]
Speed[3:0]
Description
Start fast forward or rewing playback
Sets Unit value
Sets Speed value
Use this command, while playing, to start Fast Forward or Rewinding
playback from the point that is currently played. When you want to get the
speed back to normal X1 play, execute the Cue/Rew command again with
the Speed value of “0”. The Unit vlaue is ignored in this operation.
Unit Function
Unit
0
1
Description
By unit of 1,024 bits
By unit of 2,0484 bits
2
3
4
By unit of 4,0964 bits
By unit of 8,192 bits
By unit of 16,384 bits
Speed Function
Speed
Speed
Description
0
FF at X1 speed
Description
8
Rewind at X1 speed
1
FF at X1.25 speed
9
Rewind at X1.25 speed
2
FF at X1.5 speed
A
Rewind at X1.5 speed
3
FF at X2 speed
B
Rewind at X2 speed
4
FF at X3 speed
C
Rewind at X3 speed
5
FF at X4 speed
D
Rewind at X4 speed
Combinations of Units and Speeds
Speed
0
1
2
3
4
5
8
9
A
B
C
D
X1
X1.25
X1.5
X2
X3
X4
X1
X1.25
X1.5
X2
X3
X4
0
—
—
—
1
—
—
—
—
—
—
—
Unit
2
3
—
—
4
—
5
—
—
—
—
—
The combination of the Unit value and the Speed value affects playback
sound. Therefore, choose a proper combination of the two values
depending on the type of sound to be played. The Fast Forward/Rewind
Play function is available only in Retroactive Play Mode and Normal mode.
If you use this function, you should not use the Block address FFh.
Note: The following restrictions apply to this function:
• The size of the sound data area must be 128 pages (i.e. 16 blocks) or
more.
• You may not use the block address FFh.
• The Cue/Rew command is unavailable for playback after an endless
recording session or repeat play by using the Play2 command.
35/63
PEDS87V1021-01
1Semiconductor
MS87V1021
FLOWCHARTS
Delayed Play Mode
Start
[Select operating
mode]
Mode
command
Send Mode command (01h)
Select Delay mode
[Select voice area]
Area2
command
Send Area2 command
Send Start2 [7:0]
Send End2 [7:0]
[Set Delay time]
Dly
command
Send Dly command (38h)
Send Dly [15:8]
Send Dly [7:0]
[Set to recording state]
Rec
command
Send Rec command (10h)
Send Method [7:4]/Samp [3:0]
[Start recording]
Start
command
Send Start command (30h)
Y
End ?
N
N
Send Play command (20h)
Send Method [7:4]/Samp [3:0]
(Note)
The play mode is maintained until
Stop command is input.
Play ?
Y
Play
command
[Start
playback]
N
(Note)
When Play command is issued during
recording, the Method/Samp value of
Rec command has priority.
Stop playing ?
Y
Rec
command
[Stop recording/playback]
Stop
command
Send Stop command (40h)
End
36/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Retroactive Play Mode (1)
Shown below is the flowchart in which playback starts by issuing the Play or Play2 command during recording.
When playing the recorded voice, see the flowchart on the next page.
Start
[Select operating mode]
Mode
command
Send Mode command (02h)
Select Retroactive play mode
[Select voice area]
Area 2
command
Send Area2 command (39h)
Send Start2 [7:0]
Send End2 [7:0]
[Set Delay time]
Dly
command
Send Dly command (38h)
Send Dly [15:8]
Send Dly [7:0]
[Set to recording status]
Rec
command
Send Rec command (10h)
Send Method [7:4]/Samp [3:0]
[Start recording]
Start
command
Send Start command (30h)
N
Play ?
Y
[Start one time playback]
or
[Start repeat playback]
Send Play command (20h) or Play2 command
(21h)
Send Method [7:4]/Samp [3:0] (Note)
Recording stops and repeat playback starts.
Play or Play2
command
Cue or Rew ?
N
(Note)
When Play or Play2 command isissued during
recording, the Method/Samp value of Rec
command has priority.
Y
Cue/Rew
command
[Start playback after fast
forwarding/rewinding]
N
End ?
Y
[Stop repeat playback]
Stop
command
Send Stop command (40h)
End
Send Cue/Rew command (23h)
Send Unit [7:4]/Speed [3:0]
(Caution)
Note the following when playing the recorded voice in
Retroactive play mode after playback in other modes
such as Delayed play mode and Normal playb mode.
The recording address information on playback in
Retroactive play mode is not maintained when the
mode is moved to other mode. Therefore, be sure to
read the recording address information with Adrrd
command before moving to other mode. When doing
playback, write the recording address information as
the playback address information with Adrwr
command.
37/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Retroactive Play Mode (2)
Shown below is the flowchart in which the voice that was recorded in Repeat playback mode is played later.
Start
Send Mode command (02h)
Select Retroactive play mode
[Select operation mode]
Mode
command
[Select voice area]
Area2
command
Send Area2 command (39h)
Send Start2 [7:0]
Send End2 [7:0]
[Set Delay time]
Dly
command
Send Dly command (38h)
Send Dly [15:8]
Send Dly [7:0]
[Read recording address
information]
Adrrd
command
Send Adrrd command (51h)
Send (00h)
Receive Stadr [23:16], Stadr [15:8], Stadr [7:0]
Receive Enadr [23:16], Enadr [15:8], Enadr [7:0]
[Write playback address
information]
Adrwr
command
[Set to one time playback
status]
or
[Set to repeat playback status]
[Start playback]
Send Adrrd command (50h)
Send (00h)
Send Stadr [23:16], Stadr [15:8], Stadr [7:0]
(Lower 7 bits Stadr [6:0] are “0”)
Send Enadr [23:16], Enadr [15:8], Enadr [7:0]
(Lower 7 bits Enadr [6:0] are “1”)
Play or Play2
command
Send Play command (20h) or Play2 command (21h)
Send Method [7:4]/Samp [3:0]
Start
command
Cue/Rew ?
Send Start command (30h)
N
Y
Cue/Rew
command
[Fast forwarding/
rewinding starts]
N
Send Cue/Rew command (23h)
Send Unit [7:4]/Speed [3:0]
End ?
Y
[Stop playback]
Stop
command
Send Stop command (40h)
End
38/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Recording in Normal Mode
Start
[Select operating mode]
Mode
command
Send Mode command (03h)
Select Normal mode
[Select voice area block]
Area1
command
Send Area1 command (36h)
Send Start1 [7:0]
Send End1 [7:0]
Send Area2 command (39h)
Send Start2 [7:0]
Send End2 [7:0]
[Select voice area]
Area2
command
[Write recording address
information]
Adrwr
command
[Set to recording status]
Rec
command
Send Rec command (10h)
Send Method [7:4]/Samp [3:0]
[Start recording]
Start
command
Send Start command (30h)
Send Adrrd command (50h)
Send (00h)
Send Stadr [23:16], Stadr [15:8], Stadr [7:0]
(Lower 7 bits Stadr [6:0] are “0”)
Send Enadr [23:16], Enadr [15:8], Enadr [7:0]
(Lower 7 bits Enadr [6:0] are “1”)
Y
Recording
finished ?
N
N
RPM bit = “1”
RPM bit = “0”
End
recording ?
Y
[End recording]
Stop
command
Send Stop
command
(40h)
End
39/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Playback in Normal Mode
Start
[Select operating mode]
Mode
command
Send Mode command (03h)
Select Normal mode
[Select voice area block]
Area1
command
Send Area1 command (36h)
Send Start1 [7:0]
Send End1 [7:0]
[Select voice area]
Area2
command
Send Area2 command (39h)
Send Start2 [7:0]
Send End2 [7:0]
[Set to playback status]
Play
command
Send Play command (20h)
Send Phrase [7:0]
[Start playback]
Start
command
Playback
finished ?
Send Start command (30h)
Y RPM bit = “1”
N RPM bit = “0”
End playback ?
Y
N
N
Cue/Rew ?
Y
[Start playback after fast
forwarding/rewinding]
[End playback]
Send Cue/Rew command (23h)
Send Unit [7:4]/Speed [3:0]
Cue/Rew
command
Stop
command
Send Stop
command (40h)
End
40/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Dtrw Command
Start
[Select operating
mode]
[Set the top address of DRAM or ROM to be accessed]
Send Dtrw command (60h)
Send Adr [23:16], Adr [15:8], Adr [7:0]
Dtrw
command
N
Continue Dtrw ?
Y
Write data ?
N
Y
Bytew
command
[Write data to DRAM]
Send Bytew command (61h)
Send Data [7:0]
Byter
command
End
command
[Read data from DRAM, ROM]
Send Byter command (62h)
Receive Data [7:0]
[End of access to DRAM, ROM]
Receive End command (63h)
End
41/63
PEDS87V1021-01
1Semiconductor
MS87V1021
STATUS TRANSITION DIAGRAM
Area1: Select a voice data management area (Normal
mode).
Area2: Select a voice data storage area.
Adrwr: Input a phrase recording/playback address
(Retroactive mode, Normal mode).
Adrrd: Output a phrase recording/playback address
(Retroactive mode, Normal mode).
Mode: Select a mode.
Delay: Set to a Dly volume.
Rec: Set to a recording status.
Play: Set to a playback status.
Play2:Set to repeat-playready status.
Vol: Select a volume.
Del: Delete phrase data.
Copy: Copy page data.
Status: Output a status signal.
Bytew: Start writing data
Byter: Start reading data
Power down
Input RESET
pulse.
Byte data
writing
Byte data
reading
Reading/writing data
Pwdn1: Power down (data is
retained)
Pwdn2: Power down (data is not
retained)
Dtrw : Read/write data
End : End reading/writing data
Waiting for command
a
Start: Start
recording/playback
Stop: Stop
recording/playback
Vol: Set a volume
Status: Output a status
signal
Recording/playback in
each mode
Mode=01h
Mode=02h
Stop: Stop ROM
playback
Rply: Start ROM
playback
ROM playback
Continuous
phrase playback
Rply: Start ROM
playback
Vol: Set a volume
Status: Output a status
signal
Mode=03h
Vol: Set a volume
Status : Output a status signal
Operation in Delayed
play mode
Rec: Stop playback
(in Delayed play
Play: Re-start
mode)
playback
a
Playback is pausing
Stop: Stop
recording/playback
Vol: Set a volume
Status: Output a status signal
Recording/playback in
Normal mode
Stop: Stop
recording/playback
Vol: Set a volume
Status: Output a status
signal
a
Pause: Pause/resume
Cue/Rew: Fast
forwarding/rewinding
Pausing
Playback after Cue/Rew
Operation in Retroactive
play mode
Stop: Stop
recording/playback
Stop: Stop playback
Pause: Pause/resume
a
Pause: Pause/resume
a
Pausing
Pausing
42/63
PEDS87V1021-01
1Semiconductor
MS87V1021
SUMMARY OF OPERATING MODES AND FUNCTIONS
Delayed Play Mode
Delayed Play is a unique operational mode that enables you to hear what has been recorded several seconds ago
while the LSI keeps on recording current sound. As shown in the figure below, while the LSI keeps on recording in
endless circular motion by returning to the top address of the DRAM’s area specified with the Area2 command, it
simultaneously plays what has been recorded earlier with a time lag defined with the Delay command.
Adding this function to a conventional recording system like cassette tape recorder enables you to record sound in
the past to such other media as a cassette tape.
Returning to the top address of the area
Recording area on DRAM
Play
Record
Delay Time
(Time lag between
Recording and Playing)
In Retroactive Play Mode or Normal Mode, you cannot play what has been recorded in Delayed Play Mode.
43/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Retroactive Play Mode
Retroactive Play is another unique and handy operational mode that enables you to hear what you have missed a
short period ago. While you let the LSI continue recording in endless circular motion to the memory’s area
specified with the Area2 command, you can issue the Play or Play2 command to hear what you have missed, going
back to earlier data that the LSI has stored so far. This enables you to record sound in the past retroactively, which
differentiate your application from so called “Voice Reminder” type of applications. The Delay time, that is a time
length to go back to the past, can be defined by using the Delay command.
In addition, the LSI supports Cue/Rewind function that has been unavailable with conventional ADPCM
record/play chips. This provides you with faster search capability among recorded messages.
Record
Record operation goes on until the Play or Play2 command is issued
Issuing the Play or
Play2 command
• One-time Playback with the Play command
Play
Delay Time
Time length to go back to
the past
• Continuous Repeat Playback with the Play2
command
Play
Delay Time
Time length to go back to
the past
Issuing the Play or Play2 command during recording operation causes the LSI to stop recording.
44/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Normal Mode
MS87V1021 also provides Normal Mode where you can record or play to/from the on-chip DRAM as with a
conventional solid-state recorder. You can readily build a “Voice Reminder” application around this microchip
that enables up to 255-phrase recording and playing. In addition, the LSI supports Cue/Rewind function that has
been unavailable with conventional ADPCM record/play chips. This provides you with faster search capability
among recorded messages.
DRAM’s Sound Data Storage Area
1Phrase
2Phrase
254Phrase 255Phrase
3Phrase
You can flexibly adjust the size of each phrase area according to your recording time requirement.
Assume that you already have Phrase1 through Phrase3 recorded. Now, you want to erase Phrase2 and Phrase3 so
that you can create new Phrase2 with larger memory space.
To do so, follow the steps below:
Phrase1
Phrase2
Phrase3
Erase Phrase2 and Phrase3 by using the Del command.
Phrase1
Record to Phrase2.
Phrase1
Phrase2
45/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Fast Forward/Rewind Function (Cue/Rew)
Fast Forward/Rewind playback function is a unique new feature that enables you to do speed hearing across
multiple phrases. This function is available in Retroactive Play Mode and Normal Mode only. Fast Forward and
Rewind playback is performed by culling recorded ADPCM data. You can optimize speedy hearing quality for
source sound types by selecting appropriate culling interval and playback speed.
The figure below shows an example operations performing Fast Forward/Rewind playback in the following order;
Normal Play ⇒ X2 Fast Forward ⇒ X4 Rewind ⇒ X1 Play
End
Start
Normal Play *1
1
X2 Fast Forward
X4 Rewind
4
3
2
3
2
4
5
1
X1 Play *2
: Represents sound data to be played after thinning out in FF/Rewind playback.
*1: Playback by using the Play command
*2: Playback at X1 Speed by using the Cue/Rew command.
You need to issue the Cue/Rew command, setting the Speed value to “0”, if you want to return to normal X1 speed
playback after performing Cue/Rew operation.
[Restrictions on Fast Forward/Rewind Playback Function ]
(1) If you plan to use Cue/Rew function in your application, you should not use block address FFh for storing
sound data in Retroactive Play Mode and Normal Mode. If you intend not to use the function, you can use all
blocks including FFh.
(2) You cannot use Cue/Rew function in Normal mode when the Record_start address is equal to the Record_end
address. (When voices are played after endless recording)
46/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Copy Command
You can use the Copy command to move recorded data that you want to keep to another location on the memory.
Moving specific data to another location enables you to secure contiguous open memory space for longer
recording time. Be sure to select a destination area not overlapping with a source data area. The minimum unit for
copying data is in pages.
Page
1
2
3
4
5
1
2
3
4
5
Executing the Copy command
1
2
3
4
5
You can also move data in the Retroactive Play Mode area to the Normal Mode area.
Normal Mode Area
Retroactive Play Mode Area
Sound Data
Address
Start
End
Copy sound data with the Copy command.
Set up Start_new and End_new addresses, Method, and Samp information so as to control a new phrase.
Retroactive Play Mode Area
Normal Mode Area
Copied
sound Data
Sound Data
Copy command
Retroactive Play Mode Area
Sound Data
New Phrase
(ex. Phrase=1)
Normal Mode Area
Copied
sound Data
Address Start_new
End_new
47/63
PEDS87V1021-01
1Semiconductor
MS87V1021
[Defining the Method, Samp and address information]
To let the LSI to recognize a copied sound data as a new phrase, you need to define address control information
that includes the Method, Samp, Start Address and End Address. Such information should be entered to an address
control data area for each phrase. For more details on address control data area, see "Controlling addresses in
Normal Play Mode".
To define address control information, follow the steps below:
1. Defining the Method and Samp
Use the Bytew command to write the data.
(Ex.) Where;
Phrase 1, Method = 01h, Samp = 08h and Start Address for Area1 = 00h
(1) Specifying the Start Address
Enter the DTRW command; 2nd Byte: 00h, 3rd Byte: 00h, 4th Byte: 08h
(2) Writing the data
Enter the Bytew command; 2nd Byte: 18h • Writing the Method and Samp data
(3) Ending Write Mode
Enter the End command
2. Defining the Start Address and End Address
Use the Adrwr command to define the data for each phrase.
(Ex.) Where;
Phrase 1, Stadr = 000800h and Enadr = 010000h
Enter the Adrwr command; 2nd Byte: 01h, 3rd Byte: 00h, 4th Byte: 80h
5th Byte: 00h, 6th Byte: 01h, 7th Byte: 00h, 8th Byte: 00h
[Copying separated data]
To copy two data that were separately recorded in two portions of a Retroactive Play Mode area as shown below,
issue the Copy command twice, first for the former data and second for the latter data.
Retroactive Play Mode area
Normal Mode area
Recorded
data
Recorded
data
Address End
Start
New pharase
Retroactive Play Mode area
The latter
recorded data
Normal Mode area
The former
recorded data
Copy command
The latter
The former
recorded data recorded data
Start_new
End_new
48/63
PEDS87V1021-01
1Semiconductor
MS87V1021
MEMORY ALLOCATION
Storing Sound Data to DRAM (In Pages)
The on-die 2-Mbit DRAM consists of 2048 pages, 1024 bits for each page. The first 24-bit memory space of each
page is allocated for storing ADPCM intermediate data and the remaining 1000-bit space for storing ADPCM
(sound) data.
For additional information on data structures of pages allocated for address control in Normal Mode, see
“Controlling Addresses of Sound Data in Normal Mode” later in this document.
1024 bit
24 bit
1000 bit
DRAM
Address *
Page 1
080h to 0FFh
Page 2
100h to 17Fh
Page 3
180h to 1FFh
Page 2042
ADPCM Data
000h to 07Fh
ADPCM Intermediate Data
Page 0
3FD00 to 3FD7Fh
Page 2043
3FD80 to 3FDFFh
Page 2044
3FE00 to 3FE7Fh
Page 2045
3FE80 to 3FEFFh
Page 2046
3FF00 to 3FF7Fh
Page 2047
3FF80 to 3FFFFh
Pages on DRAM
Note: “DRAM Address” means the addresses used with the Adrrd and Adrwr commands,
i.e. Stadr[23:0] and Enadr[23:0].
49/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Storing Sound Data to DRAM (In Blocks)
A block is a memory space unit that is equivalent to 1/256 of the entire DRAM capacity. The memory space for a
block can be obtained by the following formula:
1 Block = 2,097,152 Bits/256 = 8,192 Bits (Equals to 8 Pages)
Block Address (Note)
Page 1 (1024 Bits)
00h
Block 1
1 Block
Page 8 (1024 Bits)
256 Blocks
01h
Block 2
02h
FFh
Block 256
Note: Block address is a value for the Start1/ Start2 and End1/End2 when you specify a memory
area using the Area1 or Area2 command.
Each block is assigned to a specific memory address. The following table shows block addresses and its
corresponding memory addresses at the top of each block. For blocks not appearing in the table below, you can get
the top address value of a given block by incrementing 400h for each single block.
DRAM Memory Address at the top of Blocks
Block Address
DRAM Memory Address
00h
000000h
01h
000400h
02h
000800h
04h
001000h
08h
002000h
10h
004000h
20h
008000h
40h
010000h
80h
020000h
FFh
03FC00h
50/63
PEDS87V1021-01
1Semiconductor
MS87V1021
You need to assign a separate memory space area for each playback mode. Delayed Play Mode, Retroactive Play
Mode and Normal Mode must have their own memory space, when used in a single application. Each mode cannot
share any memory space with other modes. Therefore, you need to define a proper memory area for each mode if
you are required to use more than one mode in a single application.
(1) When the entire DRAM memory space is used for a single play mode
DRAM Memory Space
Normal (or Delayed Play/Retroactive Play) Mode Only
(2) When the DRAM memory space is divided into two areas (For Normal and Retroactive Play Mode
in this example)
DRAM Memory Space
Retroactive Play Mode Area
Normal Mode Area
(3) When the DRAM memory space is divided into three areas
DRAM Memory Space
Retroactive Play
Mode Area
Normal Mode Area
Delayed Play Mode
Area
You can move, in pages, sound data recorded in Retroactive Play Mode to the Normal Mode area by using the
Copy command. This enables you to control phrases recorded in Retroactive Play Mode in Normal Mode. Sound
data recorded in Delayed Play Mode cannot be moved to the Retroactive Play Mode area or Normal Mode area.
Data in the Normal Mode area neither can be moved to the Retroactive Play Mode area.
[Note 1 on Selecting Blocks for more than one mode]
Be sure to select blocks not overlapping with the area specified for other modes, when you select blocks for
multiple modes.
When you define an area for each mode, you can define only one area for a specific mode. So, as shown in the
above three figure, you can define up to three areas for three modes.
Normal Mode Area
Normal Mode
Retroactive Play Mode Area
Retroactive Play Mode
No Overlapping Allowed
51/63
PEDS87V1021-01
1Semiconductor
MS87V1021
[Note 2 on Selecting Blocks for more than one mode]
As shown in the following example, you cannot select blocks across the end address of the DRAM when you
define an area with the Area1 or Area2 command. Therefore, the Start1, 2 and End1, 2 values must always satisfy
Start1, 2 < End1, 2.
Start
End
Normal Mode
DRAM Memory Space
Normal Mode
Area where Start > End is Not Allowed
[Re-defining an Area after Mode Switch]
When you switch an operation mode from one to another, you should redefine the area by using the Area2
command.
(1) Normal Mode ⇒ Retroactive Play Mode ⇒ Normal Mode (Mode Switched)
Set up Normal Mode
Issuing the Area1 and
Area2 commands
Set up Repeat Mode
Issuing the Area2
commands
Set up Normal Mode
Issuing the Area1 and
Area2 commands
(2) Normal Mode ⇒ Power Down ⇒ Normal Mode
Set up Normal Mode
Issuing the Area1 and
Area2 commands
If the mode remains unchanged before and after Power Down, mode settings
remains unchanged.
The values set with the Area1 command in Normal Mode remain unchanged until Reset signal is entered.
52/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Controlling Addresses in Retroactive Play Mode
In Retroactive Play Mode, four registers are defined within the internal Record/Play register. Those are the
record/play_start address (Stadr), the record/play_end address (Enadr), the sampling frequency (Samp) and the
method (Method).
Use the Adrrd command to read the Stadr/Enadr value, and the Adrwr command to write the Stadr/Enadr value. In
addition, you need to set up a sampling frequency and an ADPCM algorithm (Method) by using the Rec or Play
command.
The Internal Record/Play Registers
Stadr (24 bits)
Enadr (24 bits)
Samp (4 bits)
Method (4 bits)
[Note on Issuing the Adrrd or Adrwr command]
In Retroactive Play Mode, multiple phrasing is not allowed by its design. However, the recorded data is processed
as “Phrase = 0” internally. Therefore, be sure to set the second byte to “00h” as you issue the Adrrd or Adrwr
command.
[Note on Issuing the Stadr and Enadr commands]
Sound data has ADPCM intermediate data in each page. By the nature of ADPCM, playback must start from the
top address of a page, otherwise playback cannot be performed properly. Therefore, when you define the Stadr
value with the Adrwr command, be sure to set the lower 7-bit to “0” (i.e. specifying a page’s top address).
Similarly, set the lower 7-bit to “1” when you define the Enadr. (A single page on the DRAM is 1024 bits.)
For the details, see “Storing Sound Data to DRAM (In Blocks)” and “Addressing with the Adrrd and Adrwr
Commands” sections.
53/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Controlling Addresses in Normal Mode
In Normal Mode, the address control data area and the sound data area are allocated within the blocks selected by
using the Area1 and Area2 commands. The address control data area is for storing address control data for up to
255 phrases, while the sound data area is for storing ADPCM intermediate data and ADPCM data, as described in
“Storing Sound Data to DRAM”, earlier in this document.
1 to 255 phrase value is available. Phrase = 0 is unavailable in Normal Mode because it is used only in Retroactive
Play Mode. For further details on address control data for each phrase, see “Address Control Data for Each Phrase”,
later in this document.
Page Address
Blocks Specified with the Area2 Command
Blocks Specified with the Area1 Command
Start1
End1
DRAM
Relative Address
within the Area*
Specified Page + 0
Address Control Data (Phrase 1 to 15)
0h to 7Fh
Specified Page + 1
Address Control Data (Phrase 16 to 31)
80h to FFh
Specified Page + 2
Address Control Data (Phrase 32 to 47)
100h to 17Fh
Specified Page + 14 Address Control Data (Phrase 224 to 239) 700h to 77Fh
Start2 Specified Page + 15 Address Control Data (Phrase 240 to 255) 780h to 7FFh
Specified Page + 16
Sound Data
800h to 87Fh
Specified Page + 17
Sound Data
880h to 8FFh
Specified Page + 18
Sound Data
900h to 97Fh
Sound Data
Sound Data
Sound Data
End2
Note: Relative address means relative address value from the top address of the area defined by the
Area1 command.
[Notes on Issuing the Area Command]
As shown in the above figure, the first 2 blocks (16 pages) are assigned for storing address control data when you
define an area with the Area1 command. So, with Area2 command, you need to select blocks not overlapping with
such address control data area (with the Area commands, selecting an area in Blocks, i.e. 8-page). Therefore, the
value for the Start2 of the Area2 command must be larger than the Start1 value + 16 pages. In other words, the
Start1, 2 and the End1, 2 must satisfy the following:
Start2 ≥ Start1 + 02h, End2 ≤ End1 (All values within 00h to FFh range)
54/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Address Control Data for Each Phrase
Address Control data for each phrase consists of 8 bytes (64 bits), as shown in the following table.
Address
Phrase
Address
(Note)
Bit
7
6
5
4
3
2
1
0
00_0000
00_0001
00h
00_0002
00_0003
Reserved Area
00_0004
00_0005
00_0006
00_0007
00_0008
01h
Samp
Upper Start Address
00_000A
Middle Start Address
00_000B
Lower Start Address
00_000C
Upper End Address
00_000D
Middle End Address
00_000E
Lower End Address
00_000F
Reserved Area
00_07F8
0FFh
Method
00_0009
Method
Samp
00_07F9
Upper Start Address
00_07FA
Middle Start Address
00_07FB
Lower Start Address
00_07FC
Upper End Address
00_07FD
Middle End Address
00_07FE
Lower End Address
00_07FF
Reserved Area
(Note) Each address means a relative address starting from the top address of Area 1.
55/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Addressing with the Adrrd and Adrwr Commands
In Retroactive Play Mode and Normal Mode, you can control addresses for recording and playing by using the
Adrrd and Adrwr commands.
[The Adrrd Command]
In Retroactive Play Mode and Normal Mode, the Adrrd command enables you to read the DRAM’s record_start
address and the record_end address. These addresses represent specific address locations on the on-die DRAM, as
described in “Storing sound Data to DRAM” section earlier in this document. You can determine the address to be
played based on those address information.
[The Adrwr Command]
In Retroactive Play Mode and Normal Mode, the Adrwr command enables you to specify the DRAM address at
which the LSI starts to play. You can determine the starting and ending addresses according to address information
obtained by using the Adrrd command. When you define the play_start address, you need to specify the top
address of the starting page. By the nature of ADPCM, playback must start from the top address of a page,
otherwise playback cannot be performed properly. Similarly, you should specify the last address of the ending
page when you define the end_play address.
The record_start
address
00000h
The play_start
address
Sound Data
Sound Data
Page
Sound Data
Sound Data
Sound Data
End recording
00000h
Page
Playback after
recording
Sound Data
Sound Data
Sound Data
001FFh
The end_play
address
Addressing with the Adrwr command
Stadr = 00000h
Enadr = 001FFh
(The Enadr must be the last address of the ending page)
[Notes on addressing]
The play_start address cannot be larger than the play_end address. Therefore, the addressing should be Stadr ≤
Eadr.
56/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Memory Allocation of Mask ROM
The following figure illustrates the on-chip Mask ROM memory allocation.
ROM Address
Mask ROM
0000h to 0007h
Phrase 0 Address Data
0008h to 000Fh
Phrase 1 Address Data
0010h to 0017h
07F0h to 07F7h
Phrase 254 Address Data
07F8h to 07FFh
Phrase 255 Address Data
0800h to
Sound Data Area
to FFFFh
Sound Data Area
The format of address control data for each phrase is identical to the one for the DRAM. ROM Address means the
address values specified with the Stadr and Enadr, used for controlling Mask ROM phrases. Remember that these
addresses are different from physical memory addresses used with the Dtrw command to make an access to the
Mask ROM. (See “Memory Map” section on the following page)
57/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Memory Map
The figure below shows the memory map of DRAM and Mask ROM. Addresses shown in this figure represent
physical addresses of each memory, which you can use with the Dtrw command.
80FFFFh
512-Kbit Mask ROM
64k-word x 8 bits
800000h
Unused
03FFFFh
2 Mbit DRAM
256k-word x 8 bits
000000h
58/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Recording Time Length
This section describes recording time length of the blocks selected with the Area1 and Area2 commands.
A block is a memory space equal to 1/256 of 2-Mbit on-chip DRAM. The following formula can be used to obtain
the memory space per block:
Block = 2,097,152 Bits/256 = 8,192 Bits (equal to 8 Pages)
A page consists of 1024 bits, out of which a 24-bit space is allocated for storing ADPCM intermediate data.
Therefore, actual usable area for storing sound data is as follows:
Actual usable area per block : 8,192 bits - 24 bits x 8 pages = 8,000 bits
You can obtain recording time per block with the following formula:
Where; Sampling Frequency
Fsam = 8 kHz
Recording time per Block: 8,000 bits / (4 bits* x 8 kHz) = Approx. 0.25 sec
Note:
“4 bits” represents 4-bit ADPCM.
The following table summarizes recording time length at each sampling frequency.
Sampling Frequency and Recording Time
Sampling Frequency
Recording Time per Block
Recording Time for Entire 2 Mbit
4.0 kHz
Approx. 0.50 sec
Approx. 128 sec
5.3 kHz
Approx. 0.38 sec
Approx. 97 sec
6.4 kHz
Approx. 0.31 sec
Approx. 80 sec
8.0 kHz
Approx. 0.25 sec
Approx. 64 sec
10.6 kHz
Approx. 0.18 sec
Approx. 48 sec
[Recording Time in Delayed Play Mode and Retroactive Play Mode]
In Delayed Play Mode and Retroactive Play Mode, the maximum recording time depends on the number of blocks
selected with the Area2 command as all the blocks selected are allocated for storing sound data.
59/63
PEDS87V1021-01
1Semiconductor
MS87V1021
[Recording Time in Normal Mode]
In Normal Mode, the area selected with the Area2 command is assigned for storing sound data, therefore the
maximum recording time depends on the number of blocks included in the area. Note that the first two blocks of
the area selected with the Area1 command is automatically allocated to the Address Control data area in Normal
Mode. So, the maximum number of blocks usable for storing sound data (i.e. the area that can be selected with the
Area2 command) is the number of blocks selected with the Area1 command minus 2 blocks. For example,
Blocks selected with the Area1 command: Start1 = 00h; End1 = 0Fh (16 blocks)
Blocks selectable with the Area2 command: Start2 = 02h; End2 = 0Fh (14 blocks)
(Area for storing sound data)
Where:
Sampling frequency Fsam = 8 kHz;
Maximum recording time: About 3.5 sec
60/63
PEDS87V1021-01
1Semiconductor
MS87V1021
Delay Time in Delayed Play Mode and Retroactive Play Mode
In Delayed Play Mode and Retroactive Play Mode, you should define the Delay Time, that is a time lag between
recording and its playback in the former or the time going back to the past in the latter. Use 16-bit unsigned integer
value Dly[15:8], Dly [7:0] to set up the Delay time. The following section summarizes the relationship between the
Dly value you set and the actual delay time obtained in the operation.
Delay Time = Dly value x 250/Sampling Frequency
For example, with sampling frequency at 8 kHz, if you set the Dly value to 0100h, the actual delay time can be
obtained by the following formula:
Delay Time = 0100h x 250/8 kHz = 8 sec
[Restriction on setting the Dly value in Delayed Play Mode and Retroactive Play Mode]
There is a certain limitation on setting the Dly value in Delayed Play Mode and Retroactive Play Mode. You
cannot set up the Delay time that is equal or longer than the maximum recording time for the current mode. The
LSI may not operate properly when you set up the Delay time as shown below:
Sound data area selected with the Area2 command: 00h to FFh (239 blocks, about 59.75 sec at Fsam =
8 kHz)
Dly value: 0778h
Delay Time: about 59.75 sec
Therefore, the Dly value and the number of selected blocks must satisfy the following formula:
Dly value < 8 x Number of selected blocks
For the above example, the Maximum Delay time that satisfies the formula is as follows:
Dly value: 0777h < 8 x 239 blocks
Delay Time: about 59.71 sec
61/63
PEDS87V1021-01
1Semiconductor
MS87V1021
PACKAGE DIMENSIONS
(Unit: mm)
TSOP(1)32-P-0814-0.50-1K
Mirror finish
5
Package material
Lead frame material
Pin treatment
Package weight (g)
Rev. No./Last Revised
Epoxy resin
42 alloy
Solder plating (≥5µm)
0.27 TYP.
3/Dec. 10, 1996
Notes for Mounting the Surface Mount Type Package
The surface mount type packages are very susceptible to heat in reflow mounting and humidity
absorbed in storage.
Therefore, before you perform reflow mounting, contact Oki’s responsible sales person for the product
name, package name, pin number, package code and desired mounting conditions (reflow method,
temperature and times).
62/63
PEDS87V1021-01
1Semiconductor
MS87V1021
NOTICE
1. The information contained herein can change without notice owing to product and/or technical improvements.
Before using the product, please make sure that the information being referred to is up-to-date.
2.
The outline of action and examples for application circuits described herein have been chosen as an
explanation for the standard action and performance of the product. When planning to use the product, please
ensure that the external conditions are reflected in the actual circuit, assembly, and program designs.
3.
When designing your product, please use our product below the specified maximum ratings and within the
specified operating ranges including, but not limited to, operating voltage, power dissipation, and operating
temperature.
4.
Oki assumes no responsibility or liability whatsoever for any failure or unusual or unexpected operation
resulting from misuse, neglect, improper installation, repair, alteration or accident, improper handling, or
unusual physical or electrical stress including, but not limited to, exposure to parameters beyond the specified
maximum ratings or operation outside the specified operating range.
5.
Neither indemnity against nor license of a third party’s industrial 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 which may result from the use
thereof.
6.
The products listed in this document are intended for use in general electronics equipment for commercial
applications (e.g., office automation, communication equipment, measurement equipment, consumer
electronics, etc.). These products are not authorized for use in any system or application that requires special
or enhanced quality and reliability characteristics nor in any system or application where the failure of such
system or application may result in the loss or damage of property, or death or injury to humans.
Such applications include, but are not limited to, traffic and automotive equipment, safety devices, aerospace
equipment, nuclear power control, medical equipment, and life-support systems.
7.
Certain products in this document may need government approval before they can be exported to particular
countries. The purchaser assumes the responsibility of determining the legality of export of these products
and will take appropriate and necessary steps at their own expense for these.
8.
No part of the contents contained herein may be reprinted or reproduced without our prior permission.
Copyright 2000 Oki Electric Industry Co., Ltd.
63/63