[AK4213] AK4213 Mono Class-D SPK-Amp with Stereo Cap-less HP-Amp GENERAL DESCRIPTION The AK4213 is an audio mono class-D speaker amplifier with stereo cap-less headphone amplifier. The AK4213 features analog mixing circuit that allow easy interfacing in mobile phone and portable A/V player designs. The input circuit supports both of single-ended and differential modes, and headphone supports stereo and mono modes. The speaker amplifier includes ALC (Automatic Level Control) circuit which is able to stabilize each output sound levels. The AK4213 is available in CSP package (3.0mm x 3.0mm), utilizing less board space than competitive offerings. FEATURE Single-ended / Differential Input Analog Mixing Circuit Analog Input Volume: +10dB to –20dB, 2dB step µP Interface: I2C Bus (Ver1.0, 400 kHz Fast-Mode) Thermal Shutdown / Short Protection circuit Mono Class-D Speaker Amplifier: - BTL output - Output Power: 1.6W @ 8Ω, SVDD=5V 0.8W @ 8Ω, SVDD=3.6V - THD+N: -65dB @ 8Ω, Po = 0.25W, SVDD=3.6V - Output Noise Level: 85μVrms - ALC (Automatic Level Control) Circuit - Bypass Mode - Pop Noise Free at Power-ON/OFF and Mute - External filter-less Stereo Cap-less Headphone Amplifier: - Mono / Stereo Mode - Output Power: 64mW x 2ch @ 16Ω, SVDD=3.3V, THD+N=-40dB - THD+N: -58dB @ 16Ω, Po=30mW, SVDD=3.3V - Output Noise Level: 24μVrms - Output Volume: +12dB to –50dB, 2dB Step - Pop Noise Free at Power-ON/OFF and Mute Power Supply: - Analog: 2.6V ∼ 3.6V - Headphone Amplifier: 2.6V ∼ 3.6V - Speaker Amplifier: 3.0V ∼ 5.5V - Digital Interface: 1.6V ∼ 3.6V Ta: −40 ∼ 85°C Package: 29pin CSP (3.0mm x 3.0mm, 0.5mm pitch) MS0949-E-01 -1- 2008/07 [AK4213] ■ Block Diagram AVDD VSS1 TEST MIXO SPIN PMV1 LIN1/IN1− Vol RVINP Mixing Selector RIN1/IN1+ Vol PMMSP LIN2/IN2− Vol RIN2/IN2+ Vol SPN PMSPK PMVCM Regulator PMV3 LIN3/IN3− SPP ALC PMV2 PMMHL Vol RVINN SVDD VSS2 Mixing RIN3/IN3+ Selector Vol PMHPL Mixing VOL HPL VOL HPR Selector PMMHR VCOM VCOM PMVCM Internal Oscillator PMHPR PMOSC TVDD SCL SDA PMCP Serial I/F Charge Pump CP CN PVDD PDN VSS3 PVEE Figure 1. AK4213 Block Diagram MS0949-E-01 -2- 2008/07 [AK4213] ■ Ordering Guide −40 ∼ +85°C 29pin CSP (3.0mm x 3.0mm, 0.5mm pitch) Evaluation board for AK4213 AK4213ECB AKD4213 ■ Pin Layout 5 4 Top View 3 2 1 A B C 5 HPR LIN3/IN3- 4 HPL RIN3/IN3+ RIN2/IN2+ 3 PVEE VCOM E F RIN1/IN1+ SVDD LIN1/IN1- SPN VSS2 SPP VSS3 PDN LIN2/IN2- TEST SPIN PVDD SDA TVDD RVINN RVINP CP CN SCL VSS1 AVDD MIXO A B C D E F 2 1 D Top View MS0949-E-01 -3- 2008/07 [AK4213] PIN / FUNCTION No. E1 D1 Pin Name AVDD VSS1 I/O - E3 TEST O D2 C1 C2 TVDD SCL SDA I I/O C3 PDN I A1 B1 B2 B3 A3 A4 A5 F2 E2 B4 B5 C5 C4 D3 D5 F5 E5 E4 F4 D4 F1 F3 CP CN PVDD VSS3 PVEE HPL HPR RVINP RVINN RIN3/IN3+ LIN3/IN3VCOM RIN2/IN2+ LIN2/IN2RIN1/IN1+ LIN1/IN1SVDD VSS2 SPP SPN MIXO SPIN I I O O O I I I I O I I I I O O O I Function Analog Power Supply Pin Ground 1 Pin Test Pin This pin must be open. Digital Interface Power Supply Pin Control Data Clock Pin Control Data Input/Output Pin Power-Down Mode Pin “H”: Power-up, “L”: Power-down, resets and initialization of the control register. The AK4213 must be reset once upon power-up. Positive Charge Pump Capacitor Terminal Pin Negative Charge Pump Capacitor Terminal Pin Charge Pump Circuit Positive Power Supply Pin Ground 3 Pin Charge Pump Circuit Negative Voltage Output Pin Lch Headphone-Amp Output Pin Rch Headphone-Amp Output Pin Receiver Positive Input Pin Receiver Negative Input Pin Analog Input Pin Analog Input Pin Analog Common Voltage Output Pin Analog Input Pin Analog Input Pin Analog Input Pin Analog Input Pin Speaker-Amp Power Supply Pin Speaker-Amp Ground Pin (Ground 2 Pin) Positive Speaker-Amp Output Pin Negative Speaker-Amp Output Pin MIX-Amp Output Pin Speaker-Amp Input Pin Note 1. Do not allow all input pins except analog input pins (LIN1/IN1-, RIN1/IN1+, LIN2/IN2-, RIN2/IN2+, LIN3/IN3-, RIN3/IN3+, SPIN, RVINP and RVINN) to float. ■ Handling of Unused Pin The unused I/O pins must be processed appropriately as below. Classification Analog MS0949-E-01 Pin Name HPL, HPR, MIXO, SPIN, SPP, SPN, LIN1/IN1-, RIN1/IN1+, LIN2/IN2-, RIN2/IN2+, LIN3/IN3-, RIN3/IN3+, RVINP, RVINN, TEST -4- Setting These pins must be open. 2008/07 [AK4213] ABSOLUTE MAXIMUM RATING (VSS1=VSS2=VSS2=0V; Note 2) Parameter Power Supplies: Analog (Note 3) Digital I/F Speaker-Amp & Headphone-Amp Charge Pump Input Current, Any Pin Except Supplies Analog Input Voltage (Note 4) (Note 5) Digital Input Voltage (Note 6) Ambient Temperature (powered applied) Storage Temperature Maximum Power Dissipation Ta=85ºC (Note 8) (Note 7) Ta=70ºC (Note 9) Symbol AVDD TVDD SVDD PVDD IIN VINA1 VINA2 VIND Ta Tstg Pd1 Pd2 min −0.3 −0.3 −0.3 −0.3 −0.3 −0.3 −0.3 −40 −65 - max 6.0 6.0 6.0 4.0 ±10 (AVDD + 0.3) or 6.0 (SVDD + 0.3) or 6.0 (TVDD + 0.3) or 6.0 85 150 0.65 0.8 Units V V V V mA V V V °C °C W W Note 2. All voltages with respect to ground. Note 3. VSS1, VSS2, and VSS3 must be connected to the same analog plane. Note 4. LIN1/IN1-, RIN1/IN1+, LIN2/IN2-, RIN2/IN2+, LIN3/IN3-, RIN3/IN3+ and SPIN pins The maximum value is low value either (AVDD+0.3)V or 6.0V. Note 5. RVINP and RVINN pins The maximum value is low value either (SVDD+0.3)V or 6.0V. Note 6. SDA, SCL and PDN pins. The maximum value is low value either (TVDD+0.3)V or 6.0V. Pull-up resistors at SCL and SDA pins should be connected to (TVDD + 0.3)V or less voltage. Note 7. In case that PCB wiring density is 300% or more. This power is the AK4213 internal dissipation that does not include power of externally connected headphone and speaker. Note 8. In the case of Ta=85ºC, HP-Amp and SPK-Amp must not be powered-up simultaneously. When SPK-Amp be used, HP-Amp should power-down, and the power of SPK-Amp should less than 1.3W @8Ω. Note 9. In the case of Ta=70ºC, HP-Amp and SPK-Amp can be powered-up simultaneously. When HP-Amp and SPK-Amp be used simultaneously, the power of HP-Amp should less than 30mW @16Ω, and the power of SPK-Amp should less than 1.2W @8Ω. WARNING: Operation at or beyond these limits may result in permanent damage to the device. Normal operation is not guaranteed at these extremes. MS0949-E-01 -5- 2008/07 [AK4213] RECOMMEND OPERATING CONDITIONS (VSS1=VSS2=VSS3=0V; Note 2) Parameter Symbol min Power Analog AVDD 2.7 Supplies Digital I/F TVDD 1.6 (Note 10) Speaker-Amp & Headphone-Amp SVDD 3.0 Charge Pump PVDD 2.7 Difference AVDD - PVDD -0.3 SVDD - AVDD -0.3 typ 3.3 1.8 3.6 3.3 0 - max 3.6 3.6 5.5 3.6 0.3 - Units V V V V V V Note 10. The power up sequence among AVDD, TVDD, SVDD, and PVDD is not critical. The PDN pin must be held to “L” when power-up. The PDN pin must be set to “H” after power supplies are powered-up. The AK4213 should be operated by the recommended power-up/down sequence shown in “System Design” to avoid pop noise at speaker output and headphone output. The AK4213 supports the following two cases of partial power ON/OFF. In these cases, the PDN pin must be “L”. 1. TVDD=SVDD=ON: AVDD=PVDD can be power ON/OFF. 2. TVDD=ON: AVDD=PVDD=SVDD can be power ON/OFF. When the power state is changed from OFF to ON in the above cases, the PDN pin must be changed from “L” to “H” after all power supply pins are supplied. “L” time of 150ns or more is needed to reset the AK4213. * AKEMD assumes no responsibility for the usage beyond the conditions in this datasheet. MS0949-E-01 -6- 2008/07 [AK4213] ANALOG CHARACTERISTICS (Ta=25°C; AVDD=PVDD=3.3V, SVDD=3.6V, TVDD=1.8V, VSS1=VSS2=VSS3=0V; Input Signal Frequency =1 kHz; Measurement band width=10Hz ∼ 20kHz; Headphone-Amp: RL =16Ω; Speaker-Amp: RL =8Ω + 10μH; Charge Pump Circuit External Capacitance: C1=C2= 2.2μF (Figure 4); unless otherwise specified) Parameter min typ max Units LIN1, RIN1, LIN2, RIN2, LIN3, RIN3 pins Input Resistance 25 50 110 kΩ Input Analog Volume: L1V3-0, R1V3-0, L2V3-0, R2V3-0, L3V3-0, R3V3-0 bits Step Size 1 2 3 dB Gain Control Range -20 +10 dB MIX-Amp: MIXO pin Load Resistance 10 kΩ Load Capacitance 30 pF Headphone-Amp: LIN/RIN Æ HPL/HPR pins, HPGA = 0dB Output Power (THD+N=1%) SVDD=3.3V 64 mW THD+N: 0.7Vrms Single-ended Input, Po = 30mW -58 -40 dB Output Noise Level (A-weighted) (Note 11) 24 40 μVrms Interchannel Gain Mismatch 0.2 0.8 dB Load Resistance 16 Ω Load Capacitance 300 pF Output Voltage: 0.7Vrms Single-ended Input 0.62 0.69 0.76 Vrms PSRR 217Hz (Note 12) 70 dB 1kHz (Note 12) 70 dB 217Hz (Note 13) 100 dB 1kHz (Note 13) 80 dB Interchannel Isolation 60 80 dB Headphone Analog Volume (HPGA4-0 bits) Step Size 0.5 2 3.5 dB Gain Control Range -50 +12 dB Class-D Speaker-Amp: LIN or RIN Æ SPP/SPN; BTL, ALC = OFF, Input Volume=SPGA=0dB, ALC OFF Output Power (THD+N=10%) SVDD=5.0V 1.6 W SVDD=3.6V 0.8 W Output Level SVDD=5.0V, Input Level = 0.85Vrms (Note 14) 2.7 Vrms SVDD=3.6V, Input Level = 0.64Vrms (Note 15) 2.0 Vrms SVDD=3.6V, Input Level = 0.46Vrms (Note 16) 1.33 1.48 1.63 Vrms THD+N: -65 -40 dB Po=0.25W, Input Level =0.46Vrms (Note 16) Output Noise Level (A-weighted) (Note 17) 85 150 μVrms Load Resistance 8 Ω Load Capacitance (Note 21) 300 pF PSRR 217Hz (Note 18) 60 dB 1kHz (Note 18) 50 dB 217Hz (Note 19) 50 dB 1kHz (Note 19) 50 dB Switching Frequency 150 250 400 kHz Current Limit at Short (Note 20) 40 120 mA Start-Up Time 18 30 48 ms MS0949-E-01 -7- 2008/07 [AK4213] Parameter min typ max SPIN pins Input Resistance 15 26 36 Speaker Analog Volume: SPGA5-0 bits Step Size 0.1 0.5 0.9 Gain Control Range -12 +19.5 Bypass Mode: Figure 2, Input Level = 1.13Vrms, Common Voltage = 1.8V, Measured by SPP/SPN pins THD+N 1.13Vrms, 3.2Vpp -50 0.71Vrms, 2.0Vpp -60 -50 Output level 0.46 Switch ON Resistance (BYPE bit = “1”) 2.8 Switch Off Isolation ; 3.6VDC Input, Figure 3 90 (SPP/SPN pins– RVINP/RVINN pins) Power Supplies Power Supply Current Normal Operation (PDN pin = “H”) AVDD+TVDD: ALL ON (Note 22) 4.0 6.5 HP-Amp ON (Note 23) 2.0 SPK-Amp ON (Note 24) 2.8 PVDD (No Output): HP-Amp ON 1.3 3.2 SVDD (No Output): HP-Amp ON 2.0 4.0 SPK-Amp ON 1.0 4.0 Power-Down Mode (PDN pin = “L”) (Note 25) AVDD+PVDD+SVDD+TVDD 1 30 Units kΩ dB dB dB dB Vrms Ω dB mA mA mA mA mA mA μA Note 11. In case of singled-ended mode. Only mixer path of inputting signal is ON. (In case of differential mode, this value is typically 29μVrms.) Note 12. PSR is applied to AVDD and PVDD with 100mpVpp sine wave. Note 13. PSR is applied to SVDD with 0.89Vpp sine wave. Note 14. In case of single-ended mode. (In case of differential mode, the input signal level is 0.425Vrms. The signals with amplitude and inverted phase should be input to positive input pin and negative input pin.) Note 15. In case of single-ended mode. (In case of differential mode, the input signal level is 0.32Vrms. The signals with amplitude and inverted phase should be input to positive input pin and negative input pin.) Note 16. In case of single-ended mode. (In case of differential mode, the input signal level is 0.23Vrms. The signals with amplitude and inverted phase should be input to positive input pin and negative input pin.) Note 17. In case of singled-ended mode. Only mixer path of inputting signal is ON. (In case of differential mode, this value is typically 90μVrms. ) Note 18. PSR is applied to AVDD with 100mpVpp sine wave. Note 19. PSR is applied to SVDD with 100mpVpp sine wave. Note 20. Average current between SVDD and VSS2 when the SPP and SPN pins are shorted and 0.85Vrms, 1kHz sine wave is input to the AK4213 in single-ended mode. Note 21. This is capacitance value between output pin and VSS1. When a capacitor is connected between output pins, load capacitance for each output pin doubles. Therefore, it is necessary to decide load capacitance in consideration of these. Note 22. All Circuits are powered-up. (PMVCM = PMOSC = PMCP = PMHPL = PMHPR = PMMHL = PMMHR = PMSPK = PMMSP = PMV1 = PMV2 = PMV3 bits= “1”) Note 23. Minimum blocks for Headphone-Amp path are powered-up. (PMVCM = PMOSC = PMCP = PMHPL = PMHPR = PMMHL = PMMHR = PMV1 bits= “1”, PMSPK = PMMSP = PMV2 = PMV3 bits= “0”) Note 24. Minimum blocks for Speaker-Amp path are powered-up (PMVCM = PMOSC = PMCP = PMSPK = PMMSP = PMV1 bits= “1”, PMHPL = PMHPR = PMMHL = PMMHR = PMV2 = PMV3 bits= “0”) Note 25. All digital input pins are held at VSS1. MS0949-E-01 -8- 2008/07 [AK4213] Input Voltage: 1.13Vrms, Comm on Voltage=1.8V Receiver-AMP 3.9Ω 3.9Ω RVINN pin RVINP pin AK4213 SW 1 SPK-AMP SPP pin ALC 8Ω Measurem ent point of THD+N and Output Voltage SPN pin SW 2 Figure 2. Connection with external RCV-Amp Measurement point of AK4213 RVINP pin Switch OFF Isolation SW1 DC Input Voltage: 3.6V SPK-AMP SPP pin ALC 50Ω SPN pin 50Ω RVINN pin DC Input Voltage: 3.6V SW2 AK4213 RVINP pin SW1 50Ω SPK-AMP SPP pin ALC Measurement point of SPN pin Switch OFF Isolation DC Input Voltage: 3.6V DC Input Voltage: 3.6V RVINN pin 50Ω SW2 Figure 3. Measurement Circuit of Switch OFF Isolation Headphone-amp negative voltage PVEE pin C1 CN pin VSS3 CP pin C2 Charge Pump Circuit Figure 4. Charge Pump Circuit External Capacitor MS0949-E-01 -9- 2008/07 [AK4213] DC CHARACTERISTICS (Ta= -40~85°C; AVDD=PVDD=2.6 ∼ 3.6V; SVDD=2.6 ∼ 5.5V; TVDD=1.6 ∼ 3.6V) Parameter Symbol min typ High-Level Input Voltage (2.2V ≤ TVDD ≤ 3.6V) VIH 70%TVDD VIH 80%TVDD (1.6V ≤ TVDD < 2.2V) Low-Level Input Voltage (2.2V ≤ TVDD ≤ 3.6V) VIL VIL (1.6V ≤ TVDD < 2.2V) Low-Level Output Voltage VOL (2.0V ≤ TVDD ≤ 3.6V: Iout = 3mA) VOL (1.6V ≤ TVDD < 2.0V: Iout = 3mA) Input Leakage Current Iin - max 30%TVDD 20%TVDD Units V V V V 0.4 20%TVDD ±2 V V μA SWITCHING CHARACTERISTICS (Ta= -40~85°C; AVDD=PVDD =2.6 ∼ 3.6V; SVDD=2.6 ∼ 5.5V; TVDD=1.6 ∼ 3.6V) Parameter Symbol min typ max Units Control Interface Timing: (Note 26) SCL Clock Frequency FSCL 400 kHz Bus Free Time Between Transmissions tBUF 1.3 μs Start Condition Hold Time (prior to first clock pulse) tHD:STA 0.6 μs Clock Low Time tLOW 1.3 μs Clock High Time tHIGH 0.6 μs Setup Time for Repeated Start Condition tSU:STA 0.6 μs SDA Hold Time from SCL Falling (Note 27) tHD:DAT 0 μs SDA Setup Time from SCL Rising tSU:DAT 0.1 μs Rise Time of Both SDA and SCL Lines tR 0.3 μs Fall Time of Both SDA and SCL Lines tF 0.3 μs Setup Time for Stop Condition tSU:STO 0.6 μs Capacitive load on bus Cb 400 pF Pulse Width of Spike Noise Suppressed by Input Filter tSP 0 50 ns Power-down & Reset Timing PDN Pulse Width (Note 28) tPD 150 ns 2 Note 26. I C is a registered trademark of Philips Semiconductors. Note 27. Data must be held long enough to bridge the 300ns-transition time of SCL. Note 28. The PDN pin must change from “L” to “H” after all power supply pins are supplied. The AK4213 can be also reset by bringing the PDN pin = “L” to “H”. MS0949-E-01 - 10 - 2008/07 [AK4213] ■ Timing Diagram VIH SDA VIL tLOW tBUF tR tHIGH tF tSP VIH SCL VIL tHD:STA Stop Start tHD:DAT tSU:DAT tSU:STA tSU:STO Start Stop Figure 5. I2C Bus Mode Timing tPD PDN VIL Figure 6. Power-down & Reset Timing MS0949-E-01 - 11 - 2008/07 [AK4213] OPERATION OVERVIEW ■ Input Selector & Volume The AK4213 has two input modes that are singled-ended and differential. Single-end and differential modes are selected by SD3-1 bits. In the differential mode, the input path and volume are controlled via the left channel registers, and the right channel registers are ignored. The AK4213 has three mixing circuits that used for L/R channels of headphone amplifier and speaker amplifer. The each mixing circuit can be controlled independently. When all input paths are OFF, the mixing circuit outputs common voltage. The input volume can control each input path independently. The input volume ranges from +10 dB to –20dB in 2dB step. When changing the input volume, pop noise may occur. Each input volume has power management mode which is common to the left and right channels. The power-up/down of input volume can be controlled by PMV3-1 bits. The power-up time is 16.4ms(typ.) and 26.3ms(max). AC coupling capacitor of 0.22μF or less should be connected to LINx/RINx (x=1~3) pins to reduce the pop noise at the power-up of the input volume block. L1V3-0 bit R1V3-0 bit L2V3-0 bit GAIN (dB) R2V3-0 bit L3V3-0 bit R3V3-0 bit FH +10 EH +8 : : CH +4 BH +2 AH 0 9H −2 8H −4 : : 2H −16 1H −18 0H −20 Table 1. Input Volume Setting SD3 bit SD2 bit Input Mode SD1 bit 0 Single-ended Mode 1 Differential Mode Table 2. Input Mode Setting MS0949-E-01 - 12 - Step 2dB (default) (default) 2008/07 [AK4213] SPKL1 bit LIN1/IN1− VOL(L1V3-0 bits) RIN1/IN1+ VOL(R1V3-0 bits) LIN2/IN2- VOL(L2V3-0 bits) RIN2/IN2+ VOL(R2V3-0 bits) LIN3/IN3- VOL(L3V3-0 bits) RIN3/IN3+ VOL(R3V3-0 bits) PREL SPKR1 bit SPKL2 bit SPKR2 bit Mixing & Selector To MIXO pin SPKL3 bit SPKR3 bit HPLL1 bit PREL HPLR1 bit HPLL2 bit HPLR2 bit Mixing & Selector HPLL3 bit To Lch Headphone-Amp HPLR3 bit HPRL1 bit PREL HPRR1 bit HPRL2 bit HPRR2 bit HPRL3 bit Mixing & Selector To Rch Headphone-Amp HPRR3 bit Figure 7. Input Selector & Volume in Single-ended Mode (SD3-1 bits = “000”) MS0949-E-01 - 13 - 2008/07 [AK4213] SPKL1 bit IN1− VOL(L1V3-0 bits) Mixing IN1+ IN2− PREL SPKL2 bit VOL(L2V3-0 bits) & Selector IN2+ To MIXO pin SPKL3 bit IN3− VOL(L3V3-0 bits) IN3+ HPLL1 bit HPLL2 bit PREL Mixing & To Lch Headphone-Amp Selector HPLL3 bit HPRL1 bit HPRL2 bit PREL Mixing & To Rch Headphone-Amp Selector HPRL3 bit Figure 8. Input Selector and Volume in Differential Mode (SD3-1 bits = “111”) MS0949-E-01 - 14 - 2008/07 [AK4213] ■ Class-D Speaker-Amp The output signal from ALC block is converted by PWM and is outputted from the SPP/SPN pins by BTL. The signal of ALC block is inputted from the SPIN pin. The BPF (Band Pass Filter) is made by inserting the capacitor and resistor between the MIXO pin and the SPIN pin. A 0.1uF capacitor must be connected between the MIXO pin and the SPIN pin in order to cancel DC offset of Mixing & Selector circuit, if the BPF is not needed. MIXO pin SPIN pin SPGA5-0bits 1kΩ 0.015μF typ.26kΩ - Mixing & Selector 0.033μF + ALC AK4213 Figure 9. Example of Band-Pass-Filter for Speaker (BPF = typ. 442Hz to 4.83kHz @ -3dB) MIXO pin SPIN pin SPGA5-0bits 0.1μF typ.26kΩ - Mixing & Selector + ALC AK4213 Figure 10. Example of normal connection for Speaker (fc = typ. 66Hz @ -3dB) When the input signal level is 0.7Vrms in single-ended mode, the speaker-amp outputs 0.6W at ALC=OFF and SPGA=0dB. When the stereo signal is input to the AK4213 in single-ended mode, the input volume of left and right channels should be set to “-6dB” and left and speaker mixer path of left and right channels should be ON. In this case, the speaker outputs the signal level of “(L +R)/2”. The default internal gain is +9.82dB.When ALC is ON (ALC bit = “1”), ALC output level is automatically adjusted to −7.5dBV ∼ −9.5dBV at LMTH bit = “0” and −11.5dBV ∼ −13.5dBV at LMTH bit = “1”. The reference level is set by REF5-0 bits. The internal gain of Class-D SPK-amp is fixed to +11.76dB Input Input Volume Mixing & Selector ALC OFF: SPGA5-0 bits Class-D (-1.94dB @ Vol=0dB) (0dB) ALC ON: REF5-0 bits (+11.76dB) Figure 11. Speaker-Amp Path Level Diagram MS0949-E-01 - 15 - 2008/07 [AK4213] When PMSPK bit is set to “0”, the speaker block (ALC + Speaker-Amp) can be powered-down completely. The power-up / down transition time is 30ms (typ.) and 48ms (max). The write operation to SPGA5-0 bits is prohibited within 1.6ms after PMSPK bit is set to “1”. PMSPK bits Speaker-Amp 0 Power-down 1 Power-up & Output Table 3. Speaker-Amp output state (default) ■ Bypass Mode When BYPE bit is “1” (SW1=SW2=ON), input signals to the RVINP pin and the RVINN pin are output from the SPP pin and the SPN pin respectively. Then SPK-Amp is in Hi-Z. When BYPE bit is “0” (SW1=SW2=OFF), the signal of SPK-Amp are output from the SPP/SPN pin. In case of PMSPK bit = “1”, BYPE bit is ignored. Bypass Mode can be ON when all power management register are “0” setting including VCOM and inter-oscilloscope. In case of Bypass Mode setting, PMVCM bit should be set to “1” if thermal shut-down function is used. PMSPK bit BYPE bit Mode 0 0 Power-down (SPP/SPN pins are Hi-Z) 0 1 Bypass Mode 1 x Speaker Mode Table 4. Speaker and Receiver Modes (x: Don’t care) Receiver-AMP 3.9Ω 3.9Ω RVINN pin RVINP pin AK4213 SW1 SPK-AMP SPP pin ALC Speaker SPN pin SW2 Figure 12. Bypass Mode <Example of control sequence> 1. Speaker Mode Î Bypass Mode a. Spkeaer Amp Power -down : PMSPK bit = “1” Æ “0”(Figure 18 show the details of sequence) b. Wait more than 500μs c. Bypass Mode enable( SW1=SW2=ON): BYPE bit = “0” Æ “1” 2. Bypass Mode Î Speaker Mode a. Bypass Mode ignore (SW1=SW2=OFF): BYPE bit = “1” Æ “0” b. Speaker-Amp power-up: Figure 18 shows the details of sequence. MS0949-E-01 - 16 - 2008/07 [AK4213] ■ ALC Operation The ALC (Automatic Level Control) operation of speaker-amp output is operated by ALC block when ALC bit = “1”. When ALC bit is “0”, the speaker volume depends on the setting value of SPGA5-0 bits. (1) ALC Limiter Operation During the ALC limiter operation, when ALC output level exceeds the ALC limiter detection level (LMTH bit), the SPGA value is attenuated automatically to the amount defined by ALC limiter ATT step (LMTH1-0 bits). When ZELMN bit is set to “0” (zero crossing detection is enabled), the SPGA value is changed by the ALC limiter operation at the zero crossing point or at the zero crossing timeout. ZTM1-0 bits set the zero crossing timeout periods of both the ALC limiter and recovery operation. When ZELMN bit = “1” (zero crossing detection is disabled), SPGA value is immediately (period: typ. 125μs, max. 200μs) changed by ALC limiter operation. Attenuation step is fixed to 1 step regardless of the setting of LMAT1-0 bits. The attenuate operation is executed continuously until the ALC output level becomes ALC limiter detection level or less. After completing the attenuate operation, unless ALC bit is changed to “0”, the operation repeats when the input signal level exceeds LMTH bit. LMTH bit ALC Limiter Detection Level ALC Recovery Waiting Counter Reset Level 0 ALC Output ≥ -7.5dBV −7.5dBV > ALC Output ≥ −9.5dBV 1 ALC Output ≥ -11.5dBV −11.5dBV > ALC Output ≥ −13.5dBV Note: ALC limiter detection level and ALC recovery waiting counter reset level do not depend on operation voltage. Table 5. ALC Limiter Detection Level / Recovery Counter Reset Level ZELMN bit LMAT1 LMAT0 ALC Limiter ATT Step 0 0 1 step 0.5dB 0 1 2 step 1.0dB 1 0 4 step 2.0dB 1 1 8 step 4.0dB x x 1step 0.5dB Table 6. ALC Limiter ATT Step (x: Don’t care) 0 1 ZTM1 bit 0 0 1 1 MS0949-E-01 (default) (default) Zero Crossing Timeout typ. max 0 16.4ms 26.3ms 1 32.8ms 51.5ms (default) 0 65.6ms 105.0ms 1 131.2ms 210.0ms Table 7. ALC Zero Crossing Timeout Period ZTM0 bit - 17 - 2008/07 [AK4213] (2) ALC Recovery Operation The ALC recovery operation waits for the WTM2-0 bits to be set after completing the ALC limiter operation. If the input signal does not exceed “ALC recovery waiting counter reset level” during wait time, the ALC recovery operation is executed. The SPGA value is automatically incremented by RGAIN1-0 bits up to the set reference level (REF5-0 bits) with zero crossing detection which timeout period is set by ZTM1-0 bits. The ALC recovery operation period is set by WTM2-0 bits. When zero cross is detected during the wait period set by WTM2-0 bits, the ALC recovery operation waits until WTM2-0 period and the next recovery operation is executed. The setting period of WTM2-0 bits should be same as ZTM1-0 bits or longer period. When RGAIN 1-0 bits are set to “10”, the ALC recovery operation is not executed even the ALC limiter operation is executed. During the ALC recovery operation, when the ALC output level exceeds ALC limiter detection level (LMTH bit), the ALC limiter operation is executed immediately. When “ALC recovery waiting counter reset level ≤ ALC Output Signal < ALC limiter detection level (LMTH1-0)” during the ALC recovery operation, the waiting timer of ALC recovery operation is reset. When “ALC recovery waiting counter reset level > ALC Output Signal”, the waiting timer of ALC recovery operation starts. The ALC operation corresponds to the impulse noise. When the impulse noise is input, the ALC recovery operation becomes faster than a normal recovery operation. When large noise is input to microphone instantaneously, the quality of small singal level in the large noise can be improved by this fast recovery operation. WTM2 bit 0 0 0 0 1 1 1 1 Recovery Waiting Timer typ. max 0 0 16.4ms 26.3ms 0 1 32.8ms 51.5ms 1 0 65.6ms 105.0ms 1 1 131.2ms 210.0ms 0 0 262.4ms 419.9ms 0 1 524.8ms 839.7ms 1 0 1049.6ms 1679.4ms 1 1 2099.2ms 3358.8ms Table 8. ALC Recovery Waiting Timer Period WTM1 bit RGAIN1 0 0 1 1 WTM0 bit RGAIN0 GAIN STEP 0 1 step 0.5dB 1 2 step 1.0dB 0 0 step 0dB 1 Reserved Table 9. ALC Recovery GAIN Step (default) (default) (Only limiter operation) REF5-0 GAIN (dB) Step 3FH +19.5 3EH +19.0 3DH +18.5 3CH +18.0 (default) : : 19H +0.5 0.5dB 18H 0.0 17H −0.5 : : 02H −11.0 01H −11.5 00H −12.0 Table 10. Reference Level at ALC Recovery Operation MS0949-E-01 - 18 - 2008/07 [AK4213] (3) Example of ALC Operation Table 11 shows the example of the ALC setting. The ALC starts from the value of SPGA5-0 bits. Register Name LMTH ZELMN WTM2-0 REF5-0 LMAT1-0 RGAIN1-0 ZTM1-0 ALC Comment Data Parameter Limiter detection Level 0 −7.5dBV Limiter Zero crossing Enable 0 Limiter Zero Crossing Enable Recovery waiting period 101 typ. 524.8ms Maximum gain at recovery operation 3CH +18dB Limiter ATT Step 00 0.5dB Recovery GAIN Step 00 0.5dB Zero-crossing Timeout 01 typ. 32.8ms ALC Enable bit 1 Enable Table 11. Example of the ALC setting The following registers should not be changed during the ALC operation. These bits should be changed after the ALC operation is finished by ALC bit = “0”. - LMTH, LMAT1-0, WTM2-0, RGAIN1-0, REF5-0, ZTM1-0 and ZELMN bits Example: Limiter: Zero Crossing Enable Recovery Cycle = typ. 524.8ms Limiter and Recovery Step = 1 Maximum Gain = +18dB Limiter Detection Level = −7.5dBV ALC bit = “1” ALC=OFF WR (SPGA5-0) * The value of SPGA should be (1) Addr=0EH, Data=3CH the same or smaller than REF’S. WR (REF5-0) (2) Addr=0FH, Data=3CH WR (ZTM1-0, WTM2-0) (3) Addr=10H, Data=0DH WR (ZELMN, LMAT1-0, RGAIN1-0, LMTH, ALC=”1”) (4) Addr =11H, Data=40H ALC Operation Note: WR: Write Figure 13. Registers set-up sequence at ALC operation MS0949-E-01 - 19 - 2008/07 [AK4213] ■ Speaker Volume (SPGA: Manual Mode) The speaker volume becomes manual mode when ALC bit is “0”. This mode is used in the case shown below. 1. 2. 3. Set-up the registers for the ALC operation (ZTM1-0, LMTH and etc). Set-up the initial value of SPGA when ALC starts. When SPGA is used as a manual volume. SPGA5-0 bits set the gain of the volume control. The SPGA value is changed at zero crossing or timeout. Zero crossing timeout period is set by ZTM1-0 bits. When PMSPK bit is “0”, SPGA5-0 bits does not write to anything. After PMSPK bit is changed from “0” to “1”, writing to SPGA5-0 bits is inhibit within 1.6ms. When changing from PMSPK bit = “0” to PMSPK bit = “1”, SPGA volume becomes default value (0dB) regardless of the setting of SPGA5-0 bits. SPGA5-0 bits GAIN (dB) Step 3FH +19.5 3EH +19.0 3DH +18.5 3CH +18.0 : : 19H +0.5 0.5dB 18H 0.0 17H −0.5 : : 02H −11.0 01H −11.5 00H −12.0 Table 12. Speaker-Amp Volume Setting (default) When writing to the SPGA5-0 bits continuously, the control register should be written with an interval more than zero crossing timeout. ALC bit ALC Status Disable Enable 3CH(+18dB) SPGA5-0 bits Internal SPGA Disable 3CH(+18dB) 3CH(+18dB) --> 19H(+0.5dB) (1) 3CH(+18dB) (2) Figure 14. SPGA value during ALC operation (1) ALC operation starts from the SPGA value when ALC bit is changed to “1”. (2) Writing to SPGA registers is ignored during ALC operation. After ALC is disabled, the SPGA changes to the last written data by twice period of zero crossing or timeout. When ALC is enabled again, ALC bit should be set to “1” in an interval more than zero crossing timeout period after ALC bit = “0”. MS0949-E-01 - 20 - 2008/07 [AK4213] ■ Charge Pump Circuit The internal charge pump circuit generates negative voltage(PVEE) from PVDD voltage for headphone amplifiers. When PMCP bit is set to “1”, the charge pump circuit is powered-up. Then PMOSC and PMVCM must be set to “1”. The power up time of charge pump circuit is typically 6.2ms and maximum 10ms.When PMHPL bit = “1” or PMHPR bit = “1”, the Headphone-Amp is powered-up after the charge pump circuit is powered-up (Figure 17). ■ Headphone-Amp (HPL/HPR pins) Power supply voltage for headphone amplifiers is applied from a regulator for positive power and charge-pump for negative power. Regulator is driven by SVDD and charge-pump is driven by PVDD. The PVEE pin outputs the negative voltage generated by the internal charge pump circuit. The headphone amplifier output is single-ended and centered on 0V (VSS3). Therefore, the capacitor for AC-coupling can be removed. The minimum load resistance is 16 Ω. When the input signal level is 0.7Vrms at single-ended mode, the output voltage is 0.69Vrms (= 30mW @ 16Ω) at HPG43-0 bits = “19H” (0dB). The output level of headphone-amp can be controlled by HPGA4-0 bits. This volume setting is common to L/R channels and can attenuate / gain the mixer output from +12dB to –50dB in 2dB step. HPGA4-0 bits GAIN (dB) Step 1FH +12 1EH +10 : 1AH +2 19H 0 18H −2 2dB 17H −4 16H −6 : : 2H −46 1H −48 0H −50 Table 13. Headphone-Amp Volume Setting Input (default) Input Volume Mixing & Selector HP Volume HP-Amp (-1.94dB @ Vol =0dB) (0dB) (HPGA=0dB) (+1.94dB) Figure 15. Headphone-Amp Path Level Diagram MS0949-E-01 - 21 - 2008/07 [AK4213] The headphone output is enabled when HPMTN bit is “1” and muted when HPMTN bit is “0”. The mute ON/OFF time is set by PTS1-0 bits when MOFF bit is “0”. When MOFF bit is “1”, the mute ON/OFF is switched immediately. When PMHPL and PMHPR bits are “0”, the headphone-amps are powered-down completely. At that time, the HPL and HPR pins go to VSS3 voltage via the internal pulled-down resistor. The pulled-down resistor is 20Ω(typ) at HPZ bit = “0”, 25kΩ(typ) at HPZ bit = “1”. The power-up time is 16.4ms (typ.) and 26.3ms (max.), and power up/down is executed immediately. PMCP/PMVCM x x 1 1 PMHPL/R 0 HPMTN x HPZ 0 Mode Power-down & Mute HPL/R pins Pulled-down by 20Ω (typ) Pulled-down by 0 x 1 Power-down 25kΩ(typ) 1 0 0 Mute VSS3 1 1 0 Normal Operation Normal Operation Table 14. Headphone amplifier Mode Setting (x: Don’t’ care) (default) <Wired OR with External Headphone-Amp> When PMVCM=PMCP=PMOSC=HPZ bits are “1”(charge pump circuit is powered-up), the AK4213 HP-Amp can be connected to external single supply HP-Amp by “wired OR”. The external HP-Amp can output the single up to ±PVDD [Vpp] after the charge pump circuit is powered-up. HPL pin AK4213 Headphone HPR pin Another HP-Amp Figure 16. Wired OR with External HP-Amp MS0949-E-01 - 22 - 2008/07 [AK4213] ■ Transition Time The mute ON/OFF time of headphone-amp is set to PTS1-0 bits. These operations are soft transition. The Enable/Disable for the soft transition is set by MOFF bit. The soft transition is disabled while MOFF bit is “1”, the mute ON/OFF is switched immediately. As shown in Table 15, if the soft transition is enabled, the register value of the same address must be changed in an interval more than transition time. The write operation is ignored if the same values are written as the previous write operation. Address Register Name Enable / Disable 0DH HPMTN bit MOFF bit Table 15. Registers with Transition Time PTS1-0 bits MUTE ON/OFF Time typ. max. 0 0 16.4ms 26.3ms 0 1 32.8ms 51.5ms 1 0 65.6ms 105.0ms 1 1 131.2ms 210.0ms Table 16. Headphone-Amp Mute ON/OFF Transition Time PTS1 PTS0 (default) ■ Thermal Shutdown Function When the internal device temperature rises up irregularly (E.g. Output pins of speaker amplifier are shortened.), the charge pump, headphone amplifier, and speaker amplifier are automatically powered-down and then THDET bit becomes “1”. The powered-down charge pump circuit, headphone amplifier and speaker amplifier do not return to normal operation unless HP/SPK-Amp blocks of the AK4213 are reset by the PDN pin “L”. The device status can be monitored by THDET bit. <Recommend sequence> 1. 2. 3. 4. 5. VCOM Power-Up; PMVCM bit = “0” Æ “1” Wait more than 1ms Bypass Mode Enable: BYPE bit = “0” Æ “1” Bypass Mode Disable: BYPE bit = “1” Æ “0” VCOM Power-down; PMVCM bit = “1” Æ “0” ■ System Reset The PDN pin must keep “L” until all power supply pins (AVDD, PVDD, SVDD and TVDD) are supplied. After they are applied, the PDN pin must be set to “H”. After exiting reset (PDN pin: “L” Æ “H”), all blocks (Input Volume, VCOM, Oscillator, Mixer, Headphone-Amp, Speaker-Amp and charge pump circuit) switch to the power-down state. The contents of the control register are maintained until reset is executed. MS0949-E-01 - 23 - 2008/07 [AK4213] ■ Power-Up/Down Sequence 1) HP-Amp Power Supply (1) PDN pin (2) PMVCM bit PMOSC bit PMMHL/R bit PMCP bit PVEE pin (3) 0V 0V PVEE ≥ 0s (10) PMVx bits Input Volume Output State (4) Hi-z PMHPL/R bit Hi-z VCOM (5) HPMTN bits HPL/HPR pins 0V Normal MUTE (6) (7) MUTE (8) 0V (9) Figure 17. HP-Amp Power-up/down sequence example (1) After Power Up, PDN pin = “L” Æ “H”. “L” time of 150ns or more is needed to reset the AK4213. The power must be ON in the state of the PDN pin = “L”. The PDN pin must be set to “H” after power supply (AVDD, TVDD, PVDD, SVDD) ON. (2) PTS1-0, MOFF, HPGA4-0, and SD3-1 bits must be set during this period. (3) Regulator, Power-up of Charge Pump, internal oscillator, VCOM, and HP-Amp Mixer & Selector: PMCP = PMMHL = PMMHR = PMOSC = PMVCM bits = “0” Æ “1” The PVEE pin becomes PVEE voltage within 10ms (max.). (4) Power-up of input volume: PMVx bit = “0” Æ “1” Input Volume setting (L1V3-0, L2V3-0, L3V3-0, R1V3-0, R2V3-0, R3V3-0 bits) Input path setting (HPLL3-1, HPLR3-1, HPRR3-1, HPRL3-1 bits) Input volume block is powered-up within 26.3ms (max.). Input path and volume can be set when input volume block is powered-up. (5) If PMCP and PMHPL/R bits are set to “1” at the same time or PMHPL/R bits are set to “1” during the power-up time of the Charge Pump circuit, Headphone-Amp is powered-up after the Charge Pump circuit is powered-up. (6) Power-up of Headphone-Amp: PMHPL/R bits = “0” Æ “1” Headphone-Amp is in the mute state and becomes ground level. Headphone-Amp power-up time is 26.3ms (max.). (7) Headphone-Amp mute release: HPMTN bit = “0” Æ “1” Headphone-Amp goes to the normal operation after the transition time. Headphone-Amp mute release time depends on the setting of PTS1-0 and MOFF bits. (8) Headphone-Amp mute: HPMTN bit = “1” Æ “0” Headphone-Amp goes to the mute state after the transition time set by PTS1-0 and MOFF bits. (9) Headphone-Amp power-down: PMHPL/R bits = “1” Æ “0” Headphone-Amp is powered-down immediately. (10) Power-down of Charge Pump, internal oscillator, VCOM, and HP-Amp Mixer & Selector: PMCP = PMMHL = PMMHR = PMOSC = PMVCM bits = “1” Æ “0” The PVEE pin becomes 0V according to the time constant of the capacitor at the PVEE pin and the internal resistor. The internal resistor is 17.5kΩ (typ.). Charge Pump Circuit can be powered-up during this period. MS0949-E-01 - 24 - 2008/07 [AK4213] 2) SPK-Amp Power Supply (1) PDN pin (2) PMVCM bit PMOSC bit Don’t care Clock Input Don’t care ≥ 0s PMVx bits Input Volume Output State PMMSP bit PMSPK bit (3) Hi-Z Hi-Z VCOM (8)≥ 500us (4)≥ 0s (5)≥ 1.6ms SPGA bits Default (5) ≥ 1.6ms Default xxH xxH Default ALC bit (6) ALC state Disable (6) Enable (7) SPP/SPN pins Hi-Z Enable Disable Disable (7) Normal Hi-Z Normal Hi-Z Figure 18. SPK-Amp Power-up/down Sequence Example (1) After Power Up, PDN pin = “L” Æ “H”. “L” time of 150ns or more is needed to reset the AK4213. The power must be ON in the state of PDN pin = “L”. The PDN pin must be set to “H” after power supply (AVDD, TVDD, PVDD, SVDD) are ON. (2) Power-up of VCOM and the internal oscillator: PMVCM= PMOSC: “0” Æ “1” SD3-1 bits must be set during this period. (3) Power-up of input volume: PMVx bit = “0” Æ “1” Input volume setting (L1V3-0, L2V3-0, L3V3-0, R1V3-0, R2V3-0, R3V3-0 bits) Input path setting (SPKL3-1, SPKR3-1 bits) Input volume block is powered-up within 26.3ms (max.). Input path and volume can be set when input volume block is powered-up. (4) Power-up of SPK-Amp and SPK-Amp Mixer & Selector: PMMSP = PMSPK bits =“0”Æ “1” (5) SPGA5-0 bits setting: The setting of SPKG5-0 and ALC bits is enabled at 1.6ms or more after PMSPK bit is set to “1”. (6) ALC setting: ALC is enabled at 30ms (max.). Refer to “Registers set-up sequence at ALC operation”. (7) Speaker-Amp goes to the normal operation at 48ms (max.) after PMSPK bit is changed to “1”. (8) Once Speaker-Amp is powered-down, Speaker-Amp can be powered-up again at 500μs or more lately. When PMMSP, PMSPK bit = “1” Æ “0”, before PMVCM,PMOSC bit = “1” Æ “0”, please wait more than 0.5ms. MS0949-E-01 - 25 - 2008/07 [AK4213] 3) Change of the signal path to HP-Amp or SPK-Amp Example: The signal path changes from LIN1/RIN1 to LIN2/RIN2 when HP-Amp is powered-up. (1) HPLL1/R1 bits (2) PMV1 bit LIN1/RIN1 Volume Output State ≥ 0s VCOM Hi-Z Output (5) HPLL2/R2 bits ≥ 0s (3) PMV2 bit (4) LIN2/RIN2 Volume Output State Hi-Z Output Figure 19. Example of changing signal path during HP-Amp is powered-up (1) (2) (3) (4) (5) Signal path OFF from LIN1/RIN1 to HP-Amp: HPLL1 = HPLR1 bits = “1” Æ “0” Input volume of LIN1/RIN1 is powered-down: PMV1 bit = “1” Æ “0” Input volume of LIN2/RIN2 is powered-up: PMV2 bit = “0” Æ “1” Input volume of LIN2/RIN2 is powered-up at 26.3ms (max.). Signal path ON from LIN2/RIN2 to HP-Amp: HPLL2 = HPLR2 bits = “0” Æ “1” MS0949-E-01 - 26 - 2008/07 [AK4213] ■ Serial Control Interface The AK4213 supports a fast-mode I2C-bus system (max: 400kHz). Pull-up resistors at the SCL and SDA pins should be connected to (TVDD + 0.3)V or less voltage. 1. WRITE Operations Figure 20 shows the data transfer sequence for the I2C-bus mode. All commands are preceded by START condition. A HIGH to LOW transition on the SDA line while SCL is HIGH indicates START condition (Figure 26). After the START condition, a slave address is sent. This address is 7 bits long followed by the eighth bit that is a data direction bit (R/W). The most significant seven bits of the slave address are fixed as “0010011”(Figure 21). If the slave address matches that of the AK4213, the AK4213 generates an acknowledge and the operation is executed. The master must generate the acknowledge-related clock pulse and release the SDA line (HIGH) during the acknowledge clock pulse (Figure 27). An R/W bit value of “1” indicates that the read operation is to be executed. “0” indicates that the write operation is to be executed. The second byte consists of the control register address of the AK4213. The format is MSB first, and those most significant 3-bit are fixed to zero (Figure 22). The data after the second byte contains control data. The format is MSB first, 8bits (Figure 23). The AK4213 generates an acknowledge after each byte is received. A data transfer is always terminated by STOP condition generated by the master. A LOW to HIGH transition on the SDA line while SCL is HIGH defines STOP condition (Figure 26). The AK4213 can perform more than one byte write operation per sequence. After receipt of the third byte the AK4213 generates an acknowledge and awaits the next data. The master can transmit more than one byte instead of terminating the write cycle after the first data byte is transferred. After receiving each data packet the internal 5-bit address counter is incremented by one, and the next data is automatically taken into the next address. If the address exceeds 12H prior to generating the stop condition, the address counter will “roll over” to 00H and the previous data will be overwritten. The data on the SDA line must remain stable during the HIGH period of the clock. The HIGH or LOW state of the data line can only change when the clock signal on the SCL line is LOW (Figure 28) except for the START and STOP conditions. S T A R T SDA S T O P R/W="0" Slave S Address Sub Address(n) Data(n) A C K A C K Data(n+1) A C K Data(n+x) A C K A C K P A C K Figure 20. Data Transfer Sequence 0 0 1 0 0 1 1 R/W A2 A1 A0 D2 D1 D0 Figure 21. The First Byte 0 0 0 A4 A3 Figure 22. The Second Byte D7 D6 D5 D4 D3 Figure 23. Byte Structure after the second byte MS0949-E-01 - 27 - 2008/07 [AK4213] 2. READ Operations Set the R/W bit = “1” for the READ operation of the AK4213. After transmission of data, the master can read the next address’s data by generating an acknowledge instead of terminating the write cycle after the receipt of the first data word. After receiving each data packet the internal 5-bit address counter is incremented, and the next data is automatically taken into the next address. If the address exceeds 12H prior to generating stop condition, the address counter will “roll over” to 00H and the previous data will be overwritten. The AK4213 supports two basic read operations: CURRENT ADDRESS READ and RANDOM ADDRESS READ. 2-1. CURRENT ADDRESS READ The AK4213 contains an internal address counter that maintains the address of the last word accessed, incremented by one. Therefore, if the last access (either a read or write) were to address “n”, the next CURRENT READ operation would access data from the address “n+1”. After receipt of the slave address with R/W bit “1”, the AK4213 generates an acknowledge, transmits 1-byte of data to the address set by the internal address counter and increments the internal address counter by 1. If the master does not generate an acknowledge but generates stop condition, the AK4213 ceases transmission. S T A R T SDA S T O P R/W="1" Slave S Address Data(n) Data(n+1) Data(n+2) MA AC SK T E R A C K MA AC SK T E R Data(n+x) MA AC SK T E R MA AC SK T E R P MN AA SC T EK R Figure 24. CURRENT ADDRESS READ 2-2. RANDOM ADDRESS READ The random read operation allows the master to access any memory location at random. Prior to issuing the slave address with the R/W bit “1”, the master must first perform a “dummy” write operation. The master issues start request, a slave address (R/W bit = “0”) and then the register address to read. After the register address is acknowledged, the master immediately reissues the start request and the slave address with the R/W bit “1”. The AK4213 then generates an acknowledge, 1 byte of data and increments the internal address counter by 1. If the master does not generate an acknowledge to the data but generates a stop condition, the AK4213 ceases transmission. S T A R T SDA S T A R T R/W="0" Slave S Address Slave S Address Sub Address(n) A C K A C K S T O P R/W="1" Data(n) A C K Data(n+1) MA AC S K T E R Data(n+x) MA AC S T K E R MA AC S T K E R P MN A A S T C E K R Figure 25. RANDOM ADDRESS READ MS0949-E-01 - 28 - 2008/07 [AK4213] SDA SCL S P start condition stop condition Figure 26. START and STOP Conditions DATA OUTPUT BY TRANSMITTER not acknowledge DATA OUTPUT BY RECEIVER acknowledge SCL FROM MASTER 2 1 8 9 S clock pulse for acknowledgement START CONDITION Figure 27. Acknowledge on the I2C-Bus SDA SCL data line stable; data valid change of data allowed Figure 28. Bit Transfer on the I2C-Bus MS0949-E-01 - 29 - 2008/07 [AK4213] ■ Register Map Addr 00H 01H 02H 03H 04H 05H 06H 07H 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH 10H 11H 12H Register Name Power Management 0 Power Management 1 Power Management 2 Mode Control 0 Lch Headphone Mixer Rch Headphone Mixer Speaker Mixer Reserved Input Volume #1 Input Volume #2 Input Volume #3 Reserved Mode Control 1 Headphone PGA Control Speaker PGA Control ALC Mode Control 1 ALC Mode Control 2 ALC Mode Control 3 TEST D7 D6 D5 D4 D3 D2 D1 D0 0 PMMHR PMMHL PMHPR PMHPL PMCP PMOSC PMVCM 0 0 0 0 0 PMMSP 0 PMSPK 0 0 0 0 0 PMV3 PMV2 PMV1 THDET 0 0 BYPE 0 SD3 SD2 SD1 0 0 HPLR3 HPLL3 HPLR2 HPLL2 HPLR1 HPLL1 0 0 HPRR3 HPRL3 HPRR2 HPRL2 HPRR1 HPRL1 0 0 SPKR3 SPKL3 SPKR2 SPKL2 SPKR1 SPKL1 0 0 0 0 0 0 0 0 R1V3 R1V2 R1V1 R1V0 L1V3 L1V2 L1V1 L1V0 R2V3 R2V2 R2V1 R2V0 L2V3 L2V2 L2V1 L2V0 R3V3 R3V2 R3V1 R3V0 L3V3 L3V2 L3V1 L3V0 0 0 0 0 0 0 0 0 0 0 MOFF 0 PTS1 PTS0 0 0 0 HPZ HPMTN HPGA4 HPGA3 HPGA2 HPGA1 HPGA0 0 0 SPGA5 SPGA4 SPGA3 SPGA2 SPGA1 SPGA0 0 0 REF5 REF4 REF3 REF2 REF1 REF0 0 0 0 ZTM1 ZTM0 WTM2 WMT1 WMT0 0 ALC ZELMN LMAT1 LMAT0 RGAIN1 RGAIN0 LMTH 0 0 0 0 0 0 0 0 All registers writing are inhibited at PDN pin = “L”. The PDN pin = “L” resets the registers to their default value. Note 29. The bit indicated as “0” in the register map must contain a “0” value. Note 30. Only write to address 00H to 12H. MS0949-E-01 - 30 - 2008/07 [AK4213] ■ Register Definitions Addr 00H Register Name Power Management 0 R/W Default D7 D6 D5 D4 D3 D2 D1 D0 0 PMMHR PMMHL PMHPR PMHPL PMCP PMOSC PMVCM RD 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 PMVCM: Power Management for VCOM and Regulator which used for Headphone-Amp 0: Power OFF (default) 1: Power ON PMOSC: Power Management for Internal Oscillator 0: Power OFF (default) 1: Power ON PMCP: Power Management for Charge Pump Circuit 0: Power OFF (default) 1: Power ON PMHPL: Power Management for Lch Headphone-Amp 0: Power OFF (default) 1: Power ON PMHPR: Power Management for Rch Headphone-Amp 0: Power OFF (default) 1: Power ON PMMHL: Power Management for Mixing & Selector Circuit of Lch Headphone-Amp 0: Power OFF (default) 1: Power ON PMMHR: Power Management for Mixing & Selector Circuit of Rch Headphone-Amp 0: Power OFF (default) 1: Power ON MS0949-E-01 - 31 - 2008/07 [AK4213] Addr 01H Register Name Power Management 1 R/W Default D7 0 RD 0 D6 0 RD 0 D5 0 RD 0 D4 0 RD 0 D3 D2 0 PMMSP RD 0 R/W 0 D1 0 RD 0 D2 PMV3 R/W 0 D1 PMV2 R/W 0 D0 PMSPK R/W 0 PMSPK: Power Management for Speaker-Amp 0: Power OFF (default) 1: Power ON When PMSPK bit is “0”, SPP pin and SPN pin becomes Hi-Z. PMMSP: Power Management for Mixing & Selector Circuit of Speaker-Amp 0: Power OFF (default) 1: Power ON Addr 02H Register Name Power Management 2 R/W Default D7 0 RD 0 D6 0 RD 0 D5 0 RD 0 D4 0 RD 0 D3 0 RD 0 D0 PMV1 R/W 0 PMV1: Power Management for Input Volume #1 0: Power OFF (default) 1: Power ON PMV2: Power Management for Input Volume #2 0: Power OFF (default) 1: Power ON PMV3: Power Management for Input Volume #3 0: Power OFF (default) 1: Power ON All blocks can be powered-down by setting the PDN pin to “L” regardless of register values setup. In this case, all control register values are initilized. When all power management bits are “0” in the 00H, 01H and 02H addresses, all blocks are powered-down. The register values will remain unchanged. Power supply current is 18uA (typ) in this case. For fully shut down, The PDN pin should be “L”. MS0949-E-01 - 32 - 2008/07 [AK4213] Addr 03H Register Name Mode Control 0 R/W Default D7 D6 THDET 0 RD 0 RD 0 D5 0 RD 0 D4 BYPE R/W 0 D3 0 RD 0 D2 SD3 R/W 0 D1 SD2 R/W 0 D0 SD1 R/W 0 SD1: Input mode setting of LIN1/IN1- and RIN1/IN1+ pins 0: Single-ended Mode (default) 1: Differential Mode SD2: Input mode setting of LIN2/IN2- and RIN2/IN2+ pins 0: Single-ended Mode (default) 1: Differential Mode SD3: Input mode setting of LIN3/IN3- and RIN3/IN3+ pins 0: Single-ended Mode (default) 1: Differential Mode BYPE: Bypass Mode Enable 0: Disable (default) 1: Enable When BYPE bit is changeed from “0” to “1” at PMSPK bit = “1”, the AK4213 changes to Bypass mode after the speaker amp is powered-down. When BYPE bit is changed from “1” to “0”, SPK-Amp starts operating according to the setting of PMSPK bit after exiting Bypass mode. THDET: Thermal Shutdown Detection 0: Normal Operation (default) 1: Thermal Shutdown status Addr 04H 05H 06H 07H Register Name Lch Headphone Mixer Rch Headphone Mixer Speaker Mixer Reserved R/W Default D7 0 0 0 0 RD 0 D6 0 0 0 0 RD 0 D5 HPLR3 HPRR3 SPKR3 0 R/W 0 D4 HPLL3 HPRL3 SPKL3 0 R/W 0 D3 HPLR2 HPRR2 SPKR2 0 R/W 0 D2 HPLL2 HPRL2 SPKL2 0 R/W 0 D1 HPLR1 HPRR1 SPKR1 0 R/W 0 D0 HPLL1 HPRL1 SPKL1 0 R/W 0 D7 R1V3 R2V3 R3V3 0 R/W 1 D6 R1V2 R2V2 R3V2 0 R/W 0 D5 R1V1 R2V1 R3V1 0 R/W 1 D4 R1V0 R2V0 R3V0 0 R/W 0 D3 L1V3 L2V3 L3V3 0 R/W 1 D2 L1V2 L2V2 L3V2 0 R/W 0 D1 L1V1 L2V1 L3V1 0 R/W 1 D0 L1V0 L2V0 L3V0 0 R/W 0 Input Mixers: (Figure 7) 0: OFF (default) 1: ON Addr 08H 09H 0AH 0BH Register Name Input Volume #1 Input Volume #2 Input Volume #3 Reserved R/W Default Input Volumes: Default: 0dB (Table 1) MS0949-E-01 - 33 - 2008/07 [AK4213] Addr 0CH Register Name Mode Control 1 R/W Default D7 0 RD 0 D6 0 RD 0 D5 MOFF R/W 0 D4 0 RD 0 D3 PTS1 R/W 0 D2 PTS0 R/W 0 D1 0 RD 0 D0 0 RD 0 D4 HPGA4 R/W 1 D3 HPGA3 R/W 1 D2 HPGA2 R/W 0 D1 HPGA1 R/W 0 D0 HPGA0 R/W 1 D3 SPGA3 R/W 1 D2 SPGA2 R/W 0 D1 SPGA1 R/W 0 D0 SPGA0 R/W 0 PTS1-0: Headphone-Amp Mute ON/OFF Transition Time Default: “00”, typ. 16.4ms (Table 16) MOFF0: Soft transition for changing HPMTN bit 0: Enable (default) 1: Disable Addr 0DH Register Name Headphone PGA Control R/W Default D7 0 RD 0 D6 HPZ R/W 0 D5 HPMTN R/W 0 HPGA4-0: Headphone-Amp Volume Setting Default: 19H; 0dB (Table 13) HPMTN: Headphone-Amp Mute 0: Mute (default) 1: Normal Output HPZ: Headphone-Amp Pull-down Control 0: Ground Mode (default) HPL/HPR pins are shorted to VSS3. 1: Hi-Z Mode HPL/HPR pins are pulled-down by 25kΩ(typ) to VSS3. Addr 0EH Register Name Speaker PGA Control R/W Default D7 0 RD 0 D6 0 RD 0 D5 SPGA5 R/W 0 D4 SPGA4 R/W 1 SPGA5-0: Speaker-Amp Volume Setting Default: 18H; 0dB (Table 12) When PMSPK bit is set to “0”, reading and writing of SPGA5-0 bits are inhibited. When changing from PMSPK bit = “0” to PMSPK bit = “1”, SPGA volume becomes default value (0dB) regardless of the setting of SPGA5-0 bits. Addr 0FH Register Name ALC Mode Control 1 R/W Default D7 0 RD 0 D6 0 RD 0 D5 REF5 R/W 1 D4 REF4 R/W 1 D3 REF3 R/W 1 D2 REF2 R/W 1 D1 REF1 R/W 0 D0 REF0 R/W 0 REF5-0: Reference value at ALC Recovery Operation Default: 3CH; +18dB (Table 10) MS0949-E-01 - 34 - 2008/07 [AK4213] Addr 10H Register Name ALC Mode Control 2 R/W Default D7 0 RD 0 D6 0 RD 0 D5 0 RD 0 D4 ZTM1 R/W 0 D3 ZTM0 R/W 1 D2 WTM2 R/W 1 D1 WTM1 R/W 0 D0 WTM0 R/W 1 D0 LMTH R/W 0 WTM2-0: ALC Recovery Waiting Period Default: “101”, 524.8ms (typ.) (Table 8) ZTM1-0: ALC Zero Crossing Timeout Period Default: “01”, 32.8ms (typ.) (Table 7) Addr 11H Register Name ALC Mode Control 3 R/W Default D7 0 RD 0 D6 ALC R/W 0 D5 D4 D3 D2 D1 ZELMN LMAT1 LMAT0 RGAIN1 RGAIN0 R/W 0 R/W 0 R/W 0 R/W 0 R/W 0 LMTH: ALC Limiter Detection Level / Recovery Wainting Counter Reset Level Default: “0” (Table 5) RGAIN1-0: ALC Recovery GAIN Step Default: “00”; 1 step (Table 9) LMAT1-0: ALC Limiter ATT Step Default: “00”; 1 step (Table 6) ZELMN: Zero Crossing Detection Enable at ALC Limiter Operation 0: Enable (default) 1: Disable ALC: ALC Enable 0: ALC Disable (default) 1: ALC Enable When ALC bit is set to “1”, the ALC operation is enabled. The initial value is “0” (Disable). Addr 12H Register Name TEST R/W Default D7 0 RD 0 D6 0 RD 0 D5 0 RD 0 D4 0 RD 0 D3 0 RD 0 D2 0 RD 0 D1 0 RD 0 D0 0 RD 0 Write “0” into the “0” registers. MS0949-E-01 - 35 - 2008/07 [AK4213] SYSTEM DESIGN Figure 29 shows the system connection diagram for the AK4213. The evaluation board [AKD4213] demonstrates the optimum layout, power supply arrangement and measurement results. 0.22µ 0.22µ 0.22µ 0.22µ 0.22µ 2.2µ + 0.22µ Analog Input Analog Input 0.1µ Power Supply 3.0∼5.5V Headphone HPR LIN3/IN3- VCOM RIN1/IN+ SVDD + LIN1/IN1- 0.1µ HPL RIN3/IN3+ RIN2/IN2+ SPN VSS2 SPP PVEE VSS3 PDN LIN2/IN2- TEST SPIN 10µ Speaker (Note) 2.2µ + 3.9Ω Top View 3.9Ω 0.1µ PVDD SDA TVDD RVINN Analog Input RVINP 0.1µ CP CN SCL VSS1 AVDD MIXO + 2.2µ (Note) 0.1µ 0.1µ uP Power Supply Power Supply 2.6∼3.6V + 10µ 1.6∼3.6V Analog Ground Digital Ground Figure 29. Typical Connection Diagram Notes: - These capacitors should use low ESR(Equivalent Series Resistance) over all temperature range. When these capacitors are polarized, the positive side should be connected CP pin or analog ground. - VSS1, VSS2, and VSS3 should be connected to same analog ground plane. - A 2.2μF electrolytic capacitor in parallel with a 0.1μF ceramic capacitor attached to the VCOM pin eliminates the effects of high frequency noise. No load current may be taken from the VCOM pin. - AC coupling capacitor of 0.22μF should be connected to LIN/RIN pins to reduce pop noise at the power-up of the input volume block. MS0949-E-01 - 36 - 2008/07 [AK4213] PACKAGE 29pin CSP (3.0mm x 3.0mm, 0.5mm pitch, BGA) Bottom View Top View B 0.23 2.96 ± 0.05 0.50 0.48 5 5 XXXX 3 2 A 4 2.96 ± 0.05 4213 4 3 2 1 1 B C D E F E D C B φ 0.05 A M S AB S 0.08 MS0949-E-01 F φ 0.30 ± 0.05 0.65 ± 0.05 A 0.25 ± 0.05 S - 37 - 2008/07 [AK4213] MARKING 4213 XXXX 1 A XXXX: Date code (4 digit) Pin #A1 indication REVISION HISTORY Date (YY/MM/DD) 08/05/19 08/07/09 Revision 00 01 Reason First Edition Spec Change Page Contents 3 ■ Ordering Guide AK4213EC → AK4213ECB ■ Register Definitions 01H, GDDLY bit was deleted. PACKAGE Package plan was changed. Black type. 32 37 IMPORTANT NOTICE z These products and their specifications are subject to change without notice. When you consider any use or application of these products, please make inquiries the sales office of Asahi Kasei EMD Corporation (AKEMD) or authorized distributors as to current status of the products. z AKEMD assumes no liability for infringement of any patent, intellectual property, or other rights in the application or use of any information contained herein. z Any export of these products, or devices or systems containing them, may require an export license or other official approval under the law and regulations of the country of export pertaining to customs and tariffs, currency exchange, or strategic materials. z AKEMD products are neither intended nor authorized for use as critical componentsNote1) in any safety, life support, or other hazard related device or systemNote2), and AKEMD assumes no responsibility for such use, except for the use approved with the express written consent by Representative Director of AKEMD. As used here: Note1) A critical component is one whose failure to function or perform may reasonably be expected to result, whether directly or indirectly, in the loss of the safety or effectiveness of the device or system containing it, and which must therefore meet very high standards of performance and reliability. Note2) A hazard related device or system is one designed or intended for life support or maintenance of safety or for applications in medicine, aerospace, nuclear energy, or other fields, in which its failure to function or perform may reasonably be expected to result in loss of life or in significant injury or damage to person or property. z It is the responsibility of the buyer or distributor of AKEMD products, who distributes, disposes of, or otherwise places the product with a third party, to notify such third party in advance of the above content and conditions, and the buyer or distributor agrees to assume any and all responsibility and liability for and hold AKEMD harmless from any and all claims arising from the use of said product in the absence of such notification. MS0949-E-01 - 38 - 2008/07