[AK5373] AK5373 24-bit Stereo ADC with USB Interface GENERAL DESCRIPTION The AK5373 is a stereo A/D converter with a USB 2.0 interface. The device includes an integrated USB serial interface engine, a USB transceiver, an audio class processing block, endpoints, and a 24-bit stereo audio ADC. An integrated PLL enables the use of multiple sampling frequencies. A microphone amplifier and an integrated programmable gain amplifier are available for processing low-level signals from an analog microphone element. An external EEP-ROM is used to store the descriptor information. The AK5373 is housed in a 48-pin package. It is a low power device, operating from +3.3V, and consuming just 100mW in active mode and less than 100μA in suspend mode. FEATURES USB 2.0 compliant (full speed audio class) USB audio controller USB serial interface engine Audio class encoder/decoder USB synchronization Synchronous type (synchronize with 1ms SOF) 24-bit stereo A/D converter with mute control S/(N+D) = 85dB, S/N = 91dB (AVDD=3.3V, MIC-Amp = 0dB) S/(N+D) = 70dB, S/N = 78dB (AVDD=3.3V, MIC-Amp = +30dB) Microphone amplifier gain: 0dB, +6dB, +12dB, +18dB, +24dB, +30dB, +36dB Digital programmable gain: +24dB ~ -31dB, 1dB Step Integrated PLL supports standard sampling frequencies 8kHz, 11.025kHz, 16kHz, 22.05kHz, 32kHz 44.1kHz, 48kHz EEP-ROM interface for descriptors External Digital Audio Interface Power Management Low power consumption 30mA in active mode Less than 100μA in suspend mode Power Supply: Analog Power Supply (AVDD): 3.0 ~ 3.6V Digital Power Supply (DVDD): 3.0 ~ 3.6V Ta = -10 ~ +70°C Package: 48pin LQFP (7 x 7 mm, 0.5mm pitch) MS1202-E-00 2010/06 -1- [AK5373] ■ Block Diagram EEP-ROM SPI I/F VREF VCOM AVDD VSS1 RSTN SUSN DVDD VSS2 VSS3 CSN SK EPAO EPAI PMMP MPWR MICLP Microphone MICLN MICRP MICRN MGAIN0 VREF Control Decode USB SIE DP USB Tx/Rx DN PMADL PMADL or PMADR Gain: 0/+6/+12/+18/+24/+30/+36dB 24bit ADC SDTI DVOL MUTE Audio Stream Control PMADR SDTO Ext Audio I/F LRCK BICK MCLK SDIN or SDOUT PLL (System/Audio) MGAIN1 MGAIN2 CKM = “H” CLKO XTE = “H” XTI LMUTEN RMUTEN CLKDRV XTO 24MHz Figure 1. Block Diagram MS1202-E-00 2010/06 -2- [AK5373] ■ Ordering Guide −10 ∼ +70°C 48pin LQFP (0.5mm pitch) Evaluation board for AK5373 AK5373EQ AKD5373 NC C KM XT O XTI XTE CLKDRV TESTM3 MGAIN0 MGAIN1 MGAIN2 DP DN 36 35 34 33 32 31 30 29 28 27 26 25 ■ Pin Layout NC 37 24 VSS2 ATIO 38 23 NC VREF 39 22 DVDD VCOM 40 21 TESTM 2 M PWR 41 20 CSN AVDD 42 19 SK NC 43 18 EPAO 17 EPAI VSS3 AK5373EQ To p View 44 11 12 SUSN RSTN 9 TESTM0 10 8 MS1202-E-00 MCLK 7 BICK LRCK TESTM 1 6 13 SDTO 48 5 NC 4 NC SDTI 14 RMU TEN 47 3 NC LMUTEN VSS1 2 NC 15 MICLP 16 46 1 45 MICRP MICLN M ICRN 2010/06 -3- [AK5373] PIN/FUNCTION No. Pin Name I/O 1 2 MICLN MICLP I I 3 LMUTEN I 4 RMUTEN I 5 6 7 8 SDTI SDTO BICK LRCK I O O O 9 TESTM0 I 10 MCLK O 11 SUSN O 12 RSTN I 13 TESTM1 I 14 NC - 15 VSS1 - 16 NC - 17 18 19 20 EPAI EPAO SK CSN I O O O 21 TESTM2 I 22 DVDD - 23 NC - 24 25 VSS2 DN I/O 26 DP I/O 27 28 29 MGAIN2 MGAIN1 MGAIN0 I I I 30 TESTM3 I 31 CLKDRV O 32 XTE I Function Left Channel Inverting Input Pin Left Channel Positive Input Pin Left Channel Mute Pin “L”: Mute “H”: Normal Operation Right Channel Mute Pin “L”: Mute “H”: Normal Operation External Audio Serial Data Input Pin External Audio Serial Data Output Pin External Audio Serial Clock Output Pin External Audio Channel Clock Output Pin Test #0 Pin This pin must be connected to VSS1-3. External Audio Master Clock Output Pin Suspend Status Output Pin “L”: Suspend State “H”: Normal Operation Reset Pin When “L”, the AK5373 is held in reset. The AK5373 must be always reset upon power-up. Test #1 Pin This pin must be connected to VSS1-3. No Connect Pin No internal bonding. Normally connected to VSS1-3. Ground Pin No Connect Pin No internal bonding. Normally connected to VSS1-3. EEP-ROM Serial Data Input Pin EEP-ROM Serial Data Output Pin EEP-ROM Serial Clock Output Pin EEP-ROM Chip Select Output Pin Test #2 Pin This pin must be connected to VSS2. Digital Power Supply Pin, 3.0 ~ 3.6V No Connect Pin No internal bonding. Normally connected to VSS1-3. Ground Pin USB Bus Inverting Pin USB Bus Positive Pin This pin must be connected to DVDD with 1.5kΩ resistor. MIC Gain Control 2 Pin MIC Gain Control 1 Pin MIC Gain Control 0 Pin Test #3 Pin This pin must be connected to VSS1-3. Clock Drive Output Pin Crystal Oscillator Enable Pin “L”: Master Clock Input Mode “H”: Crystal Oscillator Mode MS1202-E-00 Reset State (RSTN pin = “L”) ← ← ← ← ← “L” output “L” output “L” output ← “L” output “L” output ← ← ← ← ← ← “Hi-Z” “Hi-Z” “Hi-Z” ← ← ← ← Input Input ← ← ← ← “L” output ← 2010/06 -4- [AK5373] No. Pin Name Function I I O Reset State (RSTN pin = “L”) ← ← “L” output Master Clock Input Pin (XTE pin = “L”) Crystal Oscillator Input Pin (XTE pin = “H”) 34 Crystal Oscillator Output Pin Crystal Mode Select Pin 35 CKM I “L”: 16MHz ← “H”: 24MHz No Connect Pin 36 NC ← No internal bonding. Normally connected to VSS1-3. No Connect Pin 37 NC ← No internal bonding. Normally connected to VSS1-3. Test Pin 38 ATIO I/O “Input” This pin must be connected to VSS1-3. 39 VREF O High Level Voltage Reference Output Pin “L” output 40 VCOM O Analog Common Voltage Output Pin “L” output 41 MPWR O Microphone Power Supply Pin “Hi-Z” 42 AVDD Analog Power Supply Pin, 3.0 ~ 3.6V ← No Connect Pin 43 NC ← No internal bonding. Normally connected to VSS1-3. 44 VSS3 Ground Pin ← 45 MICRN I Right Channel Inverting Input Pin ← 46 MICRP I Right Channel Positive Input Pin ← No Connect Pin 47 NC ← No internal bonding. Normally connected to VSS1-3. No Connect Pin 48 NC ← No internal bonding. Normally connected to VSS1-3. Note 1. All digital input pins (EPAI, SDTI, MGAIN0/1/2, CKM, LMUTEN, RMUTEN, XTE and TESTM0/1/2/3 pins) must not be left floating. 33 MCKI XTI XTO I/O MS1202-E-00 2010/06 -5- [AK5373] ■ Handling of Unused Pin The unused I/O pin must be processed appropriately as below. Classification Analog Input Analog Output Digital Input Digital Output Pin Name Setting MICLP pin is connected to MICLN pin. MICRP pin is connected to MICRN pin. This pin must be connected to VSS1-3. This pin must be open. MICLP, MICLN MICRP, MICRN ATIO MPWR SDTI, MGAIN1/2/3, CKM, XTE, These pins must be connected to VSS1-3. TESTM0/1/2/3 LMUTEN, RMUTEN These pins must be connected to DVDD. SUSN, MCLK, LRCK, BICK, SDTO, These pins must be open. CLKDRV ABSOLUTE MAXIMUM RATINGS (VSS1=VSS2=VSS3=0V; Note 2) Parameter Symbol min max Power Supplies: Analog AVDD -0.3 4.6 Digital DVDD -0.3 4.6 Input Current, Any Pin Except Supplies IIN ±10 Analog Input Voltage (Note 3) VINA -0.3 AVDD+0.3 Digital Input Voltage (Note 4) VIND -0.3 DVDD+0.3 Ambient Temperature (power applied) Ta -10 70 Storage Temperature Tstg -65 150 Note 2. All voltages with respect to ground. Note 3. MICLP, MICLN, MICRP and MICRN pins. Note 4. MGAIN0/1/2, CKM, LMUTEN, RMUTEN, SDTI, EPAI, XTE and TESTM0/1/2/3 pins. Units V V mA V V °C °C 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=VSS3=0V; Note 2) Parameter Symbol min typ Power Supplies Analog AVDD 3.0 3.3 (Note 5) Digital DVDD 3.0 3.3 Difference AVDD-DVDD -0.3 0 Note 2. All voltages with respect to ground. Note 5: The power up sequence among AVDD and DVDD is not critical. max 3.6 3.6 +0.3 Units V V V WARNING: AKM assumes no responsibility for the usage beyond the conditions in this datasheet. MS1202-E-00 2010/06 -6- [AK5373] ANALOG CHARACTERISTICS (Ta=25°C; AVDD=DVDD=3.3V; VSS1=VSS2=VSS3=0V; Signal Frequency = 1kHz; Sampling BW = 20Hz to 20kHz, unless otherwise specified) Parameter min typ Microphone Amplifier: MICLP/MICLN/MICRP/MICRN pins Input Resistance 10 20 MGAIN2-0 bits = “001” -1 0 MGAIN2-0 bits = “010” +5 +6 MGAIN2-0 bits = “011” +11 +12 Gain MGAIN2-0 bits = “100” +17 +18 MGAIN2-0 bits = “101” +23 +24 MGAIN2-0 bits = “110” +29 +30 MGAIN2-0 bits = “111” +35 +36 Microphone Power Supply: MPWR pin Output Voltage 1.9 2.2 Output Current ADC Analog Input Characteristics: MICLP/MICLN/MICRP/MICRN pins Resolution (Note 6) ±1.00 ±1.20 Input Voltage ±0.038 (Note 7) (Note 6) 75 85 S/(N+D) (-1dBFS) 70 (Note 7) (Note 6) 81 91 Dynamic Range (−60dBFS, A-weighted) 78 (Note 7) (Note 6) 81 91 S/N (A-weighted) 78 (Note 7) Power Supplies: Power Supply Current Normal operation (internal ADC mode) AVDD 10 DVDD 20 Power down RSTN pin = “L” (Note 8) 10 Suspend mode 10 Note 6. MGAIN2-0 bits = “001” (0dB) Note 7. MGAIN2-0 bits = “110” (+30dB) Note 8. All digital input pins are fixed to DVDD or VSS2. MS1202-E-00 Frequency = 48kHz; max Units +1 +7 +13 +19 +25 +31 +37 kΩ dB dB dB dB dB dB dB 2.5 2.0 V mA 24 ±1.40 - Bits Vpp Vpp dB dB dB dB dB dB 15 30 mA mA 100 100 μA μA 2010/06 -7- [AK5373] FILTER CHARACTERISTICS (Ta=-10 ~ +70°C; AVDD=DVDD=3.0 ~ 3.6V; fs=48kHz) Parameter Symbol min typ max Units ADC Digital Filter Passband (Note 9) -0.07 ~ +0.15dB PB 0 18.9 kHz -0.2dB 20.3 kHz -3.0dB 22.9 kHz -6.0dB 23.9 kHz Stopband SB 28.0 kHz Passband Ripple PR -0.07 +0.15 dB Stopband Attenuation SA 68.0 dB Group Delay GD 14 1/fs Group Delay Distortion ΔGD 0 μs ADC Digital Filter (HPF): Frequency Response (Note 9) -3.0dB FR 0.93 Hz -0.1dB 6.1 Hz Note 9. The passband and stopband frequencies scale with fs (system sampling rate). Each response refers to that of 1kHz DC CHARACTERISTICS (Ta=-10~+70°C; AVDD=DVDD=3.0 ∼ 3.6V) Parameter Symbol min typ max Units High-Level Input Voltage (Note 11) VIH 70%DVDD V Low-Level Input Voltage (Note 11) VIL 30%DVDD V VOH V High-Level Output Voltage DVDD−0.2 (Note 12, Iout=−200μA) VOL 0.2 V Low-Level Output Voltage (Note 12, Iout=200μA) Input Leakage Current (Note 13) Iin ±10 μA Note 10. All digital pins except for DP, DN pins. Schmitt hysteresis level of RSTN pin and levels of all test pins are not tested. Note 11. EPAI, SDTI, MGAIN1/2/3, CKM, LMUTEN, RMUTEN, RSTN, XTE and TESTM0/1/2/3 pins. Note 12. CSN, SK, EPAO, SUSN, MCLK, LRCK, BICK, SDTO and CLKDRV pins. Note 13. Expect for EPAI pin. EPAI pin has internal pull-down device, nominally 100kΩ. MS1202-E-00 2010/06 -8- [AK5373] SWITCHING CHARACTERISTICS (Ta=25°C; AVDD=DVDD=3.3V; CL=50pF) Parameter Symbol min typ Master Clock Frequency Crystal Resonator CKM pin = “L” fXTAL1 16 CKM pin = “H” fXTAL2 24 USB Interface DP, DN Single Ended Receiver Threshold (High-Level) VseH 2.0 (Low-Level) VseL Time Width for USB Reset Signal Recognition (DP<VseL & DN< VseL to USB Reset mode) Trst_rec 2.7 Device Ready Time from USB Reset (Ready for transaction after reset) Tdrr Time Width for Suspend Recognition (Idle state DP > VseL & DN < VseL to Suspend mode) Tsus_rec 3.0 Resume Time from Suspend (Note 14) (First flip of DP/DN from Idle sate to Device Ready) Tresm USB Transmitter Data Rate DR 11.97 12 Output Impedance (Hi) (Note 15) (DP, DN pins = “H”, Iout = -10mA) Roh 36 Output Impedance (Lo) (Note 15) (DP, DN pins = “L”, Iout = 10mA) Rol 36 “H” level Output Voltage (Iout = -200µA) Vohd 2.8 “L” level Output Voltage (Iout = 2.2mA) Vold Tri-state Leakage Current (0 < DP, DN < 3.3V) Iolk -10 Rise/Fall Time Trf/Tff 4 12 Rise/Fall Time Matching Trfm 100 Crossover Point Vcrs 1.65 USB Receiver Common Mode Range CMR 0.8 Differential Input Sensitivity DIS 200 Schmitt High Level Voltage Vihs 2.0 Schmitt Low Level Voltage Vils Note 14. VREF, X’tal oscillator, and PLL get stable and bus transaction with normal rate is ready. Note 15. Including an external 18Ω (±1%) resistor in series. MS1202-E-00 max Units - MHz MHz 0.8 V V - μs 10 ms - ms 30 ms 12.03 MHz - Ω 0.3 10 20 - Ω V V μA ns % V 2.5 0.8 V mV V V 2010/06 -9- [AK5373] Parameter Symbol External Audio Mode MCLK Output Timing Frequency fMCK Duty Cycle dMCK LRCK Output Timing Frequency fs Duty Cycle Duty BICK Output Timing Period tBCK Duty Cycle dBCK Audio Interface Timing tMBLR BICK “↓” to LRCK Edge (Note 16) tLRD LRCK Edge to SDTO (MSB) (Except I2S mode) tBSD BICK “↓” to SDTO SDTI Hold Time tSDH SDTI Setup Time tSDS SPI (EEP-ROM) Control Interface Timing SK Frequency fSK SK Duty Cycle dSK EPAI Delay tCD CSN Edge to SK “↑” tCSS SK “↓” to CSN Edge tCSH CSN “H” Time tCSW EPAI Setup Time tCDS EPAI Hold Time tCDH One Shot Mute Timing One Shot Mute Input Width Wosm Reset Timing Reset Input Width (Note 17) Wrst Note 16. BICK rising edge must not occur at the same time as LRCK edge. Note 17. The AK5373 can be reset by the RSTN pin = “L”. MS1202-E-00 min typ max Units 2.048 40 50 24.576 60 MHz % 8 - 50 48 - kHz % - 1/(64fs) 50 - ns % −40 −70 - 40 70 ns ns −70 50 50 - 70 - ns ns ns 300 300 300 100 100 1.5 50 - 100 - MHz % ns ns ns ns ns ns 10 - - μs 1.0 - - μs 2010/06 - 10 - [AK5373] ■ Timing Diagrams m in 2 0ms re sume time DVDD min 10 ms re sume recove ry tim e Resum e DP DN RSTN PLL Clock Tdrr Trst_rec Reset Mode Device Connected Figure 2. Mode change with respect to BUS States 1 (Power on and device connected) Tsus_rec DVDD “H” D+ DRSTN “H” PLL Clock Tresm Figure 3. Mode Change with respect to Bus States 2 (Bus transactions) Trf Trs Tff Tfs 90% DVDD DP, DN 10% DVDD Figure 4. Rise/Fall Time Vcrs DP, DN Figure 5. Crossover Point Vihs DP, DN Vils Figure 6. Schmitt Level Voltage Wrst RSTN VIL Figure 7. Power-down & Reset Timing MS1202-E-00 2010/06 - 11 - [AK5373] W osm LMUTEN RMUTEN VIL Figure 8. One Shot Mute Timing 1/fs 50%DVDD LRCK tLRCKH tLRCKL tBCK Duty = tLRCKH x fs x 100 tLRCKL x fs x 100 50%DVDD BICK tBCKH tBCKL 1/fMCK dBCK = tBCKH / tBCK x 100 tBCKL / tBCK x 100 MCLK 50%DVDD tMCKL dMCK = tMCKL x fMCK x 100 Figure 9. Audio Clock Timing 50%DVDD LRCK tBLR tBCKL BICK 50%DVDD tDLR tBSD SDTO 50%DVDD tSDS tSDH VIH SDTI VIL Figure 10. Audio Interface Timing MS1202-E-00 2010/06 - 12 - [AK5373] tCSW CSN 50%DVDD tCSS tSKL tCSH tSKH SK 50%DVDD 1 / fSK dSK = tSKL x fSK x 100 tSKH x fSK x 100 tCD EPAO 50%DVDD tCDS tCDH Hi-Z EPAI Hi-Z D7 D0 70%DVDD 30%DVDD Figure 11. SPI (EEP-ROM) Control Interface Timing MS1202-E-00 2010/06 - 13 - [AK5373] OPERATION OVERVIEW ■ Overview of AK5373 The AK5373 is a stereo A/D converter with USB interface. It is easy to use since the control logic including USB audio class, stereo differential microphone amplifiers, two PLL’s USB serial interface engine, and FIFO are integrated. All Descriptor contents are stored in EEP-ROM and customizable. For example, when supporting a mono microphone by 48kHz sampling rate only, what needed to be done is to prepare appropriate USB descriptor. There is no need for writing program codes. The AK5373 also has an external audio steaming interface to connect other A/D converters or audio DSP’s. When a high performance A/D converters is connected, A/D data generated by this A/D converter are transmitted via USB upstream. When an external audio DSP is connected, the output of AK5373 is processed by this DSP. The AK5373 receives this data again and transmits. I/F format is stored in the EEP-ROM header. The AK5373 integrates the following blocks: 1. 24bit High Performance Stereo A/D Converter a) S/N: 91dB (MIC Gain=0dB), S/N: 78dB (MIC Gain=+30dB) 2. MIC Power Supply a) Output Voltage: 2.2V (typ) 3. Differential Microphone Amplifier a) Setting of Gain: 0dB, +6dB, +12dB, +18dB, +24dB, +30dB, +36dB 4. Digital Programmable Gain a) Gain Range: from +24dB to -31dB (Setting of gain: Max, Min and Initial value) b) Gain Step: 1dB/step (Fix) 5. PLL a) 16.0MHz or 24.0MHz crystal generator with output buffer (Available for External Clock input) b) Two PLLs - A/D_PLL: generate audio clock - System_PLL: generate USB system clock 6. Audio Synchronization Type a) Synchronous Type - Isochronous transfer uses Synchronous type synchronization which is synchronous to SOF (start of frame) packets which are issued per 1ms. 7. USB Audio Format a) Supports 7 Frequencies: 8kHz, 11.025kHz, 16kHz, 22.05kHz, 32kHz, 44.1kHz, 48kHz b) Stereo/Mono 24bit/16bit/8bit LSB first 8. FIFO a) Synchronization between A/D converter and USB bus - Memory Size 576 bytes: 24bit (3 bytes) x 48 samples x 2 channel x 2 frames 9. USB Serial Interface Engine a) Process USB Standard Requests 10. Control block of Audio Device Class a) Translate internal A/D format to USB audio class format b) Process USB Audio Class Request - Mute - Gain/Attenuation - Sampling Frequency Control 11. USB transceiver 12. EEP-ROM I/F SPI™ (4-wire) type EEP-ROM can be used to customize all USB descriptors and any functions. - 8K bits (AK6506C) or larger 13. USB Suspend/Resume Support 14. External Digital Audio Interface a) 24bit I2S or MSB justified b) MCLK=256fs or 512fs, BICK=64fs 15. Stand-alone Mute a) Zero Crossing detection mute or One Shot mute (not support HID function) MS1202-E-00 2010/06 - 14 - [AK5373] ■ Clock Source 16MHz or 24 MHz crystal resonator can be used as the master clock. If the CKM pin is set to “H”, the AK5373 supports 24MHz. If the CKM pin is set to “L”, the AK5373 supports 16MHz. The AK5373 can drive the clock up to three external loads. The AK5373 generates 48MHz for system clock from 16MHz or 24MHz by system PLL circuit. CKM pin X’tal Frequency L 16.0MHz H 24.0MHz Table 1. Reference X’tal frequency The clock for the MCKI/XTI pin can be generated by the following methods: 1) X’tal (XTE pin = “H”) CLKO bit MCKI/XTI CLKDRV XTO AK5373 Note 18. External capacitance depends on the crystal oscillator (Max. 30pF) Figure 12. X’tal Mode 2) External clock (XTE pin = “L”) CLKO bit MCKI/XTI CLKDRV External Clock XTO AK5373 Note 19. Input clock must not exceed DVDD. Figure 13. External clock mode MS1202-E-00 2010/06 - 15 - [AK5373] ■ MIC Gain Amplifier The AK5373 has a gain amplifier for microphone inputs. The gain of MIC-Amp is selected by the MGAIN2-0 pins or MGAIN2-0 bits (Table 2). MGAIN2 MGAIN1 MGAIN0 MGAIN2 MGAIN1 MGAIN0 pin pin pin bit bit bit 0 0 0 0 0 1 0 1 0 0 1 1 L L L 1 0 0 1 0 1 1 1 0 1 1 1 L L H L H L L H H x x x H L L H L H H H L H H H Table 2. Mic Input Gain (x: Don’t care) Input Gain 0dB 0dB +6dB +12dB +18dB +24dB +30dB +36dB 0dB +6dB +12dB +18dB +24dB +30dB +36dB ■ MIC Power When PMMP bit = “1”, the MPWR pin supplies power for the microphone. This output voltage is typically 2.2V and the output current is maximum 2.0mA. In case of using two sets of stereo full-differential microphones, the load resistance is minimum 1kΩ for each channel. Any capacitor must not be connected directly to the MPWR pin (Figure 14). PMMP bit MPWR pin 0 Hi-Z 1 Output Table 3. MIC Power MIC Power MICLP ≥ 1kΩ MPWR ≥ 1kΩ VREF Microphone MICLN MICRP AK5373 ≥ 1kΩ MICRN ≥ 1k Ω Microphone Figure 14. MIC Block Circuit MS1202-E-00 2010/06 - 16 - [AK5373] ■ Digital High Pass Filter The ADC has a digital high pass filter for DC offset cancellation. The cut-off frequency of the HPF is 0.93Hz at fs=48kHz. The digital high pass filter cut-off frequency scales with the sampling rate (fs). The HPF is always enabled. ■ Audio Data Format The AK5373 supports 8bit, 16bit and 24bit audio data format and outputs LSB first to USB bus. 1) 8bit mono data format on the USB Sample # bit position #1 #2 #3 mono mono mono 8 bit 8bit 8 bit 0-7 0-7 0-7 Table 4. Audio Data Format for 8bit mono ··· ··· ··· ··· 2) 16bit stereo data format on the USB Sample # bit position #1 #2 L-ch data R-ch data L-ch data R-ch data Lower Upper Lower Upper Lower Upper Lower Upper 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8bit 8 bit 0-7 8-15 0-7 8-15 0-7 8-15 0-7 8-15 Table 5. Audio Data Format for 16bit stereo ··· ··· ··· ··· 3) 24bit stereo data format on the USB Sample # bit position #1 #2 L-ch data R-ch data L-ch data R-ch data Lower Middle Upper Lower Middle Upper Lower Middle Upper Lower Middle Upper 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 8 bit 0-7 8-15 16-23 0-7 8-15 16-23 0-7 8-15 16-23 0-7 8-15 16-23 Table 6. Audio Data Format for 24bit stereo MS1202-E-00 ··· ··· ··· ··· 2010/06 - 17 - [AK5373] ■ External Digital Audio Interface The AK5373 has optional audio streaming interface to output A/D data, or to receive DSP data and to transmit them to the host. Because the AK5373 operates as a master device only, MCLK, LRCK, and BICK are output. The AK5373 supports two audio formats, I2S and MSB justified format. The data length of ADC outputs is 24bit only despite the USB audio formats which can be selected from 8/16/24 bit. This interface is specified in the header of EEP-ROM. AK5373 DSP MCLK 512fs or 256fs 64fs BICK LRCK 1fs MCLK BCLK LRCK SDTO SDTI SDTI SDTO Figure 15. External Digital Audio Interface 512FS bit MCLK pin 0 256fs 1 512fs Table 7. MCLK Output Frequency I2S bit 0 1 SDTO SDTI MSB justified MSB justified I2S Compatible I2S Compatible Table 8. Audio Interface Format ■ Volume & Mute Control The AK5373 has a digital volume control which ranges from +24dB to -31dB in 1dB step. The maximum volume, the minimum and default volumes are defined by EEP-ROM header setting. When ZCE bit = “1” (Zero cross detection enable), L-channel and R-channel volumes are changed independently on zero cross or zero cross timeout. Zero cross timeout is set by ZTM1-0 bits (Table 9). When ZCE bit = “0” (zero cross detection disable), the volume is changed immediately. Mute operation and zero cross detection have the same relation as the volume mentioned in this section. ZTM1 bit 0 0 1 1 ZTM0 bit 0 1 0 1 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 9. Zero Crossing Timeout Period The AK3573 has the LMUTEN and RMUTEN pins, and it can control mute operation from the device side. However, because the AK5373 does not have HID function, the mute operation by these pins cannot be acknowledged by the host. There are two modes for the mute operation by LMUTEN and RMUTEN pins; one is normal mute and the other is one-shot mute. MS1202-E-00 2010/06 - 18 - [AK5373] In normal mute operation (OSME bit = “0”), mute is executed on zero cross or zero cross timeout when the LMUTEN and RMUTEN pins = “L” if zero cross detection is enabled. When zero cross detection is disabled, it is executed immediately. In case that the LMUTEN and RMUTEN pins = “H”, mute is released on zero cross or zero cross timeout if the zero cross detection is enabled. When zero cross detection is disabled, it is released immediately. LMUTEN pin RMUTEN pin Zero cross AD data Set Value Volume (ZCE bit = “1”) -∞ Set Value Volume (ZCE bit = “0”) -∞ Figure 16. Normal Mute for LMUTEN, RMUTEN pins In one-shot mute operation (OSME bit = “1”), mute is executed on zero cross or zero cross timeout after detecting a falling edge of the LMUTEN and RMUTEN pins. The AK5373 releases the mute on zero cross or zero cross timeout after mute hold period which is set by MHLD7-0 bits. LMUTEN pin RMUTEN pin Zero cross AD data Set Value Volume -∞ Mute Hold 1~255/fs (MHLD7-0 bits) Figure 17. One Shot Mute for LMUTEN, RMUTEN pins MS1202-E-00 2010/06 - 19 - [AK5373] ■ Power Management Control USB specifies that the current at suspend mode must not exceed 500μA. When the USB host is in suspend mode, the SUSN pin also becomes to “L” in order to notify this mode to the external components like DSP’s to observe USB specification. ■ Synchronization The AK5373 supports synchronous type synchronization which is synchronous to SOF (start of frame) packets which are issued per 1ms. ■ Descriptor’s Customization USB audio class has very flexible, but complicated format. In order to keep both of the flexibility and simplicity to use, the AK5373 utilizes the precompiled control information in EEP-ROM instead of direct USB audio class decoding. Data in EEP-ROM is divided into two blocks; header information block and USB descriptor block. Header block size is fixed while USB descriptor block size is variable. Header information includes various control information such as audio format, the microphone’s gain, power management information, and etc. When the device is powered up, at first the AK5373 reads the header block in EEP-ROM, and maps these values into the internal registers. Note that 8k bits or larger SPI type EEP-ROM is available. The AK5373 does not store all of the descriptors into internal memory at the boot time. Instead, the AK5373 reads the descriptor from EEP-ROM and transmit it when it receives the “Get Descriptor” Request command. The AK5373 transmits NAK until it is ready to send data. Header Information includes 1) Power Management Information 2) Microphone Gain 3) External Digital Audio Interface Information 4) Mute Control Information 5) Descriptor related information a) PCM format(stereo/mono, resolution) and the related alternate setting number b) Endpoint number c) Initial/Minimum/Maximum Volume MS1202-E-00 2010/06 - 20 - [AK5373] ■ EEP-ROM Control Interface Register information and descriptor information on EEP-ROM are read by SPI I/F (CSN, SK, EPAO and EPAI) pins. The data on the I/F consists of Instruction Byte, Address Byte (MSB first, 16bits) and Input Data Byte (MSB first, 8bits). The AK5373 outputs Instruction Byte and Address Byte on a falling edge of SK and down-loads address data from EPAI. The next address data is read by sending SK signal continuously. Data reading ends by a rising edge of CSN. SK clock speed is typically 1.5MHz. The AK5373 reads data from EEP-ROM according to a request signal from the USB host after releasing a reset. CSN 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 SK Instruction EPAO 0 0 0 0 0 Address (n) 0 1 1 0 0 0 0 0 0 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 Data (n) EPAI “H” or “L” Data (n+1) D7 D6 D5 D4 D 3 D2 D1 D0 D7 D 6 D5 D4 D3 D2 D1 D0 D8 D7 D1 D0 Figure 18. EEP-ROM I/F Read Sequence ■ EEP-ROM memory map <Header Block> 32 Bytes (fixed) Addr 000H 001H 002H 003H 004H 005H 006H 007H 008H 009H 00AH 00BH 00CH 00DH 00EH 00FH 010H 011H 012H 013H 014H 015H 016H 017H 018H 019H 01AH 01BH 01CH 01DH 01EH 01FH Name Power Management Microphone Gain Control Ext. Audio I/F Control PCM Format Alt 1 PCM Format Alt 2 PCM Format Alt 3 PCM Format Alt 4 PCM Format Alt 5 PCM Format Alt 6 PCM Format Alt 7 Sampling Frequency Alt 1 Sampling Frequency Alt 2 Sampling Frequency Alt 3 Sampling Frequency Alt 4 Sampling Frequency Alt 5 Sampling Frequency Alt 6 Sampling Frequency Alt 7 Endpoint Number Initial Volume Minimum Volume Maximum Volume Mute Control 1 Mute Control 2 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved D7 D6 0 0 SDOUT INTFQ12 INTFQ22 INTFQ32 INTFQ42 INTFQ52 INTFQ62 INTFQ72 VALID1 VALID2 VALID3 VALID4 VALID5 VALID6 VALID7 0 INTVOL7 MINVOL7 MAXVOL7 0 MHT7 0 0 0 0 0 0 0 0 0 0 0 SDIN INTFQ11 INTFQ21 INTFQ31 INTFQ41 INTFQ51 INTFQ61 INTFQ71 FS48K1 FS48K2 FS48K3 FS48K4 FS48K5 FS48K6 FS48K7 0 INTVOL6 MINVOL6 MAXVOL6 0 MHT6 0 0 0 0 0 0 0 0 0 D5 D4 D3 D2 0 SELF 0 CLKO 0 PMMP 0 MGAIN2 0 0 0 0 INTFQ10 MIX1 RES11 RES10 INTFQ20 MIX2 RES21 RES20 INTFQ30 MIX3 RES31 RES30 INTFQ40 MIX4 RES41 RES40 INTFQ50 MIX5 RES51 RES50 INTFQ60 MIX6 RES61 RES60 INTFQ70 MIX7 RES71 RES70 FS44K1 FS32K1 FS22K1 FS16K1 FS44K2 FS32K2 FS22K2 FS16K2 FS44K3 FS32K3 FS22K3 FS16K3 FS44K4 FS32K4 FS22K4 FS16K4 FS44K5 FS32K5 FS22K5 FS16K5 FS44K6 FS32K6 FS22K6 FS16K6 FS44K7 FS32K7 FS22K7 FS16K7 0 0 0 EPNO2 INTVOL5 INTVOL4 INTVOL3 INTVOL2 MINVOL5 MINVOL4 MINVOL3 MINVOL2 MAXVOL5 MAXVOL4 MAXVOL3 MAXVOL2 0 0 OSME ZCE MHT5 MHT4 MHT3 MHT2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 MS1202-E-00 D1 D0 PMADR MGAIN1 512FS SIGNED1 SIGNED2 SIGNED3 SIGNED4 SIGNED5 SIGNED6 SIGNED7 FS11K1 FS11K2 FS11K3 FS11K4 FS11K5 FS11K6 FS11K7 EPNO1 INTVOL1 MINVOL1 MAXVOL1 ZTM1 MHT1 0 0 0 0 0 0 0 0 0 PMADL MGAIN0 I2S STEREO1 STEREO2 STEREO3 STEREO4 STEREO5 STEREO6 STEREO7 FS8K1 FS8K2 FS8K3 FS8K4 FS8K5 FS8K6 FS8K7 EPNO0 INTVOL0 MINVOL0 MAXVOL0 ZTM0 MHT0 0 0 0 0 0 0 0 0 0 2010/06 - 21 - [AK5373] <Descriptor Block> Addr 020H ~ 023H 024H ~ 0A3H 0A4H ~ 123H 124H ~ 1A3H 1A4H ~ 1B5H 1B6H ~ 1BEH 1BFH ~ 1C7H 1C8H ~ 1D0H 1D1H ~ 1DCH 1DDH ~ 1E5H 1E6H ~ Descriptor Language ID String Descriptor iManufacturer String Descriptor iProduct String Descriptor iSerial Number String Descriptor Device Descriptor Configuration Descriptor Standard Audio Control Interface Descriptor Class-specific Audio Control Interface Descriptor Input Terminal Descriptor Output Terminal Descriptor Feature Unit Descriptor Zero-bandwidth Alternate Setting 0 Standard AS Interface Descriptor Alternate Setting 1 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Alternate Setting 2 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Alternate Setting 3 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Alternate Setting 4 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Alternate Setting 5 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Alternate Setting 6 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Alternate Setting 7 Standard AS Interface Descriptor Class-specific AS General Interface Descriptor Type 1 Format Type Descriptor Standard Endpoint Descriptor Class-specific Isochronous Audio Data Endpoint Descriptor Size 4 bytes 128 bytes (max) 128 bytes (max) 128 bytes (max) 18 bytes 9 bytes 9 bytes 9 bytes 12 bytes 9 bytes 8 or 10 bytes 9 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes 9 bytes 6 bytes 11 ~ 29 bytes 9 bytes 7 bytes Note 20. Read address after a reset release: 000H~016H, 024H, 0A4H, 124H, 1B8H~1B9H (Total 28bytes) Note 21. The data address must be written slide forward if the number of bytes is less than the data size above in the address after 1E6H. Note 22. The setting of 003H~011H and the setting after 1F9H must be matched. MS1202-E-00 2010/06 - 22 - [AK5373] Addr 00H Register Name Power Management D7 0 D6 0 D5 0 D4 SELF D3 0 D2 CLKO D1 PMADR D0 PMADL PMADL: MIC-Amp Lch and ADC Lch Power Management “0”: Power-up “1”: Power-down PMADR: MIC-Amp Rch and ADC Rch Power Management “0”: Power-up “1”: Power-down CLKO: Master Clock Output Driver Power Management “0”: Power-up “1”: Power-down SELF: Self Power Mode Enable “0”: Bus Power Mode “1”: Self Power Mode Addr 01H Register Name D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 PMMP 0 MGAIN2 MGAIN1 MGAIN0 Microphone Gain Control MGAIN2-0: MIC-Amp Gain Control (Enabled when the MGAIN2 pin = MGAIN1 pin = MGAIN0 pin = “L”) “000”: 0dB “001”: 0dB “010”: +6dB “011”: +12dB “100”: +18dB “101”: +24dB “110”: +30dB “111”: +36dB PMMP: MPWR pin Power Management “0”: Power-up “1”: Power-down: Hi-z MS1202-E-00 2010/06 - 23 - [AK5373] Addr 02H Register Name Ext. Audio I/F Control D7 SDOUT D6 SDIN D5 0 D4 0 D3 D2 0 0 D1 512FS D0 I2S I2S: Audio Format “0”: MSB justified “1”: I2S 512FS: Master Clock Output Frequency “0”: 256fs “1”: 512fs SDIN: Ext. Audio Input Interface Enable “0”: Power-down and Disable: SDTI pin must be connected to VSS1-3. “1”: Power-up and Enable If this bit is set to “1”, the AK5373 receives audio data via the external digital audio interface and transmits them to the host instead of the A/D data generated by the AK5373. SDOUT: Ext. Audio Output Interface Enable “0”: Power-down and Disable: SDTO pin = “L” “1”: Power-up and Enable If this bit is set to “1”, the A/D data is output via this Interface. Addr 03H 04H 05H 06H 07H 08H 09H Register Name PCM Format Alt 1 PCM Format Alt 2 PCM Format Alt 3 PCM Format Alt 4 PCM Format Alt 5 PCM Format Alt 6 PCM Format Alt 7 D7 D6 D5 D4 D3 D2 D1 D0 INTFQ12 INTFQ22 INTFQ32 INTFQ42 INTFQ52 INTFQ62 INTFQ72 INTFQ11 INTFQ21 INTFQ31 INTFQ41 INTFQ51 INTFQ61 INTFQ71 INTFQ10 INTFQ20 INTFQ30 INTFQ40 INTFQ50 INTFQ60 INTFQ70 MIX1 MIX2 MIX3 MIX4 MIX5 MIX6 MIX7 RES11 RES21 RES31 RES41 RES51 RES61 RES71 RES10 RES20 RES30 RES40 RES50 RES60 RES70 SIGNED1 SIGNED2 SIGNED3 SIGNED4 SIGNED5 SIGNED6 SIGNED7 STEREO1 STEREO2 STEREO3 STEREO4 STEREO5 STEREO6 STEREO7 STEREO: Mono/Stereo Mode Select “0”: Mono “1”: Stereo SIGNED: Unsigned/Signed Mode Select “0”: Unsigned (“0” is valid only when the resolution is 8 bit) “1”: Signed RES1-0: ADC Resolution Mode Select “00”: 8bit “01”: 16bit “10”: 24bit MIX: ADC Data Mix Control “0”: Lch and Rch are not mixed. “1”: Lch and Rch are mixed. Dynamic range and S/N can be improved by approximately 3dB when the same analog signal is inputted to left and right channels. INTFQ2-0: Initial Sampling Frequency “000”: 8kHz, “001”: 11.025kHz “010”: 16kHz, “011”: 22.05kHz “100”: 32kHz, “101”: 44.1kHz “110”: 48kHz MS1202-E-00 2010/06 - 24 - [AK5373] Addr 0AH 0BH 0CH 0DH 0EH 0FH 10H Register Name Sampling Frequency Alt 1 Sampling Frequency Alt 2 Sampling Frequency Alt 3 Sampling Frequency Alt 4 Sampling Frequency Alt 5 Sampling Frequency Alt 6 Sampling Frequency Alt 7 D7 VALID1 VALID2 VALID3 VALID4 VALID5 VALID6 VALID7 D6 FS48K1 FS48K2 FS48K3 FS48K4 FS48K5 FS48K6 FS48K7 D5 FS44K1 FS44K2 FS44K3 FS44K4 FS44K5 FS44K6 FS48K7 D4 FS32K1 FS32K2 FS32K3 FS32K4 FS32K5 FS32K6 FS32K7 D3 FS22K1 FS22K2 FS22K3 FS22K4 FS22K5 FS22K6 FS22K7 D2 FS16K1 FS16K2 FS16K3 FS16K4 FS16K5 FS16K6 FS16K7 D1 FS11K1 FS11K2 FS11K3 FS11K4 FS11K5 FS11K6 FS11K7 D0 FS8K1 FS8K2 FS8K3 FS8K4 FS8K5 FS8K6 FS8K7 D6 0 D5 0 D4 0 D3 0 D2 EPNO2 D1 EPNO1 D0 EPNO0 FS8K: Sampling Frequency 8kHz Enable “0”: Disable “1”: Enable FS11K: Sampling Frequency 11.025kHz Enable “0”: Disable “1”: Enable FS16K: Sampling Frequency 16kHz Enable “0”: Disable “1”: Enable FS22K: Sampling Frequency 22.05kHz Enable “0”: Disable “1”: Enable FS32K: Sampling Frequency 32kHz Enable “0”: Disable “1”: Enable FS44K: Sampling Frequency 44.1kHz Enable “0”: Disable “1”: Enable FS48K: Sampling Frequency 48kHz Enable “0”: Disable “1”: Enable VALID: Alternate Setting Enable “0”: Disable “1”: Enable Addr 11H Register Name Endpoint Number D7 0 EPNO2-0: Endpoint Number (1~7) MS1202-E-00 2010/06 - 25 - [AK5373] Addr 12H 13H 14H Register Name Initial Volume Minimum Volume Maximum Volume D7 D6 D5 D4 D3 D2 D1 D0 INTVOL7 INTVOL6 INTVOL5 INTVOL4 INTVOL3 INTVOL2 INTVOL1 INTVOL0 MINVOL7 MINVOL6 MINVOL5 MINVOL4 MINVOL3 MINVOL2 MINVOL1 MINVOL0 MAXVOL7 MAXVOL6 MAXVOL5 MAXVOL4 MAXVOL3 MAXVOL2 MAXVOL1 MAXVOL0 INTVOL7-0: The Value which the AK5373 returns when the host requests the current volume at first time. (Table 10) MINVOL7-0: The Value which the AK5373 returns when the host requests the minimum volume. (Table 10) MAXVOL7-0: The Value which the AK5373 returns when the host requests the maximum volume. (Table 10) Addr 15H 16H Register Name Mute Control 1 Mute Control 2 D7 0 MHT7 D6 0 MHT6 D5 0 MHT5 D4 0 MHT4 D3 OSME MHT3 D2 ZCE MHT2 D1 ZTM1 MHT1 D0 ZTM0 MHT0 ZTM1-0: Zero-crossing timeout period select “00”: 128/fs “01”: 256/fs “10”: 512/fs “11”: 1024/fs ZCE: ADC Digital Volume Zero-crossing enable “0”: Digital Volume changes occur immediately. “1”: Digital Volume changes occur only on zero-crossing or after timeout. OSME: One Shot Mute Enable for LMUTEN, RMUTEN pins “0”: Disable “1”: Enable MHT7-0: One Shot Mute Hold Time 00H: N/A 01H: 1/fs FFH: 255/fs MS1202-E-00 2010/06 - 26 - [AK5373] ■ Descriptor Overview AudioControl Interface AudioStreaming Interface Audio Function Microphone IT OT ID1 USB IN Endpoint ID2 Figure 19. AK5373 Topology Device Configuration Interface 0 AudioControl I/F AudioStreaming I/F Alt. Setting 0 Interface 1 AudioStreaming I/F Alt. Setting 1~7 Class-specific AC I/F Input Terminal Class-specific AS General I/F Output Terminal Type 1 Format Type Feature Unit Endpoint Standard Descriptors Class-specific Isochronous Audio Data Endpoint Class-specific Descriptors Figure 20. Descriptor Hierarchy MS1202-E-00 2010/06 - 27 - [AK5373] ■ Descriptors Specification (for example) □ Customizable Block All Descriptor contents are stored in EEP-ROM and customizable with some restrictions. a) Device Descriptor, String Descriptor - Maximum Packet Size - idVendor - idProduct - Manufacturer Name (max. 126bytes) - Product Name (max. 126bytes) - Serial Number (max. 126bytes) - Language ID b) Configuration Descriptor - Power Consumption c) Feature Unit Descriptor: <Active> or < Bypass> - If Feature Unit is not defined in the descriptor, the volume is fixed to the initial value which is described in the EEP-ROM header block d) PCM format (Note that the AK5373 supports 7 sample rates even when only 1 sample rate is specified in the descriptor.) e) Endpoint Number f) Maximum Value of Digital Gain g) Minimum Value of Digital Gain h) Initial Value of Digital Gain □ Uncustomizable Block a) b) c) d) e) f) g) h) Configuration Number (1) Interface Number (1) Input Terminal ID (1) Output Terminal ID (2) Feature Unit ID (3) Synchronization way (support Synchronous Type) Maximum Alternate Setting number (7) Endpoint Number (1-7) 1. Device descriptor Offset 0 1 2 Field bLength bDescriptorType bcdUSB Size 1 1 2 Value 0x12 0x01 0x0200 4 5 6 7 8 10 12 14 15 16 bDeviceClass bDeviceSubClass bDeviceProtocol bMaxPacketSize0 idVendor idProduct bcdDevice iManufacturer iProduct iSerialNumber 1 1 1 1 2 2 2 1 1 1 0x00 0x00 0x00 0x08 0x0556 0x0006 0x0100 0x01 0x02 0x03 17 bNumConfigurations 1 0x01 Description Size of this descriptor in bytes DEVICE descriptor 2.0 – USB Specification Release Number in Binary-Coded Decimal. Device defined at Interface level Not used. Must be set to 0. Not used. Must be set to 0. 8 bytes – Maximum packet size for endpoint zero AKM – Vendor ID (assigned by the USB-IF) AK5373 – Product ID (assigned by the manufacturer) 1.00 – Device release number in binary-coded decimal Index of string descriptor describing manufacturer Index of string descriptor describing product Index of string descriptor describing the device’s serial number One configuration MS1202-E-00 2010/06 - 28 - [AK5373] 2. Configuration Descriptor Offset 0 1 2 Field bLength bDescriptorType wTotalLength Size 1 1 2 Value 0x09 0x02 0x01AF 4 bNumInterfaces 1 0x02 5 6 7 8 bConfigurationValue iConfiguration bmAttributes MaxPower 1 1 1 1 0x01 0x00 0x80 0x32 Description Size of this descriptor in bytes CONFIGURATION descriptor Total length of data returned for this configuration. Includes the combined length of all descriptors returned for this configuration. Two interfaces (Audio Control Interface and Audio Streaming Interface) Index of this configuration Null string Bus Powered Device Power consumption: 100mA 3. Audio Control Interface Descriptor 3.1 Standard Audio Control Interface descriptor Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x00 0x00 0x00 0x01 0x01 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 0 AUDIO AUDIO_CONTROL Not used. Must be set to 0. Null string MS1202-E-00 2010/06 - 29 - [AK5373] 3.2 Class-specific Audio Control Interface Descriptor Offset 0 1 2 3 Field bLength bDescriptorType bDescriptorSubtype bcdADC Size 1 1 1 2 Value 0x09 0x24 0x01 0x0100 5 wTotalLength 2 0x0028 7 8 bInCollection bInterfaceNr(1) 1 1 0x01 0x01 Description Size of this descriptor in bytes CS_INTERFACE HEADER subtype 1.0 – Audio Device Class specification release number in Binary-Coded Decimal. Total size of class-specific Audio Control Interface descriptors (includes this descriptor) Number of streaming interfaces Streaming interface number 1 belongs to this audio control interface. 3.3 Input Terminal Descriptor Offset 0 1 2 3 4 6 7 8 10 11 Field bLength bDescriptorType bDescriptorSubtype bTerminalID wTerminalType bAssocTerminal bNrChannels wChannelConfig iChannelNames iTerminal Size 1 1 1 1 2 1 1 2 1 1 Value 0x0C 0x24 0x02 0x01 0x0201 0x02 0x02 0x0003 0x00 0x00 Description Size of this descriptor in bytes CS_INTERFACE INPUT_TERMINAL subtype ID of this terminal Terminal is Microphone ID of associated Output Terminal is 0x02 Two channels (Stereo) Left/Right Front Not used. Must be set to 0. Not used. Must be set to 0. Size 1 1 1 1 2 1 1 1 Value 0x09 0x24 0x03 0x02 0x0101 0x01 0x03 0x00 Description Size of this descriptor in bytes CS_INTERFACE OUTPUT_TERMINAL subtype ID of this terminal USB Streamer ID of associate Input Terminal is 0x01 From Feature Unit Not used. Must be set to 0. Size 1 1 1 1 1 1 1 1 1 1 Value 0x0A 0x24 0x06 0x03 0x01 0x01 0x01 0x02 0x02 0x00 Description Size of this descriptor in bytes CS_INTERFACE FEATURE_UNIT descriptor subtype ID of this feature Unit ID to Terminal to which this is connected. Size in bytes of an element of the bmaControl() D0(Mute) is enable for ch 0 D1(Volume) is enable for ch 1 (Left) D1(Volume) is enable for ch 2 (Right) Not used. Must be set to 0. 3.4 Output Terminal Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bDescriptorSubtype bTerminalID wTerminalType bAssocTerminal bSourceID iTerminal 3.5 Feature Unit Descriptor Offset 0 1 2 3 4 5 6 7 8 9 Field bLength bDescriptorType bDescriptorSubtype bUnitID bSourceID bControlSize bmaControls(0) bmaControls(1) bmaControls(2) iFeature MS1202-E-00 2010/06 - 30 - [AK5373] 4. Audio Streaming Interface Descriptor 4.1 Zero-bandwidth Alternate Setting 4.1.1 Standard Audio Streaming Interface Descriptor (Alt = 0) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x00 0x00 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoints 0 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string 4.2 Operational Alternate Setting 1 4.2.1 Standard Audio Streaming Interface Descriptor (Alt = 1: Mono, 8bit, 8k/16k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x01 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string 4.2.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0002 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM8 MS1202-E-00 2010/06 - 31 - [AK5373] 4.2.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 11 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] Size 1 1 1 1 1 1 1 1 3 3 Value 0x0E 0x24 0x02 0x01 0x01 0x01 0x08 0x02 0x001F40 0x003E80 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I One channel One byte per slot 8 bits Two frequencies 8000Hz 16000Hz 4.2.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x0010 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 1byte*16sample*1ch=16 byte/frame One packet every frame (Must be set to 1) 4.2.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x01 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Sample rate control Unused 4.3 Operational Alternate Setting 2 4.3.1 Standard Audio Streaming Interface Descriptor (Alt = 2: Mono, 16bit, 48k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x02 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string MS1202-E-00 2010/06 - 32 - [AK5373] 4.3.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0001 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM 4.3.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] Size 1 1 1 1 1 1 1 1 3 Value 0x0B 0x24 0x02 0x01 0x01 0x02 0x10 0x01 0x00BB80 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I One channel Two bytes per slot 16 bits One frequency 48000Hz 4.3.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x0060 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 2byte*48sample*1ch=96 byte/frame One packet every frame (Must be set to 1) 4.3.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x00 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Unused MS1202-E-00 2010/06 - 33 - [AK5373] 4.4 Operational Alternate Setting 3 4.4.1 Standard Audio Streaming Interface Descriptor (Alt = 3: Mono, 24bit, 32k/44.1k/48k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x03 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string 4.4.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0001 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM 4.4.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 11 14 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] tSamFreq[2] Size 1 1 1 1 1 1 1 1 3 3 3 Value 0x11 0x24 0x02 0x01 0x01 0x03 0x18 0x03 0x007D00 0x00AC44 0x00BB80 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I One channel Three bytes per slot 24 bits Three frequencies 32000Hz 44100Hz 48000Hz 4.4.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x0090 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 3byte*48sample*1ch=144 byte/frame One packet every frame (Must be set to 1) MS1202-E-00 2010/06 - 34 - [AK5373] 4.4.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x01 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Sample rate control Unused 4.5 Operational Alternate Setting 4 4.5.1 Standard Audio Streaming Interface Descriptor (Alt = 4: St, 8bit, 8k/11.025k/16k/22.05k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x04 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string 4.5.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0002 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM8 4.5.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 11 14 17 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] tSamFreq[2] tSamFreq[3] Size 1 1 1 1 1 1 1 1 3 3 3 3 Value 0x14 0x24 0x02 0x01 0x02 0x01 0x08 0x04 0x001F40 0x002B11 0x003E80 0x005622 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I Two channels One byte per slot 8 bits Four frequencies 8000Hz 11025Hz 16000Hz 22050Hz MS1202-E-00 2010/06 - 35 - [AK5373] 4.5.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bendpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x002E 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 1byte*23sample*2ch=46 byte/frame One packet every frame (Must be set to 1) 4.5.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x01 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Sample rate control Unused 4.6 Operational Alternate Setting 5 4.6.1 Standard Audio Streaming Interface Descriptor (Alt = 5: St, 16bit, 8k/16k/32k/44.1k/48k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x05 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string 4.6.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0001 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM MS1202-E-00 2010/06 - 36 - [AK5373] 4.6.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 11 14 17 20 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] tSamFreq[2] tSamFreq[3] tSamFreq[4] Size 1 1 1 1 1 1 1 1 3 3 3 3 3 Value 0x17 0x24 0x02 0x01 0x02 0x02 0x10 0x05 0x001F40 0x003E80 0x007D00 0x00AC44 0x00BB80 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I Two channel Two bytes per slot 16 bits Five frequencies 8000Hz 16000Hz 32000Hz 44100Hz 48000Hz 4.6.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x00C0 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 2byte*48sample*2ch=192 byte/frame One packet every frame (Must be set to 1) 4.6.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x01 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Sample rate control Unused 4.7 Operational Alternate Setting 6 4.7.1 Standard Audio Streaming Interface Descriptor (Alt = 6: St, 16bit, 8k/11.025k/16k/22.05k /32k/44.1k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x06 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string MS1202-E-00 2010/06 - 37 - [AK5373] 4.7.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0001 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM 4.7.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 11 14 17 20 23 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] tSamFreq[2] tSamFreq[3] tSamFreq[4] tSamFreq[5] Size 1 1 1 1 1 1 1 1 3 3 3 3 3 3 Value 0x1A 0x24 0x02 0x01 0x02 0x02 0x10 0x06 0x001F40 0x002B11 0x003E80 0x005622 0x007D00 0x00AC44 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I Two channels Two bytes per slot 16 bits Six frequencies 8000Hz 11025Hz 16000kHz 22050Hz 32000Hz 44100Hz 4.7.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x00B4 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 2byte*45sample*2ch=180 byte/frame One packet every frame (Must be set to 1) 4.7.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x01 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Sample rate control Unused MS1202-E-00 2010/06 - 38 - [AK5373] 4.8 Operational Alternate Setting 7 4.8.1 Standard Audio Streaming Interface Descriptor (Alt = 7: St, 24bit, 8k/11.025k/16k/22.05k /32k/44.1k/48k) Offset 0 1 2 3 4 5 6 7 8 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x01 0x07 0x01 0x01 0x02 0x00 0x00 Description Size of this descriptor in bytes INTERFACE descriptor Index of this interface Index of this setting Endpoint 1 AUDIO AUDIO_STREAMING Not used. Must be set to 0. Null string 4.8.2 Class-specific Audio General Interface Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x01 0x0001 Description Size of this descriptor in bytes CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal (Output Terminal ID) Interface delay PCM 4.8.3 Type I Format Type Descriptor Offset 0 1 2 3 4 5 6 7 8 11 14 17 20 23 26 Field bLength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] tSamFreq[2] tSamFreq[3] tSamFreq[4] tSamFreq[5] tSamFreq[6] Size 1 1 1 1 1 1 1 1 3 3 3 3 3 Value 0x1D 0x24 0x02 0x01 0x02 0x03 0x18 0x07 0x001F40 0x002B11 0x003E80 0x005622 0x007D00 0x00AC44 0x00BB80 Description Size of this descriptor in bytes CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I Two channels Three bytes per slot 24 bits Seven frequencies 8000Hz 11025Hz 16000kHz 22050Hz 32000Hz 44100Hz 48000Hz 4.8.4 Standard Endpoint Descriptor Offset 0 1 2 3 4 6 7 8 Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x0D 0x0120 0x01 0x00 0x00 Description Size of this descriptor in bytes ENDPOINT descriptor Endpoint 1, IN direction Isochronous, synchronous, not shared 3byte*48sample*2ch=288 byte/frame One packet every frame (Must be set to 1) MS1202-E-00 2010/06 - 39 - [AK5373] 4.8.5 Class-specific Isochronous Audio Data Endpoint Descriptor Offset 0 1 2 3 4 5 Field bLength bDescriptorType bDescriptorSubtype bmAttributes bLockDelayUnits wLockDelay Size 1 1 1 1 1 2 Value 0x07 0x25 0x01 0x01 0x00 0x0000 Description Size of this descriptor in bytes CS_ENDPOINT GENERAL Sample rate control Unused MS1202-E-00 2010/06 - 40 - [AK5373] 5. String Descriptor 5.1 Language ID (0x00) String Descriptor Offset 0 1 2 Field bLength bDescriptorType bString Size 1 1 2 Value 0x04 0x03 0x0409 Description Size of this descriptor in bytes STRING descriptor “English(US)” - Language code 5.2 Manufacturer (0x01) String Descriptor Offset 0 1 2 Field bLength bDescriptorType bString Size 1 1 126 Value 0x80 0x03 0x0041 0x004B 0x0020 : 0x0020 Description Size of this descriptor in bytes STRING descriptor Manufacturer code (max 126 bytes) “AKM ” Value 0x80 0x03 0x0041 0x004B 0x0035 0x0033 0x0037 0x0033 0x0020 : 0x0020 Description Size of this descriptor in bytes STRING descriptor Product code (max 126 bytes) “AK5373 ” 5.3 Product (0x02) String Descriptor Offset 0 1 2 Field bLength bDescriptorType bString Size 1 1 126 5.4 Serial Number (0x03) String Descriptor Offset 0 1 2 Field bLength bDescriptorType bString Size 1 1 126 Value 0x80 0x03 0x0041 0x0042 0x0043 0x0044 0x0031 0x0032 0x0033 0x0034 0x0020 : 0x0020 Description Size of this descriptor in bytes STRING descriptor Serial Number code (max 126 bytes) “ABCD1234 MS1202-E-00 ” 2010/06 - 41 - [AK5373] ■ Standard Requests The AK5373 only supports commands mentioned bellow. If unknown commands are input, the device returns a stall. 1. Clear Feature Offset 0 Field bmRequestType Size 1 1 2 bRequest wValue 1 2 4 wIndex 2 6 wLength 2 Value 0x00 0x02 0x01 0x0000 0x0001 0x0000 0x0081 0x0082 0x0083 0x0084 0x0085 0x0086 0x0087 0x0000 Size 1 1 2 2 2 Value 0x80 0x08 0x0000 0x0000 0x0001 Size 1 1 2 Value 0x80 0x06 0x0100 0x0200 0x0300 0x0301 0x0302 0x0303 0x0000 0x0409 Description Device Endpoint CLEAR_FEATURE Clear ENDPOINT_HALT Clear DEVICE_REMOTE_WAKEUP Device or Endpoint 0 Endpoint 1 Endpoint 2 Endpoint 3 Endpoint 4 Endpoint 5 Endpoint 6 Endpoint 7 Zero 2. Get Configuration Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Description GET_CONFIGURATION One 3. Get Descriptor Offset 0 1 2 Field bmRequestType bRequest wValue 4 wIndex 2 6 wLength 2 0xZZZZ Size 1 1 2 2 Value 0x81 0x0A 0x0000 0x0000 0x0001 0x0001 Description GET_DESCRIPTOR Device Descriptor Configuration Descriptor Language ID String Descriptor iManufacturer String Descriptor iProduct String Descriptor iSerial Number String Descriptor If wValue is 0x0100, 0x0200 or 0x0300, wIndex is 0x0000. If wValue is 0x0301, 0x0302 or 0x0303, wIndex is Language ID (0x0409: English (US)). Descriptor Length (ZZZZ is assigned by Host.) 4. Get Interface Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength 2 Description GET_INTERFACE Zero Audio Control Interface Audio Streaming Interface (Alt 0 ~ 7) One MS1202-E-00 2010/06 - 42 - [AK5373] 5. Get Status Offset 0 Field bmRequestType Size 1 1 2 4 bRequest wValue wIndex 1 2 2 6 wLength 2 Value 0x80 0x81 0x82 0x00 0x0000 0x0000 0x0001 0x0081 0x0082 0x0083 0x0084 0x0085 0x0086 0x0087 0x0002 Description Device Interface Endpoint GET_STATUS Zero Device, Interface0 or Endpoint 0 Interface 1 Endpoint 1 Endpoint 2 Endpoint 3 Endpoint 4 Endpoint 5 Endpoint 6 Endpoint 7 Two Size 1 1 2 2 2 Value 0x00 0x05 0xZZZZ 0x0000 0x0000 Size 1 1 2 2 2 Value 0x00 0x09 0x0001 0x0000 0x0000 SET_CONFIGURATION AK5373 is set to configured state. Zero Zero Size 1 1 2 2 Value 0x02 0x03 0x0000 0x0081 0x0082 0x0083 0x0084 0x0085 0x0086 0x0087 0x0000 Endpoint SET_FEATURE ENDPOINT_HALT Endpoint 1 Endpoint 2 Endpoint 3 Endpoint 4 Endpoint 5 Endpoint 6 Endpoint 7 Zero 6. Set Address Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Description SET_ADDRESS Device Address (ZZZZ is assigned by Host.) Zero Zero 7. Set Configuration Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Description 8. Set Descriptor AK5373 does not support this request. 9. Set Feature Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength 2 Description MS1202-E-00 2010/06 - 43 - [AK5373] 10. Set Interface Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 4 wIndex 2 6 wLength 2 Value 0x01 0x0B 0x0000 0x0001 0x0002 0x0003 0x0004 0x0005 0x0006 0x0007 0x0000 0x0001 0x0000 Description SET_INTERFACE Zero-bandwidth Alternate Setting Alternate Setting 1 Alternate Setting 2 Alternate Setting 3 Alternate Setting 4 Alternate Setting 5 Alternate Setting 6 Alternate Setting 7 Audio Control Interface Audio Streaming Interface Zero 11. Sync Frame The AK5373 does not support this request. MS1202-E-00 2010/06 - 44 - [AK5373] ■ Audio Control Requests 1. Set Feature Unit Control Request 1-1. Mute Control Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Size 1 1 2 2 Value 0x21 0x01 0x0100 0x0300 2 0x0001 The parameter block of mute control is the following. Offset Field Size Value 0 bMute 1 0x01 0x00 Description SET_CUR MUTE_CONTROL | CHANNEL_0 Upper byte: bUnitID field in Feature Unit Control Descriptor (0x03) Lower byte: Audio Control Interface (0x00) Length of parameter block Description Mute Not mute 1-2. Volume Control Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 4 wIndex 2 Value 0x21 0x01 0x0200 0x0201 0x0202 0x0300 6 wLength 2 0x0002 Description SET_CUR VOLUME_CONTROL | CHANNEL_0 (Master) VOLUME_CONTROL | CHANNEL_1 VOLUME_CONTROL | CHANNEL_2 Upper byte: bUnit ID field in Feature Unit Control Descriptor (0x03) Lower byte: Audio Control Interface (0x00) Length of Parameter Block The parameter block of volume control is the following. Offset Field Size Value Description 0 wVolume 2 0xZZZZ The value is mapped to the volume register value. (Table 10) (ZZZZ is assigned by Host.) If the wVolume exceeds the range, the AK5373 adjusts the value into the range. MS1202-E-00 2010/06 - 45 - [AK5373] 2. Get Feature Unit Control Request 2-1. Mute Control Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Size 1 1 2 2 Value 0xA1 0x81 0x0100 0x0300 2 0x0001 The parameter block of mute control is the following. Offset Field Size Value 0 bMute 1 0x01 0x00 Description GET_CUR MUTE_CONTROL | CHANNEL_0 Upper byte: bUnitID field in Feature Unit Control Descriptor (0x03) Lower byte: Audio Control Interface (0x00) Length of parameter block Description Mute Not mute 2-2. Volume Control Offset 0 1 Field bmRequestType bRequest Size 1 1 2 wValue 2 4 wIndex 2 Value 0xA1 0x81 0x82 0x83 0x84 0x0200 0x0201 0x0202 0x0300 6 wLength 2 0x0002 The parameter block of volume control is the following. Offset Field Size Value 0 wVolume 2 0xZZYY 0x0100 Description GET_CUR GET_MIN GET_MAX GET_RES VOLUME_CONTROL | CHANNEL_0 (Master) VOLUME_CONTROL | CHANNEL_1 VOLUME_CONTROL | CHANNEL_2 Upper byte: bUnit ID field in Feature Unit Control Descriptor (0x03) Lower byte: Audio Control Interface (0x00) Length of Parameter Block Description bRequest=GET_CUR, GET_MIN, GET_MAX: ZZ is mapped to the volume register value (Table 10). YY must be 00H. bRequest=GET_RES: 1.0dB MS1202-E-00 2010/06 - 46 - [AK5373] EEP-ROM Value (INTVOL7-0 bits, Field Volume MAXVOL7-0 bits, wVolume [dB] MINVOL7-0 bits) [Hex] [Dec] 0x7F00~FF 7F 127 0x7E00~FF 7E 126 24.0 : : : 0x1900~FF 19 25 0x1800~FF 18 24 0x1700~FF 17 23 23.0 0x1600~FF 16 22 22.0 0x1500~FF 15 21 21.0 0x1400~FF 14 20 20.0 : : : : 0x0500~FF 05 5 5.0 0x0400~FF 04 4 4.0 0x0300~FF 03 3 3.0 0x0200~FF 02 2 2.0 0x0100~FF 01 1 1.0 0x0000~FF 00 0 0.0 0xFF00~FF FF 255 -1.0 0xFE00~FF FE 254 -2.0 0xFD00~FF FD 253 -3.0 0xFC00~FF FC 252 -4.0 0xFB00~FF FB 251 -5.0 : : : : 0xE700~FF E7 231 -25.0 0xE600~FF E6 230 -26.0 0xE500~FF E5 229 -27.0 0xE400~FF E4 228 -28.0 0xE300~FF E3 227 -29.0 0xE200~FF E2 226 -30.0 0xE100~FF E1 225 0xE000~FF E0 224 -31.0 : : : 0x8100~FF 81 129 0x8000~FF 80 128 Table 10. Conversion Table of Volume Control MS1202-E-00 Step [dB] - 1dB - 2010/06 - 47 - [AK5373] ■ Audio Endpoint Control Request 1. Set Endpoint Control Request Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 Value 0x22 0x01 0x0100 4 wIndex 2 0x0081 6 wLength 2 0x0003 Description SET_CUR Upper byte: SAMPLING_FREQ_CONTROL (0x01) Lower byte: Zero Upper byte: Zero Lower byte: Endpoint Address (0x81) Length of parameter block The parameter block of mute control is the following. Offset Field Size Value 0 iSampleFreq 3 0xYYYYYY Description 0x001F40: 8kHz 0x002B11: 11.025kHz 0x003E80: 16kHz 0x005622: 22.05kHz 0x007D00: 32kHz 0x00AC44: 44.1kHz 0x00BB80: 48kHz 2. Get Endpoint Control Request Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 Value 0xA2 0x81 0x0100 4 wIndex 2 0x0081 6 wLength 2 0x0003 Description GET_CUR Upper byte: SAMPLING_FREQ_CONTROL (0x01) Lower byte: Zero Upper byte: Zero Lower byte: Endpoint Address (0x81) Length of parameter block The parameter block of mute control is the following. Offset Field Size Value 0 iSampleFreq 3 0xYYYYYY Description 0x001F40: 8kHz 0x002B11: 11.025kHz 0x003E80: 16kHz 0x005622: 22.05kHz 0x007D00: 32kHz 0x00AC44: 44.1kHz 0x00BB80: 48kHz MS1202-E-00 2010/06 - 48 - [AK5373] SYSTEM DESIGN Figure 21 shows the system connection diagram. An evaluation board (AKD5373) is available for fast evaluation as well as suggestions for peripheral circuitry. To Host D+ Regulator +3.3V +5V USB D10u 0.1u C 0.1u 1.5k C X’tal=24MHz DN 25 18 DP 26 MGAIN2 27 MGAIN1 28 MGAIN0 29 TESTM3 30 37 NC CLKDRV 31 XTI 33 XTE 32 18 XTO 34 NC 36 CKM 35 Rd VSS2 24 38 ATIO 4.7u 0.1u DVDD 22 40 VCOM TESTM2 21 41 MPWR NC 16 46 MICRP VSS1 15 12 RSTN 11 SUSN TESTM1 13 10 MCLK 1u 9 TESTM0 8 LRCK 7 BICK Microphone NC 14 6 SDTO 47 NC 48 NC EEPROM EPAI 17 45 MICRN 5 SDTI 1u EPAO 18 44 VSS3 3 LMUTEN R-ch 43 NC 2 MICLP 1u 0.1u SK 19 Top View 1 MICLN 1k 1k 10u 0.1u 10u CSN 20 AK5373EQ 42 AVDD 4 RMUTEN 4.7u 0.1u NC 23 39 VREF 56k 1k 1k L-ch 3300p 1u 100k 3300p MUTE SW Notes: - “C” and “Rd” values are dependent on the crystal. When the 24MHz crystal oscillator is used (CKM pin = “H”), AT-41-24.000M-LN-N-0005 (Nihon Dempa Kogyo) or HC49SFNB24000H0PESZ1 (Kyocera) is recommended. When the 16MHz crystal oscillator is used (CKM pin = “L”), AT-41-16.000M-LN-N-0005 (Nihon Dempa Kogyo) or HC49SFNB16000H0PESZ1 (Kyocera) is recommended. - VSS1-3 must be connected the same ground plane. - All digital input pins must not be left floating. Figure 21. System Connection Diagram MS1202-E-00 2010/06 - 49 - [AK5373] 1. Grounding and Power Supply Decoupling The AK5373 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-3 of the AK5373 must be connected to the analog ground plane. System analog ground and digital ground must be connected together near to where the supplies are brought onto the printed circuit board. Decoupling capacitors must be as near to the AK5373 as possible, with the small value ceramic capacitor being the nearest. 2. Voltage Reference The voltage of VREF is 2.2V (typ) and set the analog input range. VCOM is 50%VREF and a signal ground of this chip. A 4.7μF electrolytic capacitor in parallel with a 0.1μF ceramic capacitor attached to the VREF pin and the VCOM pin eliminates the effects of high frequency noise. No load current may be drawn from the VREF pin and the VCOM pin. All signals, especially clocks, should be kept away from the VREF pin and the VCOM pin in order to avoid unwanted coupling into the AK5373. 3. Analog Inputs The analog inputs are full-differential and input resistance is 20kΩ (typ). The input signal range is typ. ±0.038Vpp (@MGAIN = +30dB) and typ. ±1.2Vpp (@MGAIN = 0dB), centered around the internal common voltage (typ. 1.1V). Usually the input signal is AC coupled using a capacitor. The cut-off frequency is fc = 1/ (2πRC). The DC offset including the ADC’s own DC offset is removed by the internal HPF (fc=0.93Hz@fs=48kHz). The AK5373 can accept input voltages from VSS1 to VREF. MS1202-E-00 2010/06 - 50 - [AK5373] PACKAGE ■ 48pin LQFP (Unit: mm) 1.70Max 9.0 ± 0.2 0.13 ± 0.13 7.0 36 1.40 ± 0.05 25 9.0 ± 0.2 24 7.0 37 13 48 1 12 0.09 ~ 0.20 0.5 0.22 ± 0.08 0.10 M 0° ~ 10° 0.10 S 0.3 ~ 0.75 ■ Package & Lead frame material Package molding compound: Epoxy, Halogen (bromine and chlorine) free Lead frame material: Cu Lead frame surface treatment: Solder (Pb free) plate MS1202-E-00 2010/06 - 51 - [AK5373] MARKING AK5373EQ XXXXXXX 1 1) Pin #1 indication 2) Date Code: XXXXXXX (7 digits) 3) Marking Code: AK5373EQ 4) Asahi Kasei Logo MS1202-E-00 2010/06 - 52 - [AK5373] REVISION HISTORY Date (YY/MM/DD) 10/06/03 Revision 00 Reason First Edition Page/Line Contents IMPORTANT NOTICE z These products and their specifications are subject to change without notice. When you consider any use or application of these products, please make inquiries the sales office of Asahi Kasei Microdevices Corporation (AKM) or authorized distributors as to current status of the products. z Descriptions of external circuits, application circuits, software and other related information contained in this document are provided only to illustrate the operation and application examples of the semiconductor products. You are fully responsible for the incorporation of these external circuits, application circuits, software and other related information in the design of your equipments. AKM assumes no responsibility for any losses incurred by you or third parties arising from the use of these information herein. AKM assumes no liability for infringement of any patent, intellectual property, or other rights in the application or use of such information contained herein. z Any export of these products, or devices or systems containing them, may require an export license or other official approval under the law and regulations of the country of export pertaining to customs and tariffs, currency exchange, or strategic materials. z AKM products are neither intended nor authorized for use as critical componentsNote1) in any safety, life support, or other hazard related device or systemNote2), and AKM assumes no responsibility for such use, except for the use approved with the express written consent by Representative Director of AKM. As used here: Note1) A critical component is one whose failure to function or perform may reasonably be expected to result, whether directly or indirectly, in the loss of the safety or effectiveness of the device or system containing it, and which must therefore meet very high standards of performance and reliability. Note2) A hazard related device or system is one designed or intended for life support or maintenance of safety or for applications in medicine, aerospace, nuclear energy, or other fields, in which its failure to function or perform may reasonably be expected to result in loss of life or in significant injury or damage to person or property. z It is the responsibility of the buyer or distributor of AKM products, who distributes, disposes of, or otherwise places the product with a third party, to notify such third party in advance of the above content and conditions, and the buyer or distributor agrees to assume any and all responsibility and liability for and hold AKM harmless from any and all claims arising from the use of said product in the absence of such notification. MS1202-E-00 2010/06 - 53 -