ASAHI KASEI [AK4571] AK4571 USB I/F : : USB 12 Mbps bit rate USB Serial Interface Engine SIE Audio Class Processing Block 4 Endpoints USB transceiver 16 bit codec - A/D Converter 1 channel for Microphone Pre-Amp (Fixed Gain: 20dB) Mute/Volume Control Programmable Gain Control +24dB to –31dB ( 1dB step ) - D/A Converter 2 channel - Mixer Mute/Attenuation Control +0dB to –47dB ( 1dB step ) Analog Bass Boost HID Support - Audio CODEC AK4571 1ch A/D 16bit CODEC PLL Engine AK4571 2ch D/A USB I/F 7 ADC DAC SIE Serial Interface FIFO 20dB -31dB 1 USB +24dB 1dB D/A 0dB -43dB 1dB AK4571 HID AK4571 AK4571 & Power Management EEPROM Interface (Micrpwore Type) - Descriptor EEPROM - 1K/2K/4K bit EEPROM 1uA USB 500uA Microwire EEPROM I/F Vendor ID Product ID AK4571 USB On-chip PLL 7 8kHz, 11.025kHz, 16kHz, 22.05kHz, 32kHz, 44.1kHz, 48kHz Single Power Supply, Low Power +3.3Volts±0.3V Package 48pin LQFP MS0153-J-03 2005/06 -1- ASAHI KASEI [AK4571] VA AGND BGND STBY CS RBFI M M Bass Boost Bass Boost EPDO EPAI SK EPEN EEPROM I/F Power Management EPSW EMSW RBFO LOUT INC VREF MICBIAS ROUT VRAD VRDA MSTAT IMUTE OMUTE DEC DGND VD VCOM Config ROM Master volume Mixer ATT Σ ATT DAC String ROM FIFO DAC Σ EPSEL FIFO Audio Control Block USB Serial Interface Engine USB Transceiver DP DN LBFI LBFO GAIN MICIN 20dB M ADC GAIN AMP1O AMP2I M FIFO PLL AMP2O LFLT_44K LFLT_48K LFLT_SYS XTLIN PLL1 XTLOUT RSTN CRYSTAL MS0153-J-03 2005/06 -2- ASAHI KASEI [AK4571] AK4571VQ 0 ∼ +70°C 48pinLQFP(0.5mm 40 EPSEL 35 DGND BGND XTALOUT XTALIN TEST2 45 1 TEST1 IMUTE MSTAT INC DEC OMUTE RSTN SUSN DP DN TEST3 VD ) EPDI EPAO SK 5 CS EPSW STBY 30 EMSW LFLT_SYS LFLT_44K LFLT_48K VCOM EPEN TESTMODE3 TESTMODE2 VRDA 10 VRAD 25 20 15 ROUT RBFO RBFI LOUT LBFO LBFI TESTMODE1 AMP2O AMP2I AMP1O MICIN MICBIAS MS0153-J-03 AGND VA 2005/06 -3- ASAHI KASEI [AK4571] No. Signal Name USB Interface 46 DP I/O Ana / Dig I/O D USB bus Non-Inverting pin. Since the AK4571 is a full-speed device, a 1.5kΩ resistor must be connected between D+ node to VD. 47 DN Reset, Crystal, PLL 45 RSTN I/O D USB bus Inverting Pin. I D Reset Pin. Low input resets the chip. Schmitt Trigger input. Suspend Pin "L": Suspend Mode “H”: Normal Mode Crystal Oscillator Output, Connect Crystal Resonator. Connect capacitor Crystal Oscillator Input, Connect Crystal Resonator. Connect capacitor System PLL loop filter Pin. Connect 2.7kΩ resistor and 22nF capacitor in series externally. Codec PLL loop filter Pin. Connect 120kΩ resistor and 6.8nF capacitor in series externally. Codec PLL loop filter Pin. Connect 120kΩ resistor and 6.8nF capacitor in series externally. 44 SUSN O D 4 5 9 XTALOUT XTALIN LFLT_SYS O I O A A A 10 LFLT_44K O A 11 LFLT_48K O A O O O I O I O A A A A A A A O O I O I O O A A A A A A A Analog Input/Output 12 VCOM 27 VRAD 28 VRDA 14 MICIN 15 AMP1O 16 AMP2I 17 AMP2O 21 24 19 20 22 23 13 LOUT ROUT LBFI LBFO RBFI RBFO MICBIAS External Headphone Amplifier Control 6 EPSW O 7 STBY O 8 EMSW O Description Analog Common Voltage Reference Pin ADC Common Voltage Reference Pin. ADC Common Voltage Reference Pin. Mono Channel Microphone Input Mono Channel 1st Amplifier Output Pin Mono Channel 2nd Amplifier Input Pin Mono Channel 2nd Amplifier Output Pin Please Connect 1nF capacitor. Left Channel D/A Out Right Channel D/A Out Left Channel Bass Boost Filter Input Pin Left Channel Bass Boost Filter Output Pin Right Channel Bass Boost Filter Input Pin Right Channel Bass Boost Filter Input Pin Voltage Reference Output for the Microphone’s bias voltage When the chip goes into Suspend mode, this pin goes to Hi-Z. External Headphone Amplifier Power Switch Control Pin 1 “H”: Normal Operation “L”: Suspend Mode External Headphone Amplifier Power Switch Control Pin 2 “L”: Normal Operation “H”: Suspend Mode External Headphone Amplifier Mute Control Pin “H”: MUTE ON “L”: MUTE OFF MS0153-J-03 2005/06 -4- ASAHI KASEI [AK4571] No. Signal Name EEPROM I/F I/O Ana / Dig Description 31 CS O D EEPROM I/F Chip Select Pin 32 SK O D Read Clock Pin 34 EPDI I D EEPROM Data Input Pin 33 EPAO O D EEPROM Address Output Pin 35 EPEN I D 36 EPSEL I D EEPROM Enable Pin "H": Read Device/String Descriptor from external EEPROM ”L”: Read Device/String Descriptor from internal ROM. CS,SK,EPDI,EPAO are Hi-Z EEPROM Select “L”: 1Kbit Type EEPROM is connected. “H”: 2Kbit/4Kbit EEPROM is connected HID Interface 39 IMUTE I D 43 OMUTE I D 41 INC I D 42 DEC I D 40 MSTAT O D P P P P P A A D D D Power Supply 25 VA 26 AGND 1 VD 2 DGND 3 BGND Test Mode 18 TESTMODE1 29 TESTMODE2 30 TESTMODE3 38 TEST1 I I I I A/D Mute Toggles mute status at the rising edge. If this pin is not used, please connect this pin to DGND. D/A Mute Sets “1” to internal register at the rising edge, and reset to “0” at the falling edge. If this pin is not used, please connect this pin to DGND. D/A Volume Up Pin Sets “1” to internal register at the rising edge, and reset to “0” at the falling edge. If this pin is not used, please connect this pin to DGND. D/A Volume Down Pin Sets “1” to internal register at the rising edge, and reset to “0” at the falling edge. If this pin is not used, please connect this pin to DGND. Recording Mute Status Pin. “H”: Mute ON “L”: Mute OFF In suspend mode, this pin is “L”. Analog Power Supply, 3.3V Analog Ground Digital Power Supply, 3.3V Digital Ground Bulk Ground, 0V Please tie down to AGND for normal operation. Please tie down to AGND for normal operation. Please tie down to AGND for normal operation. Please tie down to DGND for normal operation. 37 TEST2 O Please open state 48 TEST3 I Please tie down to DGND for normal operation. MS0153-J-03 2005/06 -5- ASAHI KASEI [AK4571] AGND, DGND=0V Parameter Power Supplies Analog Digital |DGND-AGND| Input Current (any pins except for supplies) Analog Input Voltage Digital Input Voltage Ambient Temperature Storage Temperature Note 1. AGND, DGND=0V Parameter Ambient Temperature Power Supplies Analog Digital Symbol min Max Units VA VD ∆GND IIN VINA VIND Ta Tstg -0.3 -0.3 4.5 4.5 0.3 ±10 VA+0.3 VD+0.3 70 125 V V V mA V V °C °C -0.3 -0.3 0 -40 Symbol Ta min 0 typ Max 70 Units VA VD 3.0 3.0 3.3 3.3 3.6 3.6 V V MS0153-J-03 2005/06 -6- ASAHI KASEI [AK4571] Ta=25°C,VA=VD=3.3V, Signal Frequency=1kHz, Sampling Frequency Fs=44.1kHz BW=20Hz – 20kHz, TEST mode; unless otherwise specified Parameter Min typ Max Units Mono ADC (1 channel) Resolution 16 bits S/N (A weight) @44.1kHz 83 dBA (PGA is set to 0dB) AMP2I input : USB Normal mode S/(N+D) (-1.0dB analog input) USB Normal mode 73 dB Full scale input Voltage 0.53 0.6 0.67 Vrms MIC amplifier S/N (A weight) 76 84 dBA MICIN input AMP1O output Gain 20dB Selected +17 +20 +23 dB Input Impedance 10 20 kΩ Stereo DAC (2 channel) Resolution 16 bits S/N (A weight) @44.1kHz (DAC volume &master volume is set to 0dB) 84 dBA USB Normal mode S/(N+D) (-1.0dB digital input) USB Normal mode 75 dB Full scale output Voltage 0.53 0.6 0.67 Vrms PGA Step size 0 1.0 2.0 dB Attenuation control range -31 +24 dB Input Impedance AMP2I input 10 20 kΩ Master volume: step size 0 1.0 2.0 dB Attenuation control range -47 0 dB Output Load Resistance 10 kΩ Output Load Capacitance 5 pF Bass Boost Internal Resistance 40 kΩ External Resistance 360 400 kΩ External Capacitance 5 pF MIC Bias (Buffer Amp) Output Voltage 1.94 2.2 2.46 Vdc Output Current 2 mA Power Supplies mA 52 35 Analog mA 23 15 Digital mA 75 50 Total uA 150 0 Power Down(Suspend) MS0153-J-03 2005/06 -7- ASAHI KASEI [AK4571] Ta=25°C, VA=VD=3.3V, fs=44.1kHz Parameter ADC Digital Filter ( Decimation LPF) min typ 0 26.5 70 Pass band (±0.2dB) Stop band Stop band Attenuation Group Delay ADC Digital Filter (HPF) max Units 17.64 kHz kHz dB ms 0.363 Frequency Response: -3dB -0.5dB -0.1dB DAC Digital Filter 6.89 19.3 44.9 0 26.5 70 Pass band (±0.2dB) Stop band Stop band Attenuation Group Delay DAC Analog Post filter Hz 17.64 kHz kHz dB ms - dB 0.312 Pass band Frequency Response - MS0153-J-03 ±0.1 2005/06 -8- ASAHI KASEI [AK4571] DC Ta=0 - 70°C; VD=3.0 - 3.6V; DGND=0V Measurement under static state All digital pins except DP, DN. Schmitt hysteresis level of RSTN pin and levels of all test pins will not be tested. Parameter Symbol Min Typ Max EPDI,EPEN, EPSEL, pin “H” level input voltage VIH 70%VD EPDI, EPEN, EPSEL pin “L” level input voltage VIL 30%VD RSTN pin “H” level voltage VIHR 2.4 RSTN pin “L” level voltage VILR 0.8 IMUTE, OMUTE, INC, DEC pin “H” level voltage VIHR 2.4 IMUTE, OMUTE, INC, DEC pin “L” level voltage VILR 0.8 SUSN, EPSW, STBY, EMSW, MSTAT pin VOH 2.4 “H” level output voltage IOH= 2mA SUSN, EPSW, STBY, EMSW, MSTAT pin VOL 0.6 “L” level output voltage IOL= -2mA CS, SK, EPAO pin “H” level output voltage VOH 2.4 IOH= 2mA CS, SK, EPAO pin “L” level output voltage VOL 0.6 IOL= -2mA DP, DN Single Ended Receiver Threshold for “H” level VIHR 2.0 DP, DN Single Ended Receiver Threshold for pin “L” level VILR 0.8 Input Leakage Current Iin ±10 Rpd 100 Pull down Resistance (only EPDI pin)@3.3V Ta=25°C Ta=25°C, VA=VD=3.3V Parameter Symbol Min Typ Master Clock Frequency MCLK 12.000 Reset input width @RSTN pin(low active) Wrst 1.0 Time Width for USB Reset Signal Recognition Trst_rec 3.0 DP<VseL & DN< VseL to USB Reset mode Device Ready Time from USB Reset After releasing from USB Reset to Device Ready Tdrr (Transaction can start) Time Width for Suspend Recognition Tsus_rec 4.36 Idle state ( DP > VseL & DN < VseL ) to Suspend mode Resume Time from Suspend First flip of DP/DN from Idle state Tresm To Device Ready*) Imute input width with @IMUTE pin(High active) Wimute 10.005 Omute,Dec,Inc input width with @OMUTE,DEC,INC Wodi 2.001 pin (High active) Device Ready: VREF, X’tal oscillator and PLL are stable and standard bus transactions can proceed MS0153-J-03 Units V V V V V V V V V V V V µA kΩ Max - Units MHz us µs 10 ms ms 30 ms ms ms 2005/06 -9- ASAHI KASEI [AK4571] Trst_rec Tdrr Tsus_rec Tresm resume time recovery time D+ D- Master Clock Figure 1. Mode Change with respect to Bus States Ta=25°C; VD=3.3V; DGND=0V; CL=50pF Parameter Symbol Transmitter Data Rate DR Pins DP,DN Output Impedance (Hi) Roh DP, DN Output Impedance (Lo) Rol DP, DP Vohd Vold Iolk Trf/Tff Trfm Vcrs DP, DN DP, DN DP, DN DP, DN DP, DN DP, DN CMR Vdiff DP, DN DP, DN “H” level Output Voltage “L” level Output Voltage Tri-state Leakage Current Rise/Fall Time Rise/Fall Time Matching Crossover Point Receiver Input Common Mode range Differential Input Level Conditions DP, DN=”H” at Iout = -10mA DP, DN=”L” at Iout = 10mA at Iout =-200uA at Iout =2.2mA 0 < DP, DN< 3.3V | DP – DN | MS0153-J-03 Min Typ Max Units 11.97 12 12.03 MHz 36 Ω 36 Ω 2.8 -10 4 0.8 0.2 10 100 1.65 0.3 10 20 2.5 V V µA ns % V V V 2005/06 - 10 - ASAHI KASEI [AK4571] Trf Trs Tff Tfs 90%VD DP, DN 10%VD Figure 2. Rise/Fall Time Vcrs DP, DN Figure 3. Crossover Point MS0153-J-03 2005/06 - 11 - ASAHI KASEI [AK4571] 1. 1.1. AK4571 PLL 12MHz 3 PLL 2 48MHz 44.1kHz 48kHz PLL AK4571 CODEC AK4571 SOF SOF Adaptive Sink SOF(Start of Frame) D/A A/D 8kHz, 11.025kHz, 16kHz, 22.05kHz, 32kHz, 44.1kHz, 48kHz 7 USB 1.2. AK4571 A/D D/A A/D D/A MIC 16bit 1ch A/D A/D 2ms D/A FIFO 16bit 2ch D/A 24dB -31dB 1dB 0 20dB 47dB 1dB MIC DAC MIC MIC PC 1.3. AK4571 20dB ON/OFF 1.4. SIE AK4571 NRZI, Bit Stuffing USB Audio Class SIE(Serial Interface Engine) ON/OFF 1.5. HID AK4571 HID Human Interface Device ON/OFF Windows PC Windows PC 1.6. PC AK4571 USB ON/OFF ”Volume mixer” HID EEPROM I/F ROM EEPROM EEPROM MS0153-J-03 Vendor ID Product ID Device Descriptor String Descriptor 2005/06 - 12 - ASAHI KASEI [AK4571] 1.7. 3ms SUSPEND AK4571 PLL typ. 1uA Hi-Z MICBIAS AK4571 Active Low USB D+, / Active High AK4571 2 200uA AK4571 500uA USB 30ms 1.8. AK4571 USB USB MS0153-J-03 2005/06 - 13 - ASAHI KASEI [AK4571] 2. 2.1. AK4571 AK4571 PLL Endpoint Isochronous USB SOF codec IN Endpoint(A/D OUT Endpoint D/A Asynchronous Endpoint ) Synchronous USB SOF(1ms) 2ms 2 44.1kHz N Frame (N+1) Frame 44 samples 44 samples 10 1 45 (N+9) Frame (N+10) Frame 45 samples 44 samples Figure 4 Synchronization Scheme AK4571 2 AK4571 A/D A/D N D/A 1 FIFO A/D FIFO N+1 SOF IN transaction IN FIFO 1SOF D/A D/A codec D/A PLL SOF SOF 2.2. USB <500mA) 3) Self-powered Devices AK4571 1) Low-power Bus-powered Devices (<100mA) 2) High-power Bus-powered Devices(>100mA 3 Low-power Bus-powered Devices High-power Bus-powered Devices USB1.1 200uA USB SUSPEND Bus-powered Hub Bus-powered Hub 500uA AK4571 D+ 1.5kΩ 2 a) ADC DAC Resume PLL 30ms b) USB 500uA ON/OFF AK4571 MS0153-J-03 2005/06 - 14 - ASAHI KASEI [AK4571] MICBIAS Active High Hi-z Acrtive Low 2 Mute AK4571 SOF SUS_N(internal) EMSW(Mute SW) STBY EPSW(STBY) 1.45ms 1.45ms Figure 5 Suspend and Resume Sequence MS0153-J-03 2005/06 - 15 - ASAHI KASEI [AK4571] 2.3. AK4571 MICBIAS 2.2V USB 1mA AK4571 Hi-Z MICBIAS 2.4. AK4571 300 EEPROM Device Descriptor, String Descriptor AK4571 1) Device Descriptor(18 ID Descriptor ROM ID EEPROM I/F ) 2) String Descriptor (Manufacturer Name, Product Name 2 EEPROM 4 EEPROM String Descriptor ROM ROM 50 Microwire I/F 1K/2K/4K bit EEPROM EPEN ”H” AK4571 GET_DESCRITPOR(String) EPEN = “L” CS, SK, EPAO ”Descriptor " 1Kbit EEPROM String Descriptor 2K/4Kbit EEPROM String Descriptor String Descriptor K bit EEPROM ROM EPSEL ) AKM AK93C45A/55A/65A EEPROM Device Descriptor EEPROM Hi-Z 52 50 100 52 ”L” 100 100 102 2K/4K bit EEPROM EPSEL ”H” EEPROM Device Descriptor (18 bytes) String Descriptor Lang ID (4 bytes index = 0) String Descriptor iManufacturer (52 or 102 bytes: index =1) String Descriptor iProduct (52 or 102 bytes: index = 2) 1K bit EEPROM (AK93C45A) 00h -08h 09h –0Ah 0Bh-24h25h-3Eh 2K/4K bit EEPROM (AK93C55A/65A) 00h-08h 09h-0Ah 0Bh-3Dh 3Eh-71h Table 1 Relationship between EEPROM Address and Descriptor AK4571 EEPROM EEPROM EEPROM EEPROM EEPROM EPEN=”L” EEPROM- EEPROM CS, CK, EPAO Hi-Z MS0153-J-03 2005/06 - 16 - ASAHI KASEI [AK4571] 2.5. AK4571 Bass Boost LBFO-LBFI RBFO-RBFI 20dB External Circuit Cb Rb LBFI/RBFI LBFO/RBFO Figure 6 Analog Bass Boost Circuit Bass Boost 25 Amplitude[dB] 20 Rb=360k Cb=1nF Rb=360k Cb=4.7nF 15 Rb=120k Cb=2.2nF 10 5 0 10 100 1000 10000 100000 Frequency[Hz] Figure 7 Bass Boost Characteristics MS0153-J-03 2005/06 - 17 - ASAHI KASEI [AK4571] 2.6. HID Human Interface Device 2.6.1. HID USB PC AK4571 Lineout (OMUTE pin) INC AK4571 HID INC pin DEC pin Windows Lineout ON/OFF Line HID INC pin, DEC pin, OMUTE pin Interrupt Interrupt AK4571 ”1” Set Feature Unit Feature 2.6.2. AK4571 HID AK4571 HID Interface Interface #3 Interrupt Endpoint (1 byte) Interface #3 Standard Interface Descriptor Interface Number Interface Class(HID) etc. Descriptor Type Length of Report Descriptor etc. HID Descriptor EP address Interrupt Endpoint etc. Endpoint Descriptor Figure 8 Hierarchy of HID Interface Interrupt Endpoint AK4571 Interrupt OMUTE 1 1 Bit 7 “0” 3 Bit 6 “0” INC , DEC Bit 5 “0” Bit 4 “0” ”Ç” Bit 3 “0” Bit 2 OMUTE Interrupt Endpoint(IEP) NAK MS0153-J-03 Bit 1 DEC Bit 0 INC ”1” 2005/06 - 18 - ASAHI KASEI [AK4571] bInterval SOF Interrupt Transfer “1” NAK NAK NAK “0” NAK OMUTE DEC INC Figure 9 Interrupt Transfer Timing 3.3V IMUTE OMUTE DEC INC 0.1u 47K Figure 10 AK4571 OMUTE INC DEC 2.6.3. IMUTE IMUTE MSTAT AK4571 MUTE ”Ç” MUTE Windows MSTAT = IMUTE OMUTE MUTE MSTAT HID MUTE “H” -> “L” -> “L” HID & SUS_N ON OFF AK4571 IMUTE Figure 10 MS0153-J-03 2005/06 - 19 - ASAHI KASEI [AK4571] 2.7. AK4571 16 USB LSB 1) 16bit mono data format on the USB (A/D data) Sample # bit position #1 mono Lower Upper 8 bit 8 bit 0-7 8-15 #2 mono Lower Upper 8bit 8 bit 0-7 8-15 #3 mono Lower Upper 8 bit 8 bit 8-15 8-15 … … … … 2) 16bit stereo data format on the USB (D/A data) Sample # bit position #1 Left channel data Lower Upper 8 bit 8 bit 0-7 8-15 Right channel data Lower Upper 8 bit 8 bit 0-7 8-15 Left channel data Lower Upper 8 bit 8 bit 0-7 8-15 MS0153-J-03 #2 Right channel data Lower Upper 8bit 8 bit 0-7 8-15 … … … … 2005/06 - 20 - ASAHI KASEI [AK4571] 2.8. Device topology and function USB Mute/AGC/Bass boost AK4571 Audio Control (AC) Interface Descriptor Device Request 1) A/D IN Endpoint#1 Gain/Attenuation/Mute 2) D/A OUT Endpoint#2 ( MIC [OT1] A/D Lineout / 20dB / ) D/A FU2 FU1 Gain/Attenuation/Mute Attenuation/Mute LineOut MIC 3) HID Endpoint#3 OUTPUT INPUT Audio Streaming Interface #1 IN Endpoint #1 Audio Control Interface #0 Microphone MIC (+20dB) IPGA SU1 IT1 FU1 ID:5 ID:1 A/D OT1 ID:2 ID:7 FU2 ID:6 OPGA MU1 D/A (Analog) IT2 ID:3 Audio Streaming Interface #2 OUT Endpoint #2 D/A FU3 Σ ID:8 ID:9 LineOut OT2 ID:4 HID Interface #3 IN Endpoint #3 Figure 11 AK4571 Topology MS0153-J-03 2005/06 - 21 - ASAHI KASEI [AK4571] [ ] Cluster: ( 2.8.1. a) Input Terminal(IT) IT(Input Terminal) ) IT(ID:1) b) Output Terminal(OT) OT(Output Terminal) c) FU(Feature Unit) FU(Feature Unit) A/D AK4571 bmaControls(2) bcontrolSize bmaControl(0) Volume bmaControls(0), bmaControls(1) , D8 USB Audio Class Volume bmaControl ”0x01” Mute Bass Boost Mute, Volume 1CH Mixer Unit IT(ID:3) OT(ID:4) Volume, Bass Boost, Mute ”1” Bass Boost Lineout FU3 0x02” e) MU Mixer Unit MU Mixer Unit AK4571 OT(ID:2) D/A A/D DAC Channel Channel2 Mixer Unit FU bmControl ”0” Mixer Unit 1 Master Channel (Microphone) Lch D/A Lch Rch D/A Rch Figure 12 Channel Connection ) SU Selector Unit Window MIC FU2 MS0153-J-03 2005/06 - 22 - ASAHI KASEI [AK4571] 2.8.2. (1)Device Descriptor, (2) Configuration Descriptor, (3) Interface Descriptor (4) Endpoint Descriptor, (5) String Descriptor AK4571 1 Interface 0 Configuration, 4 Interface Interface 1(A/D ) Interface 2 D/A Device Device Descriptor Configuration Configuration Descriptor 1 Interface 3(HID ) 1 Endpoint(EP) Interface Interface 0 Interface 1 Interface 2 Interface 3 Standard Audio Control Interface Descriptor Standard AS Interface Descriptor Alt. Setting 0 Standard AS Interface Descriptor Alt. Setting 0 Standard AS Interface Descriptor Alt. Setting 0 Class-Specific Audio Control Interface Descriptor Standard AS Interface Descriptor Alt. Setting 1 Standard AS Interface Descriptor Alt. Setting 1,2 HID Descriptor Input Terminal Descriptor Class-Specific Audio Streaming Interface Descriptor Class-Specific Audio Streaming Interface Descriptor Output Terminal Descriptor Class-Specific AS Format Type Descriptor Class-Specific AS Format Type Descriptor Feature Unit Descriptor(Mute,Volume,AGC) Mixer Unit Descriptor Selector Unit Descriptor Standard AS Isochronous Endpoint Descriptor Standard AS Isochronous Endpoint Descriptor Class-Specific AS Isochronous Endpoint Descriptor Class-Specific AS Isochronous Endpoint Descriptor IN Endpoint (Isochronous) Standard HID Interrupt Endpoint Descriptor IN Endpoint (interrupt) OUT Endpoint (Isochronous) Figure 13 Descriptor Hierarchy MS0153-J-03 2005/06 - 23 - ASAHI KASEI [AK4571] Device Descriptor Device Descriptor AK4571 1 Configuration Descriptor Configuration Descriptor AK4571 4 Interface Interface Descriptor AK4571 4 Interface Descriptor a) Audio Control (AC) Interface b) Audio Streaming(AS) Interface1 for A/D converter c) Audio Streaming(AS) Interface2 for D/A converter d) HID Interface for Mute & Volume Control AC Interface Terminal/Function Unit AS Interface AK4571 AS Interface 1, 2 Alternate Setting 0 (Alt 0), Alternate Setting 1 (Alt 1) Alt 1 A/D, D/A descriptor wMaxPacketSize 200 AK4571 A/D IN Endpoint Alt 0 USB Standard Endpoint D/A(OUT Endpoint) 100 Endpoint Descriptor AC Interface AS Interface 1 Endpoint 0(default pipe) Isochronous, Asynchronous HID Interface Interrupt EP 1 AS Interface Endpoint Descriptor AS Interface 2 Isochronous, Synchronous Volume/Mute AK4571 NAK MS0153-J-03 IN/OUT, 1ms Interrupt 1 2005/06 - 24 - ASAHI KASEI [AK4571] 3. 3.1. Device Descriptor Offset 0 1 2 4 5 6 7 8 10 Field bLength bDescriptorType BcdUSB bDeviceClass bDeviceSubClass bDeviceProtocol bMaxPacketSize0 IdVendor IdProduct 12 14 15 16 17 bcdDevice IManufacturer Iproduct ISerialNumber bNumConfigurations Size 1 1 2 1 1 1 1 2 2 Value 0x12 0x01 0x0110 0x00 0x00 0x00 0x08 0x0556 0x0004 2 1 1 1 1 0x0100 0x01 0x02 0x00 0x01 Description Size of this descriptor in bytes DEVICE descriptor 1.10 - current revision of USB spec. Device defined at Interface level Unused Unused 8 bytes AKM’s Vendor ID Upper 00 means Audio Product Lower 04 means AKM product ID Device release code “ AKM ” “ AK4571” Unused One configuration Table Device Descriptor 3.2. Offset 0 1 2 4 5 6 7 8 Configuration Descriptor Field Blength bDescriptorType WTotalLength BnumInterfaces bConfigurationValue IConfiguration BmAttributes MaxPower Size 1 1 2 1 1 1 1 1 Value 0x09 0x02 0x011C 0x04 0x01 0x00 0x80 0x31 Description Size of this descriptor CONFIGURATION descriptor length of entire configuration block total 284 bytes including this interface descriptor. Four interfaces index of this configuration null string supports Bus Powered Device 98mA MS0153-J-03 2005/06 - 25 - ASAHI KASEI [AK4571] 3.3. 3.3.1. Offset 0 1 2 3 4 5 6 7 8 Interface Descriptor # 0 Standard Audio Control Interface Descriptor Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol IInterface Value 0x09 0x04 0x00 0x00 0x00 0x01 0x01 0x00 0x00 Description Size of this descriptor INTERFACE descriptor Index of this interface Index of this setting only uses Endpoint 0 AUDIO AUDIO_CONTROL not vendor or class specific null string Table Standard Interface Descriptor Class-Specific Audio Control Interface Descriptor 3.3.2. Offset 0 1 2 3 5 Size 1 1 1 1 1 1 1 1 1 Field BLength bDescriptorType bDescriptorSubtype BcdADC wTotalLength Size 1 1 1 2 2 Value 0x0A 0x24 0x01 0x0100 0x0065 7 8 binCollection baInterfaceNr(0) 1 1 0x02 0x01 9 baInterfaceNr(1) 1 0x02 Description Size of this descriptor CS_INTERFACE HEADER subtype Revision of class specification – 1.00 Total size of class-specific Audio Control Interface descriptors 101 byte (includes this descriptor) The number of streaming interfaces Streaming interface number 1 belongs to this audio control interface. IN Interface Streaming interface number 2 belongs to this audio control interface. OUT Interface MS0153-J-03 2005/06 - 26 - ASAHI KASEI [AK4571] 3.3.3. Terminal Descriptor(ID=3) D/A Input Terminal Offset Field 0 Blength 1 BDescriptorType 2 bDescriptorSubtype 3 BterminalID 4 WterminalType 6 BassocTerminal 7 BnrChannels 8 WChannelConfig 10 IchannelNames 11 Iterminal 3.3.4. Size 1 1 1 1 2 1 1 2 1 1 Value 0x0C 0x24 0x02 0x03 0x0101 0x04 0x02 0x0003 0x00 0x00 Description Size of this descriptor CS_INTERFACE INPUT_TERMINAL subtype ID of this terminal Terminal is USB streaming OUT Associated with Output Terminal is 0x04 Two channel Left/Right Front Unused Unused Value 0x09 0x24 0x03 0x04 0x0301 0x03 0x08 0x00 Description Size of this descriptor CS_INTERFACE OUTPUT_TERMINAL subtype ID of this terminal Terminal is Speaker Associate with Input Terminal 0x03 From Feature Unit (ID8) Unused Terminal Descriptor(ID=4) Lineout Terminal Offset Field 0 Blength 1 BdescriptorType 2 bdescriptorSubtype 3 BterminalID 4 WterminalType 6 BassocTerminal 7 BsourceID 8 Iterminal Size 1 1 1 1 2 1 1 1 MS0153-J-03 2005/06 - 27 - ASAHI KASEI [AK4571] 3.3.5. Terminal Descriptor(ID=1) Analog Microphone Input Terminal Offset Field Size 0 Blength 1 1 bDescriptorType 1 2 bDescriptorSubtype 1 3 BterminalID 1 4 WTerminalType 2 6 BAssocTerminal 1 7 BNrChannels 1 8 WChannelConfig 2 10 IChannelNames 1 11 Iterminal 1 3.3.6. Value 0x0C 0x24 0x02 0x01 0x0201 0x02 0x01 0x0000 0x00 0x00 Description Size of this descriptor CS_INTERFACE INPUT_TERMINAL subtype ID of this terminal Terminal is Microphone Associated with Output Terminal 0x02 One channel Mono sets no position bit Unused Unused Value 0x09 0x24 0x03 0x02 0x0101 0x01 0x05 0x00 Description Size of this descriptor CS_INTERFACE OUTPUT_TERMINAL subtype ID of this terminal Terminal is USB streaming Associate with Input Terminal is 0x01 From Feature Unit (ID5) Unused Terminal Descriptor (ID=2) A/D Output Terminal Offset Field 0 Blength 1 BdescriptorType 2 bdescriptorSubtype 3 BterminalID 4 WterminalType 6 BassocTerminal 7 BsourceID 8 Iterminal Size 1 1 1 1 2 1 1 1 MS0153-J-03 2005/06 - 28 - ASAHI KASEI [AK4571] 3.3.7. Feature Unit Desciptor(ID=5) Microphone Recording Volume Unit Offset Field Size 0 Blength 1 1 BdescriptorType 1 2 BdescriptorSubtype 1 3 BunitID 1 4 BsourceID 1 5 BcontrolSize 1 6 bmaControls(0) 1 7 Ifeature 1 3.3.8. Description Size of this descriptor CS_INTERFACE FEATURE_UNIT descriptor subtype ID of this feature Unit From Selector Unit One byte Control Array D0(Mute), D1(Volume) supported Unused Value 0x08 0x24 0x06 0x06 0x01 0x01 0x03 0x00 Description Size of this descriptor CS_INTERFACE FEATURE_UNIT descriptor subtype ID of this feature Unit From Input Terminal (Microphone) One byte Control Array D0(Mute) D1(Volume) supported Unused Value 0x0D 0x24 0x06 0x08 0x09 0x02 0x0101 Description Size of this descriptor CS_INTERFACE FEATURE_UNIT descriptor subtype ID of this feature Unit From Mixer Unit(ID9) Two byte Control Array D0(Mute) , D8(Bass Boost)is enable for channel0 D1(Volume) control is enable for channel 1 D1(Volume) control is enable for channel 2 Unused Feature Unit Desciptor(ID=6) Microphone Playback Volume Unit Offset Field Size 0 Blength 1 1 BdescriptorType 1 2 BdescriptorSubtype 1 3 BunitID 1 4 BsourceID 1 5 BcontrolSize 1 6 bmaControls(0) 1 7 Ifeature 1 3.3.9. Feature Unit Desciptor(ID=8) Lineout Volume/Bass Boost Unit Offset Field Size 0 blength 1 1 bdescriptorType 1 2 bdescriptorSubtype 1 3 bunitID 1 4 BsourceID 1 5 BcontrolSize 1 6 bmaControls(0) 1 8 10 12 Value 0x08 0x24 0x06 0x05 0x07 0x01 0x03 0x00 bmaControls(1) bmaControls(2) IFeature 1 1 1 0x0002 0x0002 0x00 MS0153-J-03 2005/06 - 29 - ASAHI KASEI [AK4571] 3.3.10. Mixer Unit Desciptor(ID=9) Mixer Unit D/A and Microphone Offset 0 1 2 3 4 5 6 7 Field blength bdescriptorType bdescriptorSubtype bunitID bnrInPins baSourceID(1) baSourceID(2) bnrChannels 8 10 11 wChannnelConfig iChannelNames bmControl 2 1 1 0x0003 0x00 0x00 12 Imixer 1 0x00 Index of String descriptor Value 0x07 0x24 0x05 0x07 0x01 0x01 0x00 Description Size of this descriptor CS_INTERFACE Selector_UNIT descriptor subtype ID of this feature Unit Inputs Pins From Input Terminal Unused 3.3.11. Offset 0 1 2 3 4 5 6 Size 1 1 1 1 1 1 1 1 Value 0x0D 0x24 0x04 0x09 0x02 0x06 0x03 0x02 Description Size of this descriptor CS_INTERFACE MIXER_UNIT subtype ID of this terminal Number of Input Pin From Feature Unit 2(ID6) From IT(ID3) Number of logical output channels in the Mixer’s output audio channel cluster describes the spatial location L/R front Index of String descriptor bit map no control Selector Unit Desciptor(ID=7) Field blength bdescriptorType bdescriptorSubtype bunitID bNrInPins bSourceID(1) IFeature Size 1 1 1 1 1 1 1 MS0153-J-03 2005/06 - 30 - ASAHI KASEI [AK4571] 3.4. Interface Descriptor #1 3.4.1. Standard Interface descriptor <Alternate Setting 0> (A/D Audio Streaming Data) Zero Bandwidth 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 Length of this descriptor INTERFACE descriptor Index of this interface Index of this setting 0 Endpoint AUDIO AUDIO_STREAMING Unused null string MS0153-J-03 2005/06 - 31 - ASAHI KASEI [AK4571] 3.4.2. Offset 0 1 2 3 4 5 6 7 8 Standard Interface descriptor <Alternate Setting 1> (A/D Audio Streaming Data) Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface 3.4.3. Offset 0 1 2 3 4 5 Value 0x09 0x04 0x01 0x01 0x01 0x01 0x02 0x00 0x00 Description Length of this descriptor INTERFACE descriptor Index of this interface Index of this setting 1 Endpoint AUDIO AUDIO_STREAMING Unused null string Class-specific audio streaming interface descriptor <Alt 1> Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag 3.4.4. Offset 0 1 2 3 4 5 6 7 8 11 14 17 20 23 26 Size 1 1 1 1 1 1 1 1 1 Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x02 0x00 0x0001 Description Length of this descriptor CS_INTERFACE descriptor AS_GENERAL Unit ID of terminal(Output Terminal ID) Interface delay PCM Value 0x1D 0x24 0x02 0x01 0x01 0x02 0x10 0x07 0x001F40 0x002B11 0x003E80 0x005622 0x007D00 0x00AC44 0x00BB80 Description Size of this descriptor CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I One channel Two bytes per slot 16 bits Seven frequencies 8000Hz 11025Hz 16000Hz 22050Hz 32000Hz 44100Hz 4800Hz Type I format type descriptor 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 3 3 MS0153-J-03 2005/06 - 32 - ASAHI KASEI [AK4571] 3.4.5. Offset 0 1 2 3 4 6 7 8 Standard Endpoint descriptor Field bLength bDescriptorType bendpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress 3.4.6. Offset 0 1 2 3 4 5 Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x81 0x05 0x0064 0x01 0x00 0x00 Description Length of this descriptor ENDPOINT descriptor Endpoint 1, IN direction Isochronous, asynchronous 2byte*50sample*1ch=100 byte/frame One packet every frame (Must be set to 1) Unused Unused Class-specific isochronous audio data endpoint descriptor 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 CS_ENDPOINT EP GENERAL sample rate control Unused MS0153-J-03 2005/06 - 33 - ASAHI KASEI [AK4571] 3.5. Interface Descriptor #2 3.5.1. Standard Audio Streaming Interface descriptor <Alternate Setting 0> (D/A Audio Streaming Data) Zero Bandwidth Offset 0 1 2 3 4 5 6 7 10 Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface 3.5.2. Offset 0 1 2 3 4 5 6 7 8 Value 0x09 0x04 0x02 0x00 0x00 0x01 0x02 0x00 0x00 Description Length of this descriptor INTERFACE descriptor Index of this interface Index of this setting endpoints 0 AUDIO AUDIO_STREAMING Unused null string Operational Interface descriptor <Alternate Setting 1> (D/A Audio Streaming Data) Field BLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface 3.5.3. Offset 0 1 2 3 4 5 Size 1 1 1 1 1 1 1 1 1 Size 1 1 1 1 1 1 1 1 1 Value 0x09 0x04 0x02 0x01 0x01 0x01 0x02 0x00 0x00 Description Length of this descriptor INTERFACE descriptor Index of this interface Index of this setting Streaming AUDIO AUDIO_STREAMING Unused null string Class-specific audio streaming interface descriptor<Alternate Setting 1> Field bLength bDescriptorType bDescriptorSubtype bTerminalLink bDelay wFormatTag Size 1 1 1 1 1 2 Value 0x07 0x24 0x01 0x03 0x00 0x0001 Description Length of this descriptor CS_INTERFACE descriptor AS_GENERAL Unit ID of Terminal(Input Terminal) Interface delay PCM MS0153-J-03 2005/06 - 34 - ASAHI KASEI [AK4571] 3.5.4. Offset 0 1 2 3 4 5 6 7 8 11 14 17 20 23 23 Type I format type descriptor<Alternate Setting 1> Field blength bDescriptorType bDescriptorSubtype bFormatType bNrChannels bSubFrameSize bBitResolution bSamFreqType tSamFreq[0] tSamFreq[1] tSamFreq[2] tSamFreq[3] tSamFreq[4] tSamFreq[5] tSamFreq[6] 3.5.5. Offset 0 1 2 3 4 6 7 8 Value 0x1D 0x24 0x02 0x01 0x02 0x02 0x10 0x07 0x001F40 0x002B11 0x003E80 0x005622 0x007D00 0x00AC44 0x00BB80 Description Size of this descriptor CS_INTERFACE FORMAT_TYPE FORMAT_TYPE_I Two channels Two bytes per slot 16 bits Seven frequencies 8000Hz 11025Hz 16000Hz 22050Hz 32000Hz 44100Hz 48000Hz Endpoint descriptor Field bLength bDescriptorType bEndpointAddress bmAttributes wMaxPacketSize bInterval bRefresh bSynchAddress 3.5.6. Offset 0 1 2 3 4 5 Size 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 Size 1 1 1 1 2 1 1 1 Value 0x09 0x05 0x02 0x09 0x00C8 0x01 0x00 0x00 Description Length of this descriptor ENDPOINT descriptor Endpoint 2, OUT direction Adaptive Isochronous, 2byte*(48+2)sample*2ch=200 byte/frame 1millisecond (Must be set to 1) Unused Unused Class-specific isochronous audio data endpoint descriptor 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 CS_ENDPOINT EP_GENERAL Sample rate control Unused Unused MS0153-J-03 2005/06 - 35 - ASAHI KASEI [AK4571] 3.6. 3.6.1. Offset 0 1 2 3 4 5 6 7 8 Interface #3 HID Class Standard Interface Descriptor Field bLength bDescriptorType bInterfaceNumber bAlternateSetting bNumEndpoints bInterfaceClass bInterfaceSubclass bInterfaceProtocol iInterface 3.6.2. Offset 0 1 2 4 5 6 7 Value 0x09 0x04 0x03 0x00 0x01 0x03 0x00 0x00 0x00 Description Size of this descriptor INTERFACE descriptor Index of this interface Index of this setting endpoint 1 HID Non-Boot Device Unused null string Size 1 1 2 1 1 1 2 Value 0x09 0x21 0x0110 0x00 0x01 0x22 0x001f Description Size of this descriptor HID HID spec rev #1.10 HID Descriptor Field bLength bDescriptorType bcdHID bCoundtryCode bNumDescriptor bDescriptorType bDescriptorLength 3.6.3. Offset 0 1 2 3 4 6 Size 1 1 1 1 1 1 1 1 1 Report Descriptor 31 bytes Endpoint Descriptor Field bLength bDescriptorType bendpointAddress bmAttributes wMaxPacketSize wInterval Size 1 1 1 1 2 1 Value 0x07 0x05 0x83 0x03 0x0001 0x40 Description Length of this descriptor ENDPOINT descriptor Endpoint 3, IN direction Interrupt 64ms Interval MS0153-J-03 2005/06 - 36 - ASAHI KASEI [AK4571] String descriptors use UNICODE. 3.6.4. Language ID (0x00) Index Offset Field Size 0 bLength 1 1 bDescriptorType 1 2 bString 2 Value 0x04 0x03 0x0409 Description Length of this descriptor STRING descriptor “English(US)” 3.6.5. iManufacterer(0x01) Field in Device Descriptor for AKM Offset Field Size Value Description 0 bLength 1 0x34 Length of this descriptor 1 bdescriptorType 1 0x03 STRING descriptor 2 bString 50 0x0041 “AKM ” 0x004B 0x004D 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 MS0153-J-03 2005/06 - 37 - ASAHI KASEI [AK4571] 3.6.6. iProduct (0x02) Field in Device Descriptor Offset Field Size Value 0 bLength 1 0x34 1 bDescriptorType 1 0x03 2 bString 50 0x0041 0x004B 0x0034 0x0035 0x0037 0x0031 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 0x0020 Description Length of this descriptor STRING descriptor “AK4571 ” MS0153-J-03 2005/06 - 38 - ASAHI KASEI [AK4571] 4. standard Device Request 4.1. AK4571 Offset 0 Field bmRequestType 1 2 bRequest wValue 1 2 4 6 wIndex wLength 2 2 4.2. AK4571 Offset 0 1 2 4 6 Clear Feature 1 Field bmRequestType bRequest wValue wIndex wLength wIndex wLength 4.4. Get Interface AK4571 #2 Alt0,Alt1 Offset Field 0 bmRequestType 1 bRequest 2 wValue 4 wIndex 6 Description Device Endpoint CLEAR_FEATURE clear ENDPONT0 HALT clear REMOTE_WAKEUP Get Configuration 4.3. Get Descriptor Descriptor Offset Field 0 bmRequestType 1 bRequest 2 wValue 4 6 ACK Value 0x00 0x02 0x01 0x0000 0x0001 0x0000 0x000 Size 1 wLength Size 1 1 2 2 2 ”1” Value 0x80 0x08 0x0000 0x0000 0x0001 Size 1 1 2 Value 0x80 0x06 0xZZZZ 2 2 0x0000 0xZZZZ Size 1 1 2 2 2 Description GET_CONFIGURATION Description GET_DESCRIPTOR ZZZZ is assigned by host: High Byte is Desc. type, Low Byte is Index. DEVICE : 0x0100 : (Index is 0 only) CONFIGURATION : 0x0200 Descriptor Length (ZZZZ is assigned by host) Interface Alternate Setting Iterface #1, Interface Interface #0, Interface #3 Alt0 Value Description 0x81 0x0A GET_INTERFACE 0x0000 ZERO 0x0000 Audio Control Interface 0x0001 Audio Streaming Interface for A/D 0x0002 Audio Streaming Interface for D/A 0x0003 HID Interface 0x0001 AK4571 has zero bandwidth Audio Streaming Interface and normal Audio Streaming Interface. MS0153-J-03 2005/06 - 39 - ASAHI KASEI [AK4571] 4.5. Get Status 4.5.1. Get Status Offset 0 Field bmRequestType 1 2 4 bRequest wValue wIndex 6 *) wLength Size 1 Value Description 0x80 DEVICE 0x81 INTERFACE 0x82 ENDPOINT 1 0x00 GET_STATUS 2 0x0000 ZERO 2 0x0000 bmRequestType is “DEVICE" 0x0001 bmRequestType is “INTERFACE “ 0x0002 bmRequestType is I”NTERFACE" 0x0003 bmRequestType is “INTERFACE “ 0x0000 bmRequestType is “ENDPOINT" 0x0081 bmRequestType is “ENDPOINT" *) 0x0002 bmRequestType is “ENDPOINT" * 0x0083 bmRequestType is “ENDPOINT" *) 0x0084 2 0x0002 SET_INTERFACE( Alt "0" ) STALL Alt "0" SET_INTERFACE 0x0000 Alt "0" (2 ) a) Device: 0x0000 (Bus Powered, No-remote wakeup) b) Interface: 0x0000 c) Endpoint: 0x0000 4.6. Set Address AK4571 Value ACK Offset Field Size Value Description 0 BmRequestType 1 0x00 Zero 1 BRequest 1 0x05 SET_ADDRESS 2 wValue 2 0xZZZZ Device Address : ZZZZ is assigned by host 4 wIndex 2 0x0000 Zero 6 wLength 2 0x0000 Zero 4.7. Set Configuration AK4571 0x00,0x01 Offset Field Size 0 bmRequestType 1 1 bRequest 1 2 wValue 2 4 6 wIndex wLength 2 2 ACK Value 0x00 0x09 0x0000 0x0001 others 0x0000 0x0000 AK4571 ”1” wValue Description Zero SET_CONFIGURATION Unconfigured State AK4571 is set to configured state Unconfigured State Zero Zero MS0153-J-03 2005/06 - 40 - ASAHI KASEI [AK4571] 4.8. Set Feature Offset 0 Field bmRequestType 1 2 bRequest wValue 4 6 wValue wValue 4.9. AK4571 Size 1 1 2 wIndex 2 wLength 2 ENDPOINT(0) HALT REMOTE_WAKEUP ACK Set Interface Interface Alternate Setting Interface #0, Interface #3 Alt0 Offset 0 Field bmRequestType 1 2 bRequest wValue 1 2 4 wIndex 2 6 wLength 2 4.10. AK4571 Value Description 0x00 Device 0x02 Endpoint 0x03 SET_FEATURE 0x0000 ENDPOINT(0) HALT 0x0001 REMOTRE_WAKEUP 0x0000 0x000 AK4571 STALL AK4571 Remote wakeup Size 1 Value 0x01 0x0B 0x0000 or 0x0001 0x0000 0x0001 0x0002 0x0003 0x0000 Iterface #1, Interface #2 Alt0,Alt1 Description ONE D7 0 = Host to device D6..5 0 = Standard request D4..0 1 = Recipient is interface SET_INTERFACE Zero bandwidth Alternate Setting Normal Isochronous Streaming Audio Control Interface Audio Streaming Interface IN Audio Streaming Interface OUT HID Interface Zero Synch Frame MS0153-J-03 2005/06 - 41 - ASAHI KASEI [AK4571] 5. Device Specific Requests AK4571 STALL 5.1. Set Feature Unit Control Request 5.1.1. Mute Control DAC Value 0x21 0x01 0x0100 0x0500 0x0600 0x0800 0x0001 SET_CUR MUTE_CONTROL | CHANNEL_0 Mute for MIC Recording Volume Mute for MIC Playback Volume Mute for LineOut Volume The Length of Mute Control Parameter Block Size 1 Value 0x01 0x00 Description TRUE FALSE Size 1 1 2 2 2 Value 0x21 0x01 0x0900 0x0800 0x0001 Description SET_CUR BASS_BOOST | CHANNEL_0 LineOut BASS BOOST The Length of Mute Control Parameter Block Size 1 Value 0x01 0x00 Description TRUE FALSE Offset 0 1 2 4 Field bmRequestType bRequest wValue wIndex Size 1 1 2 2 6 wLength 2 Offset 0 Field bMute 5.1.2. Bass Boost Offset Field 0 bmRequestType 1 bRequest 2 wValue 4 wIndex 6 wLength Offset 0 Field bBassBoost AK4571 L/R Description MS0153-J-03 2005/06 - 42 - ASAHI KASEI [AK4571] 5.1.3. Volume Control Volume ADC Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 4 wIndex 2 6 wLength 2 Offset 0 Field wVolume Size Value 2 0xZZZZ USB Audio Class FU1(ID5 MIC 24.0dB -------24.0dB 23.0dB -------0.0dB --------30.0dB -31.0dB -31.0dB 0.0dB -------0.0dB -1.0dB -2.0dB -------46.0dB -47.0dB --------47.0dB SET_CUR A/D: VOLUME_CONTROL | Master Channel DAC: VOLUME_CONTROL | CHANNEL_1 DAC: VOLUME_CONTROL | CHANNEL_2 A/D Feature Unit ID : 0x05 MIC REC Master CH A/D Feature Unit ID : 0x06 MIC PLAY Master CH D/A Feature Unit ID : 0x08 Lineout Lch Volume D/A Feature Unit ID : 0x08 Lineout Rch Volume Lower Byte : Audio Control Interface(0x00) Volume Control Description The value is set by host Volume (USB 1byte 00H ) USB Audio Class Format 0x7FFF -------0x1800 0x17FF -------0x0000 ------0xE200 0xE1FF ------0x8000 FU 3 (Unit ID 8, AS I/F 2 : LineOut Volume Value ) L(channel 1)/R(channel 2) Description 0x0002 ),FU2(ID6 MIC Volume Value Value 0x21 0x01 0x0200 0x0201 0x0202 0x0500 0x0600 0x0800 0x0800 DAC ) Volume USB 1byte 00H USB Audio Class Format 0x7FFF -------0x0000 0xFF00 0xFE00 --------0xD200 0xD100 -------0x8000 MS0153-J-03 2005/06 - 43 - ASAHI KASEI [AK4571] 5.2. 5.2.1. Set Selector Unit Control Request Selector Control Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Offset Field 0 bSelector ACK Size 1 1 2 2 2 Value 0x21 0x01 0x0000 0x0700 0x0001 Description SET_CUR ZERO SELECTOR UNIT CONTROL | Interface 0 The Length of Mute Control Parameter Block Size 1 Value 0xZZ Description The value is set by host MS0153-J-03 2005/06 - 44 - ASAHI KASEI [AK4571] 5.3. Get Feature Unit Control Request 5.3.1. Mute Control Offset Field Size 0 bmRequestType 1 1 bRequest 1 2 wValue 2 4 wIndex 2 Value 0xA1 0x81 0x0100 0x0500 0x0600 0x0800 Description 6 wLength 2 0x0001 GET_CUR MUTE_CONTROL | CHANNEL_0 Mute for MIC Recording Volume Mute for MIC Playback Volume Mute for Lineout Volume Lower Byte : Audio Control Interface(0x00) The Length of Mute Control Parameter Block Offset 0 Field bMute Size 1 Value 0x01 0x00 Description TRUE FALSE Mute OFF(0x00): Mute ON(0x01): 5.3.2. Bass Boost Control Offset Field 0 bmRequestType 1 bRequest 2 wValue 4 wIndex 6 wLength Offset 0 Field bBassBoost FU1(ID5), FU3(ID8) FU2(ID6) Size 1 1 2 2 2 Value 0xA1 0x81 0x0900 0x0800 0x0001 Description GET_CUR BASS_BOOST | CHANNEL_0 Size 1 Value 0x01 0x00 Description TRUE FALSE The Length of Mute Control Parameter Block BASS BOOST OFF(0x00): MS0153-J-03 2005/06 - 45 - ASAHI KASEI [AK4571] 5.3.3. Volume Control Offset 0 1 Field bmRequestType bRequest Size 1 1 2 wValue 2 4 wIndex 2 6 wLength 2 (2 bRequest 0x81 0x81 0x81 0x81 0x82 0x82 0x82 0x82 0x83 0x83 0x83 0x83 0x84 0x84 0x84 0x84 : wVolume wValue 0x0200 0x0200 0x0201 0x0202 0x0200 0x0200 0x0201 0x0202 0x0200 0x0200 0x0201 0x0202 0x0200 0x0200 0x0201 0x0202 ) wIndex 0x0500 0x0600 0x0800 0x0800 0x0500 0x0600 0x0800 0x0800 0x0500 0x0600 0x0800 0x0800 0x0500 0x0600 0x0800 0x0800 ADC,DAC Value 0xA1 0x81 0x82 0x83 0x84 0x0200 0x0201 0x0202 0x0500 0x0600 0x0800 0x0002 Description GET_CUR GET_MIN GET_MAX GET_RES VOLUME_CONTROL | Master CH (FU5, FU6) VOLUME_CONTROL | CHANNEL_1 (FU8) VOLUME_CONTROL | CHANNEL_2 (FU8) MIC Recording Volume MIC Playback Volume Lineout Volume Lower Byte: Audio Control Interface(0x00) Volume Control Stall wVolume(2 0xZZZZ 0xZZZZ 0xZZZZ 0xZZZZ 0xE100 0xE100 0xD100 0xD100 0x1800 0x1800 0x0000 0x0000 0x0100 0x0100 0x0100 0x0100 ) Desciptorn MIC MIC Line Line MIC Volume MIC Volume Line Out Volume Line Out Volume MIC Volume MIC Volume Line Out Volume Line Out Volume MIC Volume MIC Volume LineOut Volume LineOut Volume Volume Volume Lch Volume Rch Volume -31dB -31dB -47dB -47dB +24dB +24dB 0dB 0dB 1dB 1dB 1dB 1dB 0dB(0x0000) MS0153-J-03 2005/06 - 46 - ASAHI KASEI [AK4571] 5.4. 5.4.1. Get Selector Unit Control Request Selector Control Offset 0 1 2 4 6 Field bmRequestType bRequest wValue wIndex wLength Size 1 1 2 2 2 Value 0xa1 0x81 0x0000 0x0700 0x0001 GET_CUR ZERO SELECTOR UNIT CONTROL The Length of Selector Control Parameter Block Offset 0 Field bSelector Size 1 Value 0xZZ Description ”0x01” Value 0xa1 0x81 0x82 0x83 0x84 0x0000 0x0900 0x000C Description 5.5. 5.5.1. Description Get Mixer Unit Control Request Mixer Control Offset 0 1 Field bmRequestType bRequest Size 1 1 2 4 6 wValue wIndex wLength 2 2 2 Offset Field 0 bMixer GET_RES Offset 0 2 4 6 8 10 (12 Value 0x0000 0x0000 0x0000 0x8000 0x8000 0x0000 Size Value 12 0xZZ )”0x0100” Description mic 1ch mic 1ch DAC Lch DAC Lch DAC Rch DAC Rch GET_CUR GET_MIN GET_MAX GET_RES ZERO SELECTOR UNIT The Length of Mixer Control Parameter Block Description GET_CUR, GET_MIN, GET_MAX ------------------- LineOut Lch: Lineout Rch: Lineout Lch: Lineout Rch: Lineout Lch: Lineout Rch: MS0153-J-03 6 12 0dB 0dB 0dB -127dB -127dB 0dB 2005/06 - 47 - ASAHI KASEI [AK4571] 5.6. AK4571 Endpoint Control Request ADC DAC 6 Set Endpoint Control Request AK4571 SET_CUR GET_MIN, GET_MAX,GET_RES 5.6.1. Set Endpoint Control Request Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 Value 0x22 0x01 0x0100 4 wIndex 2 6 wLength 2 0x0081 0x0002 0x0003 Offset 0 Field iSampleFreq Size 3 Value 0xYYYYYY GET_CUR Description SET_CUR Upper byte: SAMPLING_FREQ_CONTROL (0x01) Lower byte : zero Endpoint Address (0x81: A/D) Endpoint Address (0x02: D/A) The Length of Sampling Frequency Parameter Block Description The following seven values are valid. Others are invalid. 0x001F40 : 8kHz 0x002B11 : 11.025kHz 0x003E80 : 16kHz 0x005622 : 22.05kHz 0x007D00 : 32kHz 0x00AC44 : 44.1kHz ( default of this LSI ) 0x00BB80 : 48kHz A/D D/A 5.6.2. Get Endpoint Control Request for IN endpoint Offset 0 1 2 Field bmRequestType bRequest wValue Size 1 1 2 Value 0xA2 0x81 0x0100 4 wIndex 2 6 wLength 2 0x0081 0x0002 0x0003 Offset 0 Field iSampleFreq Size 3 Value 0xYYYYYY Description GET_CUR Upper byte: SAMPLING_FREQ_CONTROL (0x01) Lower byte : zero Endpoint Address (0x81: A/D) Endpoint Address (0x02: D/A) The Length of Sampling Frequency Parameter Block Description The following seven values are valid. Others are invalid. 0x001F40 : 8kHz 0x002B11 : 11.025kHz 0x003E80 : 16kHz 0x005622 : 22.05kHz 0x007D00 : 32kHz 0x00AC44 : 44.1kHz ( default of this LSI ) 0x00BB80 : 48kHz MS0153-J-03 2005/06 - 48 - ASAHI KASEI [AK4571] 5.7. HID 5.7.1. Get Descriptor(HID/Report) Offset Field Size Value 0 BmRequestType 1 0x81 1 BRequest 1 0x06 2 wValue 2 0x2100 0x2200 4 wIndex 2 0x0003 6 wLength 2 0xZZZZ wValue wValue HID Descriptor Report Descriptor Description GET_DESCRIPTOR HID Descriptor Report Descriptor Interface Number (#3) Descriptor Length (ZZZZ is assigned by host) HID Descriptor Report Descriptor 31 Report Descriptor Usage Page (Consumer) Usage (Consumer Control) Collection (Application) Logical Minimum (0) Logical Maximum (1) Usage (Volume Increment) Usage (Volume Decrement) Report Size (1) Report Count (2) Input (Data, Variable, Absolute, No_Wrap, No_Preferred) Usage (Mute) Report Count (1) Input (Data, Variable, Relative, No_Wrap, No_Preferred) Report Count (5) Input (Constant) End Collection 0x05, 0x0c 0x09, 0x01 0xA1, 0x01 0x15, 0x00 0x25, 0x01 0x09, 0xE9 0x09, 0xEA 0x75, 0x01 0x95, 0x02 0x81, 0x2A 0x09, 0xE2 0x95, 0x01 0x81, 0x2E 0x95, 0x05 0x81, 0x01 0xC0 MS0153-J-03 Data Length 1 bit Number of Data INC, DEC: two 2005/06 - 49 - ASAHI KASEI [AK4571] 5.7.2. Get Report Request Offset 0 1 Field bmRequestType BRequest Size 1 1 Value 0xA1 0x01 Description Class Specific Request GET_REPORT 2 4 6 Wvalue Windex WLength 2 2 2 0x0100 0x0003 0xZZZZ Report Type (IN) and Report ID Interface No (#3) Report Descriptor Length Size 1 1 2 Value 0x80 0x06 0x03?? Description 5.8. String Offset 0 1 2 Field BmRequestType BRequest wValue 4 6 wIndex wLength wValue 2 2 don't care 0xZZZZ GET_DESCRIPTOR String 0x03?? is assigned by host: 0x0300: LangID 0x0301: iManufacturer 0x0302: iProduct Descriptor Length (ZZZZ is assigned by host) String Descriptor MS0153-J-03 2005/06 - 50 - ASAHI KASEI [AK4571] 6. System Block Diagram VD 0.1u 0.1u 47K 0.1u 47K 47K 0.1u 47K VD 1.5K 47K DP DN 3.3n 4.7µ + TEST3 0.1µ TEST2 MSTAT XTALIN LFLT_SYS CS 4.7µ VRAD RBFO ROUT RBFI LOUT LBFO LBFI AMP2I VCOM 0.1µ VRDA TESTMODE1 AMP2O 4.7µ AMP1O 120k MICIN MICBIAS LFLT_48K + TESTMODE3 TESTMODE2 LFLT_44K 22n EPEN EPDI EPAO SK STBY EMSW 120k EPSEL EPSW 10p 2.7k TEST1 IMUTE 12MHz INC DGND BGND XTALOUT 10p DEC OMUTE SUSN RSTN 1 + AGND + VA 6.8n 0.1µ + 4.7µ 0.1µ 4.7µ 0.1µ 6.8n 1µ Cb Cb 300 1µ Rb 10µ 1n + 0.1µ 1µ MIC Rb 1µ <example> Gain=19dB, fc=94Hz Rb: 360K Cb: 4.7n 10K< 10K< 4.7K/2.2K *): 10pF MS0153-J-03 2005/06 - 51 - ASAHI KASEI [AK4571] 7. Package 48pin LQFP(Unit:mm) 1.70Max 9.0 ± 0.2 0.13 ± 0.13 7.0 1.40 ± 0.05 25 24 48 13 7.0 37 1 9.0 ± 0.2 36 12 0.16 ± 0.07 0.5 0.22 ± 0.08 0.10 M 0° ∼ 10° 0.10 0.5 ± 0.2 MS0153-J-03 2005/06 - 52 - ASAHI KASEI [AK4571] 8. Marking AK4571VQ XXXXXXX 1 1) Pin #1 indication 2) Date Code: XXXXXXX (7 digits) 3) Marking Code: AK4571VQ 4) Asahi Kasei Logo MS0153-J-03 2005/06 - 53 - ASAHI KASEI [AK4571] • • • • • • MS0153-J-03 2005/06 - 54 -