FEDL2256X-08 Issue Date: Mar. 18, 2015 ML22Q563-NNNMB/ML22Q563-xxxMB/ML2256X-xxxMB 4-Channel Mixing Speech Synthesis LSI with Built-in FLASH/MASK ROM GENERAL DESCRIPTION The ML22Q563-NNN, ML22Q563-xxx and ML2256X-xxx are 4-channel mixing speech synthesis LSIs with built-in FLASH/MASK ROM for voice data. These LSIs incorporate into them an HQ-ADPCM decoder that enables high sound quality, 16-bit D/A converter, low-pass filter, and 1.0 W monaural speaker amplifier for driving speakers. Since functions necessary for voice output are all integrated into a single chip, a system can be upgraded with audio features by only using one of these LSIs. • Capacity of internal memory and the maximum voice production time (when HQ-ADPCM※1 method used) Maximum voice production time (sec) Product name ROM capacity fsam = 8.0 kHz fsam = 16.0 kHz fsam = 32.0 kHz ML22Q563-NNN ML22Q563-xxx ML22563-xxx 4 Mbits 161 80 40 ML22562-xxx 2 Mbits 79 39 19 FEATURES • Speech synthesis method: Can be specified for each phrase. HQ-ADPCM / 8-bit non-linear PCM / 8-bit PCM / 16-bit PCM • Sampling frequency: Can be specified for each phrase. 12.0/24.0/48.0 kHz, 8.0 / 16.0/32.0 kHz, 6.4/12.8/25.6 kHz • Built-in low-pass filter and 16-bit D/A converter • Built-in speaker driver amplifier: 1.0 W, 8Ω (at DVDD = 5 V) • External analog voice input (built-in analog mixing function) • CPU command interface: Clock synchronous serial interface • Maximum number of phrases: 1024 phrases, from 000h to 3FFh • Edit ROM • Volume control: CVOL command: Adjustable through 32 levels (including OFF) AVOL command: Adjustable through 50 levels (including OFF) • Repeat function: LOOP command • Channel mixing function: 4channels • Power supply voltage detection function: Can be controlled at six levels from 2.7 to 4.0 V (including the OFF setting) • Source oscillation frequency: 4.096 MHz • Power supply voltage: 2.7 to 5.5 V • Operating temperature range: –40°C to +85°C※2 • Package: 30-pin plastic SSOP(P-SSOP30-56-0.65-6K-MC) •Product name: ML22Q563-NNNMB/ML22Q563-xxxMB ML22563-xxxMB/ML22562-xxxMB (“xxx” denotes ROM code number) ※1 HQ-ADPCM is a high sound quality audio compression technology of "Ky's". “Ky’s” is a Registered trademark of National Universities corporate Kyushu Institute of Technology ※2 The limitation on the operation time changes by the using condition. (Refer to Page62) 1/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx The table below summarizes the differences between the exsisting speech synthesis LSIs (ML225X and ML2282X) and the ML22Q563/ML2256X. Item CPU interface ROM type ROM capacity Playback method Maximum number of phrases Sampling frequency (kHz) Clock frequency ML225X Parallel/Serial MASK 3/4/6 Mbits 2-bit ADPCM2 4-bit ADPCM2 8-bit straight PCM 8-bit non-linear PCM 16-bit straight PCM 256 4.0/5.3/6.4/8.0/ 10.7/12.0/12.8/ 16.0/21.3/24.0/ 25.6/32.0/48.0 4.096 MHz (has a crystal oscillator circuit built-in) 14-bit voltage-type ML2282X Serial/I2C P2ROM 4/8/16 Mbits 4-bit ADPCM2 8-bit straight PCM 8-bit non-linear PCM 16-bit straight PCM ML22Q563 Serial FLASH 4 Mbits ML2256X ← MASK 2/4 Mbits HQ-ADPCM HQ-ADPCM 8-bit straight PCM 8-bit straight PCM 8-bit non-linear PCM 8-bit non-linear PCM 16-bit straight PCM 16-bit straight PCM 1024 ← ← ← 6.4/8.0/12.0/ 12.8/16.0/24.0/ 25.6/32.0/48.0 ← ← ← ← 16-bit voltage-type ← Low-pass filter FIR interpolation filter FIR interpolation filter (SRC) Speaker driving amplifier No Built-in 0.7 W (8Ω, DVDD = 5 V) ← FIR interpolation filter (High-pass interpolation) Built-in 1.0 W (8Ω, DVDD = 5 V) 4-channel ← ← ← Yes 29 levels 20 to 1024 ms (4 ms steps) Yes ← 32 levels ← ← ← ← ← ← ← ← ← ← No Yes ← ← Yes No ← ← No ← ← ← 2.7 V to 5.5 V ← ← ← −40°C to +105°C −40°C to +85°C ← ← 44-pin QFP 30-pin SSOP ← ← D/A converter Simultaneous sound production function (mixing function) Edit ROM Volume control Silence insertion Repeat function External analog input External speech data input Interval at which a seam is silent during continuous playback Power supply voltage Ambient temperature Package ← ← 2/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx BLOCK DIAGRAM TESTI0 TESTI1 TESTI2 TESTI3 TESTI4 TESTO The block diagrams of the ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx are shown below. DVDD DGND VDDL VDDR RESETB CSB SCK SI SO CBUSYB STATUS ERR DIPH TESTI1 Cmd Analyzer JTAG Interface Address Controller 18/19bit 4Mbit FLASH PCM Synthesizer I/O Timing Controller LPF(CVOL) Interface 16bit DAC PLL VPP SP-AMP (AVOL) OSC SPVDD SPGND XT XTB SPM SPP AIN SG Block Diagram of ML22Q563-NNN/ML22Q563-xxx DVDD DGND VDDL Cmd Analyzer 2/4-Mbit ROM Address Controller 18/19 bits RESETB CSB SCK SI SO CBUSYB STATUS ERR DIPH TESTI1 PCM Synthesizer I/O Interface Timing Controller LPF (CVOL) 16-bit DAC PLL OSC SP-AMP (AVOL) SPVDD SPGND XT XTB SPM SPP AIN SG Block Diagram of ML2256X-xxx 3/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx PIN CONFIGURATION (TOP VIEW) ● ML22Q563-NNN/ML22Q563-xxx AIN SG VDDR DVDD DGND VDDL DIPH STATUS ERR CSB SCK SI SO CBUSYB DGND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30-Pin Plastic SSOP SPVDD SPGND SPP SPM TESTO TESTI4 TESTI3 TESTI2 TESTI1 TESTI0 RESETB VPP DVDD XT XTB NC:Unused pin ● ML2256X -xxx AIN SG NC DVDD DGND VDDL DIPH STATUS ERR CSB SCK SI SO CBUSYB DGND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 30-Pin Plastic SSOP SPVDD SPGND SPP SPM TESTO NC NC NC TESTI1 TESTI0 RESETB NC DVDD XT XTB NC:Unused pin 4/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx PIN DESCRIPTION (1) Pin Symbol 1 AIN 2 SG 2 3* VDDR 4,18 DVDD 5,15 DGND 6 VDDL 7 DIPH 8 STATUS 9 ERR 10 CSB 11 SCK 12 SI 13 SO I/O Attribute I — Description Speaker amplifier input pin. Built-in speaker amplifier’s reference voltage output pin. O — Connect a capacitor of 0.1 µF or more between this pin and DGND. 2.5 V regulator output pin. O — Acts as an internal power supply (for ROM). Connect a capacitor of 10 µF or more between this pin and DGND. Digital power supply pin. — — Connect a bypass capacitor of 10µF or more between this pin and DGND. — — Digital ground pin 2.5 V regulator output pin. O — Acts as an internal power supply (for logic). Connect a capacitor of 10 µF or more between this pin and DGND. Serial interface switching pin. Pin for choosing between rising edges and falling edges as to the edges of the SCK pulses used for shifting serial data input to the SI pin into the inside of the LSI. When this pin is at a “L” level, SI input data is shifted into the LSI on the rising edges of the SCK clock pulses and a status I Positive signal is output from the SO pin on the falling edges of the SCK clock pulses. When this pin is at a “H” level, SI input data is shifted into the LSI on the falling edges of the SCK clock pulses and a status signal is output from the SO pin on the rising edges of the SCK clock pulses. Channel status output pin. O Positive Outputs the BUSYB or NCR signal for each channel by inputting the OUTSTAT command. Error output pin. O Positive Outputs a “H” level if an error occurs. Chip select pin. A “L” level on this pin accepts the SCK or SI inputs. When I Negative this pin is at a “H” level, neither the SCK nor SI signal is input to the LSI. I Positive Synchronous serial clock input pin. Synchronous serial data input pin. When the DIPH pin is at a “L” level, data is shifted in on the I — rising edges of the SCK clock pulses. When the DIPH pin is at a “H” level, data is shifted in on the falling edges of the SCK clock pulses. Channel status serial output pin. Outputs a status signal on the falling edges of the SCK clock pulses when the DIPH pin is at a ”L” level; outputs a status signal on the rising edges of the SCK clock pulses when the O Positive DIPH pin is at a ”H” level. When the CSB pin is at a ”L” level, the status of each channel is output serially in sync with the SCK clock. When the CSB pin is at a ”H” level, this pin goes into a high impedance state. analog Initial value 0 analog 0 analog 0 power — gnd — power 0 digital 0 digital 1 digital 0 digital 1 clk 0 digital 0 digital Hi-Z Attribute 5/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx PIN DESCRIPTION (2) Pin Symbol I/O Attribute Description 14 CBUSYB O Negative 16 XTB O Negative 17 XT I Positive 19* VPP I — 20 RESETB I Negative 21 TESTI0 (MODE) I Positive 22 TESTI1 (nTRST) I Negative Command processing status signal output pin. This pin outputs a “L” level during command processing. Be sure to enter commands with the CBUSYB pin driven at a “H” level. Connects to a crystal or a ceramic resonator. When using an external clock, leave this pin open. If a crystal or a ceramic resonator is used, connect it as close to the LSI as possible. Connects to a crystal or a ceramic resonator. A feedback resistor of around 1 MΩ is built in between this XT pin and the XTB pin. When using an external clock, input the clock from this pin. If a crystal or a ceramic resonator is used, connect it as close to the LSI as possible. Pin for FLASH analysis. Should be connected to DGND. Reset input pin. At “L” level input, the LSI enters the initial state. After a reset input, the entire circuit is stopped and enters a power down state. Upon power-on, input a “L” level to this pin. After the power supply voltage is stabilized, drive this pin at a “H” level. This pin has a pull-up resistor built in. Input pin for testing. Also acts as a Flash rewrite enable pin. Has a pull-down resistor built in. Used as either an input pin for testing or a reset input pin for Flash rewriting. Has a pull-down resistor built in. TESTI2 (TMS) I Positive Used as either an input pin for testing or a state transition pin for Flash rewriting. Has a pull-up resistor built in. I Positive I Positive O Positive O — 2 2 23* 27 TESTI3 (TDI) TESTI4 (TCK) TESTO (TSO) SPM 28 SPP O — 29 SPGND — — 30 SPVDD — — 2 24* 2 25* 2 26* Used as either an input pin for testing or a data input pin for Flash rewriting. Has a pull-up resistor built in. Used as either an input pin for testing or a clock input pin for Flash rewriting. Has a pull-up resistor built in. Used as either an output pin for testing or a data output pin for Flash rewriting. Output pin of the built-in speaker amplifier. Output pin of the built-in speaker amplifier. Can be configured as an AOUT amplifier output by command setting. Speaker amplifier ground pin. Speaker amplifier power supply pin. Connect a bypass capacitor of 10µF or more between this pin and SPGND. Attribute digital Initial (*1) value 0 (*1) clk 1 clk 0 analog 0 digital 0 (*1) digital 0 digital 0 digital 1 digital 1 digital 0 digital Hi-Z analog Hi-Z analog 0 gnd — power — *1: Indicates the initial value at reset input or during power down. *2: These are NC pins in the ML2256X. 6/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx ABSOLUTE MAXIMUM RATINGS Parameter Power supply voltage Input voltage Symbol DVDD SPVDD VIN Power dissipation PD Output short-circuit current IOS Storage temperature TSTG Condition DGND = SPGND = 0 V, Ta = 25°C Rating Unit — −0.3 to +7.0 V — When the LSI is mounted on JEDEC 4-layer board. When SPVDD = 5V Applies to all pins except SPM, SPP, VDDL, and VDDR. Applies to SPM and SPP pins. Applies to VDDL and VDDR pins. — −0.3 to DVDD+0.3 V 1000 mW 10 mA 500 50 −55 to +150 mA mA °C RECOMMENDED OPERATING CONDITIONS Parameter Symbol Condition DVDD, SPVDD Power supply voltage DVDD SPVDD — Operating temperature Top — Master clock frequency fOSC — Parameter Symbol Condition Operating temperature TOP DGND = SPGND = 0 V Range Unit 2.7 to 5.5 Min. 3.5 −40 to +85 Typ. 4.096 V °C Max. 4.5 MHz FLASH CONDITIONS DGND = SPGND = 0 V Range Unit At write/erase 0 to +70 °C At read −40 to +85 °C Maximum rewrite count CEP ― 10 times Data retention period YDR ― 10 years 7/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx ELECTRICAL CHARACTERISTICS DC Characteristics (3 V) Parameter “H” input voltage “L” input voltage “H” output voltage 1 “H” output voltage 2 (*1) “L” output voltage 1 “L” output voltage 2 (*1) Output leakage current(*2) “H” input current 1 “H” input current 2 (*3) “H” input current 3 (*4) “L” input current 1 “L” input current 2 (*3) “L” input current 3 (*5) Symbol VIH VIL VOH1 VOH2 VOL1 VOL2 IOOH IOOL IIH1 IIH2 IIH3 IIL1 IIL2 IIL3 Supply current during playback 1 IDD1 Supply current during playback 2 IDD2 Power-down supply current (*6) Power-down supply current (*7) IDDS1 IDDS1 DVDD = SPVDD = 2.7 to 3.6 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Condition Min. Typ. Max. Unit — 0.86×DVDD — DVDD V — 0 — 0.14×DVDD V IOH = −1 mA DVDD − 0.4 — — V IOH = −50 µA DVDD − 0.4 — — V IOL = 2 mA — — 0.4 V IOL = 50 µA — — 0.4 V VOH = DVDD (CSB=“H”) — — 10 µA VOL = DGND(CSB=“H”) −10 — — µA VIH = DVDD — — 10 µA VIH = DVDD 0.3 2.0 15 µA VIH = DVDD 2 30 200 µA VIL = DGND −10 — — µA VIL = DGND −15 −2.0 −0.3 µA VIL = DGND −200 –30 –2 µA fOSC = 4.096 MHz fs=48kHz, f=1kHz, — — 41 mA When 16bitPCM Playback No output load fOSC = 4.096 MHz During silence playback — — 38 mA No output load Ta = −40 to +55°C — — 10 µA Ta = −40 to +85°C — — 20 µA Ta = −40 to +55°C — — 50 µA Ta = −40 to +85°C — — 100 µA *1: Applies to the XTB pin. *2: Applies to the SO and TESTO pins. *3: Applies to the XT pin. *4: Applies to the TESTI0 and TESTI1 pins. *5: Applies to the RESETB, TEST2, TEST3 and TEST4 pins. *6: Applies to the ML2256X. *7: Applies to the ML22Q563. 8/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx DC Characteristics (5 V) Parameter “H” input voltage “L” input voltage “H” output voltage 1 “H” output voltage 2 (*1) “L” output voltage 1 Output leakage current(*2) “L” output voltage 2 (*1) “H” input current 1 “H” input current 2 (*3) “H” input current 3 (*4) “L” input current 1 “L” input current 2 (*3) “L” input current 3 (*5) Symbol VIH VIL VOH1 VOH2 VOL1 IOOH IOOL VOL2 IIH1 IIH2 IIH3 IIL1 IIL2 IIL3 Supply current during playback 1 IDD1 Supply current during playback 3 IDD3 Power-down supply current (*6) Power-down supply current (*7) IDDS1 IDDS1 DVDD = SPVDD = 4.5 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Condition Min. Typ. Max. Unit — 0.8×DVDD — DVDD V — 0 — 0.2×DVDD V IOH = −1 mA DVDD−0.4 — — V IOH = −50 µA DVDD−0.4 — — V IOL = 2 mA — — 0.4 V VOH = DVDD (CSB=“H”) — — 10 µA VOL = DGND (CSB=“H”) IOL = 50 µA VIH = DVDD VIH = DVDD VIH = DVDD VIL = DGND VIL = DGND VIL = DGND fOSC = 4.096 MHz fs=48kHz, f=1kHz, When 16bitPCM Playback No output load fOSC = 4.096 MHz During silence playback No output load Ta = −40 to +55°C Ta = −40 to +85°C Ta = −40 to +55°C Ta = −40 to +85°C −10 — — 0.8 20 –10 –20 –400 — — — 5 100 — −5.0 –100 — 0.4 10 20 400 — −0.8 –20 µA V µA µA µA µA µA µA — — 55 mA — — 48 mA — — — — — — — — 10 20 50 100 µA µA µA µA *1: Applies to the XTB pin. *2: Applies to the SO and TESTO pins. *3: Applies to the XT pin. *4: Applies to the TESTI0 and TESTI1 pins. *5: Applies to the RESETB, TEST2, TEST3 and TEST4 pins. *6: Applies to the ML2256X. *7: Applies to the ML22Q563. 9/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Analog Section Characteristics (3 V) Parameter AIN input resistance AIN input voltage range Line output resistance LINE output load resistance LINE output voltage range SG output voltage SG output resistance SPM, SPP output load resistance Speaker amplifier output power Output offset voltage between SPM and SPP with no signal present Regulator output voltage Symbol RAIN VAIN RLA DVDD = SPVDD = 2.7 to 3.6 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Condition Min. Typ. Max. Unit Input gain: 0 dB 10 20 30 kΩ — — SPVDD×2/3 Vp-p At 1/2SPVDD output — — 100 Ω RLA At SPGND10kΩ load 10 — VAO At SPGND10kΩ load SPVDD/6 — VSG RSG — — 0.95×DVDD/2 DVDD/2 57 RLSP — PSPO — kΩ 96 SPVDD× 5/6 1.05×DVDD/2 135 V kΩ 6 8 — Ω SPVDD = 3.3V, f = 1 kHz RSPO = 8Ω, THD≦ 10% 100 300 — mW VOF SPIN–SPM gain = 0 dB With a load of 8Ω −50 — +50 mV VDDL VDDR Output load current = −35 mA 2.25 2.5 2.75 V V 10/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Analog Section Characteristics (5 V) Parameter AIN input resistance Symbol RAIN AIN input voltage range VAIN Line output resistance LINE output load resistance LINE output voltage range RLA SG output voltage SG output resistance SPM, SPP output load resistance Speaker amplifier output power Output offset voltage between SPM and SPP with no signal present Regulator output voltage DVDD = SPVDD = 4.5 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Condition Min. Typ. Max. Unit Input gain: 0 dB 10 20 30 kΩ SPVDD× — — Vp-p 2/3 At 1/2SPVDD output — — 100 Ω RLA At SPGND10kΩ load 10 — — kΩ VAO At SPGND10kΩ load SPVDD /6 — SPVDD× 5/6 V VSG — RSG — SPVDD /2 57 RLSP — PSPO 0.95x SPVDD /2 1.05x V 96 SPVDD /2 135 kΩ 6 8 — Ω SPVDD = 5.0V, f = 1 kHz RSPO = 8Ω, THD≦ 10% 800 1000 — mW VOF SPIN–SPM gain = 0 dB With a load of 8Ω −50 — +50 mV VDDL VDDR Output load current = −35 mA 2.25 2.5 2.75 V 11/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx AC Characteristics (1) Parameter Master clock duty cycle RESETB input pulse width Reset noise rejection pulse width Noise rejection pulse width Command input interval time1 Command input interval time2 Command input enable time At PUP command input CBUSYB “L” level output time At AMODE command input CBUSYB “L” level output time(*3) At AMODE command input CBUSYB “L” level output time At AMODE command input CBUSYB “L” level output time At PDWN command input CBUSYB “L” level output time DVDD = SPVDD = 2.7 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Symbol Condition Min. Typ. Max. Unit fduty — 40 50 60 % tRST — 10 — — µs tNRST RESETB pin — — 0.1 µs tNINP CSB, SCK, and SI pins — — 5 ns fOSC = 4.096 MHz At STOP/SLOOP/CLOOP/ tINT 10 — — µs VOL command input After status read fOSC = 4.096 MHz After input first command at tINTC 0 — — µs two-time command input mode fOSC = 4.096 MHz During continuous playback tcm — — 10 ms At SLOOP input 4.096 MHz tPUP — — 4 ms At external clock input 4.096 MHz At external clock input POP = “0” tPUPA1 39 41 43 ms DAEN = “0”→”1” or SPEN = “0”→”1” 4.096 MHz At external clock input POP = “1” tPUPA2 72 74 76 ms DAEN = “0”→”1” (SPEN = “0”) 4.096 MHz At external clock input POP = “0” tPUPA3 32 34 36 ms DAEN = “0”→”1” (SPEN = “0”) tPD At AMODE command input CBUSYB “L” level output time(*3) tPDA1 At AMODE command input CBUSYB “L” level output time tPDA2 At AMODE command input CBUSYB “L” level output time tPDA3 CBUSYB “L” level output time 1 (*1) CBUSYB “L” level output time 2 (*2) CBUSYB “L” level output time 3 (*4) tCB1 tCB2 tCB3 fOSC = 4.096 MHz 4.096 MHz At external clock input POP = “0” DAEN = “1”→”0” or SPEN = “1”→”0” 4.096 MHz At external clock input POP = “1” DAEN = “1”→”0” (SPEN = “0”) 4.096 MHz At external clock input POP = “0” DAEN = “1”→”0” (SPEN = “0”) fOSC = 4.096 MHz fOSC = 4.096 MHz fOSC = 4.096 MHz — — 10 µs 106 108 110 ms 143 145 147 ms 103 105 107 ms — — — — — — 10 3 200 µs ms µs 12/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Note: Output pin load capacitance = 45 pF (Max.) *1: Applies to cases where a command is input, except after the PUP, PDWN, PLAY, START or AMODE command input. *2: Applies to cases where the PLAY or START command is input. *3: When FAD3-0 is initial value (8h) *4: Applies to cases where the STOP command is input. 13/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx AC Characteristics (2) (3V) DVDD = SPVDD = 2.7 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Parameter Symbol Condition Min. Typ. Max. Unit SCK input enable time from CSB fall tESCK — 200 — — ns SCK hold time from CSB rise tCSH — 200 — — ns Data floating time from CSB rise tDOZ RL = 3 kΩ — — 180 ns Data setup time from SCK rise tDIS1 DIPH = “L” 50 — — ns Data hold time from SCK rise tDIH1 DIPH = “L” 50 — — ns Data output delay time from SCK rise tDOD1 DIPH = “L” — — 180 ns Data setup time from SCK fall tDIS2 DIPH = “H” 50 — — ns Data hold time from SCK fall tDIH2 DIPH = “H” 50 — — ns Data output delay time from SCK rise tDOD2 DIPH = “H” — — 180 ns SCK “H” level pulse width tSCKH — 200 — — ns SCK “L” level pulse width tSCKL — 200 — — ns CBUSYB output delay time from SCK rise tDBSY1 DIPH = “L” — — 180 ns CBUSYB output delay time from SCK fall tDBSY2 DIPH = “H” — — 180 ns Note: Output pin load capacitance = 45 pF (Max.) AC Characteristics (2) (5V) DVDD = SPVDD = 2.7 to 5.5 V, DGND = SPGND = 0 V, Ta = −40 to +85°C Parameter Symbol Condition Min. Typ. Max. Unit SCK input enable time from CSB fall tESCK — 100 — — ns SCK hold time from CSB rise tCSH — 100 — — ns Data floating time from CSB rise tDOZ RL = 3 kΩ — — 100 ns Data setup time from SCK rise tDIS1 DIPH = “L” 50 — — ns Data hold time from SCK rise tDIH1 DIPH = “L” 50 — — ns Data output delay time from SCK rise tDOD1 RL = 3 kΩ — — 90 ns Data setup time from SCK fall tDIS2 DIPH = “H” 50 — — ns Data hold time from SCK fall tDIH2 DIPH = “H” 50 — — ns Data output delay time from SCK rise tDOD2 RL = 3 kΩ — — 90 ns SCK “H” level pulse width tSCKH — 100 — — ns SCK “L” level pulse width tSCKL — 100 — — ns CBUSYB output delay time from SCK rise tDBSY1 DIPH = “L” — — 90 ns CBUSYB output delay time from SCK fall tDBSY2 DIPH = “H” — — 90 ns Note: Output pin load capacitance = 45 pF (Max.) 14/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx TIMING DIAGRAMS Serial Interface Data Input Timing (When DIPH = “L”) VIH CSB VIL tESCK tCSH tSCKH VIH SCK VIL tDIS1 tDIH1 tSCKL VIH SI VIL tDBSY1 CBUSYB VOH VOL Serial Interface Data Input Timing (When DIPH = “H”) VIH CSB VIL tESCK tCSH tSCKL VIH SCK VIL tDIS2 tDIH2 tSCKH VIH SI VIL tDBSY2 CBUSYB VOH VOL Serial Interface Data Output Timing (When DIPH = “L”) VIH CSB VIL tESCK tCSH tSCKH VIH SCK VIL tSCKL tDOD1 tDOZ VIH SO VIL tDBSY1 CBUSYB VOH VOL Serial Interface Data Output Timing (When DIPH = “H”) VIH CSB VIL tESCK tCSH tSCKL VIH SCK VIL tDOD2 tSCKH tDOZ VIH SO VIL tDBSY2 CBUSYB VOH VOL 15/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Power-On Timing 5V SPVDD 5V DVDD tRST VIH RESETB VIL Status Power down Oscillation is stopped after power-on. Be sure to set “L”level the RESETB pin before the first command input. Power-Up Timing CSB SCK SI tPUP CBUSYB VOH VOL NCRn (internal) VOH BUSYBn (internal) VOH XTXTB Status VOL VOL Oscillation stopped Power down Oscillating Oscillation stabilized Performing reset processing Awaiting command 16/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Power-Down Timing CSB SCK SI tPD CBUSYB VOH VOL NCRn VOH (internal) VOL BUSYBnVOH (internal) VOL XTXTB Status Oscillation stopped Oscillating Awaiting command Command is being processed Power down Reset Input Timing RESETB tRST XTXTB Oscillating Oscillation stopped VDDLSG GND SPM Hi-Z GND SPP Status Playing Power down Note:The same timing applies in cases where the Reset signal is input during waiting for command. 17/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Playback Start Timing by the PLAY Command PLAY command st 1 byte PLAY command nd 2 byte CSB SCK SI tCB1 tCB2 CBUSYB VOH VOL NCRn (internal) VOH BUSYBn (internal) VOH VOL (*1) VOL 1/2VDD SPM 1/2VDD SPP Status Command standby Awaiting command Address is being controlled Playing Awaiting command Command is being processed *1: Length of the “L” interval of BUSYBn is = tCB2 + voice production time length. Playback Stop Timing STOP command CSB SCK SI tCB3 CBUSYB VOH VOL NCRn (internal) VOH BUSYBn (internal) VOH VOL VOL 1/2VDD SPM 1/2VDD SPP Status Playing Awaiting command Command is being processed 18/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Continuous Playback Timing by the PLAY Command PLAY command PLAY command st nd 1 byte 2 byte PLAY command nd 2 byte CSB SCK tcm SI tCB1 tCB2 tCB1 CBUSYBVOH VOL NCRn VOH VOL (internal) BUSYBn (internal) 1/2VDD SPM 1/2VDD SPP Awaiting command Status Playing phrase 1 Playing phrase 2 Address is being controlled Silence Insertion Timing by the MUON Command PLAY command nd 2 byte PLAY command PLAY command st nd 1 byte 2 byte MUON command MUON command st nd 1 byte 2 byte CSB SCK tcm SI tCB2 CBUSYB tCB1 tCB1 tCB1 tCB1 VOH VOL NCRn (internal) VOH (*1) VOL (*1) BUSYBn (internal) SPM SPP Status 1/2VDD 1/2VDD Awaiting command Address is being controlled Playing Silence is being inserted Playing Waiting for silence insertion to be finished *1: The “L” level period of the NCR pin during playback or silence insertion operation varies depending on the timing at which the MUON command is input. 19/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Repeat Playback Set/Release Timing by the SLOOP and CLOOP Commands VIH CSB SLOOP command PLAY command 2nd byte VIL CLOOP command tINT SCK SI tCB2 CBUSYB tcm VOH VOL NCRn (internal) VOH VOL BUSYBn (internal) 1/2VDD SPM 1/2VDD SPP Status Awaiting command Playing Address is being controlled Playing Address is being controlled Awaiting command Command is being processed Timing of Volume Change by the CVOL Command CVOL command 1st byte CVOL command 2nd byte CSB SCK SI tCB1 CBUSYB tCB1 VOH VOL NCRn VOH (internal) VOL BUSYBn VOH (internal) VOL Status Awaiting command Command is being processed Awaiting command Awaiting command Command is being processed 20/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx FUNCTIONAL DESCRIPTION Synchronous Serial Interface The CSB, SCK, SI, and SO pins are used to input various commands or read the status of the device. For command input, after inputting a “L” level to the CSB pin, input data through the SI pin with MSB first in sync with the SCK clock signal. The data input through the SI pin is shifted into the LSI in sync with the SCK clock signal, then the command is executed at the eighth pulse of the rising or falling edge of the SCK clock. For status reading, after a “L” level is input to the CSB pin, stauts is output from the SO pin in sync with the SCK clock signal. Choosing between rising edges and falling edges of the clock pulses input through the SCK pin is determined by the signal input through the DIPH pin: - When the DIPH pin is at a “L” level, the data input through the SI pin is shifted into the LSI on the rising edges of the SCK clock pulses and a status signal is output from the SO pin on the falling edges of the SCK clock pulses. - When the DIPH pin is at a “H” level, the data input through the SI pin is shifted into the LSI on the falling edges of the SCK clock pulses and a status signal is output from the SO pin on the rising edges of the SCK clock pulses. It is possible to input commands even with the CSB pin tied to a “L” level. However, if unexpected pulses caused by noise etc. are induced through the SCK pin, SCK clock pulses are incorrectly counted, causing a failure in normal input of command. In addition, the serial interface can be brought back to its initial state by driving the CSB pin at a “H” level. When the CSB pin is at ta “L” level, the status of each channel is output serially in sync with the SCK clock. When the CSB pin is at a ”H” level, the SO pin goes into a high impedance state. • Command Input Timing: SCK rising edge operation (when DIPH pin = “L” level) CSB SCK SI D7 D6 D5 D4 D3 D2 D1 (MSB) D0 (LSB) • Command Input Timing: SCK falling edge operation (when DIPH pin = “H” level) CSB SCK SI D7 D6 D5 D4 D3 D2 D1 (MSB) D0 (LSB) • Command Output Timing: SCK falling edge operation (when DIPH pin = “L” level) CSB SCK (MSB) SO D7 (LSB) D6 D5 D4 D3 D2 D1 D0 Command Output Timing: SCK rising edge operation (when DIPH pin = “H” level) CSB SCK (MSB) SO D7 (LSB) D6 D5 D4 D3 D2 D1 D0 21/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx To prevent malfunction caused by serial interface pin noise, the ML22Q563/ML2256X is provided with the two-time command input mode, where the user inputs one command two times. Use the PUP command to set the two-time command input mode. For the method of setting the two-time command input mode, see the the section on “1. PUP command” described later. In two-time command input mode, input one command two times in succession. Then, the command becomes valid only when the data input first matches the data input second. After the first data input, if a data mismatch occurs when the second data is input, a ”H” level is output from the ERR pin. An error, if occurred, can be cleared by the ERCL command. PLAY command 1st byte PLAY command 1st byte PLAY command 2nd byte PLAY command 2nd byte CSB SCK SI tCB1 tCB2 CBUSYB VOH VOL NCRn (internal) VOH BUSYBn (internal) VOH SPM SPP Status VOL VOL 1/2VDD 1/2VDD Awaiting command Command is being processed Awaiting command Command is being processed Awaiting command Awaiting command Address is being controlled Playing Awaiting command Command is being processed 22/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Voice Synthesis Algorithm (Common to ML22Q563 and ML2256X) The ML22Q563/ML2256X contains four algorithm types to match the characteristic of playback voice: HQ-ADPCM algorithm, 8-bit straight PCM algorithm, 8-bit non-linear PCM algorithm, and 16-bit straight PCM algorithm. Key feature of each algorithm is described in the table below. Voice synthesis algorithm HQ-ADPCM 8-bit Nonlinear PCM 8-bit PCM 16-bit PCM Feature Algorithm that enables high sound quality and high compression, which have been achieved by the improved 4-bit ADPCM that uses variable bit-length coding. Algorithm that plays back mid-range of waveform as 10-bit equivalent voice quality. Normal 8-bit PCM algorithm Normal 16-bit PCM algorithm 23/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 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 ROM’s voice data. It contains data for controlling the start/stop addresses of voice data for 1024 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 on “Edit ROM Function.” No edit ROM area is available unless the edit ROM is used. The ROM data is created using a dedicated tool. Configuration of ROM data (for ML22Q563/ML22563) 0x00000 Voice control area (Fixed 64 Kbits) 0x01FFF 0x02000 Test area 0x0206F 0x02070 Voice area max: 0x7FEBF max: 0x7FEBF 0x7FEC0 Edit ROM area Depends on creation of ROM data. Filter area max: 0x7FFFF Playback Time and Memory Capacity The playback time depends on the memory capacity, sampling frequency, and playback method. The equation showing the relationship is given below. The equation below gives the playback time when the edit ROM function is not used. Playback time = 1.024 × (Memory capacity − 64) (Kbits) Sampling frequency (kHz) × Bit length (sec) Example: Let the sampling frequency be 16 kHz and HQ-ADPCM algorithm. approx. 80 seconds, as shown below. Playback time = 1.024 × (4096 − 64) (Kbits) 16 (kHz) × 3.2 (bits) (average) Then the playback time is ≅ 80 (sec) 24/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Edit ROM Function With the edit ROM function, multiple phrases can be played in succession. configured using the edit ROM function: The following functions can be Continuous playback: There is no limit to the continuous playback count that can be specified. depends on the memory capacity only. Silence insertion: 20 to 1024 ms It Using the edit ROM function enables an effective use of the memory capacity of voice ROM. Below is an example of the ROM configuration in the case of using the edit ROM function. Examples of Phrases Using the Edit ROM Function Phrase 1 A B D Phrase 2 A C D Phrase 3 E B D Phrase 4 E C D Phrase 5 A B D Silence E B D Example of ROM Data Where the Contents Above Are Stored in ROM Address control area A B D C E Editing area 25/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Mixing Function The ML22Q563/ML2256X can perform simultaneous mixing of four channels. PLAY, STOP, and CVOL for each channel separately. It is possible to specify FADR, • Precautions for Waveform Clamp at the Time of Channel Mixing If channel mixing is done, the possibility of an occurrence of a clamp increases from the mixing calculation point of view. If it is known beforehand that a clamp will occur, then adjust the sound volume of each channel using the VOL command. • Mixing of Different Sampling Frequency It is not possible to perform channel mixing by a different sampling frequency group. When performing channel mixing, the sampling frequency group of the first playback channel is selected. Therefore, note that if channel mixing is performed by a sampling frequency group other than the selected sampling frequency group, then the playback will not be of constant speed: some times faster and at other times slower. The available sampling groups for channel mixing by a different sampling frequency are listed below. 8.0 kHz, 16.0 Hz, 32.0 kHz … (Group 1) 12.0 kHz, 24.0 kHz, 48 kHz … (Group 2) 6.4 kHz, 12.8 kHz, 25.6 kHz … (Group 3) Figures below show cases where a phrase is played at a sampling frequency belonging to a different sampling frequency group. fs=16.0kHz fs=16.0kHz(Invalid、Will be played as fs=12.8kHz) Channel 0 fs=25.6kHz Channel 1 Figure 1 Case where a phrase is played at a sampling frequency belonging to a different sampling frequency group during playback on channels 0 and 1 fs = 16.0 kHz Played normally if not being played by other channel. Channel 0 fs = 25.6 kHz (Valid) Channel 1 End of channel 1 Figure 2 Case where a phrase is played at a sampling frequency belonging to a different sampling frequency group after playback is finished at the other channel 26/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Command List Each command is configured in 1-byte (8-bit) units. Each of the AMODE, AVOL FADR, PLAY, MUON, and CVOL commands forms one command by two bytes. Be sure to input the following commands only. Input each command with CBUSYB set to a ”H” level. Command D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 0 0 0 WCM 0 0 0 0 0 1 HPF1 HPF0 0 DAG1 DAG0 AIG1 AIG0 DAEN SPEN POP 0 0 0 0 1 0 0 0 — — AV5 AV4 AV3 AV2 AV1 AV0 0 0 0 0 1 1 0 0 0 0 0 0 FAD3 FAD2 FAD1 FAD0 0 0 1 0 0 0 0 0 0 0 1 1 C1 C0 F9 F8 F7 F6 F5 F4 F3 F2 F1 F0 0 1 0 0 C1 C0 F9 F8 F7 F6 F5 F4 F3 F2 F1 F0 START 0 1 0 1 CH3 CH2 CH1 CH0 STOP 0 1 1 0 CH3 CH2 CH1 CH0 MUON 0 1 1 1 CH3 CH2 CH1 CH0 PUP AMODE AVOL FAD PDWN FADR PLAY Description Shifts the device currently powered down to a command wait state. Also the two-time command input mode is set by this command. Analog section control command. Configures settings for power-up operation and analog input/output. Selects the type of HPF. Analog mixing signal volume setting command. Use the data of the 2nd byte to specify volume. Sets the fade-in time in cases where the speaker amplifier is enabled by the AMODE command. Shifts the device from a command wait state to a power-down state. Playback phrase specification command. Can be specified for each channel. Playback start command. Use the data of the 2nd byte to specify a phrase number. Can be specified for each channel. Playback start command without phrase specification. Used to start playback on multiple channels at the same time after phrases are specified with the FADR command. After a phrase is played with the PLAY command, the same phrase can be played with this command. Playback stop command. Can be specified for each channel. Silence insertion command. 27/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Command D7 D6 D5 D4 D3 D2 D1 D0 M7 M6 M5 M4 M3 M2 M1 M0 SLOOP 1 0 0 0 CH3 CH2 CH1 CH0 CLOOP 1 0 0 1 CH3 CH2 CH1 CH0 1 0 1 0 CH3 CH2 CH1 CH0 — — — CV4 CV3 CV2 CV1 CV0 RDSTAT 1 0 1 1 0 0 0 ERR OUTSTAT 1 1 0 0 0 BUSY/NCR C1 C0 1 1 0 1 0 0 0 0 TM2 TM1 TM0 TSD1 TSD0 BLD2 BLD1 BLD0 1 1 1 1 1 1 1 1 CVOL SAFE ERCL Description Use the data of the 2nd byte to specify the length of silence. Can be specified for each channel. Repeat playback mode setting command. The setting is enabled during playback. Can be specified for each channel. Repeat playback mode release command. When the STOP command is input, repeat playback mode is released automatically. Can be specified for each channel. Volume setting command. Use the data of the 2nd byte to specify volume. Can be specified for each channel. Status serial read command. This command reads the command status and the status of the fail safe function for each channel. Status output command. This command outputs the command status of each channel from the STATUS pin. Fail safe setting command. Sets settings for power supply voltage detection, temperature detection, and monitoring time. This command clears error while the fail safe function is operating. 28/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Description of Command Functions 1. PUP command command 0 0 0 0 0 0 0 WCM The PUP command is used to shift the ML22Q563/ML2256X from a power down state to a command waiting state. The ML22Q563/ML2256X can only accept the PUP command while it is in a power down state. Therefore, in a power down state, the device will ignore any other command if entered. The ML22Q563/ML2256X enters a power down state under any of the following conditions: 1) When power is turned on 2) At RESETB input 3) When CBUSYB go to a “H” level after inputting the power down command CSB SCK tPUP SI CBUSYB XTXTB Status Oscillation stopped Power down Oscillating Reset being processed Awaiting command Oscillation stabilized The WCM bit is used to set the two-time command input mode. When set to ”1”, the command input thereafter will be processed in two-time command input mode and becomes valid only when the first data input matches the second one. WCM 0 1 Two-time command input mode No (initial value) Yes The regulator starts operating after the PUP command is entered. Any command will be ignored if entered while oscillation is stabilized. However, if a “L” level is input to the RESETB pin, the LSI enters a power down state immediately. Neither line output nor speaker output is enabled by the PUP command. AMODE command. Power up the analog section by the 29/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 2. AMODE command command 0 0 0 DAG1 0 DAG0 0 AIG1 0 AIG0 1 DAEN HPF1 SPEN HPF0 POP 1st byte 2nd byte The AMODE command is used to configure various settings for the analog section. If the PDWN command is input while the analog section is in the power-up state, the analog section enters a power down state under the setting conditions that were in effect when the analog section was powered up by the AMODE command. To perform a power-down operation using different conditions from those used at analog section power-up, set settings by the AMODE command. To change the setting of DAEN/SPEN while the analog section is in the power-up state, first put the analog section into the power-down state and then put the analog section into the power-up state again by the AMODE command. The detailed command settings are shown below. Each setting is initialized upon reset release or by the PUP command. Don’t input the STOP command during the AMODE command is being proccessed (CBUSYB=”L”). Input the AMODE command for analog section into the power-down state before the PDWN command is input. The HPF1/HPF0 bits set the cut-off frequency of the HPF. HPF1 HPF0 0 0 1 1 0 1 0 1 Cut-off frequency Off (initial value) 200 Hz 300 Hz 400 Hz The POP bit specifies whether to suppress generation of “pop” noise. - If the bit is “0” (no pop noise suppression) and the DAEN bit is “1”, the LINE output rises from the DGND level to the SG level in about 35 ms, at which time the analog section enters the power-up state. If the DAEN bit is “0”, the LINE output falls from the SG level to the DGND level in about 110 ms, at which time the analog section enters the power down state. - If the bit is “1” (with pop noise suppression) and the DAEN bit is “1”, the LINE output rises from the DGND level to the SG level in about 90 ms, at which time the analog section enters the power-up state. If the DAEN bit is “0”, the LINE output falls from the SG level to the DGND level in about 140 ms, at which time the analog section enters the power down state. POP 0 1 Pop noise suppression No (initial value) Yes 30/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx When powering up the speaker amplifier Setting values: POP bit = “0”, DAEN and SPEN bits = “0” → “1” AMODE command 1st byte AMODE command 2nd byte CSB SCK SI tPUPA1 tCB1 CBUSYB VOH VOL NCR (internal) VOH BUSYB (internal) VOH VOL VOL 1/2DVDD LINE output GND (internal) SPM 1/2SPVDD Hi-Z 1/2SPVDD SPP Status GND Awaiting command Awaiting command Command is being processed Awaiting command Command is being processed When powering up the line amplifier (with pop noise suppression) Setting values: POP bit = “1”, DAEN bit = “0” → “1” (SPEN bit = “0”) AMODE command 1st byte AMODE command 2nd byte CSB SCK SI tCB1 CBUSYB tPUPA2 VOH VOL NCR (internal) VOH BUSYB (internal) VOH VOL VOL 1/2DVDD SPP GND (LINE output) Status Awaiting command Command is being processed Awaiting command POP noise suppressed Awaiting command Command is being processed 31/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx When powering up the line amplifier (without pop noise suppression) Setting values: POP bit = “0”, DAEN bit = “0” → “1” (SPEN bit = “0”) AMODE command 1st byte AMODE command 2nd byte CSB SCK SI tPUPA3 tCB1 CBUSYB VOH VOL NCR (internal) VOH BUSYB (internal) VOH VOL VOL 1/2DVDD SPP GND (LINE output) Status Awaiting command Command is being processed Awaiting command Awaiting command Command is being processed When putting the speaker amplifier into the power down state Setting values: POP bit = “0”, DAEN and SPEN bits = “1” → “0” AMODE command 1st byte AMODE command 2nd byte CSB SCK SI tCB1 CBUSYB tPDA1 VOH VOL NCR (internal) VOH BUSYB (internal) VOH VOL VOL 1/2DVDD LINE output GND 1/2SPVDD Hi-Z SPM 1/2SPVDD SPP Status GND Awaiting command Awaiting command Command is being processed Awaiting command Command is being processed When putting the line amplifier into the power down state (with pop noise suppression) Setting values: POP bit = “1”, DAEN bit = “1” → “0” (SPEN bit = “0”) 32/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx AMODE command 1st byte AMODE command 2nd byte CSB SCK SI tCB1 CBUSYB tPDA2 VOH VOL NCR (internal) VOH BUSYB (internal) VOH VOL VOL 1/2DVDD SPP (LINE output) Status GND Awaiting command Command is being processed Awaiting command POP noise suppressed Awaiting command Command is being processed When putting the line amplifier into the power down state (without pop noise suppression) Setting values: POP bit = “0”, DAEN bit = “1” → “0” (SPEN bit = “0”) AMODE command 1st byte AMODE command 2nd byte CSB SCK SI tCB1 CBUSYB tPDA3 VOH VOL NCR (internal) VOH BUSYB (internal) VOH VOL VOL 1/2DVDD SPP (LINE output) Status GND Awaiting command Awaiting command Command is being processed Awaiting command Command is being processed 33/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx The DAG1,0 bits are used to set the gain of the internal DAC signal. The AIG1,0 bits are used to set the gain of an analog signal from the AIN pin. DAG1,0 and AIG1,0 are only enabled when the speaker amplifier is used. DAG1 DAG0 Volume 0 0 1 1 0 1 0 1 Input OFF Input ON (–6 dB) Input ON (0 dB) (initial value) Input ON (0 dB) (Setting prohibited) AIG1 AIG0 Volume 0 0 1 1 0 1 0 1 Input OFF (initial value) Input ON (–6 dB) Input ON (0 dB) Input ON (0 dB) (Setting prohibited) Input the analog signal from the AIN pin after the AMODE command (CBUSYB=”H”). The DAEN bit takes power-up and power-down control of the DAC section. DAEN 0 1 Status of the DAC section Power-down state (initial value) Power-up state The SPEN bit takes power-up and power-down control of the speaker section. When the SPEN bit = “0”, the SPP pin is configured as a LINE output. SPEN 0 1 Status of the speaker section Power-down state (initial value) Power-up state Relationship between DAEN, SPEN, and POP signals and the analog section DAEN SPEN POP 0 0 0 Mode At speaker output Status Power-down (initial value) 0 0 1 ― 1 ― Speaker output Power-down (without pop noise suppression) Power-down Power-down (with pop noise suppression) DAC/speaker power-up 1 0 0 LINE output DAC power-up (without pop noise suppression) 1 0 1 LINE output DAC power-up (with pop noise suppression) At LINE output At speaker output At LINE output Pin status during power down The status of each output pin during power down by the AMODE command is shown below. Analog output pin State VDDL VDDR SG SPM SPP DGND DGND DGND Hi-Z DGND 34/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 3. AVOL command command 0 0 0 0 0 AV5 0 AV4 1 AV3 0 AV2 0 AV1 0 AV0 1st byte 2nd byte The AVOL command is used to adjust the volume of the speaker amplifier. It is possible to input the AVOL command regardless of the status of the NCR signal. The command enables 50-level adjustment of volume, as shown in the table below. When the PUP or AMODE command is input, the value set by the AVOL command is initialized (0 dB). AV5–0 3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30 2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20 Volume +12dB +11.5 +11.0 +10.5 +10.0 +9.5 +9.0 +8.5 +8.0 +7.5 +7.0 +6.5 +6.0 +5.5 +5.0 +4.5 +4.0 +3.5 +3.0 +2.5 +2.0 +1.5 +1.0 +0.5 +0.0 (initial value) −1.0 −2.0 −3.0 −4.0 −5.0 −6.0 −7.0 AV5–0 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 11 12 11 10 0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 00 01 00 Volume −8.0 −9.0 −10.0 −11.0 −12.0 −13.0 −14.0 −16.0 −18.0 −20.0 −22.0 −24.0 −26.0 −28.0 −30.0 −32.0 −34.0 OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF 35/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 4. FAD command command 0 0 0 0 0 0 0 0 1 FAD3 1 FAD2 0 FAD1 0 FAD0 1st byte 2nd byte The FAD command is used to set the fade-in time for the speaker amplifier. The fade-in time cna be adjusted through 16 levels, as shown in the table below. The initial value after reset is 298 µs. When the PUP command is input, the value set by the FAD command is initialized (298 µs). FAD3–0 Fade-in time (µs) F E D C B A 9 8 7 6 5 4 3 2 1 0 442 422 401 381 360 340 319 298 (initial value) 278 257 237 216 195 175 154 134 36/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 5. PDWN command command 0 0 1 0 0 0 0 0 The PDWN command is used to shift the ML22Q563/ML2256X from a command waiting state to the power down state. However, since every setting will be initialized after entering the power down state, initial settings need to be set after power-up. This command is invalid during playback. To resume playback after the ML22Q563/ML2256X has shifted to the power down state, first input the PUP and AMODE commands and then input the PLAY command. CSB SCK SI CBUSYB NCR (internal) BUSYB (internal) Oscillation stopped XT•XTB Oscillating Status Awaiting command Command is being processed Power down Oscillation stops after a lapse of command processing time after the PDWN command is input. The regulator stops operation after a lapse of command processing time after the PDWN command is input. At this time, the SPM output of the speaker amplifier goes into a Hi-Z state to prevent generation of pop noise. Initial stauts at reset input and status during power down The status of each output pin is as follows: Analog output pin State VDDL VDDR SG SPM SPP DGND DGND DGND Hi-Z DGND 37/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 6. FADR command command 0 F7 0 F6 1 F5 1 F4 C1 F3 C0 F2 F9 F1 F8 F0 1st byte 2nd byte The FADR command is used to specify a phrase to be played. A playback channel and a playback phrase are set by this command. The FADR command can be set for each channel; however, the command cannot be input for multiple channels simultaneously. Input the FADR command with each NCR set to a ”H” level. When a playback phrase is specified for each channel, use the START command to start playback. Since it is possible to specify a playback phrase (F9–F0) at the time of creating a ROM that stores voice data, specify the phrase that was specified when the ROM was created. Channel settings C1 C0 Channel 0 0 1 1 0 1 0 1 Channel 0 Channel 1 Channel 2 Channel 3 The diagram below shows the timing for specifying (F9–F0) = 02H as the phrase to play on channel 1. FADR command FADR command 1st byte 2nd byte CSB SCK SI CBUSYB NCR (internal) BUSYB (internal) Status Awaiting command Command is being processed Awaiting command Awaiting command Command is being processed 38/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 7. PLAY command command 0 F7 1 F6 0 F5 0 F4 C1 F3 C0 F2 F9 F1 F8 F0 1st byte 2nd byte The PLAY command is used to start playback with phrase specified. This command can be input when the NCR signal on the target channel is at a “H” level. Since it is possible to specify a playback phrase (F9–F0) at the time of creating a ROM that stores voice data, specify the phrase that was specified when the ROM was created. The figure below shows the timing of phrase (F9–F0 = 01H) playback. PLAY command 1st byte PLAY command 2nd byte CSB SCK SI CBUSYB NCR (internal) BUSYB (internal) 1/2VDD SPM 1/2VDD SPP Status Awaiting command Awaiting command Address is being controlled Playing Awaiting command Command is being processed When the 1st byte of the PLAY command is input, the device enters a state awaiting input of the 2nd byte of the PLAY command after a lapse of command processing time. When the 2nd byte of PLAY command is input, after a lapse of command processing time, the device starts reading from the ROM the address information of the phrase to be played. Thereafter, playback operation starts, the playback is performed up to the specified ROM address, and then the playback terminates automatically. The NCR signal is at a “L” level during address control, and goes “H” when the address control is finished and playback starts. When the NCR signal on the target channel goes “H”, it is possible to input the PLAY command for the next playback phrase. During address control, the BUSYB signal is at a “L” level during playback and goes “H” when playback is finished. Whether the playback is going on can be known by the BUSYB signal. Channel settings C1 C0 Channel 0 0 1 1 0 1 0 1 Channel 0 Channel 1 Channel 2 Channel 3 39/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx PLAY Command Input Timing for Continuous Playback The diagram below shows the PLAY command input timing in cases where one phrase is played and then the next phrase is played in succession. PLAY command 2nd byte PLAY command PLAY command 1st byte 2nd byte CSB SCK tcm SI CBUSYB NCR (internal) BUSYB (internal) SPM SPP Status 1/2VDD 1/2VDD Awaiting command Address is being controlled Playing phrase 1 Playing phrase 2 Address is being controlled As shown in the diagram above, if performing continuous playback, input the PLAY command for the second phrase within 10 ms (tcm) after the NCR signal on the target channel goes “H”. Doing so will start playing the second phrase immediately after the playback of the first phrase finishes. Phrases can thus be played continuously without silence being inserted between phrases. 40/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 8. START command command 0 1 0 1 CH3 CH2 CH1 CH0 The START command is a channel synchronization start (i.e., starts phrase playback on multiple channels simultaenously) command. It is necessary to specify playback phrases using the FADR command before inputting the START command. Setting any bit(s) from CH0 to CH3 to “1” starts playback on the corresponding channel(s). Input the START command with each NCR set to a ”H” level. The figure below shows the timing when starting playback on channel 0 and channel 1 simultaneously. Channel settings Channel CH0 CH1 CH2 CH3 Setting this bit to “1” starts playback on channel 0. Setting this bit to “1” starts playback on channel 1. Setting this bit to “1” starts playback on channel 2. Setting this bit to “1” starts playback on channel 3. Be sure to set the channel setting bits( CH0-CH3). START command CSB SCK SI tcB2 CBUSYB NCR0 (internal) NCR1 (internal) BUSYB0 (internal) BUSYB1 (internal) SPP output Status Awaiting command Address is being controlled Playing Awaiting command 41/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 9. STOP command command 0 1 1 0 CH3 CH2 CH1 CH0 The STOP command is used to stop playback. It can be set for each channel. Setting any bit(s) from CH0 to CH3 to “1” stops playback on the corresponding channel(s). If the speech synthesis processing for all channels stops, the AOUT output goes to the VSG level and the NCR and BUSYB signals go to a “H” level. Although it is possible to input the STOP command regardless of the status of NCR during playback, a prescribed command interval time needs taking. STOPcommand CSB SCK SI CBUSYB NCR (internal) fs×29cycle BUSYB (internal) 1/2VDD SPM 1/2VDD SPP Status Playing Command is being processed Awaiting Channel settings Channel CH0 CH1 CH2 CH3 Setting this bit to “1” stops playback on channel 0. Setting this bit to “1” stops playback on channel 1. Setting this bit to “1” stops playback on channel 2. Setting this bit to “1” stops playback on channel 3. Be sure to set the channel setting bits( CH0- CH3). The STOP command allows specifying multiple channels at one time. 42/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 10. MUON command command 0 M7 1 M6 1 M5 1 M4 CH3 M3 CH2 M2 CH1 M1 CH0 M0 1st byte 2nd byte The MUON command allows inserting a silence between two playback phrases. The command can be input when the NCR signal on the target channel is at a “H” level. Set the silence time length after inputting this command. It can be set for each channel. The MUON command allows specifying multiple channels at one time. Setting any bit(s) from CH0 to CH3 to “1” plays silence on the corresponding channel(s). Channel settings Channel CH0 CH1 CH2 CH3 Setting this bit to “1” inserts a silence on channel 0. Setting this bit to “1” inserts a silence on channel 1. Setting this bit to “1” inserts a silence on channel 2. Setting this bit to “1” inserts a silence on channel 3. Be sure to set the channel setting bits( CH0- CH3). As the silence length (M7–M0), a value between 20 ms and 1024 ms can be set at 4 ms intervals (252 steps in total). The equation to set the silence time length is shown below. The silence length (M7–M0) must be set to 04h or higher. tmu=(2 ×(M7)+2 ×(M6)+2 ×(M5)+2 ×(M4)+2 ×(M3)+2 ×(M2)+2 ×(M1)+2 ×(M0)+1)×4ms 7 6 5 4 3 2 1 0 The figure below shows the timing of inserting a silence of 20 ms between the repetitions of a phrase of (F7–F0) = 01h. PLAY command 2nd byte MUON command MUON command 1st byte 2nd byte PLAY command PLAY command 1st byte 2nd byte tcm tcm Playing Silence is being inserted CSB SCK SI CBUSYB NCR (internal) BUSYB (internal) SPM SPP Status 1/2VDD 1/2VDD Awaiting command Address is being controlled Waiting for playback to be finished Playing Waiting for silence insertion to be finished 43/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx When the PLAY command is input, the address control over phrase 1 ends, the phrase playback starts, and the CBUSYB and NCR signals go to a “H” level. Input the MUON command after this CBUSYB signal changes to a “H” level. After the MUON command input, the NCR signal remains “L” until the end of phrase 1 playback, and the device enters a state waiting for the phrase 1 playback to terminate. When the phrase 1 playback is terminated, the silence playback starts and the NCR signal goes to a “H” level. After the NCR signal has gone to a “H” level, re-input the PLAY command in order to play phrase 1. After the PLAY command input, the NCR signal once again goes to a “L” level and the device enters a state waiting for the termination of silence playback. When the silence playback is terminated and then the phrase 1 playback starts, the NCR signal goes “H”, and the device enters a state where it is possible to input the next PLAY or MUON command. The BUSYB signal remains “L” until the end of a series of playback. 44/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 11. SLOOP command command 1 0 0 0 CH3 CH2 CH1 CH0 The SLOOP command is used to set repeat playback mode. The command can be input for each channel. The SLOOP command allows specifying multiple channels at one time. Setting any bit(s) from CH0 to CH3 to “1” repeats playback on the corresponding channel(s). Input the SLOOP command with each NCR set to a ”H” level. Channel settings Channel CH0 CH1 CH2 CH3 Setting this bit to “1” repeats playback on channel 0. Setting this bit to “1” repeats playback on channel 1. Setting this bit to “1” repeats playback on channel 2. Setting this bit to “1” repeats playback on channel 3. Be sure to set the channel setting bits( CH0- CH3). Once repeat playback mode is set, the current phrase is repeatedly played until the repeat playback setting is released by the SLOOP command or until playback is stopped by the STOP command. In the case of a phrase that was edited using the edit function, the edited phrase is repeatedly played. Following shows the SLOOP command input timing. PLAY command 2nd byte SLOOP command CLOOP command CSB SCK SI CBUSYB NCR (internal) tcm BUSYB (internal) SPM SPP Status 1/2VDD 1/2VDD Awaiting command Address is being controlled Playing Address is being controlled Playing Awaiting command Command is being processed Effective Range of SLOOP Command Input The SLOOP command is only enabled during playback. After the PLAY command is input, input the SLOOP command within 10 ms (tcm) after the NCR signal on the target channel goes “H”. This will enable the SLOOP command, so that repeat playback will be carried out. The NCR signal remains “L” during repeat playback mode. 45/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 12. CLOOP command command 1 0 0 1 CH3 CH2 CH1 CH0 The CLOOP command releases repeat playback mode. The command can be input for each channel. The CLOOP command allows specifying multiple channels at one time. Setting any bit(s) from CH0 to CH3 to “1” releases repeat playback on the corresponding channel(s). When repeat playback mode is released, the NCR signal goes “H”. It is possible to input the CLOOP command regardless of the status of the NCR signal during playback, but a prescribed command interval needs taking. Channel settings Channel CH0 CH1 CH2 CH3 Setting this bit to “1” releases repeat playback on channel 0. Setting this bit to “1” releases repeat playback on channel 1. Setting this bit to “1” releases repeat playback on channel 2. Setting this bit to “1” releases repeat playback on channel 3. Be sure to set the channel setting bits( CH0- CH3). CSB PLAY command 2nd byte SLOOP command CLOOP command SCK SI CBUSYB NCR (internal) tcm BUSYB (internal) SPM SPP Status 1/2VDD 1/2VDD Awaiting command Address being controlled Playing Command being processed Playing Awaiting command Command being processed 46/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 13. CVOL command command 1 0 0 0 1 0 0 CV4 CH3 CV 3 CH2 CV 2 CH1 CV 1 CH0 CV 0 1st byte 2nd byte The CVOL command is used to adjust the playback volume on each channel. It is possible to input the VOL command regardless of the status of the NCR signal. The CVOL command can be set for each channel. The CVOL command allows specifying multiple channels at one time. Setting any bit(s) from CH0 to CH3 to “1” sets the playback volume on the corresponding channel(s). The volume setting is initialized by the AMODE command. Channel settings Channel CH0 CH1 CH2 CH3 Setting this bit to “1” sets the volume on channel 0. Setting this bit to “1” sets the volume on channel 1. Setting this bit to “1” sets the volume on channel 2. Setting this bit to “1” sets the volume on channel 3. Be sure to set the channel setting bits( CH0- CH3). The command enables 32-level adjustment of volume, as shown in the table below. The initial value after reset release is set to 0 dB. Upon reset release or when the PUP command is input, the values set by the CVOL command are initialized. CV4–0 1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10 Volume 0 dB (initial value) −0.28 −0.58 −0.88 −1.20 −1.53 −1.87 −2.22 −2.59 −2.98 −3.38 −3.81 −4.25 −4.72 −5.22 −5.74 CV4–0 0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00 Volume −6.31 −6.90 −7.55 −8.24 −9.00 −9.83 −10.74 −11.77 −12.93 −14.26 −15.85 −17.79 −20.28 −23.81 −29.83 OFF 47/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 14. RDSTAT command command 1 0 1 1 0 0 0 ERR The RDSTAT command enables reading the status of internal operation. It is possible to input the RDSTAT command regardless of the status of the NCR signal during playback, but a prescribed command interval needs taking. The ERR bit selects reading the playback status for each channel or reading the status of the fail-safe function. Keep the SI pin to “L” when read the status. ERR Content of data to read 0 NCR and BUSYB signals for each channel (Initial value) 1 Status of the fail-safe function If the ERR bit is set to ”0”, the following status will be read: Output bit Output data D7 D6 D5 D4 D3 D2 D1 D0 - - BUSYB1 BUSYB0 - - NCR1 NCR0 When the ERR bit = ”0”, the NCR and BUSYB signals of each channel are read. The NCR signal outputs a “L” level while this LSI is performing command processing and goes to a “H” level when the LSI enters a command waiting state. The BUSY signal outputs a “L” level during voice playback. The table below shows the contents of each data output at a status read. Output status signal BUSY1 Channel 1 BUSYB output BUSY0 Channel 0 BUSYB output NCR1 Channel 1 NCR output NCR0 Channel 0 NCR output If the ERR bit is set to ”1”, the following status will be read: Output bit Output data D7 0 D6 0 D5 0 D4 0 D3 0 D2 TSDERR D1 BLDERR D0 WCMERR When the ERR bit = ”1”, the status of each fail-safe function is read. If any of the following three fail-safe functions is activated, the ERR pin is set to a “H” level and the corresponding error bit is set to “1”. If the ERR pinis set to a “H” level, check the error contents using the RDSTAT command and take appropriate measures. Error signal TSDERR BLDERR WCMERR Error contents High temperature error bit. This bit is set to “1” if the temperature of the LSI reaches or exceeds the temperature set by the SAFE command. For details see the section on the SAFE command. Power supply voltage error bit. This bit is set to “1” if the power supply voltage level reaches or falls below the voltage set by the SAFE command. For details see the section on the SAFE command. Command tansfer errro bit. This bit is set to “1” if a transfer error occurs in two-time command input mode. 48/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 15. OUTSTAT command command 1 1 0 0 0 BUSY/NCR C1 C0 The OUTSTAT command is used to output the BUSYB or NCR signal on the specified channel from the STATUS pin. It is possible to input the OUTSTAT command regardless of the status of the NCR signal during playback, but a prescribed command interval needs taking. OUTSTAT command OUTSTAT command CSB CSB SCK SCK SI SI CBUSYB CBUSYB NCR (internal) NCR (internal) BUSYB (internal) BUSYB (internal) STATUS STATUS BUSY/NCR STATUS pin status 0 Outputs the NCR signal on the specified channel. 1 Outputs the BUSYB signal on the specified channel. Channel settings C1 0 0 1 1 C0 0 1 0 1 Channel Channel 0 (initial value) Channel 1 Channel 2 Channel 3 49/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 16. SAFE command command 1 TM2 1 TM1 0 TM0 1 TSD1 0 TSD0 0 BLD2 0 BLD1 0 BLD0 The SAFE command is sets the settings for the low-voltage detection and temperature detection functions. The BLD2–0 bits are used to set the power supply voltage detection level. The judgment voltage can be selected from among six levels from 2.7 to 4.0 V. The power supply voltage is monitored each time it reaches the value set by TM2–0, and if the power supply voltage reaches or falls below the set detection voltage two times or more, the ERR pin outputs a ”H” level and the RDSTAT command’s BLDERR bit is set to ”1”. If the ERR pin is set to a ”H” level, check the error contents using the RDSTAT command. If the BLDERR bit is at ”1”, it is possibly a power supply related failure. BLD2 0 0 0 0 1 1 1 1 BLD1 0 0 1 1 0 0 1 1 BLD0 0 1 0 1 0 1 0 1 Judgment power supply voltage OFF 2.7V±5% (initial value) 3.0V±5% 3.3V±5% 3.6V±5% 4.0V±5% (4.0V±5%) (4.0V±5%) The TSD1–0 bits are used to set the temperature detection level. Tj=140°C or OFF can be selected as the judgment temperature. The temperature is monitored each time it reaches the value set by TM2–0, and if the temperature reaches or exceeds the set value two times or more, the ERR pin outputs a ”H” level and the RDSTAT command’s TSDERR bit is set to ”1”. If the ERR pin is set to a ”H” level, check the error contents using the RDSTAT command. If the TSDERR bit is at ”1”, reduce the volume using the AVOL command or put the analog section into the power down state using the AMODE command. TSD1 TSD0 Judgment temperature (Tj) 0 0 OFF 0 1 Setting prohibited 1 1 0 1 Setting prohibited 140±10°C (initial valle,) The TM2–0 bits are used to set the monitor interval to detect a low voltage or temperature. TM2 0 0 0 0 1 1 1 1 TM1 0 0 1 1 0 0 1 1 TM0 0 1 0 1 0 1 0 1 Monitor interval Constantly monitors 2 ms (initial value) 4 ms 8 ms 16 ms 32 ms 64 ms 128 ms 50/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 17. ERCL command command 1 1 1 1 1 1 1 1 The ERCL command is used to clear an error if it occurs. If an error occurs, a “H” level is output from the ERR pin. When the ERCL command is input, the ERR pin outputs a ”L” level. However, in the case of an error other than a transfer error indicated by the WCMERR bit of the RDSTAT command, the ERR pin outputs a ”H” level and does not output a “L” level even if the ERCL command is input, until the error state is cleared. Timing diagram for when an error occurs at the time of setting the two-time command input mode START command ERCL command 2nd times 1st time VIH CSB VIL ERCL command 2nd times tINTC SCK SI tCB1 CBUSYB VOH VOL NCRn (internal) VOH VOL BUSYBn (internal) ERR RDSTAT ERR register (internal) 00h 01h 00h 51/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx If a power supply voltage error occurs and then the power supply voltage is returned (when the SAFE command’s BLD2–0 bits = 001h) ERCL command CSB SCK SI tCB1 CBUSYB VOH VOL RDSTAT ERR register (internal) 00h 02h 00h ERR DVDD 3.0V 2.6V 3.0V If a power supply voltage error occurs but the power supply voltage is not returned ERCL command CSB SCK SI tCB1 CBUSYB VOH VOL RDSTAT ERR register (internal) 00h 02h ERR DVDD 3.0V 2.6V 52/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Command Flow Charts 1-Byte Command Input Flow (applied to the PUP, PDWN, START, STOP, SLOOP, CLOOP, OUTSTAT, and ERCL commands) Start CBUSYB “H”? N Y Input command CBUSYB “H”? N Y End 2-Byte Command Input Flow (applied to the AMODE, AVOL, FAD, FADR, PLAY, MUON, CVOL, and SAFE commands) Start CBUSYB “H”? N Y Input the 1st byte of command CBUSYB “H”? N Y Input the 2nd byte of command CBUSYB “H”? N Y End Status Read Flow RDSTAT command CBUSYB “H”? N Y Read status (SI=”L”) 53/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Power-On Flow Apply power, Drive RESETB “L” Waited for 10 µs? N Y Drive RESETB “H” Example of Power-Up Flow Power-down state PUP command AMODE command Example of Playback Start Flow Power-up state Single-channel playback Multi-channel playback FADR command PLAY command START command Example of Playback Stop Flow Playing STOP command 54/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Loop Start Flow Playing SLOOP command Loop Stop Flow Stop after playback is finished all the way through the phrase Looping Stop playback forcibly STOP command CLOOP command Power-Down Flow Power-up state PDWN command 55/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Detailed Flow of “Power-Up ⇒ Playback ⇒ Power-Down” Power-down state A CBUSYB “H”? N CBUSYB “H”? Y N Y PUP command RDSTAT command CBUSYB “H”? N CBUSYB “H”? Y N Y 1st byte of AMODE command Read status CBUSYB “H”? N BUSYB “H”? Y 2nd byte of AMODE command N Y 1st byte of AMODE command CBUSYB “H”? N Y CBUSYB “H”? 1st byte of PLAY command N Y 2nd byte of AMODE command CBUSYB “H”? N Y CBUSYB “H”? N 2nd byte of PLAY command Y A PDWN command CBUSYB “H”? N Y Power-down state 56/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 1-Byte Command input flow of two-time command input mode (applied to the PDWN,STOP,SLOOP,CLOOP,RDSTAT,OUTSTAT,and ERCL commands) One-time command input One-time ERCL command input Two-time command input ERR ”L” Two-time ERCL command input N Y CBUSYB ”H” ERR N ”L” Y Y CBUSYB ”H” End N N Y One-time command input(Re-input) (再 力) Two-time command input(Re-input) (再 力) N ERR ”L” CBUSYB ”H” N Y End 57/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx 2-Byte Command input flow of two-time command input mode (applied to the AMODE,AVOL,FAD,FADR,PLAY,MUON,CVOL, and SAFE commands) One-time command input (1Byte) Two-time command input (1Byte) ERR ”L” One-time ERCL command input N Two-time ERCL command input Y ERR N CBUSYB ”H” ”L” Y Y CBUSYB ”H” N N Y One-time command input(1Byte)(Re-input) Two-time command input(1Byte) (Re-input) N ERR ”L” CBUSYB ”H” N Y One-time command input (2Byte) Two-time command input (2Byte) ERR ”L” N One-time ERCLcommand input Y CBUSYB ”H” Y End Two-time ERCLcommand input N N ERR ”L” Y CBUSYB ”H” N Y 58/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Handling of the SG Pin The SG pin is the signal ground pin for the built-in speaker amplifier. Connect a capacitor between this pin and the analog ground so that this pin will not carry noise. The recommended capacitance value is shown below; however, it is recommended that the user determine the capacitance value after evaluation. Always start playback after each output voltage is stabilized. Pin Recommended capacitance value Remarks SG 0.1 µF ±20% The larger the connection capacitance, the longer the speaker amplifier output pin (SPM and SPP) voltage stabilization time. Handling of the VDDL and VDDR Pins The VDDL and VDDR pins are the power supply pins for the internal circuits. Connect a capacitor between each of these pins and the ground in order to prevent noise generation and power fluctuation. The recommended capacitance value is shown below; however, it is recommended that the user determine the capacitance value after evaluation. Always start the next operation after each output voltage is stabilized. Pin Recommended capacitance value VDDL, VDDR 10 µF ±20% Remarks The larger the connection capacitance, the longer the stabilization time. 59/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Power Supply Wiring The power supplies of this LSI are divided into the following two: • Digital power supply (DVDD) and Digital ground(DGND) • Speaker amplifier power supply (SPVDD) and Speaker amplifier ground(SPGND) As shown in the figure below, be sure to diverge the wiring of DVDD and SPVDD from the root of the same power supply. DGND/SPGND is similar, too. DVDD DGND 5V SPVDD SPGND 60/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx APPLICATION CIRCUIT At using internal speaker amplifier (speaker output) ( VDDR is only ML22Q563 ) RESETB CSB SCK SI SO CBUSYB ERR STATUS MCU SPM SPP speaker 0.1µF SG AIN 0.1µF DIPH VPP TESTI1 VDDL VDDR DVDD SPVDD 15pF XT 4.096MHz XTB 0.1μF DGND 15pF 10μF 10μF 10μF 0.1μF 10μF 5V SPGND At using external speaker amplifier (line output) ( VDDR is only ML22Q563 ) RESETB CSB SCK SI SO CBUSYB ERR STATUS MCU SPM SPP 0.1µF SP-AMP speaker SG 0.1µF AIN 0.1µF DIPH VPP TESTI1 VDDL VDDR DVDD SPVDD 15pF XT 0.1μF 4.096MHz XTB DGND 15pF 10μF 10μF 0.1μF 10μF 10μF 5V SPGND 61/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx RECOMMENDED CERAMIC OSCILLATION Recommended ceramic resonators for oscillation and conditions are shown below for reference. KYOCERA Corporation Optimal load capacity Freq [Hz] Type 4.096M PBRV4.096MR50Y000 C1 [pF] C2 [pF] 15(internal) Rf Rd Supply voltage [Ohm] [Ohm] Range [V] --- -- 2.7 to 5.5 Operating Temperature Range [°C] -40 to +125 MURATA Corporation Optimal load capacity Freq [Hz] Type 4M CSTCR4M00G55B-R0 4.096M CSTCR4M09G55B-R0 C1 [pF] C2 [pF] 39(internal) Circuit diagram Rf Rd Supply voltage [Ohm] [Ohm] Range [V] --- -- 2.7 to 5.5 Operating Temperature Range [°C] -40 to +125 VDD DVDD/SPVDD DGND/ SPGND GND XT C1 XTB C2 62/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx LIMITATION ON THE OPERATION TIME (PLAY-BACK TIME) ML22Q563/ML22563’s operating temperature is 85℃. But the average ambient temperature at 1W play-back (8ohm drive) during 10 years in the reliability design is Ta=55℃. (max ( the package heat resistance θ ja=42.51[℃/W]) ) When ML22Q563/ML22563 operates 1W play-back(8ohm drive) consecutively, the product life changes by the package temperature rise by the consumption. This limitation does not matter in the state that a speaker amplifier does not play. The factor to decide the operation time ( play-back time ) is the average ambient temperature( Ta ), play-back Watts( at the speaker drive mode), the soldering area ratio*1, and so on. In addition, the limitation on the operation time changes by the heat designs of the board. PACKAGE HEAT RESISTANCE VALUE (REFERENCE VALUE) The following table is the package heat resistance value θja (reference value). This value changes the condition of the board (size, layer number, and so on) The board JEDEC 4layers (W/L/t=76.2/114.5/1.6(mm)) JEDEC 2layers (W/L/t=76.2/114.5/1.6(mm)) θja 42.51[℃/W] 55.37[℃/W] The condition No wind (0m/sec) the soldering area ratio*1:100% *1 : The soldering area ratio is the ratio that the heat sink area of ML22Q563/ML22563 and a land pattern on the board are soldered. 100% mean that the heat sink area of ML22Q563/ML22563 is completely soldered to the land pattern on the board. About the land pattern on the board, be sure to refer to the next clause (PACKAGE DIMENSIONS). 63/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx PACKAGE DIMENSIONS 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 a ROHM sales office for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times). 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. Be sure to refer to the next clause reference data ( Mounting area for package lead soldering to PC boards ). 64/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx [Unit:mm] 65/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx REVISION HISTORY Page Previous Current Edition Edition Document No. Date Description FEDL2256XFULL-01 Apr. 12, 2010 – – Formally edition 1 FEDL2256XFULL-02 Apr. 28, 2010 12 12 Change “DACEN” to “DAEN” FEDL2256XFULL-03 Jun. 03, 2010 1 1 ML22Q563-NNN/-xxx ↓ ML22Q563-NNN ML22Q563-xxx FEDL2256XFULL-04 Feb. 09, 2011 60 60 Change capacitance(delete +/-). FEDL2256XFULL-05 May.28, 2012 - - Change mixing channel to 4ch. 13 13 Add tCB3. FEDL2256X-06 Apr. 25, 2013 18 18 Change Playback Stop Timing. - 32 Add tPUPA3 timing diagram. - 33 Add tPDA3 timing diagram. 13 12 Modify tCB2.( 2ms(max) -> 3ms(max) ) FEDL2256X-07 FEDL2256X-08 Dec. 9, 2014 Mar. 18,2015 66/67 FEDL2256X-08 ML22Q563-NNN/ML22Q563-xxx/ML2256X-xxx Notes 1)The information contained herein is subject to change without notice. 2)Although LAPIS Semiconductor is continuously working to improve product reliability and quality, semiconductors can break down and malfunction due to various factors. Therefore, in order to prevent personal injury or fire arising from failure, please take safety measures such as complying with the derating characteristics, implementing redundant and fire prevention designs, and utilizing backups and fail-safe procedures. LAPIS Semiconductor shall have no responsibility for any damages arising out of the use of our Products beyond the rating specified by LAPIS Semiconductor. 3)Examples of application circuits, circuit constants and any other information contained herein are provided only to illustrate the standard usage and operations of the Products.The peripheral conditions must be taken into account when designing circuits for mass production. 4)The technical information specified herein is intended only to show the typical functions of the Products and examples of application circuits for the Products. No license, expressly or implied, is granted hereby under any intellectual property rights or other rights of LAPIS Semiconductor or any third party with respect to the information contained in this document; therefore LAPIS Semiconductor shall have no responsibility whatsoever for any dispute, concerning such rights owned by third parties, arising out of the use of such technical information. 5)The Products are intended for use in general electronic equipment (i.e. AV/OA devices, communication, consumer systems, gaming/entertainment sets) as well as the applications indicated in this document. 6)The Products specified in this document are not designed to be radiation tolerant. 7)For use of our Products in applications requiring a high degree of reliability (as exemplified below), please contact and consult with a LAPIS Semiconductor representative: transportation equipment (i.e. cars, ships, trains), primary communication equipment, traffic lights, fire/crime prevention, safety equipment, medical systems, servers, solar cells, and power transmission systems. 8)Do not use our Products in applications requiring extremely high reliability, such as aerospace equipment, nuclear power control systems, and submarine repeaters. 9)LAPIS Semiconductor shall have no responsibility for any damages or injury arising from non-compliance with the recommended usage conditions and specifications contained herein. 10)LAPIS Semiconductor has used reasonable care to ensure the accuracy of the information contained in this document. However, LAPIS Semiconductor does not warrant that such information is error-free and LAPIS Semiconductor shall have no responsibility for any damages arising from any inaccuracy or misprint of such information. 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. 12)When providing our Products and technologies contained in this document to other countries, you must abide by the procedures and provisions stipulated in all applicable export laws and regulations, including without limitation the US Export Administration Regulations and the Foreign Exchange and Foreign Trade Act. 13)This document, in part or in whole, may not be reprinted or reproduced without prior consent of LAPIS Semiconductor. Copyright 2010-2015 LAPIS Semiconductor Co., Ltd. 2-4-8 Shinyokohama, Kouhoku-ku, Yokohama 222-8575, Japan http://www.lapis-semi.com/en/ 67/67