Download Print this page
Rohm LAPIS Semiconductor ML22660 Manual

Rohm LAPIS Semiconductor ML22660 Manual

4-channel mixing speech synthesis lsi

Advertisement

Quick Links

ML22660
4-Channel Mixing Speech Synthesis LSI
Overview
ML22660 is a 4-channel mixing speech synthesis LSI with a serial flash memory interface for sound data. It is equipped
with a I2C interface (slaves).
It adopts a HQ-ADPCM
speaker amplifier for driving speakers directly. It is also equipped with a function to detect failure.
The functions necessary for sound output are integrated into a single chip, so that sound functions can be realized simply by
adding this LSI.
● Memory capacity and maximum sound production time (HQ-ADPCM
Product Name
ML22660
FLASH
MEMORY
Host
MCU
Decode
2
I
C
*1
*1
, 16-bit D/A converter, and low-pass filter for high sound quality, and incorporates a 1.0W mono
Flash memory capacity
128Mbits
(Serial Flash Memory)
Filter
MIX
Volume
HQ-ADPCM is "Ky's" high-quality audio compression technique.
"Ky's" is a registered trademark of Kyushu Institute of Technology, a
national university corporation.
Maximum sound production time (sec)
f
=8.0kHz
s
5240
Analog Signal
16bit
MIX
DAC
Application Circuit
Issue date: Apr 24, 2020
*1
algorithm, registered phrase 1024)
f
=16.0kHz
f
=32.0kHz
s
s
2620
1310
Speaker
AMP
FEDL22660-01

Advertisement

loading
Need help?

Need help?

Do you have a question about the LAPIS Semiconductor ML22660 and is the answer not in the manual?

Questions and answers

Summary of Contents for Rohm LAPIS Semiconductor ML22660

  • Page 1 FEDL22660-01 Issue date: Apr 24, 2020 ML22660 4-Channel Mixing Speech Synthesis LSI ■ Overview ML22660 is a 4-channel mixing speech synthesis LSI with a serial flash memory interface for sound data. It is equipped with a I2C interface (slaves). It adopts a HQ-ADPCM , 16-bit D/A converter, and low-pass filter for high sound quality, and incorporates a 1.0W mono speaker amplifier for driving speakers directly.
  • Page 2 FEDL22660-01 ML22660 ■ Feature ● Sound data Speech synthesis algorithm: The algorithm can be specified for each phrase. HQ-ADPCM/4bit ADPCM2/8bit non-linear PCM / 8bit Straight PCM/16bit Straight PCM Sampling frequency: The sampling frequency can be specified for each phrase. 10.7/21.3kHz, 6.4/12.8/25.6kHz, 8.0/16.0/32.0kHz, 11.025/22.05/44.1kHz,...
  • Page 3 FEDL22660-01 ML22660 ■ Pin Configuration (TOP VIEW) ● ML22660TB (N.C.) (N.C.) (TOP VIEW) EROFF RESETB ERSO TEST0 TQFP32 ERSI STATUS1 ERSCK STATUS2 ERCSB CBUSYB (N.C.) Unused pin 3/116...
  • Page 4 FEDL22660-01 ML22660 ■ Pin Description Initial Symbol Attribute Description value 1,18 DGND Digital ground pin. — SAD0 C slave address select pin. — C slave serial clock pin. Be sure to insert a pull-up resistor. C slave serial data input/output pin. Be sure to insert a pull-up resistor.
  • Page 5 FEDL22660-01 ML22660 Initial Symbol Attribute Description value Serial flash memory interface power supply pin. — Connect a bypass capacitor between this pin and the DGND pin. Crystal or ceramic resonator connection pin. When an external clock is used, leave it open and capacitor is not Negative required when a crystal or ceramic resonator is connected.
  • Page 6 FEDL22660-01 ML22660 Initial Symbol Attribute Description value Reset input pin. The LSI is initialized by the "L" level input. After a reset is input, all the circuits stop operating and enter the power-down state. RESETB Negative At power-on, input an "L" level to this pin. After the power supply voltage stabilizes, set this pin to an "H"...
  • Page 7 FEDL22660-01 ML22660 ■ I/O Equivalent Circuit Classifi Circuit Overview cation Attribute: Input Power: DV Function: CMOS inputs with pull-down Applicable pin: TEST0 Attribute: Input Power: IOV Function: CMOS inputs with pull-down Applicable pin: EROFF Attribute: Input Power: DV Function: CMOS inputs with pull-up Applicable pin: RESETB Attribute: Input Power: DV...
  • Page 8 FEDL22660-01 ML22660 Classifi Circuit Overview cation Attribute: Input/output Power: DV Function: CMOS inputs Function: CMOS outputs Applicable pins: STATUS1, STATUS2, CBUSYB Attribute: Input/output Power: IOV Function: CMOS inputs Function: CMOS outputs Applicable pin: ERCSB, ERSCK, ERSO Attribute: Input/output Power: IOV Function: CMOS inputs with pull-down Function: CMOS outputs Applicable pin: ERSI...
  • Page 9 FEDL22660-01 ML22660 Classifi Circuit Overview cation Attribute: Analog Power: SPV Function: Sound output Applicable pins: SPP, SPM Attribute: Analog Power: SPV Function: Sound input Applicable pins: AIN Attribute: Input Power: DV Function: Nch Open Drain Applicable pins: SCL, SDA 9/116...
  • Page 10: Electrical Characteristics

    FEDL22660-01 ML22660 ■ Electrical characteristics ● Absolute maximum rating DGND=SPGND=0V, Ta=25°C Parameter Symbol Condition Rating Unit Power supply voltage 1 — -0.3 to +6.0 Input voltage 1 — -0.3 to DV +0.3 Input voltage 2 — -0.3 to IOV +0.3 When the LSI is mounted on Allowable loss JEDEC 4-layer board.
  • Page 11 FEDL22660-01 ML22660 ● DC characteristics ≥DV =IOV =2.7 to 5.5V, DGND=SPGND=0V, Ta=-40 to +85°C, Load capacitance of output pin =15pF(max.) Parameter Symbol Condition Applicable pin Min. Typ. Max. Unit SAD0/SAD1/SAD2/ "H" input voltage 1 — 0.8×DV — SDA/SCL/ XT/RESETB/TEST0 "H" input voltage 2 —...
  • Page 12 FEDL22660-01 ML22660 ● Analog Part Characteristics ≥DV =IOV =2.7 to 5.5V, DGND=SPGND=0V, Ta=-40 to +85°C, Load capacitance of output pin =15pF(max.) Parameter Symbol Condition Min. Typ. Max. Unit RC4MHz clock frequency Ta=-40 to +70°C 3.89 4.096 4.31 kΩ AIN pin input resistance Input gain 0dB AIN pin input voltage range —...
  • Page 13 FEDL22660-01 ML22660 ● AC characteristic ≥DV =IOV =2.7 to 5.5V, DGND=SPGND=0V, Ta=-40 to +85°C, Load capacitance of output pin =15pF(max.) Parameter Symbol Condition Min. Typ. Max. Unit Master clock duty cycle — duty μs RESETB input pulse width — — —...
  • Page 14 FEDL22660-01 ML22660 ● AC Characteristics (I C Interface:Fast Mode 400kHz) ≥DV =IOV =2.7 to 5.5V, DGND=SPGND=0V, Ta=-40 to +85°C, Load capacitance of output pin =15pF(max.) Parameter Symbol Max. Unit SCL clock frequency μs SCL hold time (start/restart condition) — HD;STA μs SCL clock "L"...
  • Page 15 FEDL22660-01 ML22660 ● AC Characteristics (Flash Memory Interface) ≥DV =IOV =2.7 to 5.5V, DGND=SPGND=0V, Ta=-40 to +85°C, Load capacitance of output pin =15pF(max.) Parameter Symbol Condition Min. Typ. Max. Unit ERSCK enable time from ERCSB falling edge — — — ECSS ERSCK hold time from ERCSB rising edge —...
  • Page 16 FEDL22660-01 ML22660 ■ Block diagram The block diagram is shown below. OSC4.096MHz Timing or 4.000MHz Controller RC4.096MHz Interface ERCSB ERSCK Serial Flash Memory SAD0 Command Address ERSI Interface ERSO SAD1 Analyzer Controller EROFF SAD2 CBUSYB STATUS1 PCM Synthesizer STATUS2 Digital Mixing DGND ΔΣ...
  • Page 17 FEDL22660-01 ML22660 ■ Function description ● C Command Interface This serial interface conforms to the I C bus specifications. It supports Fast modes and can transmit and receive data at 400kbit/s. The SCL and SDA pins are used to input various command data and to read the status. The slave addresses are set by the SAD0 to 2 pins.
  • Page 18 FEDL22660-01 ML22660  Command flow when writing data (2-byte command) Start condition Slave address +W(0) Write data (ex. Command 1st byte) Write data (ex. Command 2nd byte) Stop condition - Timing chart when writing data. (2 byte command) A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D7 D6 D5 D4 D3 D2 D1 Slave Address...
  • Page 19 FEDL22660-01 ML22660  Command flow when reading data Start condition Slave address +W(0) RDSTAT Command Stop condition Start condition Slave address + R(1) Read data (ex. Status read) Stop condition - Timing chart when reading data. A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 Slave Address RDSTAT Command...
  • Page 20 FEDL22660-01 ML22660 ● Volume Settings (Differences Between AVOL and CVOL) The volume can be set with 3 commands CVOL, AVOL and AMODE. The CVOL can set the volume of each channel, the AVOL can set the volume after channel mixing, and the AMODE can set the input gain to the amplifier.
  • Page 21 FEDL22660-01 ML22660 ● Speech synthesis algorithm This LSI contains five algorithm types to match the characteristic of playback sound: 4-bit ADPCM2 algorithm, HQ-ADPCM algorithm, 8-bit non-linear PCM algorithm, 8-bit straight PCM algorithm, and 16-bit straight PCM algorithm. Key feature of each algorithm is described in the table below. Speech synthesis Compression Feature...
  • Page 22 FEDL22660-01 ML22660 ● Memory Allocation and Creating Sound Data The serial flash memory is partitioned into four data areas: sound (i.e., phrase) control area, test area, sound area, and edit ROM area. The sound control area manages the sound data in the ROM. It contains data for 4,096 phrases. The sound area contains actual waveform data.
  • Page 23 FEDL22660-01 ML22660 ● Edit ROM Function With the edit ROM function, multiple phrases can be played in succession. The following functions can be configured using the edit ROM function: • Continuous playback: There is no limit to the continuous playback count that can be specified. It depends on the memory capacity only.
  • Page 24 FEDL22660-01 ML22660 ● Mixing function Up to 4 channels mixing playback is possible at the same time. Commands with channel designation can set channels independently.  Waveform clamp precautions for mixing When mixing, the clamp may be generated as shown in the figure below due to the calculation of the synthesis. If the clamp is known to be generated in advance, adjust the volume of each channel by CVOL command.
  • Page 25 FEDL22660-01 ML22660  Different sampling frequency mixing algorithm It is not possible to perform channel mixing by a different sampling frequency group. Note that when channel synthesis is performed on a sampling frequency group other than the selected sampling frequency group, playback will be faster or slower.
  • Page 26 FEDL22660-01 ML22660 ● Misoperation detection and failure detection functions Misoperation detection and failure detection functions can be set with SAFE command. The error detection status can be read by the RDERR command, and the error bit indicating the error detection status can be cleared by the ERRCL command. In addition, OUTSTAT command can be used to send whether an error is detected or not to the STATUS1 pin or STATUS2 pin.
  • Page 27 FEDL22660-01 ML22660  Command error detection Set the command error detection with the WCMEN bit of the SAFE command. It is possible to detect two kinds of errors. ① Specify phrases exceeding the number of phrases set by the dedicated tools (Speech LSI Utility) with PLAY2 or FADR2 command.
  • Page 28 FEDL22660-01 ML22660  Speaker disconnection detection Set the speaker disconnection detection with the DCDEN bit of the SAFE command. The speaker connection status of the SPP and SPM pins is checked when the analog power-up is activated in speaker amplifier output mode by AMODE command. When the disconnection of the speaker is detected, the error bit (DCDERR) is set to "1".
  • Page 29 FEDL22660-01 ML22660  SPP pin and SPM pin short detection Set the SPP pin and SPM pin short detection with the SPDEN bit of the SAFE command. Detects short circuit between SPP pin and SPM pin, or SPP pin and GND (ground fault), or SPM pin and GND (ground ≥...
  • Page 30 FEDL22660-01 ML22660  Flash memory error detection Set the Flash memory error detection with the ROMEN bit of the SAFE command. It is possible to detect two kinds of errors. ① Flash memory read data error When an error is detected in the read data from the flash memory, the error bit (ROMERR) is set to "1". At the same time, playback of the corresponding channel is stopped.
  • Page 31 FEDL22660-01 ML22660  Watchdog timer overflow detection A communication error between the HOST and this LSI (disconnection or short-circuit of the MCU command interface, etc.) can be detected. Set the watchdog timer overflow detection with WDTEN bit of the SAFE command. When the detection operation is started, the detection does not stop even if the WDTEN bit is set to "0".
  • Page 32 FEDL22660-01 ML22660 The operation when no WDTCL command is entered is as follows. <When "Transition to the command standby state after power-up" is selected by the second overflow of the WDT counter> SAFE WDTCL Command WDTEN Count-up Count-up Count-up WDT counter WDT overflow WDTERR RSTERR...
  • Page 33 FEDL22660-01 ML22660  RST counter overflow detection The overflow detection of RST counter is set by RSTEN bits of SAFE command. RST counter operates when any error is detected. When the detection operation is started, the detection does not stop even if the RSTEN bit is set to "0". When the RST counter overflows, the error bit (RSTERR) is set to "1".
  • Page 34 FEDL22660-01 ML22660 The operation when no ERRCL command is entered is as follows. <When "Transition to command standby state after power-up" is selected by the overflow of the RST counter> RDERR ERRCL SAFE Command RSTEN Error detection RST counter Count-up Overflow RSTERR *1*3...
  • Page 35 FEDL22660-01 ML22660  Detects the stop of clock input from a crystal resonator or ceramic resonator. Set the "Detects the stop of clock input from a crystal resonator or ceramic resonator" with the OSCEN bit of the SAFE command. When the clock input from the crystal resonator or the ceramic resonator is stopped, the error bit (OSCERR) is set to "1". At the same time, the clock backup function is activated and the clock is automatically switched to the RC oscillator circuit (4.096MHz).
  • Page 36 FEDL22660-01 ML22660 ● Serial flash memory rewrite function The serial flash memory can be rewritten in the following ways. SOUND LSI Serial flash memory EROFF Serial flash memory Interface ERCSB ERSCK ERSO ERSI Flash memory writer etc. The serial flash memory can be rewritten using the ERCSB, ERSCK, ERSI and ERSO pins that is the serial flash memory interface.
  • Page 37 FEDL22660-01 ML22660 ■ Timing chart ● Power-on timing RESETB Status Power-down After the power is turned on, the device enters the power-down state. Start up in order of DV , SPV and IOV or DV , IOV and SPV It is possible that the DV and SPV start up at the same time and then the IOV starts up, or the DV...
  • Page 38 FEDL22660-01 ML22660 ● Reset input timing RESETB XT/XTB Oscillating Oscillation stopped Hi-Z Reset Status Power-down During playback The same timing is applied when a reset is input during command standby. 38/116...
  • Page 39 FEDL22660-01 ML22660 ● Serial flash memory interface timing EROFF ERCSB ESCKF ECSH ECSS ESCKL ERSCK EDIS EDIH ESCKH ERSI EFHL EFLH EDOD ERSO 39/116...
  • Page 40: I 2 C Interface Timing

    FEDL22660-01 ML22660 ● C Slave  I C Interface Timing Start Restart Stop Condition Condition Condition SU:STO HD:STA HIGH SU:STA HD:STA SU:DAT HD:DAT 40/116...
  • Page 41 FEDL22660-01 ML22660 ● Power-up timing Slave Address CBUSYB NCRn (internal) BUSYBn (internal) Oscillation stopped Oscillating RC Oscillation (internal) Oscillation stopped Oscillating XT・XTB Power up DGND Status Power down Oscillation stabilized Awaiting command *1 When using a crystal or ceramic resonator ●...
  • Page 42 FEDL22660-01 ML22660 ● Speaker amplifier power-up timing (DAMP bit = "0", AEN1 bit = "0", AEN0 bit = "0" → "1") AMODE command AMODE command byte byte Slave Address PUPA1 CBUSYB (internal) BUSYB (internal) 1/2SPVDD LINE output (internal) 1/2SPVDD Hi-Z 1/2SPVDD Command is being Status...
  • Page 43 FEDL22660-01 ML22660 ● Line amplifier power-up timing (DAMP bit = "0", POP bit = "1", AEN1 bit = "0" → "1", AEN0 bit = "0") AMODE command AMODE command byte byte Slave Address PUPA2 CBUSYB (internal) BUSYB (internal) 1/2SPVDD Status Awaiting command Awaiting command POP noise suppressed...
  • Page 44 FEDL22660-01 ML22660 ● Speaker amplifier power-down timing (DAMP bit = "0", AEN1 bit = "0", AEN0 bit = "1" → "0") AMODE command AMODE command byte byte Slave Address PDA1 CBUSYB (internal) BUSYB (internal) 1/2SPVDD LINE output (internal) 1/2SPVDD Hi-Z 1/2SPVDD Command is being Status...
  • Page 45 FEDL22660-01 ML22660 ● Line amplifier power-down timing (DAMP bit = "0", POP bit = "1", AEN1 bit = "1" → "0", AEN0 bit = "0") AMODE command AMODE command byte byte Slave Address PDA2 CBUSYB (internal) BUSYB (internal) 1/2SPVDD Status Awaiting command Awaiting command POP noise suppressed...
  • Page 46 FEDL22660-01 ML22660 ● WDTCL command timing WDTCL command Slave Address CBUSYB Status Normal mode(Awaiting command) Awaiting command Command is being processed 46/116...
  • Page 47 FEDL22660-01 ML22660 ● Change volume timing by AVOL command AVOL command AVOL command byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) Status Awaiting command Awaiting command Command is being processed Command is being processed Speaker amplifier volume setting by AVOL commands is valid only when Class AB speaker amplifier is used. When a Class D speaker amplifier is used, the setting value is ignored and +0.0dB is selected.
  • Page 48 FEDL22660-01 ML22660 ● Setting playback phrases using FADR command FADR command FADR command byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) Status Awaiting command Awaiting command Awaiting command Command is being processed Command is being processed 48/116...
  • Page 49 FEDL22660-01 ML22660 ● Playback start timing by PLAY command PLAY command PLAY command byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Address is being Status Awaiting command Awaiting command Playing Awaiting command controlled Command is being processed When the first byte of the PLAY command is input, the device waits for the input of the second byte after the command processing time (t ).
  • Page 50 FEDL22660-01 ML22660 ● Continuous playback timing by PLAY command PLAY command PLAY command PLAY command byte byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Status Awaiting command Playing phrase 1 Playing phrase 2 Address is being controlled When making continuous playbacks, input the PLAY command for the next phrases within the specified time period (t after the NCR of the corresponding channel changes to "H"...
  • Page 51 FEDL22660-01 ML22660 ● Playback start timing by START command START command Slave Address CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Address is being Status Awaiting command Playing Awaiting command controlled When the START command is input, the address data of the phrase to be played after the command processing time (t ) is read from the flash memory.
  • Page 52 FEDL22660-01 ML22660 ● Continuous playback timing by START command FADR command START command byte byte START command Slave Address CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Status Awaiting command Playing phrase 1 Playing phrase 2 Address is being controlled When making continuous playbacks, input the START command for the next phrases within the specified time period (t after the NCR of the corresponding channel changes to "H"...
  • Page 53 FEDL22660-01 ML22660 ● STOP command (when the FAD bit is "L") STOP command Slave Address CBUSYB NCRn (internal) fs×1cycle BUSYBn (internal) 1/2SPVDD 1/2SPVDD Status Playing Awaiting command Command is being processed ● STOP command (when the FAD bit is "H") STOP command Slave Address CBUSYB...
  • Page 54 FEDL22660-01 ML22660 ● Playback start timing by MUON command MUON command MUON command byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Address is being Status Awaiting command Awaiting command Playing Awaiting command controlled Command is being processed When the first byte of the MUON command is input, the device waits for the input of the second byte after the command processing time (tCB1).
  • Page 55 FEDL22660-01 ML22660 ● Continuous playback timing by MUON command PLAY command MUON command PLAY command byte byte byte byte byte SlaveAddress SlaveAddress CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Status Awaiting command Playing Silence is being inserted Playing Address is being controlled Waiting for silence insertion to be finished After the PLAY command is input, the CBUSYB signal and NCR signal change to "H"...
  • Page 56 FEDL22660-01 ML22660 ● Repeat playback setting/release timing by SLOOP/CLOOP command SLOOP command CLOOP command PLAY command byte SlaveAddress SlaveAddress CBUSYB NCRn (internal) BUSYBn (internal) 1/2SPVDD 1/2SPVDD Status Awaiting command 1st Repeat playing 2nd Repeat playing Awaiting command Address is being controlled Address is being controlled Command is being processed The SLOOP command is valid only during playback.
  • Page 57 FEDL22660-01 ML22660 ● Change volume timing by CVOL command CVOL command CVOL command byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) Volume transition time Status Awaiting command Awaiting command Awaiting command Command is being processed Command is being processed *1 Refer to the "FADE command"...
  • Page 58 FEDL22660-01 ML22660 ● RDVER command timing RDVER command(Write) RDVER command(Read) byte byte SlaveAddress SlaveAddress CBUSYB (internal) BUSYB (internal) Awaiting Status Awaiting command Under reading Awaiting command command Command is being processed ● RDERR command timing RDERR command(Write) RDERR command(Read) byte byte SlaveAddress SlaveAddress...
  • Page 59 FEDL22660-01 ML22660 ● OUTSTAT command timing OUTSTAT command OUTSTAT command byte byte Slave Address CBUSYB (internal) BUSYB (internal) (internal) STATUS1 STATUS2 STATUS2 ch0 NCR output ch1 BUSYB output output status ● SAFE command timing SAFE command SAFE command byte byte Slave Address CBUSYB (internal)
  • Page 60 FEDL22660-01 ML22660 ● Setting timing of playback phrases by FADR2 command FADR2 command FADR2 command FADR2 command byte byte byte Slave Address CBUSYB NCRn (internal) BUSYBn (internal) Status Awaiting command Awaiting command Awaiting command Awaiting command Command is being processed Command is being Command is being processed...
  • Page 61 FEDL22660-01 ML22660 ■ Command ● Command list Each command is configured in 1-byte (8-bit) units. The PUP, WDTCL, PDWN, START, STOP, SLOOP, CLOOP and ERRCL commands are configured by one byte, the FADR2 and PLAY2 are configured by three bytes, and the other commands are configured by two bytes.
  • Page 62 FEDL22660-01 ML22660 ● Description of Command Functions  PUP command ・ Command The PUP command shifts from the power-down state to the command standby state. Since only the PUP command is accepted when the LSI is in the power-down state, the command is ignored if another command is input.
  • Page 63: Amode Command

    FEDL22660-01 ML22660  AMODE command ・ Command DAMP 1st byte DAG1 DAG0 AIG1 AIG0 AEN1 AEN0 2nd byte The AMODE command sets the analog part. The AMODE command is ignored during power-down, power-up transition, power-down transition and playback sound. When the PDWN command is input while powering up the analog parts, the LSI power downs on the setting condition when powering up the analog parts by the AMODE command.
  • Page 64 FEDL22660-01 ML22660 Description Without pop noise suppression With pop noise suppression In case that this bit is set to "1", when the AEN1 bit is set to "0" and the AEN0 bit is set to "1", the line amplifier output rises from the DGND level to the SG level at the specified time (tPUPA2) and the line amplifier output enters the power-up state.
  • Page 65 FEDL22660-01 ML22660 Pin states at AMODE power-down are as follows. Analog output pin Condition 2.5V(typ) DGND SPGND The timing of AMODE command is shown in the timing chart. "Speaker amplifier power-up timing (DAMP bit "0", AEN1 bit "0", AEN0 bit "0"→ "1")" "Speaker amplifier power-up timing (DAMP bit "1", AEN1 bit "0", AEN0 bit "0"→...
  • Page 66 FEDL22660-01 ML22660  AVOL command ・ Command 1st byte 2nd byte The AVOL command sets the volume of the speaker amplifier. This command can be input regardless of the NCR signal status. The initial value after reset release is set to-4.0dB. Also, the setting values of the AVOL command are retained when the STOP command is inputted, but they are initialized when the power is down.
  • Page 67: Fade Command

    FEDL22660-01 ML22660  FADE command ・ Command 1st byte FCON2 FCON1 FCON0 FADE 2nd byte The FADE command sets the Fade function. This command can be input regardless of the NCR signal status. By using the fade function, the volume changes stepwise when the volume is changed by the CVOL command. FADE Description Fade function disabled (initial value)
  • Page 68 FEDL22660-01 ML22660  WDTCL command ・ Command The WDTCL command clears the watchdog timer counter (WDT counter). This command can be input regardless of the NCR signal status. For information about the operation of the watchdog timer, refer to the "Misoperation detection and failure detection functions (Watchdog timer overflow detection)"...
  • Page 69 FEDL22660-01 ML22660  PDWN command ・ Command The PDWN command is used to shift from the command standby state to the power-down state. The various settings are initialized, so the initial settings are required after power-up. It is invalid when the BUSYB signals of any channels are "L". After inputting the PDWN command, oscillation stops following the elapse of the command processing time (tPD).
  • Page 70 FEDL22660-01 ML22660  FADR command ・ Command 1st byte 2nd byte The FADR command sets the channels and phrases to be played. This command can be input when the NCR signal of the corresponding channel is "H" level. Playback is started by the START command after the playback phrases of each channel are specified. The phrases (F9-F0) to be played back are specified when creating sound ROM data.
  • Page 71: Play Command

    FEDL22660-01 ML22660  PLAY command ・ Command 1st byte 2nd byte The PLAY command is played by specifying channels and phrases. This command can be input when the NCR signal of the corresponding channel is "H" level. The phrases (F9-F0) to be played back are specified when creating sound ROM data. Set the phrase specified when creating. This command can only set up to 0 to 1023 phrases.
  • Page 72 FEDL22660-01 ML22660  START command ・ Command 1st byte The START command starts playing back the specified channels. Specify the phrase to be played by the FADR command prior to entering the START command. Setting the CH0 to CH3 bit to 1 plays back the corresponding channel. This command can be input when the NCR signal of the corresponding channel is "H"...
  • Page 73 FEDL22660-01 ML22660  STOP command ・ Command 1st byte The STOP command stops playing back the specified channel. Setting the CH0 to CH3 bit to "1" stops playback of the corresponding channel. When the corresponding channel stops playing back, the NCR and BUSYB signals become "H". The STOP command can be input regardless of the status of the NCR during playback operation.
  • Page 74 FEDL22660-01 ML22660  MUON command ・ Command 1st byte 2nd byte The MUON command inserts silence between two phrases to be played. This command can be inputted when the NCR signal of the corresponding channel is "H" level. Repeated playing back (the SLOOP command) of the MUON command is not possible. The silence duration (t ) is specified by the M7-M0 bits and can be set from 20ms to 1,024ms in 252 steps at 4ms intervals.
  • Page 75 FEDL22660-01 ML22660  SLOOP command ・ Command 1st byte The SLOOP command sets the repeat playback of the specified channel. Setting the CH0 to CH3 bit to 1 repeatedly plays back the corresponding channel. This command can be input when the NCR signal of the corresponding channel is "H" level. When repeat playback is set, playback is repeatedly performed until the repeat playback setting is canceled by the CLOOP command or playback is stopped by the STOP command.
  • Page 76 FEDL22660-01 ML22660  CLOOP command ・ Command 1st byte The CLOOP command releases repeat playback of the specified channel. This command can be input regardless of the NCR signal status. Setting the CH0 to CH3 bit to "1" cancels repeat playback of the corresponding channel. When repeat playback is released, the NCR signal becomes "H"...
  • Page 77 FEDL22660-01 ML22660  CVOL command ・ Command 1st byte 2nd byte The CVOL command sets the playback volume of the specified channel. This command can be input regardless of the NCR signal status. Setting the CH0 to CH3 bit to 1 sets the volume of the corresponding channel. The volume can be set at 128 levels.
  • Page 78 FEDL22660-01 ML22660 The volume can also be set at 32 levels by fixing the CV1 and CV0 bits to "0". CV6-CV2 Description CV6-CV2 Description 0.00dB (initial value) -6.31dB -0.28dB -6.90dB -0.58dB -7.55dB -0.88dB -8.24dB -1.20dB -9.00dB -1.53dB -9.83dB -1.87dB -10.74dB -2.22dB -11.77dB -2.59dB...
  • Page 79 FEDL22660-01 ML22660  RDSTAT command ・ Command 1st byte The RDSTAT command reads the internal operating states. This command can be input regardless of the NCR signal status. When reading the status of the second byte after command input, set the SI pin to "L". The internal operating states read in the second byte are as follows: 2nd byte Output data...
  • Page 80 FEDL22660-01 ML22660  RDVER command ・ Command 1st byte The RDVER command read sound ROM identification information. This command can be input regardless of the NCR signal status. When reading the identification information in the second byte after command input, set the SI pin to "L". The identification information read in the second byte is as follows: 2nd byte Output data...
  • Page 81 FEDL22660-01 ML22660  RDERR command ・ Command ERSEL 1st byte The RDERR command read misoperation detection and failure detection status. This command can be input regardless of the NCR signal status. When reading error information in the second byte after command input, set the SI pin to "L". If the outputs of misoperation detection and failure detection are selected by OUTSTAT command, and the read data is all "L"...
  • Page 82 FEDL22660-01 ML22660  OUTSTAT command ・ Command 1st byte PORT STA1 STA0 2nd byte The OUTSTAT command selects the internal operating states output to the STATUS1 pin and STATUS2 pin. This command can be input regardless of the NCR signal status. PORT Description STATUS1 Pin setting...
  • Page 83 FEDL22660-01 ML22660  FADR2 command ・ Command 1st byte 2nd byte 3rd byte The FADR2 command sets the channels and phrases to be played. This command can be input when the NCR signal of the corresponding channel is "H" level. Playback is started by the START command after the playback phrases of the channels are specified.
  • Page 84 FEDL22660-01 ML22660  PLAY2 command ・ Command 1st byte 2nd byte 3rd byte The PLAY2 command is played by specifying channels and phrases. This command can be input when the NCR signal of the corresponding channel is "H" level. The phrases (F11-F0) to be played back are specified when creating sound ROM data. Set the phrase specified when creating. The channel settings are as follows: Description Channel 0...
  • Page 85 FEDL22660-01 ML22660  SAFE command ・ Command 1st byte 2nd byte OSCEN RSTEN WDTEN ROMEN SPDEN TSDEN DCDEN WCMEN The SAFE command is used to set the operation of the misoperation detection function and the failure detection function. The initial value is the operation stop state ("0"). When this bit is set to "1", operation starts. Error setting Description WCMEN...
  • Page 86 FEDL22660-01 ML22660  ERRCL command ・ Command The ERRCL command is a command that clears error bits that can be read by the RDERR command. This command can be input regardless of the NCR signal status. However, if the error continues, the error bit remains in the error status even if the ERRCL command is entered. For the timing of the ERRCL command, refer to the "ERRCL command timing"...
  • Page 87 FEDL22660-01 ML22660 ■ Command Flowchart ● 1-byte command input flow(Applies to PUP, WDTCL, PDWN, START, STOP, SLOOP, CLOOP, and ERRCL commands.) Start CBUSYB "H"? Command input CBUSYB "H"? 87/116...
  • Page 88 FEDL22660-01 ML22660 ● 2-byte command input flow(Applies to AMODE, AVOL, FADE, FADR, PLAY, MUON, CVOL, OUTSTAT, SAFE commands.) Start CBUSYB "H"? 1st byte command input CBUSYB "H"? 2nd byte command input CBUSYB "H"? 88/116...
  • Page 89 FEDL22660-01 ML22660 ● 3-byte command input flow(Applies to FADR2, PLAY2 commnad) Start CBUSYB "H"? 1st byte command input CBUSYB "H"? 2nd byte command input CBUSYB "H"? 3rd byte command input CBUSYB "H"? 89/116...
  • Page 90 FEDL22660-01 ML22660 ● Read flow (Applies to RDSTAT, RDVER, RDERR commands) Start 1st byte command input CBUSYB "H"? Read status (SI="L") 90/116...
  • Page 91 FEDL22660-01 ML22660 ● Power-on flow Power on, RESETB "L" Wait 10us RESETB "H" Power-down state 91/116...
  • Page 92 FEDL22660-01 ML22660 ● Analog power-up flow Power-down state PUP command ※ When enabling the detection of speaker disconnection and short SAFE Command circuit Within 10 ms AMODE Command Analog power-up state ● Playback start flow Analog power-up state Playback end ※...
  • Page 93 FEDL22660-01 ML22660 ● Playback stop flow During playback STOP Command Wait RDSTAT Command CBUSYB "H"? Read status (SI="L") BUSYB "H"? ● Continuous playback flow PLAY/START/MUON Command During playback Within 10 ms PLAY/START/MUON Commands Start continuous playback 93/116...
  • Page 94 FEDL22660-01 ML22660 ● Loop playback start flow PLAY/START Command During playback Within 10 ms SLOOP command Start loop playback ● Loop playback stop flow During loop playback Stop after phrase ends Forced stop CLOOP command STOP Command Loop stop Loop stop ●...
  • Page 95 FEDL22660-01 ML22660 ● Detailed flow of "Power-up → Playback → Power-down" Power-down state CBUSYB "H"? 2nd byte of PLAY Command PUP command CBUSYB "H"? CBUSYB "H"? RDSTAT Command 1st byte of SAFE command CBUSYB "H"? CBUSYB "H"? Read status (SI="L") 2nd byte of SAFE Command BUSYB...
  • Page 96 FEDL22660-01 ML22660 ● Processing flow for speaker short detection SPDERR occur Check STATUS1, 2 pins "H" RDERR Command CBUSYB "H"? Read status (SI="L") ※ Confirm that the SPDERR bit is "H". Playback end STOP Command 1st byte of AMODE CBUSYB command "H"? CBUSYB...
  • Page 97 FEDL22660-01 ML22660 ● 1-byte command Input flow in two-times input mode Start Selects the output of misoperation detection and failure detection to the STATUS1 or STATUS2 pin by OUTSTAT command. First command input First ERRCL command input Second command input Second ERRCL command input STATUS1, 2 pins...
  • Page 98 FEDL22660-01 ML22660 ● 2-byte command input flow in two-times input mode Start Selects the output of misoperation detection and failure detection to the STATUS1 or STATUS2 pin by OUTSTAT command. First command input (1Byte) First ERRCL command input Second command input (1Byte) Second ERRCL command input STATUS1, 2 pins...
  • Page 99 FEDL22660-01 ML22660 ● 3-byte command input flow in two-times input mode Start Selects the output of misoperation detection and failure detection to the STATUS1 or STATUS2 pin by OUTSTAT command. First command input (1Byte) First ERRCL command input Second command input Second ERRCL command input (1Byte) STATUS1, 2 pins...
  • Page 100 FEDL22660-01 ML22660 ● Read flowchart in two-times input mode (Applies to RDSTAT, RDVER commands) Start Selects the output of misoperation detection and failure detection to the STATUS1 or STATUS2 pin by OUTSTAT command. First command input First ERRCL command input Second command input Second ERRCL command input STATUS1, 2 pins...
  • Page 101 FEDL22660-01 ML22660 ● Read flowchart in two-times input mode (Applies to RDERR command) Start First command input Second command input CBUSYB "H"? First read Second read Read data All "L"? When the OUTSTAT command is used to select the misoperation detection and failure detection outputs and the STATUS1 or STATUS2 pin is "H", if all the read data is "L", the data cannot be read normally.
  • Page 102 FEDL22660-01 ML22660 ■ Peripheral circuit ● Handling of SG Pin The SG pin is the signal ground for the built-in speaker amplifier. Connect a capacitor between this pin and the SPGND to prevent noises. Symbol Recommended Constant 0.1uF±20% ● Handling of V Pins The V pin is a power supply for the internal circuits.
  • Page 103 FEDL22660-01 ML22660 ■ Application Circuit ● C interfaces Please add necessary bypass capacitor to a power supply pin of the serial flash memory separately. 103/116...
  • Page 104 FEDL22660-01 ML22660 ■ Recommended ceramic resonator Recommended ceramic resonators are shown below. ● MURATA Corporation Frequency Product Name Operation Condition Power-supply Temperatures [Hz] voltage ranges [pF] [pF] [Ohm] [Ohm] [°C] (39) 2.7 to 5.5 -40 to +125 CSTCR4M00G55B-R0 4.096M Built-in CSTCR4M09G55B-R0 ■...
  • Page 105 FEDL22660-01 ML22660 ■ Limitation on the operation time (Playback operating time) This LSI operating temperature is 85 C (max). But the average ambient temperature at 1W playback (8ohm drive) for 10 C. (max (the package heat resistance θja=31.58 [ years in the reliability design is Ta=65 C/W])) When this LSI operates 1W playback (8ohm drive) consecutively, the product life changes by the package temperature rise by the consumption.
  • Page 106 FEDL22660-01 ML22660 ■ Package Dimensions ● ML22660TB Notes for heat sink type Package This LSI adopts a heat sink type package to raise a radiation of heat characteristic. Be sure to design the land pattern corresponding to the heat sink area of the LSI on a board, and solder each other. The heat sink area of the LSI solder open or GND on the board. 106/116...
  • Page 107 FEDL22660-01 ML22660 107/116...
  • Page 108 FEDL22660-01 ML22660 ■ Differences from Existing Speech Synthesis LSIs (ML22460) Parameter ML22460 ML22660 ← MCU command interface 4.096MHz 4.096MHz Clock frequency (Built-in crystal oscillation (Crystal oscillation circuit/built-in RC Oscillation) circuit) ← Memory capacity External Up to 128Mbits Flash memory rewrite function HQ-ADPCM 4bit ADPCM2 4bit ADPCM2...
  • Page 109 FEDL22660-01 ML22660 It becomes command-compatible with ML22460 by using the following command setting. Command name Bit name Bit value AMODE 109/116...
  • Page 110 FEDL22660-01 ML22660 ■ Speech LSI Utility Setting Items Set the following items on the Speech LSI Utility. Item Description Protection code for serial flash The setting is invalid. memory access Select master clock(Source clock oscillation). ・RC (RC oscillation) Master clock selection ・Xtal (Crystal or ceramic resonator) Set the master clock frequency to F ・4.096 : 4.096MHz setting...
  • Page 111 FEDL22660-01 ML22660 ■ Check lists This check list has notes to frequently overlooked or misunderstood hardware features of the LSI. Check each note listed up chapter by chapter while coding the program or evaluating it using the LSI. ■Feature [ ] *1 The operating time of the speaker amplifier may be limited depending on the average ambient temperature (Ta) used.
  • Page 112 FEDL22660-01 ML22660 ●Misoperation detection and failure detection functions ◆ SPP pin and SPM pin short detection [ ] After inputting SAFE command, start the analog power-up operation by AMODE command within 10ms. ◆ Flash memory error detection [ ] If the error bit (ROMERR) is set to "1" after the PUP command and before the PLAY command or START command starts playback, this LSI may have error at the time of start.
  • Page 113 FEDL22660-01 ML22660 ■Command ●Command list [ ] Do not enter command that is not described in this manual. Enter the command with the CBUSYB "H". ●Description of Command Functions ◆ PUP command [ ] Even if two-times input modes are used for the I2C interface, one-time input is used for the slave address input. If the slave address matches, ACK is returned.
  • Page 114 FEDL22660-01 ML22660 ■Peripheral circuit ●Handling of SG Pin/ ●Handling of V Pins/ ●Power wiring/ ●Bypass capacitor/ ●Coupling capacitor [ ] Confirm the recommended values and precautions in this chapter. ■Package Dimensions [ ] Confirm “Notes for heat sink type Package” and “Notes for Mounting the Surface Mount Type Package” in this chapter.
  • Page 115 FEDL22660-01 ML22660 ■ Revision history Page Document No. Date Description Previous Current edition edition FEDL22660-01 2020.4.24 Formal 1st edition. 115/116...
  • Page 116 11) Please use the Products in accordance with any applicable environmental laws and regulations, such as the RoHS Directive. For more details, including RoHS compatibility, please contact a ROHM sales office. LAPIS Semiconductor shall have no responsibility for any damages or losses resulting non-compliance with any applicable laws or regulations.
  • Page 117 Communication ICs - Various Click to view products by manufacturer: ROHM Other Similar products are found below : MT3171BE1 SP-SM2030-0261-01 2100-0320-02 SP-SM2030-0265-004 ZL50232QCG1 ZL38003GMG2 ITM-DYPA-B-01 ITM-DOUF-B- 01 ITM-DOPA-B-01 BCM43569PKFFBG CPC5710NTR NAU8401YG BA8206F-E2 CPC1465D DS21372T+ ML22530TBZ0BX ML22Q625-NNNTBZ0BX ML22Q665-NNNTBZ0BX ML22660TBZ0BX ML22620TBZ0BX ML22Q535-NNNTBZ0BX NB4N7132DTG...