ETC2 ML22Q374 Adpcm speech synthesis lsi Datasheet

FEDL22Q374-02
Issue Date: Jun. 06, 2014
ML22Q374
ADPCM Speech Synthesis LSI
GENERAL DESCRIPTION
ML22Q374 is voice synthesis LSI with built-in Flash memory that stores speech data.
This LSI includes edit ROM, ADPCM2 decoder, low pass filter and D-class speaker amplifier. Also,
ML22Q374 support the synchronous serial interface.
By integrating all the functions required for voice output into a single chip, this LSI can be more easily
incorporated in compact portable devices.
• Built-in memory capacity and maximum playback time:
Product name
ROM capacity
ML22Q374-XXX
692 Kbits
Maximum playback time (sec) (at fs=8.0kHz)
4bitADPCM2
16bitPCM
22.1
5.5
Notes: ROM capacity shows the numerical value of only a voice area.
• Voice synthesis method:
4-bit ADPCM2
8-bit Nonlinear PCM
8-bit PCM , 16-bit PCM
Can be specified for each phrase.
•Speech ROM capacity
ML22Q374:
692-Kbit Flash
• Sampling frequency(Fs):
6.4 / 8.0 / 10.7 / 12.8 / 16.0 / 21.3 / 25.6 / 32.0 kHz
fs can be specified for each phrase.
•Analog output:
Built-in D-class amplifier
•CPU command interface:
Synchronous serial interface
• Maximum number of phrases:
30 phrases
•Disconnection detection function /Speaker pin short detection function
• Source oscillation frequency:
4.096 MHz(internal)
• Power supply voltage:
2.0 to 5.5V
• Flash memory rewritable time:
80 times
• Operating temperature range:
–40 to +85°C
• Package:
16-pin plastic SSOP
• Product name:
ML22Q374-NNNMB, ML22Q374-xxxMB(xxx: ROM code No.)
1/35
FEDL22Q374-02
ML22Q374
The following table shows the differences among the other speech synthesis LSIs.
Parameter
CPU interface
Memory capacity
Playback method
Maximum number
of phrases
Sampling
frequency (kHz)
Clock frequency
Low-pass filter
Speaker driving
amplifier
Edit ROM function
Volume control
Silence insertion
Repeat function
Power supply
voltage
Operating
temperature range
Package
ML22330/
ML22Q330
Serial
640Kbit
4-bit ADPCM2
8-bit nonlinear PCM
8-bit straight PCM
16-bit straight PCM
ML22Q374
ML22Q384
ML22Q394
←
692Kbit
Event input
←
I2C
←
←
←
←
←
←
←
←
←
←
4.096MHz
(internal oscillation)
←
←
←
Built-in D-Class
1.0W
(8Ω, DVDD = 5 V)
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
2.3 V to 5.5 V
2.0 V to 5.5 V
←
←
–40 to +85°C
←
←
←
30-pin SSOP
16-pin SSOP
←
←
30
6.4/8.0/10.6/
12.0/12.8/16.0/
21.3/25.6/32.0
4.096MHz
(with a built-in crystal
oscillator circuit)
FIR interpolation filter
Built-in AB-Class
0.7W
(8Ω, DVDD = 5 V)
Yes
32 levels
Yes
20 ms to 1024 ms
(4 ms/step)
Yes
2/35
FEDL22Q374-02
ML22Q374
BLOCK DIAGRAMS
(ML22Q374-NNN)
VDD
GND
Regulator
Controller
VDDL
SPI
CSB
SCK
SI
Address
Phrase
Address Latch
16bit
Multiplexer
692Kbit
Flash
16bit
Address Counter
ADPCM/PCM
Synthesizer
VPP
Interface
LPF
TEST
SPVDD
SPGND
BUSYB
Timing
Controller
OUTPUT
D-class
Interface
Speaker
SPM
Amplifier
SPP
OSC
(internal)
RESET_N
3/35
FEDL22Q374-02
ML22Q374
PIN CONFIGURATIONS (TOP VIEW)
(ML22Q374-NNNMB/ML22Q374-xxxMB)
16-Pin Plastic SSOP
SPP
SPM
SPGND
SPVDD
BUSYB
DGND
VDDL
DVDD
1
2
3
4
5
6
7
8
16
15
14
13
12
11
10
9
RESET_N
TEST
VPP
NC
NC
SCK
SI
CSB
NC:Unused pin
4/35
FEDL22Q374-02
ML22Q374
PIN DESCRIPTION
Pin
Symbol
I/O
1
2
3
SPP
SPM
SPGND
O
O
—
Initial value
(At the
RESET_N
Input)
Hi-Z
Hi-Z
—
4
SPVDD
—
—
—
5
BUSYB
O
Hi-Z
1
6
DGND
—
—
—
7
VDDL
—
—
—
8
DVDD
—
—
—
9
CSB
I
1
1
10
SI
I
1
1
Positive(+) output pin of the speaker amplifier built-in
Negative(-) output pin of the speaker amplifier built-in.
Ground pin for the speaker amplifier.
Power supply pin for the speaker amplifier.
Connect a bypass capacitor of 1µF or more between this pin
and SPGND pin.
BUSY output pin.
When BUSYB use mode is set, the "L" level is outputted
during playback.
At the time of a disconnection detection function,
when disconnection is detected, the "L" level is outputted.
In addition, when BUSYB use mode is not set, the initial
value is outputted.
Digital ground pin.
Regulator output pin for internal logic circuitry.
Connect a capacitor of 10µF or more between this pin and
DGND pin
Power supply pins for logic circuitry.
Connect a capacitor of 0.1µF or more between this pin and
DGND pin.
Chip select pin, when CSB use mode is set.
At the “L” level, data input is available.
The pull-up resistor is built in.
Input pin for the synchronous serial data.
11
SCK
I
1
1
Clock input pin for the synchronous serial interface.
14
VPP
—
—
—
15
TEST
I
0
0
16
RESET_N
I
0
1
Initial value
(At standby)
Hi-Z
Hi-Z
—
Description
Power supply pin for rewriting Flash memory.
Fix this pin to GND except when rewriting Flash memory.
Test pin. Fix this pin to a DGND level.
At the “L” level, the LSI enters initial state.
After the power supply voltage is stable, drive this pin to “H”
level.
5/35
FEDL22Q374-02
ML22Q374
ABSOLUTE MAXIMUM RATINGS
Parameter
Power supply voltage
Speaker power supply
voltage
Internal logic power
supply voltage
Symbol
DVDD
Condition
(DGND = SPGND = 0 V)
Rating
Unit
−0.3 to +7.0
V
−0.3 to +7.0
V
−0.3 to +3.6
V
VPP
−0.3 to +9.5
V
Input voltage
VIN
−0.3 to DVDD+0.3
V
Power dissipation
PD
1
W
Output short-circuit
current
ISC1
except SPP pin, SPM pin
-12 to +11
mA
ISC2
TSTG
SPP pin, SPM pin
—
300
−55 to +150
mA
°C
Flash power supply
voltage
Storage temperature
SPVDD
VDDL
Ta=25°C
RECOMMENDED OPERATING CONDITIONS
(DGND = SPGND = 0 V)
Parameter
Power supply voltage
Speaker power supply
voltage
Flash power supply
voltage
Flash memory rewrite
cycles
Operating temperature
Symbol
Condition
Range
Unit
DVDD
—
Flash memory write
2.0 to 5.5
2.7 to 5.5
V
SPVDD
—
2.0 to 5.5
V
VPP
Flash memory write
7.7 to 8.3
V
N
—
80
—
TOP1
—
−40 to +85
TOP2
Flash memory write
0 to +40
°C
6/35
FEDL22Q374-02
ML22Q374
ELECTRICAL CHARACTERISTICS
DC Characteristics
Parameter
“H” input voltage
“L” input voltage
“H” output voltage 1
“L” output voltage 1
“H” input current 1
Symbol
VIH
VIL
VOH1
VOL1
IIH1
“H” input current 2
IIH2
“L” input current 1
IIL1
“L” input current 2
IIL2
“H” output current 1
IooH1
“H” output current 2
IooH2
DVDD = SPVDD = 2.0 to 5.5 V, DGND = AGND = 0 V, Ta = −40 to +85°C
Condition
Min.
Typ.
Max.
Unit
—
0.7×DVDD
—
DVDD
V
—
0
—
0.3×DVDD
V
IOH = −0.5 mA
DVDD−0.5
—
—
V
IOL = 0.5 mA
—
—
0.5
V
VIH = DVDD
—
—
1
µA
VIH = DVDD
0.02
0.3
1.5
mA
TEST pin
VIL = DGND
−1
—
—
µA
VIL = DGND
−1.5
−0.3
−0.02
mA
RESET_N, CSB pin
VOH = DVDD = SPVDD
(High impedance)
—
—
1
µA
BUSYB pin, SPP pin,
SPM pin
VOH = DVDD
(Nch Open drain)
—
—
1
µA
BUSYB pin
VOL = DGND = SPGND
“L” output current 1
IooL1
“L” output current 1
IooL2
Supply current during
playback
IDD1
IDD2
(High impedance)
BUSYB pin, SPP pin,
SPM pin
VOL = DGND
(Pch Open drain)
BUSYB pin
No output load,
DVDD = 3.0V
No output load,
DVDD = 5.0V
−1
—
—
µA
−1
—
—
µA
—
4.0
6.0
—
6.0
10
mA
Awaiting command supply
current
IDDC1
DVDD = SPVDD = 5.0V
—
3.0
5.0
Standby supply current
IDDS1
IDDS2
Source oscillation
frequency
fOSC
Ta = −40 to +40°C
Ta = −40 to +85°C
Ta = −10 to +50°C
Ta = −40 to +85°C
—
—
4.034
3.973
0.5
0.5
4.096
4.096
3.0
8.0
4.158
4.219
mA
µA
MHz
Characteristics of Analog Circuitry
Parameter
SPM, SPP output load
resistance
Speaker amplifier output
power
Symbol
DVDD = SPVDD = 2.0 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C
Condition
Min.
Typ.
Max.
Unit
RLSP
—
8
—
—
Ω
PSPO
SPVDD = 5.0V, f = 1kHz
RSPO = 8Ω, THD≥10%
—
1.0
—
W
7/35
FEDL22Q374-02
ML22Q374
AC Characteristics
Parameter
RESET_N input pulse width
Start time SPVDD after starting DVDD
Initialization time after reset release
DVDD = SPVDD = 2.0 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C
Symbol
Condition
Min. Typ. Max. Unit
tRST
—
100
—
—
µs
tVDD
—
0
—
—
ns
tINIT
—
—
—
20
ms
BUSYB change time from "L" to "H",after
RESET_N fall edge
SCK input enable time from CSB fall edge
SCK hold time from CSB rise edge
Data setup time from SCK rise edge
Data hold time from SCK rise edge
SCK cycle
SCK “H” level pulse width
SCK “L” level pulse width
Playback time
BUSYB change time from "H" to "L", after a
command is inputted
CSB “H” level pulse width
Oscillation stop time, after playback
Next command transmit time
In the case of the continuation playback
Disconnection judging time
by the DISCONNECT command
BUSYB change time from "L" to "H",after
Over-current detection of a speaker amplifier
Processing time before playback start
Processing time after playback start
Fade-out time at Change Immediately mode or
Change Immediately Once mode
tBSYR
—
—
—
500
ns
tESCK1
tESCK2
tCSH
tDIS
tDIH
tSCYC
tSCKH
tSCKL
tVCYC
Oscillation stop
Oscillating
—
—
—
—
—
—
—
2
10
200
50
50
500
200
200
20
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
ms
µs
ns
ns
ns
ns
ns
ns
ms
tCB
—
—
—
400
µs
tCSW
tOSST
—
—
—
1
—
—
—
—
500
ms
µs
—
—
10
ms
100
—
—
ms
—
—
80
µs
0.3
0.15
—
—
2.1
1.2
ms
ms
—
22
—
ms
tNCM
tDCD
tSD
tPLBF
tPLAF
tFDO
—
—
—
—
—
Note: Output pin load capacitance = 45 pF
8/35
FEDL22Q374-02
ML22Q374
TIMING DIAGRAMS
Power-On Timing
5V
DVDD
*Note1
SPVDD
5V
tVDD
CSB
VIH
VIL
tRST
RESET_N
BUSYB
VIH
VIL
VOH
OSC
(internal)
SPP
SPM
Status
Hi-Z
VOL
Oscillation stopped
VOH
Oscillating
Oscillation stopped
tINIT
Hi-Z
VOL
VOH
Hi-Z
VOL
Performing a
reset
Initializing
Standby
Note 1: Turn on DVDD and SPVDD simultaneously, or turn on SPVDD after turning on DVDD.
9/35
FEDL22Q374-02
ML22Q374
Power-Down Timing (At the RESET_N Input)
CSB
tRST
RESET_N
tBSYR
BUSYB
OSC
(internal)
Oscillating
Oscillating
Oscillation
stopped
tIN IT
SPP
SPM
Status
Playing
Initializing
Standby
Performing a reset
Synchronous Serial Interface Timing
When “Normal(“H”Level)” is chosen as mask option, the initial value of SCK is "H" level.
VIH
CSB
VIL
tESCK1
(tESCK2)
t CSH
tSCKH
VIH
SCK
VIL
tDIS
tDIH
tSCKL
tSCYC
VIH
SI
VIL
When “Reversal(“L”Level)” is chosen as mask option, the initial value of SCK is "L" level.
VIH
CSB
VIL
tCSH
tESCK1
(tESCK2)
tSCKH
VIH
SCK
VIL
tDIS
tDIH
tSCKL
tSCYC
VIH
SI
VIL
10/35
FEDL22Q374-02
ML22Q374
Play Once mode Timing
CSB
SI
tESCK1
D D D D D D D D
7 6 5 4 3 2 1 0
tCSH
SCK
t CB
VOH
BUSYB
VOL
OSC
(internal)
Oscillating
WS1 WS2 tPLBF
Speaker amplifier
enable (internal)
SPP
Hi-Z
SPM
Hi-Z
Status
Awaiting command
Playing
Command processing
定中
Standby
CSB
tVCYC
Oscillation stable
VIH
tESCK1
VIL
D DDD DDD D
7 65 4 3 2 1 0
SI
tCSH
SCK
tCB
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
tPLAF WS3
WS4
Speaker amplifier
enable (internal)
WS1 WS2 tPLBF
Oscillation stable
SPP
Hi-Z
SPM
Status
Oscillating
tOSST
Hi-Z
Playing
Awaiting oscillation stop
Standby
Playing
Command processing
Awaiting command
- The wait time of WS1, WS2, WS3, and WS4 can be set up for every phrase, when creating sound data using
Speech Utility.
- About this function, refer to “3. PHRASEn command” in “Description of Command Functions”
11/35
FEDL22Q374-02
ML22Q374
Scheduled Play Once mode and Scheduled Play mode Timing (Continuous Play)
CSB
tNCM
SI
tESCK1
Phrase (m)
Phrase (n)
D D D D D D D D
7 6 5 4 3 2 1 0
D D D D D D D D
7 6 5 4 3 2 1 0
tCSH
tESCK2
tCSH
SCK
tCB
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
WS1(m) WS2(m)
Speaker amplifier
enable (internal)
tPLBF
Oscillation stable
SPP
Hi-Z
SPM
Hi-Z
Status
Awaiting command
Standby
CSB
VIH
SI
VIH
SCK
Playing Phrase (m)
Command processing 定
中
VIL
VIL
VIH
VIL
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
tPLAF
WS3(n)
WS4(n)
tOSST
Speaker amplifier
enable (internal)
SPP
Hi-Z
SPM
Hi-Z
Status
Playing
Playing Phrase (n)
Awaiting oscillation stop
Standby
- The wait time of WS1, WS2, WS3, and WS4 can be set up for every phrase, when creating sound data using
Speech Utility.
- About this function, refer to “3. PHRASEn command” in “Description of Command Functions”
12/35
FEDL22Q374-02
ML22Q374
Change Immediately Once mode and Change Immediately mode Timing (Continuous Play)
CSB
Phrase (m)
SI
tESCK1
D D D D D D D D
7 6 5 4 3 2 1 0
tCSH
SCK
t CB
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
WS1(m) WS2(m) tPLBF
Speaker amplifier
enable (internal)
Oscillation stable
SPP
Hi-Z
SPM
Hi-Z
Status
Playing Phrase (m)
Awaiting command
Standby
CSB
VIH
SI
VIH
SCK
VIH
VIL
Command processing
定中
VIL
Phrase (n)
tESCK2
D D D D D D D D
7 6 5 4 3 2 1 0
tCSH
tFDO
BUSYB
VOH
Phrase (m) Stop
VOL
OSC
(internal)
Oscillating
tPLAF
WS3(n)
WS4(n)
tOSST
Speaker amplifier
enable (internal)
SPP
Hi-Z
SPM
Status
Hi-Z
Playing
Fade-out processing
Playing Phrase (n)
Awaiting oscillation stop
Standby
- The wait time of WS1, WS2, WS3, and WS4 can be set up for every phrase, when creating sound data using
Speech Utility.
- About this function, refer to “3. PHRASEn command” in “Description of Command Functions”
13/35
FEDL22Q374-02
ML22Q374
Timing which stops the playback in Scheduled Play mode
After inputting the STOP command, a phrase is played back to the last and the playback is stopped.
CSB
tCSW
Phrase (m)
SI
tESCK1
STOP command
D D D D D D D D
7 6 5 4 3 2 1 0
tESCK2
tCSH
tCSH
SCK
tCB
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
WS1 WS2 tPLBF
Speaker amplifier
enable (internal)
Oscillation stable
SPP
Hi-Z
SPM
Hi-Z
Status
Awaiting command
Standby
CSB
VIH
SI
VIH
SCK
Playing Phrase (m)
Command processing
定中
VIL
VIL
VIH
VIL
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
tPLAF
WS3(n)
WS4(n)
tOSST
Speaker amplifier
enable (internal)
SPP
Hi-Z
SPM
Hi-Z
Status
Playing
(reproduced to the last)
Standby
Awaiting oscillation stop
- The wait time of WS1, WS2, WS3, and WS4 can be set up for every phrase, when creating sound data using
Speech Utility.
- About this function, refer to “3. PHRASEn command” in “Description of Command Functions”
14/35
FEDL22Q374-02
ML22Q374
Timing which stops the playback in Change Immediately mode and Change Immediately Once mode
After inputting the STOP command, fade-out of the playback is carried out and the playback is stopped.
CSB
Phrase (m)
SI
tESCK1
D D D D D D D D
7 6 5 4 3 2 1 0
tCSH
SCK
tCB
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
WS1 WS2 tPLBF
Speaker amplifier
enable (internal)
Oscillation stable
SPP
Hi-Z
SPM
Hi-Z
Status
Awaiting command
Standby
CSB
VIH
SI
VIH
Playing Phrase (m)
Command processing
定中
VIL
STOP command
SCK
tESCK2
tCSH
VIH
VIL
BUSYB
tFDO
VOH
VOL
OSC
(internal)
Oscillating
tPLAF WS3
WS4
tOSST
Speaker amplifier
enable (internal)
SPP
Hi-Z
SPM
Hi-Z
Status
Playing
Fade-out processing
Standby
Awaiting oscillation stop
- The wait time of WS1, WS2, WS3, and WS4 can be set up for every phrase, when creating sound data using
Speech Utility.
- About this function, refer to “3. PHRASEn command” in “Description of Command Functions”
15/35
FEDL22Q374-02
ML22Q374
Disconnection detection Timing
CSB
VIH
VIL
DISCONNECT command
SI
tESCK1
tCSH
SCK
tCB
BUSYB
tDCD
VOH
VOL
Oscillation stable
OSC
(internal)
Oscillating
Status
Awaiting command
Standby
Under disconnection detection
Command processing
VIH
CSB
VIL
STOP command
SI
tESCK2
tCSH
SCK
tCB
tOSST
BUSYB
OSC
(internal)
Oscillating
Status
Standby
Under disconnection detection
Awaiting oscillation stop
Command processing
定中
Speaker pin short detection Timing
tSD
BUSYB
VOH
VOL
OSC
(internal)
Oscillating
Speaker amplifier
enable (internal)
Speaker pin short
detect (internal)
SPP
Hi-Z
SPM
Hi-Z
Short detection processing
Status
Playing
Standby
16/35
FEDL22Q374-02
ML22Q374
FUNCTIONAL DESCRIPTION
Synchronous Serial Command Interface
The CSB, SCK, SI pins are used to input the command data. Driving the CSB pin to “L” level enables the serial
CPU interface.
After the CSB pin is driven to “L” level, the command data are input through the SI pin from the MSB or LSB
synchronized with the SCK clock. The command data shifts in through the SI pin at the rising edge of the SCK
clock pulse. Then, a command is executed at the rising edge of the eighth pulse of the SCK clock.
The initial value of the SCK pin can be chosen by the mask option of Speech Utility. When setting the initial
value of the SCK pin as "H" level, please choose “Nomal ("H" Level)” as a mask option. When setting the initial
value of the SCK pin as "L" level, please choose “Reversal("L" Level)” as a mask option.
After a command input should return the CSB pin to "H" level.
Data input timing
• Nomal(“H” Level)
CSB
SCK
SI
D7
D6
D5
D4
D3
D2
D1
(MS B)
D0
(LSB )
• Reversal(“L” Level)
CSB
SCK
SI
D7
(MS B)
D6
D5
D4
D3
D2
D1
D0
(LSB )
The synchronous serial interface option can be set up on the option screen of Speech Utility shown in figure .1.
Figure .1 The option screen of Speech Utility
17/35
FEDL22Q374-02
ML22Q374
Command List
Each command is configured by the unit of byte (8-bit).
Command
D7
D6
D5
D4
D3
D2
D1
D0
STOP
0
0
0
0
0
0
0
0
DISCONNECT
0
0
0
0
0
0
0
1
PHRASE2
PHRASE3
V2
V2
V1
V1
V0
V0
0
0
0
0
0
0
1
1
0
1
PHRASE31
V2
V1
V0
1
1
1
1
1
Description
Stop command.
The STOP command becomes
effective except the phrase in Play
Once mode and Scheduled Play
Once mode.
Disconnection detection command.
Please input the STOP command,
after you use the DISCONNECT
command.
Phrase command
Voice Synthesis Algorithm
Four types of voice synthesis algorithm are supported. They are 4-bit ADPCM2, 8-bit non-linear PCM, 8-bit
straight PCM and 16-bit straight PCM. Select the best one according to the characteristics of voice.
The following table shows key features of each algorithm.
Voice synthesis
algorithm
Applied waveform
4-bit ADPCM2
Normal voice waveform
8-bit Nonlinear PCM
Waveform including
high frequency signals
(sound effect, etc.)
8-bit straight PCM
16-bit straight PCM
Feature
Up version of LAPIS Semiconductor’s specific voice
synthesis algorithm (: 4-bit ADPCM).
Voice quality is improved.
Algorithm, which plays back mid-range of waveform as
10-bit equivalent voice quality.
Normal 8-bit PCM algorithm
Normal 16-bit PCM algorithm
18/35
FEDL22Q374-02
ML22Q374
Memory Allocation and Creating Voice Data
The ROM is partitioned into four data areas: voice (i.e., phrase) control area, test area, voice area, and edit ROM
area.
The voice control area manages the voice data in the ROM. It contains data for controlling the start/stop
addresses of voice data for 1,024 phrases, use/non-use of the edit ROM function and so on.
The test area contains data for testing.
The voice area contains actual waveform data.
The edit ROM area contains data for effective use of voice data. For the details, refer to the section of “Edit
ROM Function.”
The edit ROM area is not available if the edit ROM is not used.
The ROM data is created using a dedicated tool.
Configuration of ROM data
0x00000
0x01FFF
0x02000
Prohibition of use area
(Fixed 64 Kbits)
Voice area 2
max.0x0FBFF
0x0FFFF
max.0x0FBFF
0x0FC00
0x0FFFF
0x10000
0x101FF
0x10200
Edit ROM area
Depends on creation
of ROM data.
Test area
Voice control area
(Fixed 4 Kbits)
Voice area 1
0x17FFF
Playback Time and Memory Capacity
The playback time depends on the memory capacity, sampling frequency, and the playback method.
The equation to know the playback time is shown below. But this is not applied if the edit ROM function is
used.
Playback time [sec] =
1.024 × (Voice area 1 + Voice area 2) [Kbits]
Sampling frequency [kHz] × Bit length
(Bit length is 4 at the 4-bit ADPCM2 and 8/16 at the PCM.)
Example) In the case that the sampling frequency is 8 kHz, algorithm is 4-bit ADPCM2, the playback time
is approx. 22.1 seconds, as shown below.
Playback time =
1.024×692 [Kbits]
8 [kHz] × 4 [bits]
≅ 22.1 [sec]
19/35
FEDL22Q374-02
ML22Q374
Edit ROM Function
The edit ROM function makes it possible to play back multiple phrases in succession. The following functions
are set using the edit ROM function:
x Continuous playback:
There is no limit to set the number of times of the continuous playback.
It depends on the memory capacity only.
x Silence insertion function:
20ms to 1,024 ms
Note: Silent insertion time varies for ±1ms by the sampling frequency
It is possible to use voice ROM effectively to use the edit ROM function.
Below is an example of the ROM structure, case of using the edit ROM function.
Example 1)
Phrases using the Edit ROM Function
Phrase 2
A
B
D
Phrase 3
A
C
D
Phrase 4
E
B
D
Phrase 5
E
C
D
Phrase 6
A
Example 2)
B
D
Silence
E
C
D
Structure of the ROM that contents of Example 1 are stored
Address control area
A
B
C
D
E
Editing area
20/35
FEDL22Q374-02
ML22Q374
Notice of silence insertion function
If it is only silence phrase registered, please put in order three or more silence phrase.
The phrase which is constituted from one or two of silence phrase does not playback.
Example 3)
Phrase composition in the case of using silence insertion function
The phrase to playback (The phrase 2 is playbacked twice on both sides of 1 sec silence.)
A
B
D
A
Silence
Phrase 2
B
D
Phrase 2
Phrase 8
1sec silence
Silence
Silence
Silence
336ms
Silence
insertion
336ms
Silence
insertion
328ms
Silence
insertion
1 sec which is constituted by the three silences is registered as the phrase 8.
21/35
FEDL22Q374-02
ML22Q374
Speaker Pin Short Detection Function
The speaker pin short detection function detect the short-circuit between SPP pin and SPM pin, or between
SPP/SPM pin and GND during playback. When short-circuit of a speaker pin is detected, the playback will be
stopped automatically, BUSYB pin will become "H" level, and LSI will become in a standby state.
In addition, this function can be set up with the option screen of Speech Utilty.
Please refer to a "Mask Option Setting setting item" for the option screen of Speech Utilty.
Phrase
Phrase
SCK
BUSYB
Speaker pin short
SPP/SPM
Hi-Z
Hi-Z
Speaker pin short
detection function
-- effective
Status
Awaiting command
Standby
Playing
Command processing
Speaker pin short
detection function
-- effective
Awaiting command
Standby
Playing
Command processing
Forced outage by speaker
pin short detection
22/35
FEDL22Q374-02
ML22Q374
Description of Command Functions
1. STOP command
x command
0
0
0
0
0
0
0
0
The STOP command is used to stop the playback. BUSYB pin will become "H", if the playback is stopped.
The STOP command becomes effective except the phrase in Play Once mode and Scheduled Play Once mode.
When you use Play Once mode or Scheduled Play Once mode, the STOP command is ignored.
When you use Scheduled Play mode, a phrase is played back to the last and the playback is stopped, after the
STOP command is inputted. Furthermore, when you use Change Immediately Once mode or Change
Immediately mode, fade-out of the playback is carried out and the playback is stopped, after the STOP command
is inputted.
x STOP command operation in the case of Scheduled Play mode
Phrase
STOP command
SCK
BUSYB
SPP/SPM
Status
Hi-Z
Awaiting command
Standby
Playing (playback to the last)
Command processing
Standby
x STOP command operation in the case of Change Immediately Once mode or Change Immediately mode
Phrase
STOP command
SCK
BUSYB
SPP/SPM
Status
Hi-Z
Awaiting command
Standby
Playing
Command processing
Fade-out
Standby
23/35
FEDL22Q374-02
ML22Q374
2. DISCONNECT command
x command
0
0
0
0
0
0
0
1
The DISCONNECT command is used to diagnose whether the speaker is disconnected or not. When the speaker
is disconnected, BUSYB pin outputs "L". Please input the STOP command, after you use the DISCONNECT
command.
DISCONNECTcommand
STOPcommand
SCK
BUSYB
tDCD
Status
Awaiting command
Standby
Disconnection judgment
(L: disconnect H: Connect)
Under speaker disconnection detection
Command processing
Standby
Command processing
24/35
FEDL22Q374-02
ML22Q374
3. PHRASEn (n = 2 to 31) command
x command
V2
V1
V0
F4
F3
F2
F1
F0
The PHRASEn (n = 2 to 31) command is used to start playback phrase. When you create the voice data, please
set up the phrase address using Speech Utility.
The timing in the case of the playback a phrase address below is shown.
Volume
SI
Phrase
V2 V1 V0 F4 F3 F2 F1 F0
SCK
BUSYB
SPP/SPM
Hi-Z
Status
Awaiting command
Standby
Playing
Command processing
The PHRASEn(n=2 to 31) command can perform a volume setup.
When V2-V0 is “000”, the volume setup of voice cntrol area is used.
V2
V1
V0
0
0
0
0
0
0
1
1
1
1
0
1
1
0
0
1
1
1
0
1
0
1
0
1
Volume [dB]
The volume setup of voice
control area is used.
+2.98
+1.78
0
-2.25
-5.28
-9.99
-21.04
25/35
FEDL22Q374-02
ML22Q374
Each phrase can set up the wait time before and after playback, a volume setup, and playback mode using
Speech Utility.
Figure .2 The option screen for every phrase of Speech Utility
1) Wait time setting before and after playback (WS1, WS2, WS3, WS4)
Each phrase can set up the wait time before and after playback. Since it is an option setup, change will be
impossible once it sets up.
Phrase
SCK
BUSYB
WS1 WS2
SPP/SPM
WS3 WS4
Hi-Z
Status
Awaiting command
Standby
Standby
Playing
Command processing Awaiting oscillation stop
WS1: Time after inputting a phrase address, until SPP/SPM pins are enabled.
WS2: Time after SPP/SPM pins are enabled, until playback is started.
WS3: Time after playback is completed, until SPP/SPM pins are disabled.
WS4: Time after SPP/SPM pins are disabled, until it will be in a standby state.
WS1-WS4 can be arbitrarily set up between 0 to1020ms (4ms unit).
2) Volume setup (Volume)
Each phrase can set up the volume setup. Since it is an option setup, change will be impossible once it sets up.
Value [hex]
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
Volume [dB]
+2.98
+2.70
+2.40
+2.10
+1.78
+1.45
+1.11
+0.76
+0.39
+0.00
Value [hex]
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
14h
Volume [dB]
-0.41
-0.83
-1.28
-1.75
-2.25
-2.77
-3.34
-3.94
-4.58
-5.28
-6.04
Value [hex]
15h
16h
17h
18h
19h
1Ah
1Bh
1Ch
1Dh
1Eh
1Fh
Volume [dB]
-6.87
-7.79
-8.82
-9.99
-11.34
-12.94
-14.90
-17.44
-21.04
-27.31
OFF
26/35
FEDL22Q374-02
ML22Q374
3) Playback mode setup
Playback mode can be set up for every phrase. Since it is an option setup, change will be impossible once it sets
up.
Playback mode
Operation
Play Once
Scheduled Play Once
Change Immediately Once
Scheduled Play
Change Immediately
This mode is playback once. All the commands become
invalid during playback.
When the following phrase is inputted into playback, after
playback of the present phrase is completed, playback of th
following phrase starts. Even if STOP command is inputted
during playback, it will be ignored.
When the following phrase is inputted into playback,
playback of the present phrase is ended on the way, and
playback of the following phrase starts.
The playback continues until the following command will be
inputted, if playback starts. When the following command is
inputted into playback, after playback of the present phrase
is completed, the following command is executed.
The playback continues until the following command will be
inputted, if playback starts. When the following phrase is
inputted into playback, playback of the present phrase is
ended on the way, and playback of the following phrase
starts.
x Play Once mode
Phrase(m)
Phrase(n)
SCK
BUSYB
Voice output
”Good morning”
”Good afternoon”
Status
Playing Phrase (m)
Playing Phrase (n)
Command processing
Standby
Awaiting command
Standby
Command processing
Awaiting command
Standby
x Scheduled Play Once mode
Phrase(m)
Phrase(n)
SCK
BUSYB
Voice output
”Good morning”
”Good afternoon”
Status
Playing Phrase (m)
Playing Phrase (n)
Standby
Standby
Command processing
Awaiting command
27/35
FEDL22Q374-02
ML22Q374
x Change Immediately Once mode
Phrase(m)
Phrase(n)
SCK
BUSYB
Voice output
”Good mo”
Status
Playing Phrase (m)
”Good afternoon”
Playing Phrase (n)
Standby
Command processing
Standby
Awaiting command
Fade-out
x Scheduled Play mode
STOP command
Phrase(m)
SCK
BUSYB
Voice output
Status
”Good morning”
”Good morning”
Playing Phrase (m)
Playing Phrase (m)
Standby
Command processing
Standby
Awaiting command
x Change Immediately mode
STOP command
Phrase(m)
SCK
BUSYB
Voice output
”Good morning”
Status
Playing Phrase (m)
Standby
Command processing
”Good mo”
Playing Phrase (m)
Standby
Fade-out
Awaiting command
28/35
FEDL22Q374-02
ML22Q374
Mask Option Setting
(1)
(5)
(6)
(2)
(3)
(4)
Figure .3 The Mask Option Setting screen of Speech Utility
Explanation of each option is shown in the following page.
29/35
FEDL22Q374-02
ML22Q374
Parameter
Function
Explanation
(1) Use of speaker short detective
ON or OFF selection of a short
detection function
If a check box is turned on, a short
detection circuit will become effective.
SEQ Pins Setting
Interface setup
SEQ
BUSYB setup
(2) Use SEQ
Use or unuse selection of
BUSYB
If a check box is turned on, a BUSYB
pin can be used. If a check box is
turned off, a BUSYB pin does not
function but the fixed output of the
initial value is carried out.
(3) Initial State
Initial output level selection of
BUSYB
The initial value of a BUSYB pin at
voice stop can be chosen.
L Level Output
The "L" level is outputted at voice stop.
L Level Output
H Level Output
(4) Condition
H Level Output
BUSYB condition setup
The "H" level is outputted at voice stop.
BUSYB condition can be chosen.
CMOS
CMOS output
A BUSYB pin become a CMOS output.
Usually, please use this setup.
Nch Open Drain
Nch Open Drain output
The "L" level is outputted at the “L”
level. High impedance is outputted at
the H" level.
Pch Open Drain
Pch Open Drain output
The "H" level is outputted at the “H”
level. High impedance is outputted at
the L" level.
Hi-Z
High impedance output
High impedance is always outputted.
When BUSYB use mode is set up,
please do not use it.
SPI Setting
(5) Data transfer type
Synchronous Serial Interface
Data input format
Data input format can be chosen from
LSB first or MSB first.
LSB first
LSB first
Serial data is inputted at LSB first.
MSB first
MSB first
Serial data is inputted at MSB first.
(6) Clock polarity
Serial Clock setup
The initial value of the SCK pin can be
chosen.
Nomal(“H” Level)
An initial value is "H" level.
An initial value of the SCK pin is "H"
level.
Reversal(“L” Level)
An initial value is "L" level.
An initial value of the SCK pin is "L"
level.
30/35
FEDL22Q374-02
ML22Q374
TERMINATION OF THE VDDL PIN
The VDDL pin is the regulator output that is power supply pin for the internal logic circuits. Connect a capacitor
between this pin and the ground in order to prevent noise generation and power fluctuation.
The recommended capacitance value is shown below. However, it is important to evaluate and decide using the
own board.
Also, start the next operation after each output voltage is stabilized.
Pin
Recommended
capacitance value
VDDL
10 µF ±20%
Remarks
The larger the connection capacitance, the longer the settling
time.
POWER SUPPLY WIRING
The power supplies of this LSI are divided into the following two:
• Power supply for logic circuitry (: DVDD)
• Power supply for speaker amplifier (: SPVDD)
The example of power connection is shown below.
DVDD
SPVDD
DGND
SPGND
5V
DVDD
DGND
3V
SPVDD
SPGND
5V
- Turn on DVDD and SPVDD simultaneously, or turn on SPVDD after turning on DVDD.
- Turn off DVDD and SPVDD simultaneously, or turn off DVDD after turning on SPVDD.
31/35
FEDL22Q374-02
ML22Q374
APPLICATION CIRCUIT
RESET_N
MCU
CSB
SCK
SI
BUSYB
SPP
SPM
TEST
SPVDD
DVDD
VDDL
5V
0.1µF
10µF
0.1µF
DGND
SPGND
32/35
FEDL22Q374-02
ML22Q374
PACKAGE DIMENSIONS
(Unit: mm)
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 ROHM’s responsible sales person for the
product name, package name, pin number, package code and desired mounting conditions (reflow method,
temperature and times).
33/35
FEDL22Q374-02
ML22Q374
REVISION HISTORY
Document No.
Date
FEDL22Q374FULL-01
FEDL22Q374-02
Oct. 23, 2012
Jun. 06, 2014
Page
Current
Previous
Edition
Edition
–
–
–
21
Description
Final edition 1
Add Notice of silence insertion function
34/35
FEDL22Q374-02
ML22Q374
NOTES
No copying or reproduction of this document, in part or in whole, is permitted without the consent of LAPIS
Semiconductor Co., Ltd.
The content specified herein is subject to change for improvement without notice.
Examples of application circuits, circuit constants and any other information contained herein illustrate the
standard usage and operations of the Products. The peripheral conditions must be taken into account when
designing circuits for mass production.
Great care was taken in ensuring the accuracy of the information specified in this document. However, should
you incur any damage arising from any inaccuracy or misprint of such information, LAPIS Semiconductor shall
bear no responsibility for such damage.
The technical information specified herein is intended only to show the typical functions of and examples of
application circuits for the Products. LAPIS Semiconductor does not grant you, explicitly or implicitly, any
license to use or exercise intellectual property or other rights held by LAPIS Semiconductor and other parties.
LAPIS Semiconductor shall bear no responsibility whatsoever for any dispute arising from the use of such
technical information.
The Products specified in this document are intended to be used with general-use electronic equipment or
devices (such as audio visual equipment, office-automation equipment, communication devices, electronic
appliances and amusement devices).
The Products specified in this document are not designed to be radiation tolerant.
While LAPIS Semiconductor always makes efforts to enhance the quality and reliability of its Products, a
Product may fail or malfunction for a variety of reasons.
Please be sure to implement in your equipment using the Products safety measures to guard against the
possibility of physical injury, fire or any other damage caused in the event of the failure of any Product, such as
derating, redundancy, fire control and fail-safe designs. LAPIS Semiconductor shall bear no responsibility
whatsoever for your use of any Product outside of the prescribed scope or not in accordance with the instruction
manual.
The Products are not designed or manufactured to be used with any equipment, device or system which requires
an extremely high level of reliability the failure or malfunction of which may result in a direct threat to human
life or create a risk of human injury (such as a medical instrument, transportation equipment, aerospace
machinery, nuclear-reactor controller, fuel-controller or other safety device). LAPIS Semiconductor shall bear
no responsibility in any way for use of any of the Products for the above special purposes. If a Product is
intended to be used for any such special purpose, please contact a ROHM sales representative before purchasing.
If you intend to export or ship overseas any Product or technology specified herein that may be controlled under
the Foreign Exchange and the Foreign Trade Law, you will be required to obtain a license or permit under the
Law.
Copyright 2012-2014 LAPIS Semiconductor Co., Ltd.
2-4-8 Shinyokohama, Kouhoku-ku,
Yokohama 222-8575, Japan
http://www.lapis-semi.com/en/
35/35
Similar pages