[AK5702] AK5702 4-Channel ADC with PLL & MIC-AMP GENERAL DESCRIPTION The AK5702 features a 4-channel ADC. Input circuits include a Microphone-Amplifier with programmable gain and an ALC (Auto Level Control) circuit, making it ideal for consumer microphone array applications. On-chip PLL and TDM audio format makes it easy to connect with DSP. The AK5702 has a software compatibility with stereo version, AK5701. FEATURES 1. Recording Function - 4-Channel ADC - 3:1 Stereo Input Selector - Full-differential or Single-ended Input - MIC Amplifier (+36dB/+30dB/+15dB/0dB) - Input Voltage: 1.8Vpp@AVDD=3.0V (= 0.6 x AVDD) - ADC Performance: S/(N+D): 83dB, DR, S/N: 89dB@MGAIN=0dB S/(N+D): 83dB, DR, S/N: 87dB@MGAIN=+15dB - Digital HPF for DC-offset cancellation (fc=3.4Hz@fs=44.1kHz) - Digital ALC - Input Digital Volume (+36dB 54dB, 0.375dB Step, Mute) 2. Sampling Rate: - PLL Slave Mode (LRCK pin): 7.35kHz 48kHz - PLL Slave Mode (BCLK pin): 7.35kHz 48kHz - PLL Slave Mode (MCKI pin): 8kHz, 11.025kHz, 12kHz, 16kHz, 22.05kHz, 24kHz, 32kHz, 44.1kHz, 48kHz - PLL Master Mode: 8kHz, 11.025kHz, 12kHz, 16kHz, 22.05kHz, 24kHz, 32kHz, 44.1kHz, 48kHz - EXT Slave Mode: 7.35kHz 48kHz (256fs), 7.35kHz 26kHz (512fs), 7.35kHz 13kHz (1024fs) 3. PLL Input Clock: - MCKI pin: 27MHz, 26MHz, 24MHz, 19.2MHz, 13.5MHz, 13MHz, 12.288MHz, 12MHz, 11.2896MHz - LRCK pin: 1fs - BCLK pin: 32fs/64fs 4. Master/Slave mode 5. Audio Interface Format: MSB First, 2's complement - DSP Mode, 16bit MSB justified, I2S - Cascade TDM interface 6. P I/F: 3-wire Serial or I2C Bus (Ver 1.0, 400kHz Mode) 7. Power Supply: - AVDD: 2.4 3.6V - DVDD: 1.6 3.6V (Stereo Mode) - DVDD: 2.0 3.6V (TDM128 Mode, 16bit x 8ch) - DVDD: 2.7 3.6V (TDM256 Mode, 32bit x 8ch) 8. Power Supply Current: 13 mA (EXT Slave Mode) 9. Ta = 30 85C 10. Package: 32pin QFN (5mm x 5mm) 11. Register Compatible with AK5701 MS0623-E-01 2014/09 -1- [AK5702] Block Diagram LIN1 RIN1 S E L LIN2 RIN2 ADCA HPF MIX ALC or IVOL LRCK LIN5 RIN5 BCLK S E L Audio I/F Controller SDTOA SDTOB S E L LIN3 RIN3 TDMIN ADCB LIN4 ALC or HPF MIX IVOL RIN4 MPWRA DVDD MPWRB VSS2 VCOM PDN AVDD VSS1 VCOC Control Register PLL MCKO MCKI TEST CAD0 CSN CCLK CDTI I2C Figure 1. Block Diagram MS0623-E-01 2014/09 -2- [AK5702] Ordering Guide 30 +85C 32pin QFN (0.5mm pitch) Evaluation board for AK5702 AK5702VN AKD5702 RIN2 LIN2 MPWRA VCOC AVDD VSS1 I2C MCKI 24 23 22 21 20 19 18 17 Pin Layout 13 TDMIN LIN4 29 Top View 12 TEST RIN4 30 11 MCKO LIN3 31 10 SDTOA RIN3 32 9 SDTOB MPWRB 8 AK5702VN BCLK 28 7 RIN5 LRCK CDTI 6 14 VSS2 27 5 LIN5 DVDD CCLK 4 15 CAD0 26 3 RIN1 PDN CSN 2 16 VCOM 25 1 LIN1 Comparison with AK5701 Function # of ADC channel Input Selector Cascade TDM interface Bypass mode uP I/F Package AK5701 2 2 stereo No Yes 3-wire 24pin QFN (4mm x 4mm) MS0623-E-01 AK5702 4 3:1 Yes No 3-wire or I2C 32pin QFN (5mm x 5mm) 2014/09 -3- [AK5702] PIN/FUNCTION No. 1 Pin Name MPWRB I/O O 2 VCOM O 3 PDN I 4 5 6 7 8 9 10 11 CAD0 DVDD VSS2 LRCK BCLK SDTOB SDTOA MCKO 12 TEST 13 17 TDMIN CDTI SDA CCLK SCL CSN CAD1 MCKI 18 I2C I 19 20 VSS1 AVDD - 21 VCOC O 22 MPWRA LIN2 RINA RIN2 RINA+ LIN1 LINA+ RIN1 LINA LIN5 RIN5 LIN4 RINBRIN4 RINB+ LIN3 LINB+ RIN3 LINB- O I I I I I I I I I I I I I I I I I I 14 15 16 23 24 25 26 27 28 29 30 31 32 I I/O I/O O O O I I I I/O I I I I I Function MIC Power Supply Pin Common Voltage Output Pin, 0.5 x AVDD Bias voltage of ADC inputs. Power-Down Mode Pin "H": Power-up, "L": Power-down, reset and initializes the control register. Chip Address 0 Pin Digital Power Supply Pin, 1.6 3.6V Digital Ground Pin Input / Output Channel Clock Pin Audio Serial Data Clock Pin ADCB/TDM Audio Serial Data Output Pin ADCA Audio Serial Data Output Pin Master Clock Output Pin Test Pin This pin should be connected to the ground. TDM Data Input Pin Control Data Input Pin (I2C pin = "L": 3-wire Serial Mode) Control Data Input Pin (I2C pin = "H": I2C Bus Mode) Control Data Clock Pin (I2C pin = "L": 3-wire Serial Mode) Control Data Clock Pin (I2C pin = "H": I2C Bus Mode) Chip Select Pin (I2C pin = "L": 3-wire Serial Mode) Chip Address 1 Select Pin (I2C pin = "H": I2C Bus Mode) External Master Clock Input Pin Control Mode Select Pin "H": I2C, "L": 3-wire serial Analog Ground Pin Analog Power Supply Pin, 2.4 3.6V Output Pin for Loop Filter of PLL Circuit This pin should be connected to VSS1 with one resistor and capacitor in series. MIC Power Supply Pin Lch Analog Input 2 Pin (MDIFA2 bit = "0": Single-ended Input) Rch Negative Input A Pin (MDIFA2 bit = "1": Full-differential Input) Rch Analog Input 2 Pin (MDIFA2 bit = "0": Single-ended Input) Rch Positive Input A Pin (MDIFA2 bit = "1": Full-differential Input) Lch Analog Input 1 Pin (MDIFA1 bit = "0": Single-ended Input) Lch Positive Input A Pin (MDIFA1 bit = "1": Full-differential Input) Rch Analog Input 1 Pin (MDIFA1 bit = "0": Single-ended Input) Lch Negative Input A Pin (MDIFA1 bit = "1": Full-differential Input) Lch Analog Input 5 Pin (INA5L bit or INB5L bit = "1": Single-ended Input) Rch Analog Input 5 Pin (INA5R bit or INB5R bit = "1": Single-ended Input) Lch Analog Input 4 Pin (MDIFB1 bit = "0": Single-ended Input) Rch Negative Input B Pin (MDIFB1 bit = "1": Full-differential Input) Rch Analog Input 4 Pin (MDIFB1 bit = "0": Single-ended Input) Rch Positive Input B Pin (MDIFB1 bit = "1": Full-differential Input) Lch Analog Input 3 Pin (MDIFB2 bit = "0": Single-ended Input) Lch Positive Input B Pin (MDIFB2 bit = "1": Full-differential Input) Rch Analog Input 3 Pin (MDIFB2 bit = "0": Single-ended Input) Lch Negative Input B Pin (MDIFB2 bit = "1": Full-differential Input) Note 1. All input pins except analog input pins (LIN1-5, RIN1-5) should not be left floating. MS0623-E-01 2014/09 -4- [AK5702] Handling of Unused Pin The unused I/O pins should be processed appropriately as below. Classification Analog Digital Pin Name MPWRA, MPWRB, VCOC, LIN1/LINA+, RIN1/LINA, LIN2/RINA, RIN2/RINA+, LIN3/LINB+, RIN3/LINB, LIN4/RINB, RIN4/RINB+, RIN5, LIN5 SDTOA, SDTOB, MCKO MCKI, TDMIN Setting These pins should be open. These pins should be open. This pin should be connected to VSS2. ABSOLUTE MAXIMUM RATINGS (VSS1, VSS2=0V; Note 2) Parameter Power Supplies: Analog Digital Input Current, Any Pin Except Supplies Analog Input Voltage (Note 3) Digital Input Voltage (Note 4) Ambient Temperature (powered applied) Storage Temperature Symbol AVDD DVDD IIN VINA VIND Ta Tstg min 0.3 0.3 0.3 0.3 30 65 max 4.6 4.6 10 AVDD+0.3 DVDD+0.3 85 150 Unit V V mA V V C C Note 2. All voltages with respect to ground. VSS1 and VSS2 must be connected to the same analog ground plane. Note 3. LIN1/LINA+, RIN1/LINA, LIN2/RINA, RIN2/RINA+, LIN3/LINB+, RIN3/LINB, LIN4/RINB, RIN4/RINB+, LIN5/RIN5 pins Note 4. PDN, CSN/CAD1, CCLK/SCL, CDTI/SDA, MCKI, LRCK, BCLK, TEST, TDMIN, I2C, CAD0 pins Pull-up resistors at SDA and SCL pins should be connected to (DVDD+0.3) V or less voltage. WARNING: Operation at or beyond these limits may result in permanent damage to the device. Normal operation is not guaranteed at these extremes. RECOMMENDED OPERATING CONDITIONS (VSS1, VSS2=0V; Note 2) Parameter Power Supplies Analog (Note 5) Digital (Stereo mode) (TDM128 mode) (TDM256 mode) Symbol AVDD DVDD min 2.4 1.6 2.0 2.7 typ 3.0 3.0 3.0 3.0 max 3.6 AVDD AVDD AVDD Unit V V V V Note 2. All voltages with respect to ground. VSS1 and VSS2 must be connected to the same analog ground plane. Note 5. The power-up sequence between AVDD and DVDD is not critical. When only AVDD is powered OFF (Hi_Z or L), it should be done after the PDN pin = "L" or all power management bits (PMADAL, PMADAR, PMADBL, PMADBR, PMVCM, PMPLL, PMMPA, PMMPB) = "0". DVDD should not be powerd OFF while AVDD is powered ON. WARNING: AKM assumes no responsibility for the usage beyond the conditions in this datasheet. MS0623-E-01 2014/09 -5- [AK5702] ANALOG CHARACTERISTICS (Ta=25C; AVDD, DVDD=3.0V; VSS1, VSS2=0V; EXT Slave Mode; MCKI=11.2896MHz, fs=44.1kHz, BCLK=64fs; Signal Frequency=1kHz; 16bit Data; Measurement frequency=20Hz 20kHz; unless otherwise specified) min typ max Unit Parameter MIC Amplifier: LIN1-5, RIN1-5 pins; MDIFA1-2 = MDIFB1-2 bits = "00" (Single-ended inputs) LIN1-4, RIN1-4 pins MGAIN1-0 bits = "00" 40 60 80 k MGAIN1-0 bits = "01", "10" or "11" 20 30 40 k Input LIN5, RIN5 pin Resistance MGAIN1-0 bits = "00" 20 30 40 k MGAIN1-0 bits = "01", "10" or "11" 10 27 k (Note 6) MGAIN1-0 bits = "00" 0 dB MGAIN1-0 bits = "01" +15 dB Gain MGAIN1-0 bits = "10" +30 dB MGAIN1-0 bits = "11" +36 dB MIC Amplifier: LINA+/, RINA+/, LINB+/, RINB+/ pins; MDIFA1-2 = MDIFB1-2 bits = "11" (Full-differential input) MGAIN=+36dB 0.033 Vpp MGAIN=+30dB 0.066 Vpp Input Voltage (Note 7) MGAIN=+15dB 0.37 Vpp MGAIN=0dB 2.07 Vpp MIC Power Supply: MPWRA, MPWRB pins Output Voltage (Note 8) 2.02 2.25 2.48 V Load Resistance 0.5 k Load Capacitance 30 pF ADC Analog Input Characteristics: LIN1-5, RIN1-5 pins (Single-ended inputs) ADC IVOL, MGAIN=+15dB, IVOL=0dB, ALC=OFF Resolution 16 Bits MGAIN=+36dB 0.028 Vpp MGAIN=+30dB 0.057 Vpp Input Voltage (Note 9) MGAIN=+15dB 0.27 0.32 0.37 Vpp MGAIN=0dB 1.53 1.80 2.07 Vpp 73 83 dB S/(N+D) (0.5dBFS) (Note 10) 79 87 dB D-Range (60dBFS, A-weighted) (Note 11) S/N (A-weighted) (Note 11) 79 87 dB Interchannel Isolation (Note 12) 80 90 dB MGAIN=+36dB 0.2 dB MGAIN=+30dB 0.2 dB Interchannel Gain Mismatch MGAIN=+15dB 0.2 1.0 dB MGAIN=0dB 0.2 0.5 dB Power Supplies: Power Supply Current Power Up (PDN pin = "H") (Note 13) AVDD 10 15 mA DVDD 3 5 mA Power Down (PDN pin = "L") (Note 14) AVDD 1 100 A DVDD 1 100 A Note 6. When MGAIN1-0 bits = "01", "10", "11", the input resistance of typical refer to Table 24. Note 7. The voltage difference between LIN+/RIN+ and LIN/RIN pins. AC coupling capacitor should be inserted in series at each input pin. Maximum input voltage of LINA+/, RINA+/, LINB+/ and RINB+/ pins is proportional to AVDD voltage, respectively. Vin = |(L/RIN+) (L/RIN)| = 0.123 x AVDD MS0623-E-01 2014/09 -6- [AK5702] Note 8. Output voltage is proportional to AVDD voltage. Vout = 0.75 x AVDD (typ). Note 9. Input voltage is proportional to AVDD voltage. Vin = 0.107 x AVDD (typ)@MGAIN1-0 bits = "01" (+15dB), Vin = 0.6 x AVDD (typ)@MGAIN1-0 bits = "00" (0dB). Note 10. 83dB(typ)@MGAIN=0dB, 72dB(typ)@MGAIN=+30dB, 66dB (typ) @MGAIN=+36dB Note 11. 89dB(typ)@MGAIN=0dB, 77dB(typ)@MGAIN=+30dB, 70dB (typ) @MGAIN=+36dB Note 12. 100dB(typ)@MGAIN=0dB, 80dB(typ)@MGAIN=+30dB, 80dB(typ) @MGAIN=+36dB Note 13. EXT Slave Mode (MCKI=11.2896MHz), PMADAL = PMADAR = PMADBL = PMADBR = PMVCM = PMMPA = PMMPB bits = "1" and PMPLL = M/S = MCKO bit = "0". MPWRA/B pins outputs 0mA. PLL Master Mode (PMPLL = M/S = MCKO bits = "1"): AVDD= 11.0 mA(typ), DVDD= 3.5 mA(typ). Note 14. All digital input pins are fixed to DVDD or VSS2. FILTER CHARACTERISTICS (Ta=25C; AVDD=2.4 3.6V; DVDD=1.6 3.6V; fs=44.1kHz) Parameter Symbol min ADC Digital Filter (Decimation LPF): Passband (Note 15) PB 0 0.1dB 1.0dB 3.0dB Stopband (Note 15) SB 25.7 Passband Ripple PR Stopband Attenuation SA 65 Group Delay (Note 16) GD Group Delay Distortion GD ADC Digital Filter (HPF): HPFA1-0 = HPFB1-0 bits = "00" Frequency Response (Note 15) 3.0dB FR 0.5dB 0.1dB typ max Unit 20.0 21.1 18 0 17.4 0.1 - kHz kHz kHz kHz dB dB 1/fs s 3.4 10 22 - Hz Hz Hz Note 15. The passband and stopband frequencies scale with fs (system sampling rate). For example, PB=20kHz= 0.454*fs (@1.0dB). Each response refers to that of 1kHz. Note 16. The calculated delay time caused by digital filtering. This time is from the input of analog signal to setting of the 16-bit data of both channels from the input register to the output register of the ADC. This time includes the group delay of the HPF. DC CHARACTERISTICS (Ta=25C; AVDD=2.4 3.6V; DVDD=1.6 3.6V) Parameter High-Level Input Voltage 2.2V DVDD 3.6V 1.6V DVDD <2.2V Low-Level Input Voltage 2.2V DVDD 3.6V 1.6V DVDD <2.2V High-Level Output Voltage (Iout= 200A) Low-Level Output Voltage Except SDA pin (Iout= 200A) SDA pin, 2.0VDVDD3.6V (Iout= 3mA) SDA pin, 1.6VDVDD<2.0V (Iout= 3mA) Input Leakage Current Symbol min typ max Unit VIH VIH 70DVDD 80DVDD - - V V VIL VIL VOH DVDD0.2 - 30DVDD 20DVDD - V V V VOL VOL VOL Iin - - 0.2 0.4 20%DVDD 10 V V V A MS0623-E-01 2014/09 -7- [AK5702] SWITCHING CHARACTERISTICS (Ta=25C; AVDD=2.4 3.6V; DVDD=1.6 - 3.6V (Note 17); CL=20pF; unless otherwise specified) Parameter Symbol min typ max PLL Master Mode (PLL Reference Clock = MCKI pin) MCKI Input Timing Frequency fCLK 11.2896 27 Pulse Width Low tCLKL 0.4/fCLK Pulse Width High tCLKH 0.4/fCLK MCKO Output Timing Frequency fMCK 0.2352 12.288 Duty Cycle Except 256fs at fs=32kHz, 29.4kHz dMCK 40 50 60 256fs at fs=32kHz, 29.4kHz dMCK 33 LRCK Output Timing Frequency fs 7.35 48 Stereo DSP Mode: Pulse Width High tLRCKH tBCK Stereo I2S, MSB Justified Mode: Duty 50 Duty Cycle TDM128 Mode: Pulse Width High tLRCKH 1/(8fs) TDM256 Mode: Pulse Width High tLRCKH 1/(8fs) BCLK Output Timing Period BCKO1-0 bit = "01" tBCK 1/(32fs) BCKO1-0 bit = "10" tBCK 1/(64fs) TDM1-0 bit = "01" tBCK 1/(128fs) TDM1-0 bit = "11" tBCK 1/(256fs) Duty Cycle dBCK 50 PLL Slave Mode (PLL Reference Clock = MCKI pin) MCKI Input Timing Frequency fCLK 11.2896 27 Pulse Width Low tCLKL 0.4/fCLK Pulse Width High tCLKH 0.4/fCLK MCKO Output Timing Frequency fMCK 0.2352 12.288 Duty Cycle Except 256fs at fs=32kHz, 29.4kHz dMCK 40 50 60 256fs at fs=32kHz, 29.4kHz dMCK 33 LRCK Input Timing Frequency fs 7.35 48 Stereo DSP Mode: Pulse Width High tLRCKH tBCK60 1/fs tBCK Stereo I2S, MSB Justified Mode: Duty 45 55 Duty Cycle TDM128 Mode: Pulse Width High tLRCKH 1/(128fs) TDM256 Mode: Pulse Width High tLRCKH 1/(256fs) BCLK Input Timing Period Stereo DSP Mode tBCK 1/(64fs) 1/(32fs) Stereo I2S, MSB Justified Mode tBCK 1/(64fs) 1/(32fs) TDM128 Mode tBCK 1/(128fs) TDM256 Mode tBCK 1/(256fs) Pulse Width Low tBCKL 0.4 x tBCK Pulse Width High tBCKH 0.4 x tBCK - Unit MHz ns ns MHz % % kHz ns % ns ns ns ns ns ns % MHz ns ns MHz % % kHz ns % ns ns ns ns ns ns ns ns Note 17. The voltage range of DVDD depends on the audio interface mode Stereo Mode: DVDD = 1.6 ~ 3.6V TDM128 Mode: DVDD = 2.0 ~ 3.6V TDM256 Mode: DVDD = 2.7 ~ 3.6V MS0623-E-01 2014/09 -8- [AK5702] Parameter Symbol PLL Slave Mode (PLL Reference Clock = LRCK pin) LRCK Input Timing Frequency fs DSP Mode: Pulse Width High tLRCKH Except DSP Mode: Duty Cycle Duty BCLK Input Timing Period tBCK Pulse Width Low tBCKL Pulse Width High tBCKH PLL Slave Mode (PLL Reference Clock = BCLK pin) LRCK Input Timing Frequency fs DSP Mode: Pulse Width High tLRCKH Except DSP Mode: Duty Cycle Duty BCLK Input Timing Period PLL3-0 bits = "0010" tBCK PLL3-0 bits = "0011" tBCK Pulse Width Low tBCKL Pulse Width High tBCKH External Slave Mode MCKI Input Timing Frequency 256fs fCLK 512fs fCLK 1024fs fCLK Pulse Width Low tCLKL Pulse Width High tCLKH LRCK Input Timing Frequency 256fs fs 512fs fs 1024fs fs Stereo DSP Mode: Pulse Width High tLRCKH Stereo I2S, MSB Justified Mode: Duty Duty Cycle TDM128 Mode: Pulse Width High tLRCKH TDM256 Mode: Pulse Width High tLRCKH BCLK Input Timing Period Stereo Mode tBCK TDM Mode tBCK Pulse Width Low Stereo Mode tBCKL TDM Mode tBCKL Pulse Width High Stereo Mode tBCKH TDM Mode tBCKH MS0623-E-01 min typ max Unit 7.35 tBCK60 45 - 48 1/fs tBCK 55 kHz ns % 1/(64fs) 0.4 x tBCK 0.4 x tBCK - 1/(32fs) - ns ns ns 7.35 tBCK60 45 - 48 1/fs tBCK 55 kHz ns % 0.4 x tBCK 0.4 x tBCK 1/(32fs) 1/(64fs) - - ns ns ns ns 1.8816 3.7632 7.5264 0.4/fCLK 0.4/fCLK - 12.288 13.312 13.312 - MHz MHz MHz ns ns 7.35 7.35 7.35 tBCK60 - 48 26 13 1/fs tBCK kHz kHz kHz ns 45 - 55 % - 1/(128fs) 1/(256fs) - ns ns 312.5 78 130 32 130 32 - - ns ns ns ns ns ns 2014/09 -9- [AK5702] Parameter External Master Mode MCKI Input Timing Frequency 256fs 512fs 1024fs Pulse Width Low Pulse Width High LRCK Output Timing Frequency Stereo DSP Mode: Pulse Width High Stereo I2S, MSB Justified Mode: Duty Cycle TDM128 Mode: Pulse Width High TDM256 Mode: Pulse Width High BCLK Output Timing Period BCKO1-0 bit = "01" BCKO1-0 bit = "10" TDM1-0 bit = "01" TDM1-0 bit = "11" Duty Cycle Symbol min typ max Unit fCLK fCLK fCLK tCLKL tCLKH 1.8816 3.7632 7.5264 0.4/fCLK 0.4/fCLK - 12.288 13.312 13.312 - MHz MHz MHz ns ns fs tLRCKH 7.35 - tBCK 48 - kHz ns Duty - 50 - % tLRCKH tLRCKH - 1/(8fs) 1/(8fs) - ns ns tBCK tBCK tBCK tBCK dBCK - 1/(32fs) 1/(64fs) 1/(128fs) 1/(256fs) 50 - ns ns ns ns % MS0623-E-01 2014/09 - 10 - [AK5702] Parameter Audio Interface Timing (Stereo DSP Mode) Master Mode LRCK "" to BCLK "" (Note 18) LRCK "" to BCLK "" (Note 19) BCLK "" to SDTO (BCKP bit = "0") BCLK "" to SDTO (BCKP bit = "1") Slave Mode LRCK "" to BCLK "" (Note 18) LRCK "" to BCLK "" (Note 19) BCLK "" to LRCK "" (Note 18) BCLK "" to LRCK "" (Note 19) BCLK "" to SDTO (BCKP bit = "0") BCLK "" to SDTO (BCKP bit = "1") Audio Interface Timing (Left justified & I2S) Master Mode BCLK "" to LRCK Edge (Note 20) LRCK Edge to SDTO (MSB) (Except I2S mode) BCLK "" to SDTO Slave Mode LRCK Edge to BCLK "" (Note 20) BCLK "" to LRCK Edge (Note 20) LRCK Edge to SDTO (MSB) (Except I2S mode) BCLK "" to SDTO Audio Interface Timing (TDM128 Mode) Master Mode BCLK "" to LRCK BCLK "" to SDTOB (Note 21) TDMIN Hold Time TDMIN Setup Time Slave Mode LRCK Edge to BCLK "" (Note 20) BCLK "" to LRCK Edge (Note 20) BCLK "" to SDTOB (Note 21) TDMIN Hold Time TDMIN Setup Time Audio Interface Timing (TDM256 Mode) Master Mode BCLK "" to LRCK BCLK "" to SDTOB (Note 21) TDMIN Hold Time TDMIN Setup Time Slave Mode LRCK Edge to BCLK "" (Note 20) BCLK "" to LRCK Edge (Note 20) BCLK "" to SDTOB (Note 21) TDMIN Hold Time TDMIN Setup Time Symbol min typ max Unit tDBF tDBF tBSD tBSD 0.5 x tBCK 40 0.5 x tBCK 40 70 70 0.5 x tBCK 0.5 x tBCK - 0.5 x tBCK + 40 0.5 x tBCK + 40 70 70 ns ns ns ns tLRB tLRB tBLR tBLR tBSD tBSD 0.4 x tBCK 0.4 x tBCK 0.4 x tBCK 0.4 x tBCK - - 80 80 ns ns ns ns ns ns tMBLR tLRD 40 70 - 40 70 ns ns tBSD 70 - 70 ns tLRB tBLR tLRD 50 50 - - 80 ns ns ns tBSD - - 80 ns tMBLR tBSD tTDMH tTDMS -24 -40 20 20 - 24 40 - ns ns ns ns tLRB tBLR tBSD tTDMH tTDMS 40 40 20 20 - 40 - ns ns ns ns ns tMBLR tBSD tTDMH tTDMS -12 -20 10 10 - 12 20 - ns ns ns ns tLRB tBLR tBSD tTDMH tTDMS 20 20 10 10 - 20 - ns ns ns ns ns Note 18. MSBS, BCKP bits = "00" or "11" Note 19. MSBS, BCKP bits = "01" or "10" Note 20. BCLK rising edge must not occur at the same time as LRCK edge. Note 21. SDTOA is fixed to "L". MS0623-E-01 2014/09 - 11 - [AK5702] Parameter Control Interface Timing CCLK Period CCLK Pulse Width Low Pulse Width High CDTI Setup Time CDTI Hold Time CSN "H" Time CSN Edge to CCLK "" (Note 22) CCLK "" to CSN Edge (Note 22) Control Interface Timing (I2C Bus mode) (Note 23) SCL Clock Frequency Bus Free Time Between Transmissions Start Condition Hold Time (prior to first clock pulse) Clock Low Time Clock High Time Setup Time for Repeated Start Condition SDA Hold Time from SCL Falling (Note 24) SDA Setup Time from SCL Rising Rise Time of Both SDA and SCL Lines Fall Time of Both SDA and SCL Lines Setup Time for Stop Condition Pulse Width of Spike Noise Suppressed by Input Filter Capacitive load on bus Power-down & Reset Timing PDN Pulse Width (Note 25) PMADAL or PMADAR or PMADBL or PMADBR "" to SDTO valid (Note 26) HPFA/B1-0 bits = "00" HPFA/B1-0 bits = "01" HPFA/B1-0 bits = "10" HPFA/B1-0 bits = "11", INCA/B = "0" HPFA/B1-0 bits = "11", INCA/B = "1" Symbol min typ max Unit tCCK tCCKL tCCKH tCDS tCDH tCSW tCSS tCSH 200 80 80 40 40 200 50 50 - - ns ns ns ns ns ns ns ns fSCL tBUF tHD:STA tLOW tHIGH tSU:STA tHD:DAT tSU:DAT tR tF tSU:STO tSP Cb 1.3 0.6 1.3 0.6 0.6 0 0.1 0.6 0 - - 400 0.3 0.3 50 400 kHz s s s s s s s s s s ns pF tPD 150 - - ns tPDV tPDV tPDV tPDV tPDV - 3088 1552 784 3088 1552 - 1/fs 1/fs 1/fs 1/fs 1/fs Note 22. CCLK rising edge must not occur at the same time as CSN edge. Note 23. I2C-bus is a trademark of NXP B.V. Note 24. Data must be held for sufficient time to bridge the 300 ns transition time of SCL. Note 25. The AK5702 can be reset by the PDN pin = "L". Note 26. This is the count of LRCK "" from the PMADAL, PMADAR, PMADBL, PMADBR bit = "1". MS0623-E-01 2014/09 - 12 - [AK5702] Timing Diagram 1/fCLK VIH MCKI VIL tCLKH tCLKL 1/fs 50%DVDD LRCK tLRCKH tLRCKL tBCK Duty = tLRCKH x fs x 100 tLRCKL x fs x 100 50%DVDD BCLK tBCKH tBCKL 1/fMCK dBCK = tBCKH / tBCK x 100 tBCKL / tBCK x 100 MCKO 50%DVDD tMCKL dMCK = tMCKL x fMCK x 100 Figure 2. Clock Timing (PLL/EXT Master mode) 50%DVDD LRCK tMBLR tBCKL BCLK 50%DVDD tLRD tBSD SDTO 50%DVDD Figure 3. Audio Interface Timing (PLL/EXT Master mode & Normal mode) MS0623-E-01 2014/09 - 13 - [AK5702] tLRCKH LRCK 50%DVDD tBCK tDBF dBCK BCLK (BCKP = "0") 50%DVDD BCLK (BCKP = "1") 50%DVDD tBSD SDTO 50%DVDD MSB Figure 4. Audio Interface Timing (PLL/EXT Master mode & DSP mode: MSBS = "0") tLRCKH LRCK 50%DVDD tBCK tDBF dBCK BCLK (BCKP = "1") 50%DVDD BCLK (BCKP = "0") 50%DVDD tBSD SDTO MSB 50%DVDD Figure 5. Audio Interface Timing (PLL/EXT Master mode & DSP mode: MSBS = "1") MS0623-E-01 2014/09 - 14 - [AK5702] LRCK 50%DVDD tMBLR dBCK BCLK 50%DVDD tBSD SDTO 50%DVDD tTDMS tTDMH VIH TDMIN VIL Figure 6. Audio Interface Timing (PLL/EXT Master mode & TDM mode) MS0623-E-01 2014/09 - 15 - [AK5702] 1/fs VIH LRCK VIL tLRCKH tBLR tBCK VIH BCLK (BCKP = "0") VIL tBCKH tBCKL VIH BCLK (BCKP = "1") VIL Figure 7. Clock Timing (PLL Slave mode; PLL Reference Clock = LRCK or BCLK pin & DSP mode; MSBS = 0) 1/fs VIH LRCK VIL tLRCKH tBLR tBCK VIH BCLK (BCKP = "1") VIL tBCKH tBCKL VIH BCLK (BCKP = "0") VIL Figure 8. Clock Timing (PLL Slave mode; PLL Reference Clock = LRCK or BCLK pin & DSP mode; MSBS = 1) MS0623-E-01 2014/09 - 16 - [AK5702] 1/fCLK VIH MCKI VIL tCLKH tCLKL 1/fs VIH LRCK VIL tLRCKH tLRCKL tBCK Duty = tLRCKH x fs x 100 = tLRCKL x fs x 100 VIH BCLK VIL tBCKH tBCKL fMCK 50%DVDD MCKO tMCKL dMCK = tMCKL x fMCK x 100 Figure 9. Clock Timing (PLL Slave mode; PLL Reference Clock = MCKI pin & Except DSP mode) tLRCKH VIH LRCK VIL tLRB VIH BCLK VIL (BCKP = "0") VIH BCLK (BCKP = "1") VIL tBSD SDTO MSB 50%DVDD Figure 10. Audio Interface Timing (PLL Slave mode & DSP mode; MSBS = 0) MS0623-E-01 2014/09 - 17 - [AK5702] tLRCKH VIH LRCK VIL tLRB VIH BCLK VIL (BCKP = "1") VIH BCLK (BCKP = "0") VIL tBSD SDTO 50%DVDD MSB Figure 11. Audio Interface Timing (PLL Slave mode & DSP mode; MSBS = 1) 1/fCLK VIH MCKI VIL tCLKH tCLKL 1/fs VIH LRCK VIL tLRCKH tLRCKL Duty = tLRCKH x fs x 100 tLRCKL x fs x 100 tBCK VIH BCLK VIL tBCKH tBCKL Figure 12. Clock Timing (EXT Slave mode) MS0623-E-01 2014/09 - 18 - [AK5702] VIH LRCK VIL tBLR tLRB VIH BCLK VIL tLRD tBSD SDTO MSB 50%DVDD Figure 13. Audio Interface Timing (PLL/EXT Slave mode) VIH LRCK VIL tBLR tLRB VIH BCLK VIL tBSD SDTO 50%DVDD tTDMS tTDMH VIH TDMIN VIL Figure 14. Audio Interface Timing (PLL/EXT Slave mode & TDM mode) MS0623-E-01 2014/09 - 19 - [AK5702] VIH CSN VIL tCSS tCSH tCCKL tCCKH VIH CCLK VIL tCCK tCDH tCDS VIH CDTI C1 C0 R/W VIL Figure 15. WRITE Command Input Timing tCSW VIH CSN VIL tCSH tCSS VIH CCLK VIL VIH CDTI D2 D1 D0 VIL Figure 16. WRITE Data Input Timing VIH SDA VIL tBUF tLOW tHIGH tR tF tSP VIH SCL VIL tHD:STA Stop tHD:DAT tSU:DAT Start tSU:STA Start tSU:STO Stop Figure 17. I2CBUS Timing MS0623-E-01 2014/09 - 20 - [AK5702] PMADAL bit or PMADAR bit or PMADBL bit or PMADBR bit tPDV SDTO 50%DVDD Figure 18. Power Down & Reset Timing 1 tPD PDN VIL Figure 19. Power Down & Reset Timing 2 MS0623-E-01 2014/09 - 21 - [AK5702] OPERATION OVERVIEW System Clock There are the following five clock modes to interface with external devices (Table 1 and Table 2.) Mode PMPLL bit M/S bit PLL3-0 bits Figure PLL Master Mode (Note 27) 1 1 See Table 4 Figure 20 PLL Slave Mode 1 1 0 See Table 4 Figure 21 (PLL Reference Clock: MCKI pin) PLL Slave Mode 2 1 0 See Table 4 Figure 22 (PLL Reference Clock: LRCK or BCLK pin) EXT Slave Mode 0 0 x Figure 23 EXT Master Mode (Note 28) 0 1 x Figure 24 Note 27. If M/S bit = "1", PMPLL bit = "0" and MCKO bit = "1" during the setting of PLL Master Mode, the invalid clocks are output from MCKO pin when MCKO bit is "1". Note 28. In case of EXT Master Mode, the register should be set as Figure 64. Table 1. Clock Mode Setting (x: Don't care) Mode MCKO bit 0 PLL Master Mode 1 PLL Slave Mode 1 (PLL Reference Clock: MCKI pin) 0 1 MCKO pin "L" Selected by PS1-0 bits "L" Selected by PS1-0 bits MCKI pin BCLK pin LRCK pin Selected by PLL3-0 bits BCLK pin (Selected by BCKO1-0 bits) LRCK pin (1fs) Selected by PLL3-0 bits BCLK pin ( 32fs) LRCK pin (1fs) PLL Slave Mode 2 (PLL Reference Clock: LRCK or BCLK pin) 0 "L" GND EXT Slave Mode 0 "L" Selected by FS1-0 bits BCLK pin (Selected by PLL3-0 bits) BCLK pin ( 32fs) EXT Master Mode 0 "L" Selected by FS1-0 bits BCLK pin (Selected by BCKO1-0 bits) LRCK pin (1fs) LRCK pin (1fs) LRCK pin (1fs) Table 2. Clock pins state in Clock Mode Master Mode/Slave Mode The M/S bit selects either master or slave mode. M/S bit = "1" selects master mode and "0" selects slave mode. When the AK5702 is power-down mode (PDN pin = "L") and exits reset state, the AK5702 is slave mode. After exiting reset state, the AK5702 goes to master mode by changing M/S bit = "1". When the AK5702 is used by master mode, LRCK and BCLK pins are a floating state until M/S bit becomes "1". LRCK and BICK pins of the AK5702 should be pulled-down or pulled-up by the resistor (about 100k) externally to avoid the floating state. When PDN pin is "H" and PMVCM bit becomes "L", LRCK, BCLK pin output "L" or "H". In this situation, it is possible to draw the current into pulled-down or pulled-up resister. This current can stop by setting M/S bit to "0". PDN pin L H H H H PMVCM bit M/S bit Mode L L Slave L L Slave L H Master H L Slave H H Master Table 3. Select Master/Salve Mode MS0623-E-01 LRCK,BCLK pin Input Input Output "L" or "H" Input Output 2014/09 - 22 - [AK5702] PLL Mode When PMPLL bit is "1", a fully integrated analog phase locked loop (PLL) generates a clock that is selected by the PLL3-0 and FS3-0 bits. The PLL lock time is shown in Table 4, whenever the AK5702 is supplied to a stable clocks after PLL is powered-up (PMPLL bit = "0" "1") or sampling frequency changes. 1) Setting of PLL Mode Mode PLL3 bit PLL2 Bit PLL1 bit PLL0 bit 0 2 0 0 0 0 0 1 0 0 PLL Reference Clock Input Pin LRCK pin BCLK pin 3 0 0 1 1 BCLK pin 4 5 6 7 8 9 12 13 14 15 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 Input Frequency 1fs 32fs 64fs R and C of VCOC pin C[F] R[] 6.8k 10k 10k 10k 10k 10k 10k 10k 10k 10k 10k 10k 10k 10k 10k 220n 4.7n 10n 4.7n 10n 4.7n 4.7n 4.7n 4.7n 4.7n 4.7n 10n 10n 220n 220n PLL Lock Time (max) 80ms 2ms 4ms 2ms 4ms 40ms 40ms 40ms 40ms 40ms 40ms 40ms 40ms 60ms 60ms MCKI pin 11.2896MHz MCKI pin 12.288MHz MCKI pin 12MHz MCKI pin 24MHz MCKI pin 19.2MHz MCKI pin 12MHz (Note 29) MCKI pin 13.5MHz MCKI pin 27MHz MCKI pin 13MHz MCKI pin 26MHz Others Others N/A Note 29. See Table 5 regarding the difference between PLL3-0 bits = "0110"(Mode 6) and "1001"(Mode 9). Clock jitter is lower in Mode9 than Mode6 respectively. Table 4. Setting of PLL Mode (fs: Sampling Frequency) (default) 2) Setting of sampling frequency in PLL Mode When PLL reference clock input is MCKI pin, the sampling frequency is selected by FS3-0 bits as defined in Table 5. Mode FS3 bit FS2 bit FS1 bit FS0 bit Sampling Frequency 0 0 0 0 0 8kHz 1 0 0 0 1 12kHz 2 0 0 1 0 16kHz 3 0 0 1 1 24kHz 7.35kHz 4 0 1 0 0 7.349918kHz (Note 30) 11.025kHz 5 0 1 0 1 11.024877kHz (Note 30) 14.7kHz 6 0 1 1 0 14.69984kHz (Note 30) 22.05kHz 7 0 1 1 1 22.04975kHz (Note 30) 32kHz 10 1 0 1 0 48kHz 11 1 0 1 1 29.4kHz 14 1 1 1 0 29.39967kHz (Note 30) 44.1kHz 15 1 1 1 1 (default) 44.0995kHz (Note 30) Others Others N/A Note 30. In case of PLL3-0 bits = "1001" Table 5. Setting of Sampling Frequency at PMPLL bit = "1" and Reference Clock=MCKI pin MS0623-E-01 2014/09 - 23 - [AK5702] When PLL reference clock input is LRCK or BCLK pin, the sampling frequency is selected by FS3 and FS2 bits (Table 6). Mode FS3 bit FS2 bit FS1 bit FS0 bit Sampling Frequency Range 0 0 Don't care Don't care 7.35kHz fs 12kHz 0 0 1 Don't care Don't care 12kHz < fs 24kHz 1 1 Don't care Don't care Don't care 24kHz < fs 48kHz 2 (default) Others Others N/A Table 6. Setting of Sampling Frequency at PMPLL bit = "1" and Reference=LRCK/BCLK PLL Unlock State 1) PLL Master Mode (PMPLL bit = "1", M/S bit = "1") In this mode, LRCK and BCLK pins go to "L" and irregular frequency clock is output from MCKO pins at MCKO bit is "1" before the PLL goes to lock state after PMPLL bit = "0" "1". If MCKO bit is "0", MCKO pin goes to "L" (Table 7). In DSP Mode 0, BCLK and LRCK start to output corresponding to Lch data after PLL goes to lock state by setting PMPLL bit = "0" "1". When MSBS bit = "0" and BCKP bit = "1" or MSBS bit = "1" and BCKP bit = "0" in DSP Mode 0, BCLK "H" time of the first pulse becomes shorter by 1/(256fs) than "H" time except for the first pulse. When sampling frequency is changed, BCLK and LRCK pins do not output irregular frequency clocks but go to "L" by setting PMPLL bit to "0". MCKO pin BCLK pin MCKO bit = "0" MCKO bit = "1" After that PMPLL bit "0" "1" "L" Output Invalid "L" Output PLL Unlock (except above case) "L" Output Invalid Invalid PLL Lock "L" Output See Table 9 See Table 10 Table 7. Clock Operation at PLL Master Mode (PMPLL bit = "1", M/S bit = "1") PLL State LRCK pin "L" Output Invalid 1fs Output 2) PLL Slave Mode (PMPLL bit = "1", M/S bit = "0") In this mode, an invalid clock is output from MCKO pin before the PLL goes to lock state after PMPLL bit = "0" "1". After that, the clock selected by Table 9 is output from MCKO pin when PLL is locked. The ADC output invalid data when the PLL is unlocked. MCKO pin MCKO bit = "0" MCKO bit = "1" After that PMPLL bit "0" "1" "L" Output Invalid PLL Unlock (except above case) "L" Output Invalid PLL Lock "L" Output See Table 9 Table 8. Clock Operation at PLL Slave Mode (PMPLL bit = "1", M/S bit = "0") PLL State MS0623-E-01 2014/09 - 24 - [AK5702] PLL Master Mode (PMPLL bit = "1", M/S bit = "1") When an external clock (11.2896MHz, 12MHz, 12.288MHz, 13MHz, 13.5MHz, 19.2MHz, 24MHz, 26MHz or 27MHz) is input to MCKI pin, the MCKO, BCLK and LRCK clocks are generated by an internal PLL circuit. The MCKO output frequency is selected by PS1-0 bits (Table 9) and the output is enabled by MCKO bit. The BCLK output frequency is selected among 32fs or 64fs, by BCKO1-0 bits (Table 10). 11.2896MHz, 12MHz, 12.288MHz, 13MHz 13.5MHz, 19.2MHz, 24MHz, 26MHz, 27MHz DSP or P AK5702 MCKI 256fs/128fs/64fs/32fs MCKO 32fs, 64fs BCLK 1fs LRCK MCLK BCLK LRCK SDTI SDTOA/B Figure 20. PLL Master Mode Mode PS1 bit PS0 bit MCKO pin 0 0 0 256fs (default) 1 0 1 128fs 2 1 0 64fs 3 1 1 32fs Table 9. MCKO Output Frequency (PLL Mode, MCKO bit = "1") BCLK Output Frequency 0 0 N/A 0 1 32fs (default) 1 0 64fs 1 1 N/A Table 10. BCLK Output Frequency at Master Mode BCKO1 bit BCKO0 bit MS0623-E-01 2014/09 - 25 - [AK5702] PLL Slave Mode (PMPLL bit = "1", M/S bit = "0") A reference clock of PLL is selected among the input clocks to MCKI, BCLK or LRCK pin. The required clock to the AK5702 is generated by an internal PLL circuit. Input frequency is selected by PLL3-0 bits (Table 4). a) PLL Slave Mode 1 (PLL reference clock: MCKI pin) BCLK and LRCK inputs should be synchronized with MCKO output. The phase between MCKO and LRCK dose not matter. MCKO pin outputs the frequency selected by PS1-0 bits (Table 9) and the output is enabled by MCKO bit. Sampling frequency can be selected by FS3-0 bits (Table 5). 11.2896MHz, 12MHz, 12.288MHz, 13MHz 13.5MHz, 19.2MHz, 24MHz, 26MHz, 27MHz AK5702 DSP or P MCKI MCKO BCLK LRCK 256fs/128fs/64fs/32fs 32fs 1fs MCLK BCLK LRCK SDTI SDTOA/B Figure 21. PLL Slave Mode 1 (PLL Reference Clock: MCKI pin) The external clocks (MCKI, BCLK and LRCK) should always be present whenever the ADC is in operation (PMADAL bit = "1" or PMADAR bit = "1" or PMADBL bit = "1" or PMADBR bit = "1"). If these clocks are not provided, the AK5702 may draw excess current and it is not possible to operate properly because utilizes dynamic refreshed logic internally. If the external clocks are not present, the ADC should be in the power-down mode (PMADAL= PMADAR = PMADBL = PMADBR bits = "0"). b) PLL Slave Mode 2 (PLL reference clock: BCLK or LRCK pin) Sampling frequency corresponds to 7.35kHz to 48kHz by changing FS3-0 bits (Table 6). AK5702 DSP or P MCKI BCLK LRCK 32fs, 64fs 1fs BCLK LRCK SDTI SDTOA/B Figure 22. PLL Slave Mode 2 (PLL Reference Clock: LRCK or BCLK pin) MS0623-E-01 2014/09 - 26 - [AK5702] EXT Slave Mode (PMPLL bit = "0", M/S bit = "0") When PMPLL bit is "0", the AK5702 becomes EXT mode. Master clock is input from MCKI pin, the internal PLL circuit is not operated. This mode is compatible with I/F of the normal audio CODEC. The clocks required to operate are MCKI (256fs, 512fs or 1024fs), LRCK (fs) and BCLK (32fs). The master clock (MCKI) should be synchronized with LRCK. The phase between these clocks does not matter. The input frequency of MCKI is selected by FS3-0 bits (Table 11). Mode 0 1 2 3 4 MCKI Input Sampling Frequency Frequency Range 00, 01, 11 0 0 256fs 7.35kHz 48kHz 00, 01, 11 0 1 1024fs 7.35kHz 13kHz 00, 01, 11 1 0 512fs 7.35kHz 26kHz 00, 01, 11 1 1 256fs 7.35kHz 48kHz 10 Don't care Don't care N/A Table 11. MCKI Frequency at EXT Slave Mode (PMPLL bit = "0", M/S bit = "0") FS3-2 bits FS1 bit FS0 bit (default) The external clocks (MCKI, BCLK and LRCK) should always be present whenever the ADC is in operation (PMADAL bit = "1" or PMADAR bit = "1" or PMADBL bit = "1" or PMADBR bit = "1"). If these clocks are not provided, the AK5702 may draw excess current and it is not possible to operate properly because utilizes dynamic refreshed logic internally. If the external clocks are not present, the ADC should be in the power-down mode (PMADAL= PMADAR = PMADBL = PMADBR bits = "0"). AK5702 DSP or P MCKO 256fs, 512fs or 1024fs MCKI MCLK 32fs BCLK 1fs LRCK BCLK LRCK SDTI SDTOA/B Figure 23. EXT Slave Mode MS0623-E-01 2014/09 - 27 - [AK5702] EXT Master Mode (PMPLL bit = "0", M/S bit = "1", TE3-0 bits = "0101", TMASTER bit = "1") The AK5702 becomes EXT Master Mode by setting as Figure 63. Master clock is input from MCKI pin, the internal PLL circuit is not operated. The clock required to operate is MCKI (256fs, 512fs or 1024fs). The input frequency of MCKI is selected by FS3-0 bits (Table 12). Mode FS3-2 bits 0 1 2 3 4 00, 01, 11 00, 01, 11 00, 01, 11 00, 01, 11 10 MCKI Input Sampling Frequency Frequency Range 0 0 256fs 7.35kHz 48kHz 0 1 1024fs 7.35kHz 13kHz 1 0 512fs 7.35kHz 26kHz 1 1 256fs 7.35kHz 48kHz Don't care Don't care N/A Table 12. MCKI Frequency at EXT Master Mode FS1 bit FS0 bit (default) MCKI should always be present whenever the ADC is in operation (PMADAL bit = "1" or PMADAR bit = "1" or PMADBL bit = "1" or PMADBR bit = "1"). If MCKI is not provided, the AK5702 may draw excess current and it is not possible to operate properly because utilizes dynamic refreshed logic internally. If MCKI is not present, the ADC should be in the power-down mode (PMADAL= PMADAR = PMADBL = PMADBR bits = "0"). AK5702 DSP or P MCKO 256fs, 512fs or 1024fs MCKI MCLK 32fs or 64fs BCLK 1fs LRCK BCLK LRCK SDTI SDTOA/B Figure 24. EXT Master Mode BCLK Output Frequency 0 0 N/A 0 1 32fs (default) 1 0 64fs 1 1 N/A Table 13. BCLK Output Frequency at Master Mode BCKO1 bit BCKO0 bit MS0623-E-01 2014/09 - 28 - [AK5702] Audio Interface Format Fore types of data format are available and are selected by setting the M/S, TDM1-0, DIF1-0 bits (Table 14, Table 15, Table 16). In all modes, the serial data is MSB first, 2's complement format. Audio interface formats can be used in both master and slave modes. The SDTO is clocked out on the falling edge ("") of BCLK except DSP mode. In TDM128 mode at master operation, BCLK becomes 128fs independent of select the BCLK1-0 bits. In TDM256 mode at master operation, BCLK becomes 256fs independent of select the BCLK1-0 bits. TDM mode dose not correspond the PLL Slave Mode2. Mode 0 1 2 3 4 5 6 7 M/S 0 0 0 0 1 1 1 1 TDM1 0 0 0 0 0 0 0 0 TDM0 DIF1 DIF0 SDTOA/B BCLK 0 0 0 DSP Mode 0 32fs 0 0 1 Reserved 0 1 0 MSB justified 32fs 0 1 1 I2S compatible 32fs 0 0 0 DSP Mode 0 32fs 0 0 1 Reserved 0 1 0 MSB justified 32fs or 64fs 0 1 1 I2S compatible 32fs or 64fs Table 14. Audio Interface Format (Stereo Mode) Figure Figure 25 Figure 29 Figure 30 Figure 25 Figure 29 Figure 30 Mode 8 9 10 11 12 13 14 15 M/S 0 0 0 0 1 1 1 1 TDM1 0 0 0 0 0 0 0 0 TDM0 DIF1 DIF0 SDTOB BCLK 1 0 0 Reserved 1 0 1 Reserved 1 1 0 MSB justified 128fs 1 1 1 I2S compatible 128fs 1 0 0 Reserved 1 0 1 Reserved 1 1 0 MSB justified 128fs 1 1 1 I2S compatible 128fs Table 15. Audio Interface Format (TDM128 Mode, 8ch) Figure Figure 31 Figure 32 Figure 31 Figure 32 Mode 16 17 18 19 20 21 22 23 M/S 0 0 0 0 1 1 1 1 TDM1 1 1 1 1 1 1 1 1 TDM0 DIF1 DIF0 SDTOB BCLK 1 0 0 Reserved 1 0 1 Reserved 1 1 0 MSB justified 256fs 1 1 1 I2S compatible 256fs 1 0 0 Reserved 1 0 1 Reserved 1 1 0 MSB justified 256fs 1 1 1 I2S compatible 256fs Table 16. Audio Interface Format (TDM256 Mode, 8ch) Figure Figure 33 Figure 34 Figure 33 Figure 34 (default) Belows are minimam voltage of DVDD at the audio interface respectivity. Stereo Mode: DVDD = 1.6 ~ 3.6V TDM128 Mode: DVDD = 2.0 ~ 3.6V TDM256 Mode: DVDD = 2.7 ~ 3.6V Note. In TDM mode at master operation, LRCK can be output by writing "0101" at TE3-0 bits and "1" at TMASTER bit. MS0623-E-01 2014/09 - 29 - [AK5702] In DSP mode 0, the audio I/F timing is changed by BCKP and MSBS bits. When BCKP bit is "0", SDTO data is output by rising edge ("") of BCLK/BCLK. When BCKP bit is "1", SDTO data is output by falling edge ("") of BCLK/BCLK. MSB data position of SDTO can be shifted by MSBS bit. The shifted period is a half of BCLK/BCLK. DIF1 0 DIF0 0 MSBS BCKP 0 0 0 1 1 0 1 1 Audio Interface Format MSB of SDTO is output by the rising edge ("") of the first BCLK after the rising edge ("") of LRCK. MSB of SDTO is output by the falling edge ("") of the first BCLK after the rising edge ("") of LRCK. MSB of SDTO is output by next rising edge ("") of the falling edge ("") of the first BCLK after the rising edge ("") of LRCK. MSB of SDTO is output by next falling edge ("") of the rising edge ("") of the first BCLK after the rising edge ("") of LRCK. Table 17. Audio Interface Format in Mode 0 Figure Figure 25 Figure 26 Figure 27 Figure 28 If 16-bit data that ADC outputs is converted to 8-bit data by removing LSB 8-bit, "1" at 16bit data is converted to "1" at 8-bit data. And when the DAC playbacks this 8-bit data, "1" at 8-bit data will be converted to "256" at 16-bit data and this is a large offset. This offset can be removed by adding the offset of "128" to 16-bit data before converting to 8-bit data. MS0623-E-01 2014/09 - 30 - [AK5702] LRCK (M/S=0) LRCK (M/S=1) 15 0 1 8 2 14 15 16 17 18 29 30 31 0 1 8 2 14 15 16 17 18 13 30 31 BCLK(32fs) Rch Lch SDTOA/B(o) 8 15 14 2 1 0 Rch Lch 15 14 2 1 0 8 15 14 2 1 0 1/fs 15 14 2 1 0 1/fs 15:MSB, 0:LSB Figure 25. Mode 0, 4 Timing (Stereo Mode, DSP Mode 0, MSBS = "0", BCKP = "0") LRCK (M/S=0) LRCK (M/S=1) 15 0 1 8 2 14 15 16 17 18 29 30 31 0 1 8 2 14 15 16 17 18 13 30 31 BCLK(32fs) Rch Lch SDTOA/B(o) 8 15 14 2 1 0 Rch Lch 15 14 2 1 8 15 14 0 2 1 0 1/fs 15 14 2 1 0 1/fs 15:MSB, 0:LSB Figure 26. Mode 0, 4 Timing (Stereo Mode, DSP Mode 0, MSBS = "0", BCKP = "1") LRCK(M/S=0) LRCK(M/S=1) 15 0 1 8 2 14 15 16 17 18 29 30 31 0 1 8 2 14 15 16 17 18 13 30 31 BCLK(32fs) Rch Lch SDTOA/B(o) 8 15 14 2 1 Rch Lch 15 14 0 2 1 0 8 15 14 2 1 0 1/fs 15 14 2 1 0 1/fs 15:MSB, 0:LSB Figure 27. Mode 0, 4 Timing (Stereo Mode, DSP Mode 0, MSBS = "1", BCKP = "0") LRCK (M/S=0) LRCK (M/S=1) 15 0 1 8 2 14 15 16 17 18 29 30 31 0 1 8 2 14 15 16 17 18 13 30 31 BCLK(32fs) Rch Lch SDTOA/B(o) 15 14 8 2 1 0 15 14 Rch Lch 2 1/fs 1 0 15 14 8 2 1 0 15 14 2 1 0 1/fs 15:MSB, 0:LSB Figure 28. Mode 0, 4 Timing (Stereo Mode, DSP Mode 0, MSBS = "1", BCKP = "1") MS0623-E-01 2014/09 - 31 - [AK5702] LRCK 0 1 2 8 3 9 10 11 12 13 14 15 0 1 2 8 3 9 10 11 12 13 14 15 0 1 BCLK(32fs) 15 14 13 SDTO(o) 0 1 2 8 7 3 6 14 5 15 4 16 3 17 2 1 18 0 15 14 13 31 0 1 2 8 7 3 6 14 5 15 4 16 3 17 2 1 18 0 31 15 0 1 BCLK(64fs) 15 14 13 SDTOA/B(o) 13 2 1 0 15 14 13 2 1 2 1 0 15 15:MSB, 0:LSB Lch Data Rch Data Figure 29. Mode 2, 6 Timing (Stereo Mode, MSB justified) LRCK 0 1 2 3 4 9 10 11 12 13 14 15 0 1 2 3 4 9 10 11 12 13 14 15 0 1 BCLK(32fs) 0 SDTO(o) 0 15 1 14 13 2 3 7 4 7 14 6 15 5 16 4 17 3 18 2 1 0 31 0 15 14 13 1 2 3 7 4 7 14 6 15 5 16 4 17 3 18 2 1 31 0 0 1 BCLK(64fs) SDTOA/B(o) 15 14 13 2 1 0 15 14 13 2 1 2 0 15:MSB, 0:LSB Rch Data Lch Data Figure 30. Mode 3, 7 Timing (Stereo Mode, I2S compatible) 128 BCLK LRCK (Mode 14) LRCK (Mode 10) BCLK (128fs) SDTOB (o) 15 14 0 15 14 0 15 14 0 15 14 0 L1 R1 L2 R2 16 BCLK 16 BCLK 16 BCLK 16 BCLK 15 14 Figure 31. Mode 10, 14 Timing (TDM128 mode, MSB justified) MS0623-E-01 2014/09 - 32 - [AK5702] 128 BCLK LRCK (Mode 15) LRCK (Mode 11) BCLK (128fs) SDTOB (o) 15 0 15 0 15 0 15 0 L1 R1 L2 R2 16 BCLK 16 BCLK 16 BCLK 16 BCLK 15 Figure 32. Mode 11, 15 Timing (TDM128 mode, I2S compatible) 256 BCLK LRCK (Mode 22) LRCK (Mode 18) BCLK (256fs) SDTOB (o) 15 14 0 15 14 0 15 14 0 15 14 0 L1 R1 L2 R2 32 BCLK 32 BCLK 32 BCLK 32 BCLK 15 14 Figure 33. Mode 18, 22 Timing (TDM256 Mode, MSB justified) 256 BCLK LRCK (Mode 23) LRCK (Mode 19) 5) BCLK (256fs) SDTOB (o) 15 0 15 0 15 0 15 0 L1 R1 L2 R2 32 BCLK 32 BCLK 32 BCLK 32 BCLK 23 Figure 34. Mode 19, 23 Timing (TDM256 mode, I 2S compatible) MS0623-E-01 2014/09 - 33 - [AK5702] Cascade TDM Mode The AK5702 supports cascading of up to two devices in a daisy chain configuration at TDM mode. In this mode, SDTOB pin of device #1 is connected to TDMIN pin of device #2. SDTOB pin of device #2 can output 8ch TDM data multiplexed with 4ch TDM data of device #1 and 4ch TDM data of device #2. Figure 35 and Figure 37 show a connection example of a daisy chain. AK5702 #1 MCLK 256fs LRCK 48kHz BLCK 128fs TDMIN GND SDTOA SDTOB MCLK AK5702 #2 LRCK BLCK TDMIN SDTOA 8ch TDM SDTOB Figure 35. Cascade TDM Connection example (TDM128, MSB justified) 128 BCLK LRCK BCLK(128fs) #1 SDTOB(o) #2 TDMIN(i) #2 SDTOB(o) 15 14 0 15 14 0 15 14 0 15 14 0 L1 R1 L2 R2 16 BCLK 16 BCLK 16 BCLK 16 BCLK 15 14 0 15 14 0 15 14 0 15 14 0 L1 R1 L2 R2 16 BCLK 16 BCLK 16 BCLK 16 BCLK 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 15 14 L1-#2 R1-#2 L2-#2 R2-#2 L1-#1 R1-#1 L2-#1 R2-#1 16 BCLK 16 BCLK 16 BCLK 16 BCLK 16 BCLK 16 BCLK 16 BCLK 16 BCLK 0 Figure 36. Cascade TDM128 Timing example MS0623-E-01 2014/09 - 34 - [AK5702] AK5702 #1 MCLK 256fs LRCK 48kHz BLCK 256fs TDMIN GND SDTOA SDTOB MCLK AK5702 #2 LRCK BLCK TDMIN SDTOA 8ch TDM SDTOB Figure 37. Cascade TDM Connection example (TDM256, MSB justified) 256 BCLK LRCK BCLK(256fs) #1 SDTOB(o) #2 TDMIN(i) #2 SDTOB(o) 15 14 0 15 14 0 15 14 0 15 14 0 L1 R1 L2 R2 32 BCLK 32 BCLK 32 BCLK 32 BCLK 15 14 0 15 14 0 15 14 0 15 14 0 L1 R1 L2 R2 32 BCLK 32 BCLK 32 BCLK 32 BCLK 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 15 14 0 L1-#2 R1-#2 L2-#2 R2-#2 L1-#1 R1-#1 L2-#1 R2-#1 32 BCLK 32 BCLK 32 BCLK 32 BCLK 32 BCLK 32 BCLK 32 BCLK 32 BCLK 15 14 Figure 38. Cascade TDM256 Timing example MS0623-E-01 2014/09 - 35 - [AK5702] Mono/Stereo Selection PMADAL, PMADAR and MIXA bits select mono or stereo mode of ADCA output data. PMADBL, PMADBR and MIXB bits select mono or stereo mode of ADCB output data. ALC operation (ALC bit = "1") or digital volume operation (ALC bit = "0") is applied to the data in Table 18 and Table 19. PMADAL bit 0 0 1 1 PMADBL bit 0 0 1 1 PMADAR bit 0 1 0 MIXA bit ADCA Lch data ADCA Rch data x All "0" All "0" x Rch Input Signal Rch Input Signal x Lch Input Signal Lch Input Signal 0 Lch Input Signal Rch Input Signal 1 1 (L+R)/2 (L+R)/2 Table 18. ADCA Mono/Stereo Selection (x: Don't care) PMADBR bit 0 1 0 MIXB bit ADCB Lch data ADCB Rch data x All "0" All "0" x Rch Input Signal Rch Input Signal x Lch Input Signal Lch Input Signal 0 Lch Input Signal Rch Input Signal 1 1 (L+R)/2 (L+R)/2 Table 19. ADCB Mono/Stereo Selection (x: Don't care) (default) (default) Digital High Pass Filter The ADC has a digital high pass filter for DC offset cancellation. The cut-off frequency of the HPF is selected by HPFA1-0 and HPFB1-0 bits (Table 20, Table 21) and scales with sampling rate (fs). The default value is 3.4Hz (@fs=44.1kHz). fc fs=44.1kHz fs=22.05kHz fs=11.025kHz 3.4Hz 1.7Hz 0.85Hz 6.8Hz 3.4Hz 1.7Hz 13.6Hz 6.8Hz 3.4Hz 213.9Hz 109.7Hz 54.8Hz Table 20. ADCA Digital HPF Cut-off Frequency HPFA1 bit HPFA0 bit 0 0 1 1 0 1 0 1 fc fs=44.1kHz fs=22.05kHz fs=11.025kHz 3.4Hz 1.7Hz 0.85Hz 6.8Hz 3.4Hz 1.7Hz 13.6Hz 6.8Hz 3.4Hz 213.9Hz 109.7Hz 54.8Hz Table 21. ADCB Digital HPF Cut-off Frequency HPFB1 bit HPFB0 bit 0 0 1 1 0 1 0 1 MS0623-E-01 (default) (default) 2014/09 - 36 - [AK5702] MIC/LINE Input Selector The AK5702 has input selector. When MDIF1 and MDIF2 bits are "0", INAL and INAR bits select LIN1/LIN2 and RIN1/RIN2, INBL and INBR bits select LIN3/LIN4 and RIN3/RIN4 respectively. INA5L and INA5R bits also select LIN5 and RIN5, respectively. Refer to Table 24 about the typical input resistance of LIN5, RIN5. When MDIF1 and MDIF2 bits are "1", LIN1, RIN1, LIN2 and RIN2 pins become LINA+, LINA, RINA and RINA+ pins, LIN3, RIN3, LIN4 and RIN4 pins become LINB+, LINB, RINB and RINB+ pins respectively. In this case, full-differential input is available (Figure 40). MDIFA1 bit MDIFA2 bit 0 0 1 1 0 1 MDIFB1 bit MDIFB2 bit 0 0 1 1 0 1 INA5L bit INAR Lch 0 LIN1 0 1 LIN1 0 1 x LIN1 0 0 LIN2 0 1 LIN2 1 1 x LIN2 0 LIN5 0 1 LIN5 1 x 1 x LIN5 0 x x LIN1 0 1 x x N/A 1 x x x LIN5 0 N/A 0 1 x x LINA+/ 1 x LINA+/ x x x x LINA+/ Table 22. ADCA MIC/Line In Path Select INB5L bit INAL INBL INA5R bit INB5R bit INBR Lch 0 LIN3 0 1 LIN3 0 1 x LIN3 0 0 LIN4 0 1 1 LIN4 1 x LIN4 0 LIN5 0 1 LIN5 1 x 1 x LIN5 0 x x LIN3 0 1 x x N/A 1 x x x LIN5 0 N/A 0 1 x x LINB+/ 1 x LINB+/ x x x x LINB+/ Table 23. ADCB MIC/Line In Path Select MS0623-E-01 Rch RIN1 RIN2 RIN5 RIN1 RIN2 RIN5 RIN1 RIN2 RIN5 RINA+/ N/A RINA+/ N/A RIN2 RIN5 RINA+/ Rch RIN3 RIN4 RIN5 RIN3 RIN4 RIN5 RIN3 RIN4 RIN5 RINB+/ N/A RINB+/ N/A RIN4 RIN5 RINB+/ (default) (default) 2014/09 - 37 - [AK5702] AK5702 LIN1/LINA+ pin INA5L bit INAL bit ADCA Lch RIN1/LINA pin MDIFA1 bit INA5R bit INAR bit RIN2/RINA+ pin ADCA Rch LIN2/RINA pin MDIFA2 bit LIN5 pin RIN5 pin INB5L bit LIN3/LINB+ pin INBL bit ADCB Lch RIN3/LINB pin MDIFB1 bit INB5R bit INBR bit RIN4/RINB+ pin ADCB Rch LIN4/RINB pin MDIFB2 bit Figure 39. Mic/Line Input Selector MS0623-E-01 2014/09 - 38 - [AK5702] AK5702 MPWRA pin 1k MIC-Amp IN1 pin IN1+ pin 1k Figure 40. Connection Example for Full-differential Mic Input (MDIFA1/2 bits = "1") MGAINA1-0 bits 00 00 Don't care 00 01,10,11 01,10,11 Don't care 01,10,11 MGAINB1-0 bits ADCA Input ADCB Input 00 LIN5/RIN5 LIN5/RIN5 Don't care LIN5/RIN5 LIN3-4/RIN3-4 00 LIN1-2/RIN1-2 LIN5/RIN5 01,10,11 LIN5/RIN5 LIN5/RIN5 00 LIN5/RIN5 LIN5/RIN5 Don't care LIN5/RIN5 LIN3-4/RIN3-4 01,10,11 LIN1-2/RIN1-2 LIN5/RIN5 01,10,11 LIN5/RIN5 LIN5/RIN5 Table 24. Input Resistance of LIN5, RIN5 Input Resistance (typ) 30k 20k 15k MIC Gain Amplifier The AK5702 has a gain amplifier for microphone input. The gain of MIC-Amp is selected by the MGAINA1-0, MGAINB1-0 bits (Table 25). The typical input impedance of LIN1-4 and RIN1-4 is 60k(typ)@MGAINA1-0, MGAINB1-0 bits = "00" or 30k(typ)@MGAIN1-0 bits = "01", "10" or "11". Refer to Table 24 about the typical input resistance of LIN5, RIN5. MGAINA/B1 bit 0 0 1 1 MGAINA/B0 bit Input Gain 0 0dB 1 +15dB 0 +30dB 1 +36dB Table 25. Mic Input Gain (default) MIC Power When PMMPA, PMMPB bits = "1", the MPWRA, MPWRB pins supplies power for the microphone. This output voltage is typically 0.75 x AVDD and the load resistance is minimum 0.5k. In case of using two sets of stereo mic, the load resistance is minimum 2k for each channel. No capacitor must not be connected directly to MPWRA, MPWRB pins ( Figure 41, Figure 42). PMMPA/B bit MPWRA/B pin 0 Hi-Z 1 Output Table 26. MIC Power MS0623-E-01 (default) 2014/09 - 39 - [AK5702] MIC Power 2k 2k 2k 2k MPWRA pin Microphone LIN1 pin Microphone RIN1 pin Microphone LIN2 pin Microphone RIN2 pin Line LIN5 pin Line RIN5 pin Figure 41. ADCA MIC Block Circuit MDIFA (MDIFA1=MDIFA2="0") MIC Power 2k 2k 2k 2k MPWRB pin Microphone LIN3 pin Microphone RIN3 pin Microphone LIN4 pin Microphone RIN4 pin Line LIN5 pin Line RIN5 pin Figure 42. ADCB MIC Block Circuit MDIFB (MDIFB1=MDIFB2="0") MS0623-E-01 2014/09 - 40 - [AK5702] ALC Operation When ALCA bit = "1", ALC operation is done for 2ch of ADCA. When ALCB bit = "1", ALC operation is done for 2ch of ADCB. Volumes of Lch and Rch always change in common during ALC operation. When ALC4 bit = "0", ALCA bit = ALCB bit = "1", ALC of ADCA and ADCB operate at the individual. When ALC4 bit = "1", regardless of the setting of ADCA bit and ADCB bit ,ALC operation is done for 4ch of ADCA and ADCB. Volumes of 4ch always change in common during 4ch Link ALC operation. During the 4ch Link ALC operation, the setting of ADCA resisters (LMTHA1-0, ZELMNA, LMATA1-0, ZTMA1-0, WTMA2-0, RGA1-0, REFA7-0, RFSTA1-0) are reflected to the setting of 4ch Link ALC resister, the set of ADCB (LMTHB1-0, ZELMNB, LMATB1-0, ZTMB1-0, WTMB2-0, RGB1-0, REFB7-0, RFSTB1-0) resisters are ignored. 1. ALC Limiter Operation During the 2ch Link ALC limiter operation, when either Lch or Rch exceeds the ALC limiter detection level (Table 28), the IVA/BL and IVA/BR values (same value) are attenuated automatically by the amount defined by the ALC limiter ATT step (Table 29). During the 4ch Link ALC limiter operation, when even one of 4 channels of ADCA and ADCB exceeds the ALC limiter detection level (Table 28), the IVL and IVR values (same value) are attenuated automatically by the amount defined by the ALC limiter ATT step. When ZELMNA/B bit = "0" (zero cross detection is enabled), the IVA/BL and IVA/BR values are changed by ALC limiter operation at the individual zero crossing points of Lch and Rch or at the zero crossing timeout. ZTMA/B1-0 bits set the zero crossing timeout periods of both ALC limiter and recovery operation (Table 30). When LFST bit = "1", if output level exceeds FS, volume is change to 1 step (Lch and Rch are change to same value) immediately (period: 1/fs), if output level dosen't exceed FS, volume is change to 1 step at the individual zero crossing points of Lch and Rch or at the zero crossing timeout. When LFST bit = "1", LMATA/B 1-0 bits are recommended to set "00". When ZELMNA/B bit = "1" (zero cross detection is disabled), IVA/BL and IVA/BR values are immediately (period: 1/fs) changed by ALC limiter operation. Attenuation step is fixed to 1 step regardless as the setting of LMATA/B1-0 bits. The attenuation operation is done continuously until the input signal level becomes ALC limiter detection level (Table 28) or less. After completing the attenuation operation, unless operation is changed to manual, the operation repeats when the input signal level exceeds LMTHA/B1-0 bits. Mode 0 1 2 3 4 ALCA ALCB Operation ALCA Operation 0 Manual Manual (default) 1 Manual 2ch Link 0 2ch Link Manual 1 2ch Link 2ch Link x 4ch Link 4ch Link Table 27. ALC mode Note. ALC4 bit should be changed after ALCA=ALCB bits ="0" or PMADAL=PMADAR= PMADBL=PMADBR bits = "0". When ALC4 bit= "1", only either ADCA or ADCB should not be powered-down. LMTHA/B1 0 0 1 1 ALC4 0 0 0 0 1 ALCB 0 0 1 1 x LMTHA/B0 ALC Limier Detection Level ALC Recovery Waiting Counter Reset Level 0 ALC Output 2.5dBFS 2.5dBFS > ALC Output 4.1dBFS 1 ALC Output 4.1dBFS 4.1dBFS > ALC Output 6.0dBFS 0 ALC Output 6.0dBFS 6.0dBFS > ALC Output 8.5dBFS 1 ALC Output 8.5dBFS 8.5dBFS > ALC Output 12dBFS Table 28. ALC Limiter Detection Level / Recovery Counter Reset Level MS0623-E-01 (default) 2014/09 - 41 - [AK5702] ZELMNA/B LMATA/B1 LMATA/B0 ALC Limiter ATT Step 0 0 1 step 0.375dB 0 1 2 step 0.750dB 1 0 4 step 1.500dB 1 1 8 step 3.000dB x x 1step 0.375dB Table 29. ALC Limiter ATT Step 0 1 ZTMA/B1 ZTMA/B0 0 0 1 1 0 1 0 1 (default) Zero Crossing Timeout Period 8kHz 16kHz 44.1kHz 128/fs 16ms 8ms 2.9ms 256/fs 32ms 16ms 5.8ms 512/fs 64ms 32ms 11.6ms 1024/fs 128ms 64ms 23.2ms Table 30. ALC Zero Crossing Timeout Period (default) 2. ALC Recovery Operation The ALC recovery operation waits for the WTMA/B2-0 bits (Table 31) to be set after completing the ALC limiter operation. If the input signal does not exceed "ALC recovery waiting counter reset level" (Table 28) during the wait time, the ALC recovery operation is done. The IVAL and IVAR values are automatically incremented by RGA/B1-0 bits (Table 32) up to the set reference level (Table 33) with zero crossing detection which timeout period is set by ZTMA/B1-0 bits (Table 30). Then the IVA/BL and IVA/BR are set to the same value for both channels. The ALC recovery operation is done at a period set by WTMA/B2-0 bits. If ZTMA/B1-0 is longer than WTMA/B2-0 and no zero crossing occurs, the ALC recovery operation is done at a period set by ZTMA/B1-0 bits. For example, when the current IVOL value is 30H and RGA/B1-0 bits are set to "01", IVOL is changed to 32H by the auto limiter operation and then the input signal level is gained by 0.75dB (=0.375dB x 2). When the IVOL value exceeds the reference level (REFA/B7-0), the IVOL values are not increased. When "ALC recovery waiting counter reset level (LMTHA/B1-0) Output Signal < ALC limiter detection level (LMTHA/B1-0)" during the ALC recovery operation, the waiting timer of ALC recovery operation is reset. When "ALC recovery waiting counter reset level (LMTHA/B1-0) > 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 level in the large noise can be improved by this fast recovery operation. The speed of fast recovery operation is setted by RFSTA/B1-0 bits (Table 34). WTMA/B2 WTMA/B1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 ALC Recovery Operation Waiting Period 8kHz 16kHz 44.1kHz 0 128/fs 16ms 8ms 2.9ms 1 256/fs 32ms 16ms 5.8ms 0 512/fs 64ms 32ms 11.6ms 1 1024/fs 128ms 64ms 23.2ms 0 2048/fs 256ms 128ms 46.4ms 1 4096/fs 512ms 256ms 92.9ms 0 8192/fs 1024ms 512ms 185.8ms 1 16384/fs 2048ms 1024ms 371.5ms Table 31. ALC Recovery Operation Waiting Period WTMA/B0 MS0623-E-01 (default) 2014/09 - 42 - [AK5702] RGA/B1 0 0 1 1 RGA/B0 GAIN STEP 0 1 step 0.375dB 1 2 step 0.750dB 0 3 step 1.125dB 1 4 step 1.500dB Table 32. ALC Recovery GAIN Step (default) REFA/B7-0 GAIN(dB) Step F1H +36.0 F0H +35.625 EFH +35.25 : : E2H +30.375 E1H +30.0 (default) 0.375dB E0H +29.625 : : 03H 53.25 02H 53.625 01H 54.0 00H MUTE Table 33. Reference Level at ALC Recovery operation RFSTA/B1 bit 0 0 1 1 RFSTA/B0 bit Recovery Speed 0 4 times 1 8 times 0 16times 1 N/A Table 34. Fast Recovery Speed Setting MS0623-E-01 (default) 2014/09 - 43 - [AK5702] 3. Example of ALC Operation Table 35 shows the examples of the ALC setting for mic recording. Register Name Comment LMTHA/B1-0 ZELMNA/B ZTMA/B1-0 Limiter detection Level Limiter zero crossing detection Zero crossing timeout period Recovery waiting period *WTMA/B 2-0 bits should be the same data as ZTMA/B 1-0 bits Maximum gain at recovery operation WTMA/B2-0 REFA/B7-0 IVA/BL7-0, IVA/BR7-0 LMATA/B1-0 LFST RGA/B1-0 RFSTA/B1_0 ALCA/B Data 01 0 00 fs=8kHz Operation 4.1dBFS Enable 16ms Data 01 0 11 fs=44.1kHz Operation 4.1dBFS Enable 23.2ms 000 16ms 011 23.2ms E1H +30dB E1H +30dB 91H 0dB 91H 0dB 00 1 00 00 1 1 step ON 1 step 4 times Enable Gain of IVOL Limiter ATT step 00 1 step Fast Limiter Operation 1 ON Recovery GAIN step 00 1 step Fast Recovery Speed 00 4 times ALC enable 1 Enable Table 35. 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 ALC4 bit = ALCA/B bit = "0" or PMADA/BL=PMADA/BR bits = "0". LMTHA/B1-0, LMATA/B1-0, WTMA/B2-0, ZTMA/B1-0, RGA/B1-0, REFA/B7-0, ZELMNA/B, LFST, RFSTA/B1-0 Example: Limiter = Zero crossing Enable Recovery Cycle = 16ms@8kHz Limiter and Recovery Step = 1 Maximum Gain = +30.0dB Limiter Detection Level = 4.1dBFS Fast Limiter Operation :ON ALCA bit = "1" Manual Mode WR (IVAL/R7-0) * The value of IVOL should be (1) Addr=08H&09H, Data=91H the same or smaller than REF's WR (ZTMA1-0, WTMA2-0, RFSTA1-0) (2) Addr=0AH, Data=00H WR (REFA7-0) (3) Addr=0BH, Data=E1H WR (LFST) (4) Addr=0DH, Data=02H WR (LMATA1-0, RGA1-0, ZELMNA, LMTHA1-0; ALCA= "1") (5) Addr=0CH, Data=81H ALC Operation Note : WR : Write Figure 43. Registers set-up sequence at ALCA operation MS0623-E-01 2014/09 - 44 - [AK5702] Input Digital Volume (Manual Mode) The input digital volume becomes a manual mode when ALC4 bit is "0" and ALCA/B bit is "0". This mode is used in the case shown below. 1. 2. 3. After exiting reset state, set-up the registers for the ALC operation (ZTMA/B1-0, LMTHA/B and etc) When the registers for the ALC operation (Limiter period, Recovery period and etc) are changed. For example; when the change of the sampling frequency. When IVOL is used as a manual volume. IVA/BL7-0 and IVA/BR7-0 bits set the gain of the volume control (Table 36). The IVOL value is changed at zero crossing or timeout. Zero crossing timeout period is set by ZTMA/B1-0 bits. If IVA/BL7-0 or IVA/BR7-0 bits are written during PMADA/BL=PMADA/BR bits = "0", IVOL operation starts with the written values at the end of the ADC initialization cycle after PMADA/BL or PMADA/BR bit is changed to "1". IVA/BL7-0 IVA/BR7-0 F1H F0H EFH : 92H 91H 90H : 03H 02H 01H 00H GAIN (dB) Step +36.0 +35.625 +35.25 : +0.375 0.0 0.375dB 0.375 : 53.25 53.625 54 MUTE Table 36. Input Digital Volume Setting MS0623-E-01 (default) 2014/09 - 45 - [AK5702] When writing to the IVA/BL7-0 and IVA/BR7-0 bits continuouslly, the control register should be written by an interval more than zero crossing timeout. If not, IVA/BL and IVA/BR are not changed since zero crossing counter is reset at every write operation. If the same register value as the previous write operation is written to IVA/BL and IVA/BR, this write operation is ignored and zero crossing counter is not reset. Therefore, IVA/BL and IVA/BR can be written by an interval less than zero crossing timeout. ALCA/B bit ALCA /B Status Disable Enable IVA/BL7-0 bits E1H(+30dB) IVA/BR7-0 bits C6H(+20dB) Internal IVA/BL E1H(+30dB) Internal IVA/BR C6H(+20dB) E1(+30dB) --> F1(+36dB) (1) Disable E1(+30dB) (2) E1(+30dB) --> F1(+36dB) C6H(+20dB) Figure 44. IVOL value during 2ch ALC operation (1) The IVA/BL value becomes the start value if the IVA/BL and IVA/BR are different when the ALC starts. The wait time from ALC bit = "1" to ALC operation start by IVA/BL7-0 bits is at most recovery time (WTMA/B2-0 bits) plus zerocross timeout period (ZTMA/B1-0 bits). (2) Writing to IVA/BL and IVA/BR registers (18H and 19H) is ignored during ALC operation. After ALC is disabled, the IVOL changes to the last written data by zero crossing or timeout. When ALC is enabled again, ALCA/B bit should be set to "1" by an interval more than zero crossing timeout period after ALCA/B bit = "0". MS0623-E-01 2014/09 - 46 - [AK5702] ALC 4ch Link Mode sequence Figure 47 shows the 4ch Link ALC Mode sequence at ALCA bit = ALCB bit = "0" (3) ALC4 bit PMADAL or PMADAR bit (5) (1) PMADBL or PMADBR bit ALCA bit ALCB bit ADCA Operation Power Down ADCB Operation Power Down (7) (2) (6) (4) (4) (4) (4) Manual Mode Manual Mode 4ch Link ALC 4ch Link ALC Manual Mode Manual Mode Power Down Power Down Figure 45. 4ch Link ALC Mode sequence (1) ADCA is powered up by PMADAL bit or PMADAR bit is changed from "0" to "1". (2) ADCB is powered up by PMADBL bit or PMADBR bit is changed from "0" to "1". (3) Both ADCA and ADCB start 4ch Link ALC by ALC4 bit is changed from "0" to "1" at once. At this point the start value of ALC becomes Lch of ADCA (IVAL7-0 bits). (4) When ALC4 bit = "1", ALCA bit and ALCB bit becomes invalid. But ALC4 bit should be "0", when it is changed. (5) When ALC4 bit = "1" "0", ADCA and ADCB become Manual Mode. 2ch link mode can be also set without power down operation by setting ALCA and ALCB bits = "1". (6) ADCB is powered down by setting PMADBL bit or PMADBR bit "0". (7) ADCA is powered down by setting PMADAL bit or PMADAR bit "0". MS0623-E-01 2014/09 - 47 - [AK5702] System Reset Upon power-up, the AK5702 should be reset by bringing the PDN pin = "L". This ensures that all internal registers reset to their initial values. The ADC enters an initialization cycle that starts when the PMADAL or PMADAR or PMADBL or PMADBR bit is changed from "0" to "1". The initialization cycle time is 3088/fs=70.0ms@fs=44.1kHz when HPF1-0 bits are "00" (Table 37). During the initialization cycle, the ADC digital data outputs of both channels are forced to a 2's complement, "0". The ADC output reflects the analog input signal after the initialization cycle is complete. (Note) The recommendaion values in Table 37 are the shortest cycle time that the offset does not occur. The initial data of ADC may have some offset by the external condition such as a use of microphone. If this offset isn't small, the longer initialization cycle should be selected as ADRSTbit="0" in order to prevent the offset data. Or, do not use the initial data of ADC. HPFA/B1 bit HPFA/B0 bit INCA/B bit Cycle 0 0 0 3088/fs 0 1 0 1552/fs 35.2ms 1 0 0 784/fs 17.8ms 1 1 0 3088/fs 1 1 1 1552/fs fs=44.1kHz 70.0ms (Recommendation) 70.0ms (Recommendation) 35.2ms Init Cycle fs=22.05kHz 140.0ms 70.4ms (Recommendation) 35.6ms 140.0ms 70.4ms (Recommendation) fs=11.025kHz 280.1ms (default) 140.8ms 71.1ms (Recommendation) 280.1ms 140.8ms Table 37. ADC Initialization Cycle MS0623-E-01 2014/09 - 48 - [AK5702] Serial Control Interface (1) 3-wire Serial Control Mode (I2C pin = "L") Internal registers may be written by using the 3-wire P interface pins (CSN, CCLK and CDTI). The data on this interface consists of a 2-bit Chip address (2bits, "1x" x is designated by CAD0), Read/Write (Fixed to "1"), Register address (MSB first, 5bits) and Control data (MSB first, 8bits). Each bit is clocked in on the rising edge ("") of CCLK. Address and data are latched on the 16th CCLK rising edge ("") after CSN falling edge(""). CSN should be set to "H" once after 16 CCLKs for each address. Clock speed of CCLK is 5MHz (max). The value of internal registers are initialized by PDN pin = "L". CSN 0 CCLK CDTI 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Clock, "H" or "L" Clock, "H" or "L" "H" or "L" C1 C0 R/W A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 C1-C0: R/W: A4-A0: D7-D0: "H" or "L" Chip Address (C1 = "1", C0 = CAD0) READ/WRITE ("1": WRITE, "0": READ); Fixed to "1" Register Address Control data Figure 46. Serial Control I/F Timing MS0623-E-01 2014/09 - 49 - [AK5702] 2 (2) I C-bus Control Mode (I2C pin = "H") The AK5702 supports the fast-mode I2C-bus (max: 400kHz). (2)-1. WRITE Operations Figure 47 shows the data transfer sequence for the I2C-bus mode. All commands are preceded by a START condition. A HIGH to LOW transition on the SDA line while SCL is HIGH indicates a START condition (Figure 53). 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 five bits of the slave address are fixed as "00100". The next bits are CAD1 and CAD0 (device address bit). This bit identifies the specific device on the bus. The hard-wired input pins (CAD1/0 pins) set these device address bits (Figure 48). If the slave address matches that of the AK5702, the AK5702 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 54). A R/W bit value of "1" indicates that the read operation is to be executed. A "0" indicates that the write operation is to be executed. The second byte consists of the control register address of the AK5702. The format is MSB first, and those most significant 3-bits are fixed to zeros (Figure 49). The data after the second byte contains control data. The format is MSB first, 8bits (Figure 50). The AK5702 generates an acknowledge after each byte has been received. A data transfer is always terminated by a STOP condition generated by the master. A LOW to HIGH transition on the SDA line while SCL is HIGH defines a STOP condition (Figure 53). The AK5702 can perform more than one byte write operation per sequence. After the receipt of the third byte the AK5702 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 6-bit address counter is incremented by one, and the next data is automatically taken into the next address. If the address exceeds 1CH prior to generating a 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 55) 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 47. Data Transfer Sequence at the I2C-Bus Mode 0 0 1 0 0 CAD1 CAD0 R/W (Those CAD1/0 should match with CAD1/0 pins) Figure 48. The First Byte 0 0 A5 A4 A3 A2 A1 A0 D2 D1 D0 Figure 49. The Second Byte D7 D6 D5 D4 D3 Figure 50. Byte Structure after the second byte MS0623-E-01 2014/09 - 50 - [AK5702] (2)-2. READ Operations Set the R/W bit = "1" for the READ operation of the AK5702. 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 6-bit address counter is incremented by one, and the next data is automatically taken into the next address. If the address exceeds 1CH prior to generating a stop condition, the address counter will "roll over" to 00H and the data of 00H will be read out. The AK5702 supports two basic read operations: CURRENT ADDRESS READ and RANDOM ADDRESS READ. (2)-2-1. CURRENT ADDRESS READ The AK5702 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 set to "1", the AK5702 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 to the data but instead generates a stop condition, the AK5702 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 51. CURRENT ADDRESS READ (2)-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 set to "1", the master must first perform a "dummy" write operation. The master issues a 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 set to "1". The AK5702 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 instead generates a stop condition, the AK5702 ceases transmission. S T A R T SDA S T A R T R/W="0" Slave S Address Sub Address(n) A C K Slave S Address 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 52. RANDOM ADDRESS READ MS0623-E-01 2014/09 - 51 - [AK5702] SDA SCL S P start condition stop condition Figure 53. 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 54. Acknowledge on the I2C-Bus SDA SCL data line stable; data valid change of data allowed Figure 55. Bit Transfer on the I2C-Bus MS0623-E-01 2014/09 - 52 - [AK5702] Register Map Addr 00H 01H 02H 03H 04H 05H 06H 07H 08H 09H 0AH 0BH 0CH 0DH 0EH 0FH Register Name Power Management PLL Control Signal Select Mic Gain Control Audio Format Select fs Select Clock Output Select Volume Control Lch Input Volume Control Rch Input Volume Control Timer Select ALC Mode Control 1 ALC Mode Control 2 Mode Control 1 Mode Control 2 Mode Control 3 D7 0 0 0 0 TDM1 HPFA1 INCA 0 IVAL7 IVAR7 0 REFA7 ALCA TE3 0 0 Addr 10H 11H 12H 13H 14H 15H 16H 17H 18H 19H 1AH 1BH 1CH 1DH 1EH Register Name Power Management PLL Control Signal Select Mic Gain Control Audio Format Select fs Select Clock Output Select Volume Control Lch Input Volume Control Rch Input Volume Control Timer Select ALC Mode Control 1 ALC Mode Control 2 Mode Control 1 Mode Control 2 D7 0 0 0 0 0 HPFB1 INCB 0 IVBL7 IVBR7 0 REFB7 ALCB 0 0 D6 0 0 INA5R 0 TDM0 HPFA0 0 0 IVAL6 IVAR6 RFSTA1 REFA6 D5 0 PLL3 INA5L 0 1 BCKO1 0 0 IVAL5 IVAR5 RFSTA0 REFA5 D4 0 PLL2 PMMPA 0 MIXA BCKO0 0 0 IVAL4 IVAR4 WTMA2 REFA4 ZELMNA LMATA1 LMATA0 TE2 0 0 TE1 0 0 TE0 0 0 D6 0 0 INB5R 0 0 HPFB0 0 0 IVBL6 IVBR6 RFSTB1 REFB6 D5 0 0 INB5L 0 1 0 0 0 IVBL5 IVBR5 RFSTB0 REFB5 D4 0 0 PMMPB 0 MIXB 0 0 0 IVBL4 IVBR4 WTMB2 REFB4 ZELMNB LMATB1 LMATB0 0 0 0 0 0 0 D3 0 PLL1 MDIFA2 0 MSBS FS3 0 0 IVAL3 IVAR3 ZTMA1 REFA3 RGA1 0 0 0 D2 D1 D0 PMVCM PMADAR PMADAL PLL0 MDIFA1 0 BCKP FS2 MCKO 0 IVAL2 IVAR2 ZTMA0 REFA2 RGA0 0 0 0 M/S INAR PMPLL INAL MGAINA1 MGAINA0 DIF1 FS1 PS1 0 IVAL1 IVAR1 WTMA1 REFA1 DIF0 FS0 PS0 IVOLAC IVAL0 IVAR0 WTMA0 REFA0 LMTHA1 LMTHA0 LFST ALC4 0 0 D3 0 0 MDIFB2 0 0 0 0 0 IVBL3 IVBR3 ZTMB1 REFB3 RGB1 0 0 D2 0 0 MDIFB1 0 0 0 0 0 IVBL2 IVBR2 ZTMB0 REFB2 RGB0 0 0 TMASTER 0 D1 D0 PMADBR PMADBL 0 INBR 0 INBL MGAINB1 MGAINB0 0 0 0 0 IVBL1 IVBR1 WTMB1 REFB1 0 0 0 IVOLBC IVBL0 IVBR0 WTMB0 REFB0 LMTHB1 LMTHB0 0 0 0 0 Note 31. PDN pin = "L" resets the registers to their default values. Note 32. "0" must be sent to the register written as "0" and "1" must be sent to the register written as "1". For the address 1FH, data must not be written. MS0623-E-01 2014/09 - 53 - [AK5702] Register Definitions Addr 00H Register Name Power Management Default D7 0 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 D1 D0 PMVCM PMADAR PMADAL 0 0 0 PMADAL: MIC-AmpA Lch and ADCA Lch Power Management 0: Power down (default) 1: Power up PMADAR: MIC-AmpA Rch and ADCA Rch Power Management 0: Power down (default) 1: Power up When the PMADAL or PMADAR bit is changed from "0" to "1", the initialization cycle (3088/fs=70.0ms @fs= 44.1kHz, HPFA1-0 bits = "00") starts. After initializing, digital data of the ADC is output. PMVCM: VCOM Power Management 0: Power down (default) 1: Power up When any blocks are powered-up, the PMVCM bit must be set to "1". PMVCM bit can be set to "0" only when PMADAL=PMADAR= PMADBL=PMADBR =PMPLL=PMMPA=PMMPB=MCKO bits = "0". Each block can be powered-down respectively by writing "0" in each bit of this address. When the PDN pin is "L", all blocks are powered-down regardless as setting of this address. In this case, register is initialized to the default value. When PMVCM, PMADAL, PMADAR, PMADBL, PMADBR, PMPLL, PMPLL, PMMPA,PMMPB and MCKO bits are "0", all blocks are powered-down. The register values remain unchanged. When the all ADC is powered-down, external clocks may not be present. When one of the ADC is powered -up, external clocks must always be present. Addr 01H Register Name PLL Control Default D7 0 0 D6 0 0 D5 PLL3 1 D4 PLL2 0 D3 PLL1 0 D2 PLL0 1 D1 M/S 0 D0 PMPLL 0 PMPLL: PLL Power Management 0: EXT Mode and Power Down (default) 1: PLL Mode and Power up M/S: Master / Slave Mode Select 0: Slave Mode (default) 1: Master Mode PLL3-0: PLL Reference Clock Select (Table 4) Default: "1001" (MCKI pin=12MHz) MS0623-E-01 2014/09 - 54 - [AK5702] Addr 02H Register Name Signal Select Default D7 0 0 D6 INA5R 0 D5 INA5L 0 D4 D3 D2 PMMPA MDIFA2 MDIFA1 0 0 0 D4 0 0 D3 0 0 D2 0 0 D1 INAR 0 D0 INAL 0 INAL: ADCA Lch Input Source Select 0: LIN1 pin (default) 1: LIN2 pin INAR: ADCA Rch Input Source Select 0: RIN1 pin (default) 1: RIN2 pin MDIFA1: ADCA Lch Input Type Select 0: Single-ended input (LIN1/LIN2/LIN5 pin: Default) 1: Full-differential input (LINA+/LINA pin) MDIFA2: ADCA Rch Input Type Select 0: Single-ended input (RIN1/RIN2/RIN5 pin: Default) 1: Full-differential input (RINA+/RINA pin) PMMPA: MPWRA pin Power Management 0: Power down: Hi-Z (default) 1: Power up INA5L: ADCA Lch Input Source Select 0: LIN1 or LIN2 pin (default) 1: LIN5 pin INA5R: ADCA Rch Input Source Select 0: RIN1 or RIN2 pin (default) 1: RIN5 pin Addr 03H Register Name Mic Gain Control Default D7 0 0 D6 0 0 D5 0 0 D1 D0 MGAINA1 MGAINA0 0 1 MGAINA1-0: MIC-AmpA Gain Control (Table 25) Default: "01" (+15dB) MS0623-E-01 2014/09 - 55 - [AK5702] Addr 04H Register Name Audio Format Select Default D7 TDM1 0 D6 TDM0 0 D5 1 1 D4 MIXA 0 D3 MSBS 0 D2 BCKP 0 D1 DIF1 1 D0 DIF0 1 DIF1-0: Audio Interface Format (Table 14) Default: "11" (I2S) BCKP: BCLK/BCLK Polarity at DSP Mode (Table 17) 0: SDTO is output by the rising edge ("") of BCLK/BCLK. (default) 1: SDTO is output by the falling edge ("") of BCLK/BCLK. MSBS: LRCK/LRCK Phase at DSP Mode (Table 17) 0: The rising edge ("") of LRCK/LRCK is half clock of BCLK/BCLK before the channel change. (default) 1: The rising edge ("") of LRCK/LRCK is one clock of BCLK/BCLK before the channel change. MIXA: ADCA Output Data Select (Table 18) 0: Normal operation (default) 1: (L+R)/2 TDM1-0: TDM Format Select (Table 14, Table 15 Table 16) Addr 05H Register Name fs Select Default D7 HPFA1 0 D6 HPFA0 0 D5 BCKO1 0 D4 BCKO0 1 D3 FS3 1 D2 FS2 1 D1 FS1 1 D0 FS0 1 FS3-0: Sampling Frequency Select (Table 5 and Table 6) and MCKI Frequency Select (Table 11) Default: "1111" (44.1kHz) FS3-0 bits select sampling frequency at PLL mode and MCKI frequency at EXT mode. BCKO1-0: BCLK Output Frequency Select at Master Mode (Table 10) Default: "01" (32fs) HPFA1-0: Offset Cancel HPF Cut-off Frequency and ADCA Initialization Cycle (Table 20, Table 37) Default: "00" (fc=3.4Hz@fs=44.1kHz, Init Cycle=3088/fs) Addr 06H Register Name Clock Output Select Default D7 INCA 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 MCKO 0 D1 PS1 0 D0 PS0 0 INCA: ADCA Initialization Cycle (Table 37) 0: When HPFA1-0 bits = "00", "01", "10", INCA bit is invalid, when HPFA1-0 bits = "11", ADCA Initialization Cycle becomes 3088/fs. 1: When HPFA1-0 bits = "00", "01", "10", INCA bit is invalid, when HPFA1-0 bits = "11", ADCA Initialization Cycle becomes 1552/fs. PS1-0: MCKO Output Frequency Select (Table 9) Default: "00" (256fs) MCKO: Master Clock Output Enable 0: Disable: MCKO pin = "L" (default) 1: Enable: Output frequency is selected by PS1-0 bits. MS0623-E-01 2014/09 - 56 - [AK5702] Addr 07H Register Name Volume Control Default D7 0 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 0 0 D1 0 0 D0 IVOLAC 1 IVOLAC: Input Digital Volume Control Mode Select 0: Independent 1: Dependent (default) When IVOLAC bit = "1", IVAL7-0 bits control both Lch and Rch volume level, while register values of IVAL7-0 bits are not written to IVAR7-0 bits. When IVOLC bit = "0", IVAL7-0 bits control Lch level and IVAR7-0 bits control Rch level, respectively. Addr 08H 09H Register Name Lch Input Volume Control Rch Input Volume Control Default D7 IVAL7 IVAR7 1 D6 IVAL6 IVAR6 0 D5 IVAL5 IVAR5 0 D4 IVAL4 IVAR4 1 D3 IVAL3 IVAR3 0 D2 IVAL2 IVAR2 0 D1 IVAL1 IVAR1 0 D0 IVAL0 IVAR0 1 D2 ZTMA0 0 D1 WTMA1 0 D0 WTMA0 0 IVAL7-0, IVAR7-0: Input Digital Volume; 0.375dB step, 242 Level (Table 36) Default: "91H" (0dB) Addr 0AH Register Name Timer Select Default D7 0 0 D6 RFSTA1 0 D5 RFSTA0 0 D4 WTMA2 0 D3 ZTMA1 0 WTM2-0: ALCA Recovery Waiting Period (Table 31) Default: "00" (128/fs) A period of recovery operation when any limiter operation does not occur during the ALCA operation. ZTM1-0: ALCA Limiter/Recovery Operation Zero Crossing Timeout Period (Table 30) Default: "00" (128/fs) When the IVOL perform zero crossing or timeout, the IVOL value is changed by the P WRITE operation, ALCA recovery operation. RFSTA1-0: ALCA First recovery Speed (Table 34) Default: "00" (4times) Addr 0BH Register Name ALC Mode Control 1 Default D7 REFA7 1 D6 REFA6 1 D5 REFA5 1 D4 REFA4 0 D3 REFA3 0 D2 REFA2 0 D1 REFA1 0 D0 REFA0 1 REFA7-0: Reference Value at ALC Recovery Operation. 0.375dB step, 242 Level (Table 33) Default: "E1H" (+30.0dB) MS0623-E-01 2014/09 - 57 - [AK5702] Addr 0CH Register Name ALC Mode Control 2 Default D7 ALCA 0 D6 D5 D4 ZELMNA LMATA1 LMATA0 0 0 0 D3 RGA1 0 D2 RGA0 0 D1 D0 LMTHA1 LMTHA0 0 0 D1 LFST 0 D0 ALC4 0 LMTHA1-0: ALCA Limiter Detection Level / Recovery Counter Reset Level (Table 28) Default: "00" RGA1-0: ALCA Recovery GAIN Step (Table 32) Default: "00" LMATA1-0: ALCA Limiter ATT Step (Table 29) Default: "00" ZELMNA: Zero Crossing Detection Enable at ALCA Limiter Operation 0: Enable (default) 1: Disable ALCA: ALC Enable 0: ALCA Disable (default) 1: ALCA Enable Addr 0DH Register Name Mode Control 1 Default D7 TE3 1 D6 TE2 0 D5 TE1 1 D4 TE0 0 D3 0 0 D2 0 0 ALC4: All ALCs Link Mode Enable 0: Disable (default) 1: All ALCs of 4-channel ADC operate at the same time. LFST: ALC Limiter Operation Beyond FS 0: At the Individual Zero Crossing Points or at the Zero Crossing Timeout (default) 1: Immediately TE3-0: EXT Master Mode Enable When TE3-0 bits is set to "0101", the write operation to addr=0EH is enabled. TE3-0 bits should be set to "1010" except for EXT Master Mode. TE3-0 bits must not be set to the value except for "1010" and "0101". Default: "1010" Addr 0EH Register Name Mode Control 2 Default D7 0 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 0 0 D1 TMASTER 0 D0 0 0 TMASTER: EXT Master Mode The write operation to TMASTER bit is enabled when TE3-0 bits = "0101". 0: Except EXT Master Mode (default) 1: EXT Master Mode In TDM mode at master operation, LRCK can be output by writing "1" at TMASTER bit. MS0623-E-01 2014/09 - 58 - [AK5702] Addr 10H Register Name Power Management Default D7 0 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 0 0 D1 D0 PMADBR PMADBL 0 0 PMADBL: MIC-AmpB Lch and ADCB Lch Power Management 0: Power down (default) 1: Power up PMADBR: MIC-AmpB Rch and ADCB Rch Power Management 0: Power down (default) 1: Power up When the PMADBL or PMADBR bit is changed from "0" to "1", the initialization cycle (3088/fs=70.0ms @fs= 44.1kHz, HPFA1-0 bits = "00") starts. After initializing, digital data of the ADC is output. Addr 12H Register Name Signal Select Default D7 0 0 D6 INB5R 0 D5 INB5L 0 D4 D3 D2 PMMPB MDIFB2 MDIFB1 0 0 0 D4 0 0 D3 0 0 D2 0 0 D1 INBR 0 D0 INBL 0 INBL: ADCB Lch Input Source Select 0: LIN3 pin (default) 1: LIN4 pin INBR: ADCB Rch Input Source Select 0: RIN3 pin (default) 1: RIN4 pin MDIFB1: ADCB Lch Input Type Select 0: Single-ended input (LIN3/LIN4/LIN5 pin: Default) 1: Full-differential input (LINB+/LINB pin) MDIFB2: ADCB Rch Input Type Select 0: Single-ended input (RIN3/RIN4/RIN5 pin: Default) 1: Full-differential input (RINB+/RINB pin) PMMPB: MPWRB pin Power Management 0: Power down: Hi-Z (default) 1: Power up INB5L: ADCB Lch Input Source Select 0: LIN3 or LIN4 pin (default) 1: LIN5 pin INB5R: ADCB Rch Input Source Select 0: RIN3 or RIN4 pin (default) 1: RIN5 pin Addr 13H Register Name Mic Gain Control Default D7 0 0 D6 0 0 D5 0 0 D1 D0 MGAINB1 MGAINB0 0 1 MGAINB1-0: MIC-AmpB Gain Control (Table24) Default: "01" (+15dB) MS0623-E-01 2014/09 - 59 - [AK5702] Addr 14H Register Name Audio Format Select Default D7 0 0 D6 0 0 D5 1 1 D4 MIXB 0 D3 0 0 D2 0 0 D1 0 0 D0 0 0 D6 HPFB0 0 D5 0 0 D4 0 0 D3 0 0 D2 0 0 D1 0 0 D0 0 0 MIXB: ADCB Output Data Select (Table 19) 0: Normal operation (default) 1: (L+R)/2 Addr 15H Register Name fs Select Default D7 HPFB1 0 HPFB1-0: Offset Cancel HPF Cut-off Frequency and ADCB Initialization Cycle (Table 21, Table 37) Default: "00" (fc=3.4Hz@fs=44.1kHz, Init Cycle=3088/fs) Addr 16H Register Name Clock Output Select Default D7 INCB 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 0 0 D1 0 0 D0 0 0 INCB: ADCB Initialization Cycle (Table 37) 0: When HPFB1-0 bits = "00", "01", "10", INCA bit is invalid, when HPFB1-0 bits = "11", ADCB Initialization Cycle becomes 3088/fs. 1: When HPFB1-0 bits = "00", "01", "10", INCA bit is invalid, when HPFB1-0 bits = "11", ADCB Initialization Cycle becomes 1552/fs. Addr 17H Register Name Volume Control Default D7 0 0 D6 0 0 D5 0 0 D4 0 0 D3 0 0 D2 0 0 D1 0 0 D0 IVOLBC 1 IVOLBC: Input Digital Volume Control Mode Select 0: Independent 1: Dependent (default) When IVOLBC bit = "1", IVBL7-0 bits control both Lch and Rch volume level, while register values of IVBL7-0 bits are not written to IVBR7-0 bits. When IVOLC bit = "0", IVBL7-0 bits control Lch level and IVBR7-0 bits control Rch level, respectively. Addr 18H 19H Register Name Lch Input Volume Control Rch Input Volume Control Default D7 IVBL7 IVBR7 1 D6 IVBL6 IVBR6 0 D5 IVBL5 IVBR5 0 D4 IVBL4 IVBR4 1 D3 IVBL3 IVBR3 0 D2 IVBL2 IVBR2 0 D1 IVBL1 IVBR1 0 D0 IVBL0 IVBR0 1 IVBL7-0, IVBR7-0: Input Digital Volume; 0.375dB step, 242 Level (Table 36) Default: "91H" (0dB) MS0623-E-01 2014/09 - 60 - [AK5702] Addr 1AH Register Name Timer Select Default D7 0 0 D6 RFSTB1 0 D5 RFSTB0 0 D4 WTMB2 0 D3 ZTMB1 0 D2 ZTMB0 0 D1 WTMB1 0 D0 WTMB0 0 WTM2-0: ALCB Recovery Waiting Period (Table 31) Default: "00" (128/fs) A period of recovery operation when any limiter operation does not occur during the ALCB operation. ZTM1-0: ALCB Limiter/Recovery Operation Zero Crossing Timeout Period (Table 30) Default: "00" (128/fs) When the IVOL perform zero crossing or timeout, the IVOL value is changed by the P WRITE operation, ALCB recovery operation. RFSTB1-0: ALCB First recovery Speed (Table 34) Default: "00"(4times) Addr 1BH Register Name ALC Mode Control 1 Default D7 REFB7 1 D6 REFB6 1 D5 REFB5 1 D4 REFB4 0 D3 REFB3 0 D2 REFB2 0 D1 REFB1 0 D0 REFB0 1 REFB7-0: Reference Value at ALC Recovery Operation. 0.375dB step, 242 Level (Table 33) Default: "E1H" (+30.0dB) Addr 1CH Register Name ALC Mode Control 2 Default D7 ALCB 0 D6 D5 D4 D3 D2 D1 D0 ZELMNB LMATB1 LMATB0 RGB1 RGB0 LMTHB1 LMTHB0 0 0 0 0 0 0 0 LMTHB1-0: ALCBB Limiter Detection Level / Recovery Counter Reset Level (Table 28) Default: "00" RGB1-0: ALCB Recovery GAIN Step (Table 32) Default: "00" LMATB1-0: ALCB Limiter ATT Step (Table 29) Default: "00" ZELMNB: Zero Crossing Detection Enable at ALCB Limiter Operation 0: Enable (default) 1: Disable ALCB: ALC Enable 0: ALCB Disable (default) 1: ALCB Enable MS0623-E-01 2014/09 - 61 - [AK5702] SYSTEM DESIGN Figure 56, Figure 57, Figure 58 shows the system connection diagram for the AK5702. An evaluation board [AKD5702] is available which demonstrates the optimum layout, power supply arrangements and measurement results. MIC 0.1 x Cp (Note) Power Supply 2.4 3.6V Rp 1u + MCKI 17 I2C 18 VSS1 19 AVDD 20 VCOC 21 MPWRA 22 29 LIN4 TEST 12 BCLK 8 DSP 10u 0.1u LRCK SDTOB 9 7 32 RIN3 VSS2 SDTOA 10 6 31 LIN3 DVDD MCKO 11 5 30 RIN4 + P TDMIN 13 Top View 2.2u 0.1u 2.2k 2.2k 2.2k 2.2k 1u AK5702VN CAD0 1u MIC CDTI 14 28 RIN5 4 1u 27 LIN5 PDN 1u MIC CCLK 15 3 1u 26 RIN1 VCOM 1u CSN 16 2 1u LINE 25 LIN1 MPWRB 1u 1 MIC LIN2 23 RIN2 24 0.1u 1u 2.2k 2.2k 2.2k 2.2k 10u Cp + Power Supply 1.6 3.6V Analog Ground Digital Ground Notes: - VSS1 and VSS2 of the AK5702 should be distributed separately from the ground of external controllers. - All digital input pins should not be left floating. - When the AK5702 is EXT mode (PMPLL bit = "0"), a resistor and capacitor of VCOC pin is not needed. - When the AK5702 is PLL mode (PMPLL bit = "1"), a resistor and capacitor of VCOC pin is shown in Table 4. 0.1 x Cp in parallel with Cp+Rp improves PLL jitter characteristics. - Mic input AC coupling capacitor should be 1F or less to start the recording within 100ms. Figure 56. Typical Connection Diagram (MIC Input) MS0623-E-01 2014/09 - 62 - [AK5702] LINE 0.1 x Cp (Note) Power Supply 2.4 3.6V 10u Rp 1u + MCKI 17 I2C 18 VSS1 19 AVDD 20 VCOC 21 MPWRA 22 BCLK + DSP 10u 0.1u 8 SDTOB 9 LRCK 32 RIN3 7 SDTOA 10 VSS2 MCKO 11 31 LIN3 6 30 RIN4 2.2u 0.1u 1u TEST 12 Top View DVDD 1u 29 LIN4 P TDMIN 13 5 LINE AK5702VN 28 RIN5 CAD0 1u CDTI 14 PDN 1u 27 LIN5 4 LINE CCLK 15 3 1u 26 RIN1 VCOM 1u CSN 16 2 1u LINE 25 LIN1 MPWRB 1u 1 LINE LIN2 23 RIN2 24 0.1u 1u Cp + Power Supply 1.6 3.6V Analog Ground Digital Ground Notes: - VSS1 and VSS2 of the AK5702 should be distributed separately from the ground of external controllers. - All digital input pins should not be left floating. - When the AK5702 is EXT mode (PMPLL bit = "0"), a resistor and capacitor of VCOC pin is not needed. - When the AK5702 is PLL mode (PMPLL bit = "1"), a resistor and capacitor of VCOC pin is shown in Table 4. 0.1 x Cp in parallel with Cp+Rp improves PLL jitter characteristics. Figure 57. Typical Connection Diagram (Line Input) MS0623-E-01 2014/09 - 63 - [AK5702] MIC 2.2k 2.2k 10u 1u + 1u 1u MCKI 17 I2C 18 VSS1 19 AVDD 20 VCOC 21 MPWRA 22 AK5702VN 29 LIN4 BCLK 8 LRCK 7 DSP 10u 0.1u DVDD 5 VSS2 CAD0 2.2u 0.1u PDN SDTOB 9 4 SDTOA 10 32 RIN3 3 31 LIN3 VCOM MCKO 11 2.2k 2.2k 2.2k 2.2k 1u TEST 12 Top View 2 1u TDMIN 13 30 RIN4 MPWRB 1u P CDTI 14 6 1u MIC CCLK 15 28 RIN5 1u MIC CSN 16 26 RIN1 27 LIN5 1u LINE 25 LIN1 1 MIC LIN2 23 RIN2 24 0.1u 1u 2.2k 2.2k Power Supply 2.4 3.6V + + Power Supply 1.6 3.6V MIC 2.2k 2.2k 10u 1u + MCKI 17 I2C 18 AVDD 20 VCOC 21 MPWRA 22 VSS1 19 TEST 12 Top View LRCK BCLK 7 8 + 10u 0.1u VSS2 SDTOB 9 6 SDTOA 10 32 RIN3 DVDD 31 LIN3 5 MCKO 11 CAD0 30 RIN4 2.2u 0.1u 2.2k 2.2k 2.2k 2.2k 1u 29 LIN4 TDMIN 13 PDN 1u CDTI 14 AK5702VN 28 RIN5 4 1u MIC 27 LIN5 3 1u 1u MIC CCLK 15 VCOM 1u CSN 16 26 RIN1 2 1u LINE 25 LIN1 MPWRB 1u 1 MIC LIN2 23 RIN2 24 0.1u 1u 2.2k 2.2k Power Supply 2.4 3.6V + Analog Ground Power Supply 1.6 3.6V Digital Ground Notes: - VSS1 and VSS2 of the AK5702 should be distributed separately from the ground of external controllers. - All digital input pins should not be left floating. - When the AK5702 is EXT mode (PMPLL bit = "0"), a resistor and capacitor of VCOC pin is not needed. Figure 58. Typical Connection Diagram (Cascode TDM) MS0623-E-01 2014/09 - 64 - [AK5702] 1. Grounding and Power Supply Decoupling The AK5702 requires careful attention to power supply and grounding arrangements. AVDD and DVDD are usually supplied from the system's analog supply. If AVDD and DVDD are supplied separately, the power-up sequence is not critical. VSS1 and VSS2 of the AK5702 should be connected to the analog ground plane. System analog ground and digital ground should be connected together near to where the supplies are brought onto the printed circuit board. Decoupling capacitors should be as near to the AK5702 as possible, with the small value ceramic capacitor being the nearest. 2. Voltage Reference VCOM is a signal ground of this chip. A 2.2F electrolytic capacitor in parallel with a 0.1F ceramic capacitor attached to the VCOM pin eliminates the effects of high frequency noise. No load current may be drawn from the VCOM pin. All signals, especially clocks, should be kept away from the VCOM pin in order to avoid unwanted coupling into the AK5702. 3. Analog Inputs The analog inputs are single-ended or full-differential and input resistance is 60k (typ)@MGAIN1-0 bits = "00", 30k (typ)@MGAIN1-0 bits = "01", "10" or "11". The input signal range scales with 0.6 x AVDD Vpp(typ)@MGAIN 1-0 bits = "00" centered around the internal common voltage (0.5 x AVDD). Usually the input signal is AC coupled using a capacitor. The cut-off frequency is fc = 1/ (2RC). The ADC output data format is 2's complement. The DC offset including the ADC's own DC offset is removed by the internal HPF (fc=3.4Hz@ HPF1-0 bits = "00", fs=44.1kHz). The AK5702 can accept input voltages from VSS1 to AVDD at single-ended. MS0623-E-01 2014/09 - 65 - [AK5702] CONTROL SEQUENCE Clock Set up When ADC is powered-up, the clocks must be supplied. 1. PLL Master Mode. Example: Audio I/F Format: I2S BCLK frequency at Master Mode: 64fs Input Master Clock Select at PLL Mode: 11.2896MHz MCKO: Enable Sampling Frequency: 44.1kHz Power Supply (1) PDN pin (2) (3) PMVCM bit (Addr:00H, D2) (1) Power Supply & PDN pin = "L" "H" (4) MCKO bit (Addr:06H, D2) (2)Addr:01H, Data:12H Addr:04H, Data:23H Addr:05H, Data:2FH PMPLL bit (Addr:01H, D0) (5) MCKI pin Input (3)Addr:00H, Data:04H M/S bit (Addr:01H, D1) 40msec(max) (6) BCLK pin LRCK pin Output (4)Addr:06H, Data:04H Addr:01H, Data:13H Output MCKO, BCLK and LRCK output 40msec(max) (8) MCKO pin (7) Figure 59. Clock Set Up Sequence (1) (1) After Power Up, PDN pin "L" "H" "L" time of 150ns or more is needed to reset the AK5702. (2) DIF1-0, PLL3-0, FS3-0, BCKO1-0 and M/S bits should be set during this period as follows. (2a) M/S bit = "1" and setting of PLL3-0, FS3-0, BCKO1-0 bits. (2b) Setting of DIF1-0 bits. (3) Power UpVCOM: PMVCM bit = "0" "1" VCOM should first be powered-up before the other block operates. (4) In case of using MCKO output: MCKO bit = "1" In case of not using MCKO output: MCKO bit = "0" (5) PLL operation starts after PMPLL bit changes from "0" to "1" and MCKI is supplied from an external source. PLL lock time is 40ms(max) at MCKI=12MHz (Table 4). (6) The AK5702 starts to output the LRCK and BCLK clocks after the PLL becomes stable. Then normal operation starts. (7) The invalid frequency is output from MCKO pin during this period if MCKO bit = "1". (8) The normal clock is output from MCKO pin after the PLL is locked if MCKO bit = "1". MS0623-E-01 2014/09 - 66 - [AK5702] 2. PLL Slave Mode (LRCK or BCLK pin) Example: Audio I/F Format : I2S PLL Reference clock: BCLK BCLK frequency: 64fs Sampling Frequency: 44.1kHz Power Supply (1) PDN pin (2) 4fs (1)ofPower Supply & PDN pin = "L" "H" (3) PMVCM bit (Addr:00H, D2) (2) Addr:01H, Data:0CH Addr:04H, Data:23H Addr:05H, Data:2FH PMPLL bit (Addr:01H, D0) LRCK pin BCLK pin Input (3) Addr:00H, Data:04H (4) Internal Clock (5) (4) Addr:01H, Data:0DH Figure 60. Clock Set Up Sequence (2) (1) After Power Up: PDN pin "L" "H" "L" time of 150ns or more is needed to reset the AK5702. (2) DIF1-0, FS3-0 and PLL3-0 bits should be set during this period. (3) Power Up VCOM: PMVCM bit = "0" "1" VCOM should first be powered up before the other block operates. (4) PLL starts after the PMPLL bit changes from "0" to "1" and PLL reference clock (LRCK or BCLK pin) is supplied. PLL lock time is 160ms(max) when LRCK is a PLL reference clock. PLL lock time is 2ms(max) when BCLK is a PLL reference clock and the external circuit at VCOC pin is 10k+4.7nF (Table 4). (5) Normal operation stats after that the PLL is locked. MS0623-E-01 2014/09 - 67 - [AK5702] 3. PLL Slave Mode (MCKI pin) Example: Audio I/F Format: I2S BCLK frequency at Master Mode: 64fs Input Master Clock Select at PLL Mode: 11.2896MHz MCKO: Enable Sampling Frequency: 44.1kHz Power Supply (1) Power Supply & PDN pin = "L" "H" (1) PDN pin (2) (2)Addr:01H, Data:10H Addr:04H, Data:23H Addr:05H, Data:2FH (3) PMVCM bit (Addr:00H, D2) (4) MCKO bit (Addr:06H, D2) (3)Addr:00H, Data:04H PMPLL bit (Addr:01H, D0) (5) MCKI pin (4)Addr:06H, Data:04H Addr:01H, Data:11H Input 40msec(max) (6) MCKO pin Output (7) MCKO output start (8) BCLK pin LRCK pin Input BCLK and LRCK input start Figure 61. Clock Set Up Sequence (3) (1) After Power Up: PDN pin "L" "H" "L" time of 150ns or more is needed to reset the AK5702. (2) DIF1-0, PLL3-0, FS3-0, BCKO1-0 and M/S bits should be set during this period. (3) Power Up VCOM: PMVCM bit = "0" "1" VCOM should first be powered up before the other block operates. (4) Enable MCKO output: MCKO bit = "1" (5) PLL starts after that the PMPLL bit changes from "0" to "1" and PLL reference clock (MCKI pin) is supplied. PLL lock time is 40ms(max) at MCKI=12MHz (Table 4). (6) The normal clock is output from MCKO after PLL is locked. (7) The invalid frequency is output from MCKO during this period. (8) BCLK and LRCK clocks should be synchronized with MCKO clock. MS0623-E-01 2014/09 - 68 - [AK5702] 4. EXT Slave Mode Example: : Audio I/F Format: I2S Input MCKI frequency: 256fs Sampling Frequency: 44.1kHz MCKO: Disable (1) Power Supply & PDN pin = "L" "H" Power Supply (1) PDN pin (2) (2) Addr:01H, Data:00H Addr:04H, Data:23H Addr:05H, Data:2FH (3) PMVCM bit (Addr:00H, D2) (4) MCKI pin Input (3) Addr:00H, Data:04H (4) LRCK pin BCLK pin Input MCKI, BCLK and LRCK input Figure 62. Clock Set Up Sequence (4) (1) After Power Up: PDN pin "L" "H" "L" time of 150ns or more is needed to reset the AK5702. (2) DIF1-0 and FS1-0 bits should be set during this period. (3) Power Up VCOM: PMVCM bit = "0" "1" VCOM should first be powered up before the other block operates. (4) Normal operation starts after the MCKI, LRCK and BCLK are supplied. MS0623-E-01 2014/09 - 69 - [AK5702] 5. EXT Master Mode Power Supply (1) Example: PDN pin (2) Audio I/F Format: I2S BCLK frequency at Master Mode: 64fs Input Master Clock Select: 256fs Sampling Frequency: 44.1kHz (3) PMVCM bit (Addr:00H, D2) MCKI pin (1) Power Supply & PDN pin = "L" "H" Input M/S bit (Addr:01H, D1) TE3-0 bits (Addr:0DH, D7-4) "1010" (2) Addr:01H, Data:26H Addr:04H, Data:23H Addr:05H, Data:2FH Addr:0DH, Data:50H Addr:0EH, Data:02H BCLK and LRCK output "0101" TMASTER bit (Addr:0EH, D1) (4) BCLK pin LRCK pin Output (3) Addr:00H, Data:04H Figure 63. Clock Set Up Sequence (5) (1) After Power Up: PDN pin "L" "H" "L" time of 150ns or more is needed to reset the AK5702. (2) DIF1-0, FS1-0, BCKO1-0, M/S, TE3-0 and TMASTER bits should be set during this period as follows. (2a) M/S bit = "1", setting of FS3-0 and BCKO1-0 bits. (2b) Setting of DIF1-0 bits. (2c) TE3-0 bits = "0101" (2d) TMASTER bit = "1" (3) Power Up VCOM: PMVCM bit = "0" "1" VCOM should first be powered up before the other block operates. (4) BCLK and LRCK start to output. When the clock mode is changed from EXT Master Mode to other modes, the register should be set as above table after PDN pin = "L" to "H" or TE3-0 bits = "1010". MS0623-E-01 2014/09 - 70 - [AK5702] MIC Input Recording (Stereo) Example: PLL Master Mode Audio I/F Format:I2S Sampling Frequency:44.1kHz Pre MIC AMP:+15dB MIC Power On ALC setting:Refer to Figrure 45 ALCA bit = "1" (1) Addr:05H, Data:2FH FS3-0 bits (Addr:05H, D3-0) X,XXX 1111 (2) Addr:02H, Data:10H Addr:03H, Data:01H (1) MIC Control (Addr:02H, D4 & Addr:03H, D1-0) Timer Control (Addr:0AH) ALC Control 1 (Addr:0BH) ALC Control 2 (Addr:0CH) 0, 01 1, 01 (3) Addr:0AH, Data:0AH (2) XXH 0AH (4) Addr:0BH, Data:E1H (3) XXH E1H (5) Addr:0CH, Data:81H (4) XXH 81H 01H (5) ALC State (8) ALC Disable ALC Enable ALC Disable (6) Addr:00H, Data:07H Recording PMADL/R bit (Addr:00H, D1-0) 3088 / fs (7) Addr:00H, Data:04H (7) (6) ADC Internal State Power Down Initialize Normal State Power Down (8) Addr:0CH, Data:01H Figure 64. MIC Input Recording Sequence This sequence is an example of ALCA setting at fs=44.1kHz. If the parameter of the ALCA is changed, please refer to Figure 43. At first, clocks should be supplied according to "Clock Set Up" sequence. (1) Set up a sampling frequency (FS3-0 bit). When the AK5702 is PLL mode, MIC and ADCA should be powered-up in consideration of PLL lock time after a sampling frequency is changed. (2) Set up MIC input (Addr: 02H&03H) (3) Set up Timer Select for ALCA (Addr: 0AH) (4) Set up REF value for ALCA (Addr: 0BH) (5) Set up LMTHA1-0, RGA1-0, LMATA1-0 and ALCA bits (Addr: 0CH) (6) Power Up MIC and ADCA: PMADAL = PMADAR bits = "0" "1" The initialization cycle time of ADCA is 3088/fs=70.0ms@fs=44.1kHz, HPFA1-0 bits = "00". After the ALCA bit is set to "1" and MIC&ADC block is powered-up, the ALCA operation starts from IVOL default value (0dB). To start the recording within 100ms, the following sequence is required. (6a) PMVCM=PMMPA bits = "1". (6b) Wait for 2ms, then PMPLL bit = "1". (6c) Wait for 6ms, then PMADAL=PMADAR bits = "1". (7) Power Down MIC and ADCA: PMADAL = PMADAR bits = "1" "0" When the registers for the ALC operation are not changed, ALCA bit may be keeping "1". The ALCA operation is disabled because the MIC&ADCA block is powered-down. If the registers for the ALCA operation are also changed when the sampling frequency is changed, it should be done after the AK5702 goes to the manual mode (ALC bit = "0") or MIC&ADCA block is powered-down (PMADAL=PMADAR bits = "0"). IVOL gain is not reset when PMADAL=PMADAR bits = "0", and then IVOL operation starts from the setting value when PMADAL or PMADAR bit is changed to "1". (8) ALCA Disable: ALCA bit = "1" "0" MS0623-E-01 2014/09 - 71 - [AK5702] Stop of Clock Master clock can be stopped when ADC is not used. 1. PLL Master Mode Example: (1) Audio I/F Format: I2S BCLK frequency at Master Mode: 64fs Input Master Clock Select at PLL Mode: 11.2896MHz Sampling Frequency: 44.1kHz PMPLL bit (Addr:01H, D0) M/S bit (Addr:01H, D1) (1) Addr:01H, Data:10H (2) MCKO bit "H" or "L" (2) Addr:06H, Data:00H (Addr:06H, D2) (3) External MCKI Input (3) Stop an external MCKI Figure 65. Clock Stopping Sequence (1) (1) Power down PLL: PMPLL=M/S bits = "1" "0" (2) Stop MCKO clock: MCKO bit = "1" "0" (3) Stop an external master clock. 2. PLL Slave Mode (LRCK, BCLK pin) Example : Audio I/F Format : I2S (1) PLL Reference clock: BCLK BCLK frequency: 64fs Sampling Frequency: 44.1kHz PMPLL bit (Addr:01H, D0) (2) BCLK Input (1) Addr:01H, Data:0CH (2) LRCK Input (2) Stop the external clocks Figure 66. Clock Stopping Sequence (2) (1) Power down PLL: PMPLL bit = "1" "0" (2) Stop the external BCLK and LRCK clocks MS0623-E-01 2014/09 - 72 - [AK5702] 3. PLL Slave Mode (MCKI pin) Example : Audio I/F Format: I2S PLL Reference clock: MCKI=11.2896MHz BCLK frequency: 64fs Sampling Frequency: 44.1kHz (1) PMPLL bit (1) Addr:01H, Data:10H (Addr:01H, D0) (2) MCKO bit (2) Addr:06H, Data:00H (Addr:06H, D2) (3) External MCKI Input (3) Stop the external clocks Figure 67. Clock Stopping Sequence (3) (1) Power down PLL: PMPLL bit = "1" "0" (2) Stop MCKO output: MCKO bit = "1" "0" (3) Stop the external master clock. 4. EXT Slave Mode (1) External MCKI Input Example : Audio I/F Format :I2S (1) BCLK Input LRCK Input Input MCKI frequency:256fs Sampling Frequency:44.1kHz (1) (1) Stop the external clocks Figure 68. Clock Stopping Sequence (4) (1) Stop the external MCKI, BCLK and LRCK clocks. 5. EXT Master Mode (1) External MCKI Input Example : Audio I/F Format :I2S BCLK Output "H" or "L" LRCK Output "H" or "L" Input MCKI frequency:256fs Sampling Frequency:44.1kHz (1) Stop MCKI Figure 69. Clock Stopping Sequence (5) (1) Stop MCKI. BCLK and LRCK are fixed to "H" or "L". MS0623-E-01 2014/09 - 73 - [AK5702] Power down If the clocks are supplied, power down VCOM (PMVCM bit: "1" "0") after all blocks except for VCOM are powered-down and a master clock stops. The AK5702 is also powered-down by PDN pin = "L". When PDN pin = "L", the registers are initialized. MS0623-E-01 2014/09 - 74 - [AK5702] PACKAGE 32pin QFN (Unit: mm) Note) The exposed pad on the bottom surface of the package must be open or connected to the ground. Material & Lead finish Package molding compound: Lead frame material: Lead frame surface treatment: Epoxy Cu Solder (Pb free) plate MS0623-E-01 2014/09 - 75 - [AK5702] MARKING AKM AKM AK5702 AK5702 XXXXX XXXXX 1 1 XXXXX: Date code identifier (5digits) REVISION HISTORY Date (YY/MM/DD) 07/06/07 14/09/22 Revision 00 01 Reason First Edition Specification change Page Contents 3 75,76 Pin Layout was changed PACKAGE, MARKING Package dimensions, Making were chnaged. MS0623-E-01 2014/09 - 76 - [AK5702] IMPORTANT NOTICE 0. Asahi Kasei Microdevices Corporation ("AKM") reserves the right to make changes to the information contained in this document without notice. When you consider any use or application of AKM product stipulated in this document ("Product"), please make inquiries the sales office of AKM or authorized distributors as to current status of the Products. 1. All information included in this document are provided only to illustrate the operation and application examples of AKM Products. AKM neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of AKM or any third party with respect to the information in this document. You are fully responsible for use of such information contained in this document in your product design or applications. AKM ASSUMES NO LIABILITY FOR ANY LOSSES INCURRED BY YOU OR THIRD PARTIES ARISING FROM THE USE OF SUCH INFORMATION IN YOUR PRODUCT DESIGN OR APPLICATIONS. 2. The Product is neither intended nor warranted for use in equipment or systems that require extraordinarily high levels of quality and/or reliability and/or a malfunction or failure of which may cause loss of human life, bodily injury, serious property damage or serious public impact, including but not limited to, equipment used in nuclear facilities, equipment used in the aerospace industry, medical equipment, equipment used for automobiles, trains, ships and other transportation, traffic signaling equipment, equipment used to control combustions or explosions, safety devices, elevators and escalators, devices related to electric power, and equipment used in finance-related fields. Do not use Product for the above use unless specifically agreed by AKM in writing. 3. Though AKM works continually to improve the Product's quality and reliability, you are responsible for complying with safety standards and for providing adequate designs and safeguards for your hardware, software and systems which minimize risk and avoid situations in which a malfunction or failure of the Product could cause loss of human life, bodily injury or damage to property, including data loss or corruption. 4. Do not use or otherwise make available the Product or related technology or any information contained in this document for any military purposes, including without limitation, for the design, development, use, stockpiling or manufacturing of nuclear, chemical, or biological weapons or missile technology products (mass destruction weapons). When exporting the Products or related technology or any information contained in this document, you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations. The Products and related technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. 5. Please contact AKM sales representative for details as to environmental matters such as the RoHS compatibility of the Product. Please use the Product in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. AKM assumes no liability for damages or losses occurring as a result of noncompliance with applicable laws and regulations. 6. Resale of the Product with provisions different from the statement and/or technical features set forth in this document shall immediately void any warranty granted by AKM for the Product and shall not create or extend in any manner whatsoever, any liability of AKM. 7. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of AKM. MS0623-E-01 2014/09 - 77 -