SONIX SN11220ACFR

Data Sheet
USB Audio Controller
DATA SHEET
SN11220ACF
USB Audio Controller
V1.01
Copyright © 2005, Sonix Technology Co., Ltd.
All rights reserved.
SN11220ACF
Data Sheet
USB Audio Controller
SN11220ACF
I. Description
SONiX SN11220ACF is an USB audio controller designed especially for voice-band
and DECT phone CODEC. It supports 8 different sampling rates, 8KHz, 11.025KHz,
16KHz, 22.05KHz, 24KHz, 32KHz, 44.1KHz and 48KHz in playback and recording.
These 8 frequencies are selectable by setting the three external pins.
II. Features
8KHz, 11.025KHz, 16KHz, 22.05KHz, 24KHz, 32KHz, 44.1KHz and 48KHz
sampling rates for 2 channels playback and recording
Full-duplex playback/ recording audio stream without sound card in PC
Compatible with Win98 SE/ WinME/ Win2000/ WinXP and MacOS
9.2.1/MacOS10.2/MacOS10.4 without additional driver
Plug-and-Play operation with Microsoft OS or MacOS default drivers
Compliant with USB specification v1.1
Compliant with USB audio device class specification v1.0
Supports USB full speed 12Mbits/s serial data transmission
USB bus power or self power option
Supports suspend/resume and remote wake-up
6MHz crystal input with on-chip PLL and embedded transceiver for USB
On-chip PLL for synchronized with USB host for CODEC interface
USB audio function topology has four input terminals, three output terminals,
one selector unit, one mixer unit and six feature units
USB alternate setting0 is a zero-bandwidth setting; used to release the claimed
bandwidth on the bus when this device is inactive
Isochronous transfer uses adaptive, synchronous synchronization
Supports 2ch CODEC with I2S, Left-justified serial interface format
Embedded Digital Volume Control of Line out / in for I2S interface mode
Compliant with USB HID class specification v1.1; pin control for volume up /
down, play mute, and record mute
Supports two wire series bus interface; slave only interface with transfer speed
up to 400Kbps(Fast-mode)
EEPROM interface for customized USB IDs and strings; CODEC registers
programming
Sonix Confidential
-1Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
3.3 V core operation and 5 V tolerant I/O
Available in 48-pin LQFP (7x7 mm)
System on chip solution: low cost and easy implementation without external
memory
LED indicator pins for playback and recording mute
4 GPIO pins controlled via USB HID
Claim variable max packet size for saving USB bandwidth; according to
sampling rate under
HID interrupt interval can be modified via EEPROM
EEPROM content can be read from HID pipe
Transferring length up to each 16 bytes among PC to device and device to PC
by USB HID
MCU can write particular register address (0x0b) to activate device to upload
update data to PC when MCU has written new data through two wire series bus
interface (section VIII)
Embedded 5V to 3.3V regulator
Features programmable by jumper pins and EEPROM values
Support voiceband CODEC PCM interface in master/slave operation
A-law and μ-law translation
Sonix Confidential
-2Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
III. Ordering information
3
5
VSS
XSCLK
XLRCK
XSDOUT
XOUSB
XIUSB
GPIO3
PDSW
XMCLK
FREQMODE2
FREQMODE1
VDD
VDD5D
SN11220ACF: 48-pin LQFP (7x7x1.4 mm)
2
5
3
0
XSDIN
RECORD
VSSA_PLLA
MUTER
LFA
FREQMODE0
4
0
VDD
2
0
PADFUN2
SDA
GPIO0
HIDMUTER
SN11220ACF
SCL
GPIO2
GPIO1
MUTEP
CODECSEL
4
5
VOLDP
1
5
VDD
VOLDN
LEDN
LFB
RSTN
VSS
Sonix Confidential
-3Do not copy, reproduce, or distribute without permission
TAVSS
USBDM
USBDP
TAVDD
PADFUN3
VDD
PADFUN1
PADFUN0
CS
SK
5
DW
DR
1
1
0
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
IV.
SN11220ACF
Pin assignment and description (48-pin LQFP)
PIN No.
Pad Name
Pin Type
Description
1
DR(EEPROM_ DO)
I, ST
EEPROM data output
2
DW(EEPROM_ DI)
O, 4mA, SR
EEPROM data input
3
SK(EEPROM_SK)
O, 4mA, SR
EEPROM clock pin
4
CS(EEPROM_CS)
O, 4mA, SR
EEPROM chip select
5
PADFUN 0
I, ST
CODEC function configuration pin 0 (page 11)
6
PADFUN 1
I, ST
CODEC function configuration pin 1 (page 11)
7
VDD
P
3.3V power pin
8
PADFUN 3
I, ST
CODEC function configuration pin 3 (page 11)
9
TAVDD
P
Power pin for USB transceiver
10
USBDP
I/O
USB data plus (D+)
11
USBDM
I/O
USB data minus (D-)
12
TAVSS
P
Power pin for USB transceiver
13
RSTN
I, ST, PU
System reset pin, low enable. Pull-high this pin.
14
LEDN
O, 8mA, SR
LED indicator pin, output low after power on reset,
toggle during operation
Volume
15
VOLDN
down
control,
edge
trigger
with
64ms
I, ST
de-bouncing circuit
Volume up control, edge trigger with 64ms de-bouncing
16
VOLUP
I, ST
circuit
Playback mute control pin, edge trigger with 64ms
17
MUTEP
I, ST
de-bouncing circuit
18
GPIO2
19
HIDMUTER
20
GPIO0
I/O
General Purpose I/O 2
O, 8mA, SR
Playback mute led indicator
I/O
General Purpose I/O 0
Sonix Confidential
-4Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
21
VDD
P
3.3V power pin
22
LFA
I/O
Filter for internal PLL
23
VSSA_PLLA
P
GND pin
24
XSDIN/PCM_DIN
I, ST
I2S Din / PCM_Din
25
XSCLK/PCM_CLK
O, 4mA, SR
I2S SCLK for play/PCM_CLK (Master out/Slave in)
26
XLRCK/PCM_FS
O, 4mA, SR
I2S L/R frame for play /PCM_FS (Master out/Slave in)
O, 4mA, SR
I2S Dout/PCM_Dout
27
XSDOUT/
PCM_DOUT
28
XOUSB
O
6 MHz clock osc pin for USB PLL
29
XIUSB
I
6 MHz clock osc pin for USB PLL
30
GPIO3
I/O
General Purpose I/O 3
Power down switch control -- 0: normal mode, 1: power
31
PDSW
O, 4mA, SR
down mode. This pin is in power down mode when the
device is in suspending mode.
32
XMCLK/BITCLK
O, 8mA, SR
I2S CODEC master clock for play
Frequency mode select 2. {freqmode 2, 1, 0}: 011: 48K,
33
FREQMODE2
I, ST
010: 44.1K, 001: 11.025K, 000: 8K, 111: 32K, 110:
24.1K, 101: 22.05K, 100: 16K
Frequency mode select 1. {freqmode 2, 1, 0}: 011: 48K,
34
FREQMODE1
I, ST
010: 44.1K, 001: 11.025K, 000: 8K, 111: 32K, 110:
24.1K, 101: 22.05K, 100: 16K
35
VDD
P
3.3V power pin / regulator 3.3V out
36
VDD5D
P
5V power pin
37
VSS
P
GND pin
38
RECORD
I, ST
Recording function enable (1) / disable (0)
39
MUTER
I, ST
Recording mute, edge trigger with 64ms de-bouncing
circuit
Frequency mode select 1. {freqmode 2, 1, 0}: 011: 48K,
40
FREQMODE0
I, ST
010: 44.1K, 001: 11.025K, 000: 8K, 111: 32K, 110:
24.1K, 101: 22.05K, 100: 16K
Sonix Confidential
-5Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
41
PADFUN 2
42
SDA
I, ST
SN11220ACF
CODEC function configuration pin 2 (Page11)
data pin of two-wire serial port for external MCU control.
I/O,4mA, SR
This pin must be UP by resister..
clock pin of two-wire serial port for external MCU
43
SCL
I, ST
control. This pin must be UP by resister.
44
GPIO1
45
CODECSEL
I/O
General Purpose I/O 1
CODEC interface selection, it should be tied to 3.3V in
I, ST
the type of ACF.
46
VDD
P
3.3V Power pin
47
LFB
I/O
Filter for internal PLL
48
VSSA_PLLB
P
GND pin
** All input pin are 5 volt tolerance, TTL level and Schmitt trigger
All output pins are slew rate control
I – input pin, O – output pin, P – power pin, ST – Schmitt trigger, SR – slew rate control,
PU/PD – pull up or pull down
Sonix Confidential
-6Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
V.
5.1
SN11220ACF
Block diagram
I2S interface (PADFUN3~0 = 0)
PDSW
CODECSEL=1, RECORD,
FREQMODE2~0, PADFUN3~0
LEDN HIDMUTER
LFA
LFB
RSTN
Preamble
Validity
VOLUP
VOLDN
MUTEP
MUTER
User data bits
PLL CLK
generator
M
U
X
Channel status bits
Processor
GPIO3~0
Parity
SCL
MCU
interface
parallel / serial
DW
EEPROM
interface
-
Transceiver
DR
D+
D5V to 3.3V
regulator
Audio data
XSDIN
XSDOUT
USB
Memory
FIFO
DPLL
I2S
Codec controller
serial / parallel
SDA
CS
SK
Aux data
XSCLK
XLRCK
XMCLK
XIUSB
5.2
Digital
receiver
S/PDIF
decoder
PLL
XOUSB
PCM interface (Dect or voice CODEC, set PADFUN3~0 value, refer to page 11)
CODECSEL=1, RECORD,
FREQMODE2~0, PADFUN3~0
PDSW
LEDN
HIDMUTER
LFA
LFB
RSTN
Preamble
Validity
VOLUP
VOLDN
MUTEP
MUTER
PLL CLK
generator
Parity
SCL
MCU
interface
EEPROM
interface
-
Transceiver
DR
D+
D-
5V to 3.3V
regulator
Audio data
PCM IF Controller
PCM_DOUT
PCM_DIN
USB
Memory
FIFO
DPLL
XIUSB
XOUSB
parallel / serial
Aux data
serial / parallel
SDA
DW
M
U
X
Channel status bits
Processor
GPIO3~0
CS
SK
User data bits
PLL
Sonix Confidential
-7Do not copy, reproduce, or distribute without permission
S/PDIF
decoder
PCM_MCLK
PCM_CLK
PCM_FS
Digital
receiver
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
VI.
SN11220ACF
EEPROM contents arrangement
The SN11220ACF supports an external EEPROM(93C46)to be installed for the
system manufacturers to customize the USB VID, PID and the vendor/product strings
being displayed in the OS to differentiate their own products with the others. The
maximum length of the vendor and product string is 16 ASCII characters each. Some
of the features supported by the chip can also be programmed through setting proper
values in the EEPROM. The table below shows the format of the EEPROM. The
detail is described in the following sub-section.
Sonix Confidential
-8Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
Address
SN11220ACF
b15 b14 b13 b12 b11 b10
b9
b8
b7
b6
0x00
Vendor ID ( VID )
0x01
Product ID ( PID )
b5
b4
b3
b2
0x02
Manufacture string 15
Manufacture string 14
0x03
Manufacture string 13
Manufacture string 12
0x04
Manufacture string 11
Manufacture string 10
0x05
Manufacture string 9
Manufacture string 8
0x06
Manufacture string 7
Manufacture string 6
0x07
Manufacture string 5
Manufacture string 4
0x08
Manufacture string 3
Manufacture string 2
0x09
Manufacture string 1
Manufacture string 0
0x0A
Product string 15
Product string 14
0x0B
Product string 13
Product string 12
0x0C
Product string 11
Product string 10
0x0D
Product string 9
Product string 8
0x0E
Product string 7
Product string 6
0x0F
Product string 5
Product string 4
0x10
Product string 3
Product string 2
0x11
Product string 1
Product string 0
0x12
0x13
15
14
LEFT
JSEL
15
13
11
10
14
13
9
Control word 1
8
7
6
REM
OTE
WE
Reserved set to 0
Reserved
0x14
12
SELF
POW
11
10
9
Config
FUN3
FUN2
FUN1
11
10
9
15
14
13
12
0
FS_
512
0
0
4
3
Manufacture string #
Control word 2
8
7
6
12
5
5
4
2
b1
b0
1
0
Product string #
3
2
1
0
2
1
0
HID interval
FUN0
Control word 3
8
7
6
5
4
3
Reserved set to 0
USB VID and PID:
:
The default USB VID of SN11220ACF is 0x0C45. The default PID is composed by
the configurations as below {0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, RECORD,
POWER_BIT, 1}. If pin38 tie to high, RECORD will equal “1”. The POWER_BIT is
Sonix Confidential
-9Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
used to indicate that the MaxPower in USB descriptor(“1” is 100mA, “0” is 500mA).
The VID and PID can be changed by using EEPROM. Word address 0x00 is the VID
value. Word address 0x01 is the PID value. The bit1 (POWER_BIT) of the PID value
will affect the MaxPower in USB descriptor. It should be noted that forbids the VID
and PID values cannot be set to 0x0000 or 0xFFFF.
Manufacturer and Product String:
:
The default manufacturer string is “GENERIC”. It can be changed by programming
word 0x02 to 0x09 in EEPROM and set the length of it in word 0x12, bit 4 to 7.
Manufacturer string length = manufacturer string # + 1(manufacturer string # = 0x0F
means manufacturer string length = 16 bytes).
There are total of two default product strings in SN11220ACF, depending on the
features selected. They are listed in the table below.
RECORD
Product String
0
USB Speaker
1
USB Headset
The product string can be changed by programming words 0x0A to 0x11 in EEPROM
and set the length of it in word 0x12, bit 0 to 3. Product string length = product string
# + 1(product string # = 0x0F means product string length = 16 bytes).
Control word 1:
:
The control word 1 is located in word 0x12 of EEPROM.
Bit 0 to 7 is the length of USB strings and has been explained in previous paragraphs.
Bit 8 is used to set the self-power bit in the USB descriptor.
Bit 9 is used to enable remote wake feature in USB. The remote wakeup keys are
VOLP/VOLD/MUTEP/MUTER.
Bit 10 to 14 is reserved in SN11220ACF.
Bit 15 is to enable the left-justify format in I2S mode.
Control word 2:
:
The control word 2 is located in word 0x13 of EEPROM.
Bit 0 to 7 is the interval of USB HID Report IN. For example, bit 0 to 7 = 0x0A
Sonix Confidential
- 10 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
means that the interval of USB HID Report IN is 10ms and this is default value.
Bit 13 to 15 are reserved for future using and influence no function of SN11220ACF.
Bit 12 is used to enable the EEPROM setting for configure the source of CODEC. If
bit 12 is “0”, PCM configuration is defined by pin PADFUN3~0.
PCM configuration bit = 1’b1
Defined by PCM setting3~0
PCM configuration bit = 1’b0
Defined by pin (PADFUN3~0)
Bit 11 to 8 is the configuration of CODEC if Bit 12 is set to 1.
Voice CODEC
Function (Transfer interface / data format)
4’b0001
Use normal CODEC (I2S) / linear PCM
PCM IF / Long frameμ-law
4’b0010
PCM IF / Short frameμ-law
4’b0100
Echo cancellation IF / linear PCM
4’b0011
PCM IF / Long frame a-law
4’b0110
PCM IF / Short frame a-law
4’b0000
DECT chip
Type
Function (Transfer interface / data format)
4’b1000
Philips
4’b1010
Philips
Slave mode*1 / linear PCM
Slave mode / μ-law
4’b1011
Philips
Slave mode / a-law
4’b1001
Philips
4’b0111
Philips
Master mode*2 / linear PCM
Master mode /μ-law
4’b0101
Philips
Master mode / a-law
4’b1100
NS
4’b1101
NS
Slave mode / linear PCM
Slave mode /μ-law
4’b1110
NS
Slave mode / a-law
4’b1111
NS
Master mode / linear PCM
*1
. Slave mode: PCM_CLK & PCM_FS from Dect chip to SN11220.
*2
. Master mode: PCM_CLK & PCM_FS from SN11220 to Dect chip.
Control word 3:
:
The control word 3 is located in word 0x14 of EEPROM.
Bit 0 to 11 is reserved in SN11220ACF.
Bit 12 be set to “0”.
Sonix Confidential
- 11 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
Bit 13 be set to “0”.
Bit 14 selects 512 times sampling rate for I2S interface.
Bit 15 be set to “0”.
PCM IF Long-frame
PCM IF Short-frame
VII. HID bytes arrangement:
:
The SN11220ACF is equipped with a special feature to let the host software to
communicate with the USB downstream devices via the HID pipe. Using this feature,
the system manufacturers can easily upgrade or increase the functions of their product
by just updating the software installed on the PC. There are 16 bytes each for HID in
and HID out. They will be explained in the paragraphs below separately.
To receive the data from two-wire serial port and button/GPIO status from the
SN11220ACF, there are two ways. The first is to receive the HID report of the HID
pipe regularly. If any button/GPIO value changes or data received from the two-wire
serial port, the new values will be sent to the host every HID interval time(defined in
word 0x13 bit 0 to 7 and default is 10ms). The second way is to issue a HID class
Sonix Confidential
- 12 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
request “Get Report” to get the input report.
To send data to the USB audio controller, the host software should issue a HID class
request “Set Report” to send the output report. There are total of 16 bytes of both
output report and input report. The format of them is described as below.
Report In Bytes
Byte 0 Buttons
Bit 0
Vol up
Bit 1
Vol down
Bit 2
Bit 3
Mute play
Mute record(host can’t do this)
Bit 4
GPIO0 state (low=“0”, high=“1”)
Bit 5
GPIO1 state (low=“0”, high=“1”)
Bit 6
GPIO2 state (low=“0”, high=“1”)
Bit 7
GPIO3 state (low=“0”, high=“1”)
Byte 1 MCU byte 0
Bit 7~0 Two-wire serial port input register 0
Byte 2 MCU byte 1
Bit 7~0 Two-wire serial port input register 1
Byte 3 ACF reserved
Bit 7~0 Can be ignored
Byte 4 ACF reserved
Bit 7~0 Can be ignored
Byte 5 ACF reserved
Bit 7~0 Can be ignored
Byte 6 ACF reserved
Bit 7~0 Can be ignored
Byte 7 MCU byte 2
Bit 7~0 Two-wire serial port input register 2
Byte 8 MCU byte 3
Bit 7~0 Two-wire serial port input register 3
Byte 9 MCU byte 4
Bit 7~0 Two-wire serial port input register 4
Byte A MCU byte 5
Bit 7~0 Two-wire serial port input register 5
Byte B MCU byte 6
Bit 7~0 Two-wire serial port input register 6
Byte C MCU byte 7
Bit 7~0 Two-wire serial port input register 7
Byte D MCU byte 8
Bit 7~0 Two-wire serial port input register 8
Byte E MCU byte 9
Bit 7~0 Two-wire serial port input register 9
Byte F Used by SONiX
Bit 7~0 Fixed 0x00
Byte 0 :
Byte 0 is used to report the button and GPIO status of the USB device.
Sonix Confidential
- 13 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
Bit 0 and 1 are linked to the master volume control bar of the audio control panel in
the OS.
Bit 2 is linked to the master playback mute checkbox of the audio control panel in the
OS.
Bit 3 is used to mute the recording. But there is no this command in OS. SONiX
design this function in the SN11220.
Bit 4 to 7 is corresponding to the value of GPIO 0 to 3.
Byte 1:
:
Byte 1 is used to return the register 0 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte 2:
:
Byte 2 is used to return the register 1 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte 3:
:
Byte 3 can be ignored for SN11220ACF.
Byte 4:
:
Byte 4 can be ignored for SN11220ACF.
Byte 5:
:
Byte 5 can be ignored for SN11220ACF.
Byte 6:
:
Byte 6 can be ignored for SN11220ACF.
Byte 7:
:
Byte 7 is used to return the register 2 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte 8:
:
Byte 8 is used to return the register 3 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Sonix Confidential
- 14 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
Byte 9:
:
Byte 9 is used to return the register 4 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte A:
:
Byte A is used to return the register 5 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte B:
:
Byte B is used to return the register 6 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte C:
:
Byte C is used to return the register 7 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte D:
:
Byte D is used to return the register 8 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte E:
:
Byte E is used to return the register 9 value received by the two-wire serial port of
SN11220ACF. Please refer to section VIII.
Byte F:
:
Byte F is used by SONiX for the special purpose. In SN11220ACF, it will be set to
0x00 at any time.
Report Out Bytes
Byte 0 Setting
Bit 3~0 Can be ignored
Bit 4
GPIO 0 Out/In select
Bit 5
GPIO 1 Out/In select
Bit 6
GPIO 2 Out/In select
Sonix Confidential
- 15 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
Bit 7
SN11220ACF
GPIO 3 Out/In select
Byte 1 ACF reserved
Bit 7~0 Can be ignored
Byte 2 MCU byte 0
Bit 7~0 Two-wire serial port output register 0
Byte 3 GPIO out
Mode setting
Bit 0
GPIO 0 (set “1” to high, set “0” to low)
Bit 1
GPIO 1 (set “1” to high, set “0” to low)
Bit 2
GPIO 2 (set “1” to high, set “0” to low)
Bit 3
GPIO 3 (set “1” to high, set “0” to low)
Bit 6~4 HID control mode setting
Volume control Bit 7
setting
Digital volume control enable (0) / disable (1)
Byte 4 ACF reserved
Bit 7~0 Can be ignored
Byte 5 ACF reserved
Bit 7~0 Can be ignored
Byte 6 ACF reserved
Bit 7~0 Can be ignored
Byte 7 MCU byte 1
Bit 7~0 Two-wire serial port output register 1
Byte 8 MCU byte 2
Bit 7~0 Two-wire serial port output register 2
Byte 9 MCU byte 3
Bit 7~0 Two-wire serial port output register 3
Byte A MCU byte 4
Bit 7~0 Two-wire serial port output register 4
Byte B MCU byte 5
Bit 7~0 Two-wire serial port output register 5
Byte C MCU byte 6
Bit 7~0 Two-wire serial port output register 6
Byte D MCU byte 7
Bit 7~0 Two-wire serial port output register 7
Byte E MCU byte 8
Bit 7~0 Two-wire serial port output register 8
Byte F MCU byte 9
Bit 7~0 Two-wire serial port output register 9
Byte 0:
:
Bit 0 to 3 can be ignored for SN11220ACF.
Bit 4 to 7 when the HID is used to control the GPIOs, they select the directions of
GPIO pins. For example, if bit4 is “1”, the GPIO0 is defined to input pin. If bit4 is “0”,
the GPIO0 is defined to output pin. The USB host read GPIO input from ‘Report In’
bit4 to 7 of byte0. USB host output GPIO value is set from ‘Report Out’ bit0 to 3 of
byte3.
Byte 1:
:
Byte 1 can be ignored for SN11220ACF.
Sonix Confidential
- 16 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
Byte 2:
:
Byte 2 is used to set data to the register 0 of the two-wire serial port of SN11220ACF.
For detail about how to access the register of the two-wire serial port of SN11220ACF,
please refer to the section “Two-wire serial port definition”.
Byte 3:
:
Considering together with byte 0, byte 3 is used to control the GPIO ports.
Bit 0 to 3 is used to set the values of GPIO ports if this GPIO is output pin.
Bit 4 to 6 is used to set the control mode of HID. As bellow,
Bit 6 ~ 4
HID mode setting
000
SN11220ACF don’t use
001
HID program EEPROM
010
Don’t use
011
Don’t use
100
HID read EEPROM
101
Byte 0 bit 4 to 7 means GPIO Out/In select
110
SN11220ACF don’t use
111
SN11220ACF don’t use
Bit 7 is used to disable the internal digital volume control feature of SN11220ACF.
The internal digital volume control is used to regulate the volume in SN11220ACF. If
it is enabled, SN11220ACF will receive OS volume command to regulate audio data.
If it is disabled, SN11220ACF will ignore OS volume command.
Byte 4:
:
Byte 4 is reserved in SN11220ACF.
Byte 5:
:
Byte 5 is reserved in SN11220ACF.
Byte 6:
:
Byte 6 is reserved in SN11220ACF.
Sonix Confidential
- 17 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
Byte 7:
:
Byte 7 is used to set data to the register 1 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte 8:
:
Byte 8 is used to set data to the register 2 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte 9:
:
Byte 9 is used to set data to the register 3 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte A:
:
Byte A is used to set data to the register 4 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte B:
:
Byte B is used to set data to the register 5 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte C:
:
Byte C is used to set data to the register 6 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte D:
:
Byte D is used to set data to the register 7 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte E:
:
Byte E is used to set data to the register 8 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Byte F:
:
Byte F is used to set data to the register 9 of the two-wire serial port of SN11220ACF.
Please refer to section VIII.
Sonix Confidential
- 18 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
VIII. Two-wire serial port definition
To provide extension capability, SN11220ACF contains a two-wire series bus
circuitry as an interface to MCU. The two wire series bus serves as a slave device
with bit rate up to 400Kbps(fast mode). MCU can write ten bytes to the
SN11220ACF with 8-bit register address 0x38. MCU can also read ten bytes from
SN11220ACF with 8-bit register address 0x39.
This section just provides simple description of the two-wire series bus. It is
compatible with the I2C slave mode. User can get more detail explanation from the
I2C specification.
The input pin “SCL” is used to get the two wire series bus clock from MCU, and the
open-drain output pin “SDA” is used to send or receive serial signal to/from MCU. As
shown below, “SDA” should be stable when “SCL” is high, and can have transition
only when “SCL” is low.
START and STOP conditions shown below are the exception. Every transaction
begins from a START, and ends with a STOP, or another START(repeated START).
Sonix Confidential
- 19 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
The figure below demonstrates a typical two-wire serial bus transaction. After every 8
bits sent by the transmitter, the receiver should send one bit low for positive
acknowledgement; a STOP or repeated START should follow. The next figure shows
more detailed about acknowledgement bit. Note that “SCL” is always driven by the
master.
Sonix Confidential
- 20 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
The figure below shows a complete data transfer. After a STRAT, MCU should send
7-bit slave address(7’b0011100)first, and then the 8th bit denotes a read transfer when
it’s 1 ; or a write transfer when it’s 0.
Note that address 0x0b is the indicator to notice SN11220ACF to update the data
written by MCU to PC via USB HID. Writing any thing to address 0x0b means the
SN11220ACF can transfer all the data to PC. Before address 0x0b be written,
SN11220ACF will transfer the last data which the last indicator launched.
Sonix Confidential
- 21 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
Old READ :
S
Slave Addr (R) A D0 A P
New READ :
S
Slave Addr (W) A Pointer A Sr
Slave Addr (R)
A D0 A D1 A D2 A D3 A D4 A D5 A D6 A D7 A D8 A D9 A P
NOTE:
1. S : START
2. Sr : Repeated START
8. D0 : Data Length (Byte0)
9. D1 ~ D8 : Data (Byte1 ~ Byte8)
3. Slave Addr (W) : Slave Address (Write) = 0x38
10. D9 : Rolling Code (Byte9)
4. Slave Addr (R) : Slave Address (Read) = 0x39
11. P : STOP
5. Pointer : Register0 Pointer = 0x00
12.
: From Master to Slave
6. A : Acknowledge
13.
: From Slave to Master
7. A : Not Acknowledge
READ
Old WRITE :
S
Slave Addr (W) A Pointer A D0 A D1 A P
New WRITE :
S
Slave Addr (W) A Pointer A D0 A D1 A D2 A D3 A D4 A D5 A D6 A D7 A D8 A D9 A DA A DB A P
NOTE:
1. S : START
7. DA ~ DB : Dummy Byte (ByteA ~ ByteB)
2. Slave Addr (W) : Slave Address (Write) = 0x38
8. A : Acknowledge
3. Pointer : Register0 Pointer = 0x00
9. P : STOP
4. D0 : Data Length (Byte0)
10.
: From Master to Slave
5. D1 ~ D8 : Data (Byte1 ~ Byte8)
11.
: From Slave to Master
6. D9 : Rolling Code (Byte9)
WRITE
Sonix Confidential
- 22 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
IX.
9.1
SN11220ACF
Operating rating and electrical characteristics
Absolute maximum rating
Symbol
Parameter
value
unit
Dvmin
min digital supply voltage
DGND – 0.3
V
Dvmax
max digital supply voltage
DGND + 3.6
V
Avmin
min analog supply voltage
AGND – 0.3
V
Avmax
max analog supply voltage
AGND + 3.6
V
Dvinout
voltage on any digital input or output
DGND –0.3 to 3.6
V
AGND –0.3 to Avdd + 0.3
V
pin
Avinout
voltage on any analog input or output
pin
Tstg
storage temperature range
-40 to +125
0
ESD (HBM)
ESD human body mode
2000
V
ESD (MM)
ESD machine mode
200
V
Ilatch
minimum latch up current
200
mA
9.2
C
Operation conditions
Symbol
Parameter
DVdd
digital supply voltage
+3.3 (typ)
V
Avdd
analog supply voltage
+3.3 (typ)
V
TA
operating ambient temperature range
25 (typ)
0
Sonix Confidential
- 23 Do not copy, reproduce, or distribute without permission
value
unit
C
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
9.3
SN11220ACF
DC electrical characteristics
Symbol
parameter
test condition
Value
unit
VDI
differential input sensitivity
| (D+) – (D-) |
0.2 (min)
V
VCM
differential common mode range
Included VDI
range
0.8 (min)
2.5 (max)
V
VSE
single ended receiver threshold
0.8 (min)
2.0 (max)
V
VIH
high level input voltage
2.0 (min)
V
VIL
low level input voltage
0.8 (max)
V
IOH
drive current
VOH = 2.3V
mA
IOL
sink current
VOL= 0.5 V
IDD
input supply current
4 (typ) for 4mA pads
8 (typ) for 8mA pads
4 (typ) for 4mA pads
8 (typ) for 8mA pads
30 (max)
mA
Isuspend
supply current in suspend
300 (max)
µA
9.4
mA
AC electrical characteristics
9.4.1
Operation clocks
symbol
parameter
value
unit
CLKin
system clock input to PLL
6 (typ)
MHz
CLKin duty cycle
50 ± 2
%
9.4.2
USB transceiver signal (full speed mode)
tf
tr
DPLUS/
DMINUS
Sonix Confidential
- 24 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
symbol
parameter
Tr
transition rise time for USBDP or
SN11220ACF
test condition
Min
max
unit
4
20
ns
4
20
ns
90
110
%
1.3
2.0
V
USBDM
Tf
transition fall time for USBDP or
USBDM
Trfm
rise / fall time matching
Vo(crs)
signal crossover voltage
9.4.3
(Tr / Tf ) * 100
I2S CODEC interface timing
Fs = 48kHz, XMCLK = 256fs, XSCLK = 64fs
Sonix Confidential
- 25 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
9.4.4
SN11220ACF
Embedded Regulator
TA=25C
Symbol
Parameter
VIN
Conditions
Min
Typ
Max
Unit
Input Voltage
4.5
5.0
5.5
V
VOUT
Output Voltage
3.0
3.3
3.6
V
IMAX
Maximum Load
VDD=5V
120
mA
Current
IQ
Ground Pin Current
VDD=5V
80
150
uA
VDROP
Dropout Voltage
VDD=5V, 120mA
30
80
mV
100K
250K
mV
Loading
RPL
Pull Low Resistance for
VDD=5V
40K
ENLDO_
9.4.5
ROMCS
EEPROM Interface
tcss
tskh
tcsh
tskl
ROMSK
tdis
tdih
ROMDI
tpd0
tpd1
tdf
ROMDO
(read)
tdf
tsv
ROMDO
(program)
Sonix Confidential
- 26 Do not copy, reproduce, or distribute without permission
Status Valid
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
symbol
parameter
min
typ
max
unit
tsk
ROMSK clock frequency
-
400
-
kHz
tskh
ROMSK high time
1200
ns
tskl
ROMSK low time
1200
ns
tcs
Minimum ROMCS low time
2400
ns
tcss
ROMCS setup time
2400
ns
tdis
ROMDI setup time
1200
ns
tcsh
ROMCS hold time
1200
ns
tdih
ROMDI hold time
1200
ns
tpd1
ROMDO delay to “1”
250
ns
tpd0
ROMDO delay to “0”
250
ns
tsv
ROMCS to status valid
250
ns
tdf
ROMCS to ROMDO high impedance
250
ns
Sonix Confidential
- 27 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
X.
SN11220ACF
Reference design:
Sonix Confidential
- 28 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
Sonix Confidential
- 29 Do not copy, reproduce, or distribute without permission
SN11220ACF
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
XI.
Naming rule
(1)
S
SN11220ACF
(2)
N
1
1
2
2
0
(3)
(4)
(5)
A
C
F
(6)
(1) SONiX chip
(2) USB audio controller 11220 series
(3) Hardware version
A: The first version, B: The second version, C: The third version, etc.
(4) Series code
Series Code Name
Description
C
Dect
I2S, PCM interface and for Dect solution. No 3-wire
control pin. One frequency mode.
P
Public
I2S, AC’97 and S/PDIF. Support different sampling rate
to playback and recording.
R
RF
I2S, AC’97 and S/PDIF. One frequency mode.
(5) Package type
Package type
Description
F
LQFP
(6) Green Package
Green Package
Description
G
It achieve the requirement of SS-00259 (level-3)
R
It achieve the requirement of SS-00259 (level-3)
Non-green package
Sonix Confidential
- 30 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
XII. Package dimension
Sonix Confidential
- 31 Do not copy, reproduce, or distribute without permission
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
XIII. Revision History
Revision
Revision Date
Preliminary
Dec 20, 2005
Preliminary
July 20, 2006
Detail description
Add section 10
V1.0
Description of changes
Add section 11
V1.01
Aug 10, 2006
Sonix Confidential
- 32 Do not copy, reproduce, or distribute without permission
PCM master and slave clock
2006 Aug 10, V1.01
Data Sheet
USB Audio Controller
SN11220ACF
DISCLAIMER
The information appearing in this publication is believed to be accurate. However, this
publication could contain technical inaccuracies or typographical errors. The reader should not
assume that this publication is error-free or that it will be suitable for any particular purpose.
SONiX makes no warranty, express, statutory implied or by description in this publication or
other documents which are referenced by or linked to this publication.
In no event shall SONiX be liable for any special, incidental, indirect or consequential damages
of any kind, or any damages whatsoever, including, without limitation, those resulting from loss
of use, data or profits, whether or not advised of the possibility of damage, and on any theory o
f liability, arising out of or in connection with the use or performance of this publication or other
documents which are referenced by or linked to this publication.
This publication was developed for products offered in Taiwan. SONiX may not offer the
products discussed in this document in other countries. Information is subject to change
without notice. Please contact SONiX or its local representative for information on offerings
available. Integrated circuits sold by SONiX are covered by the warranty and patent
indemnification provisions stipulated in the terms of sale only. The application circuits
illustrated in this document are for reference purposes only. SONIX DISCLAIMS ALL
WARRANTIES, INCLUDING THE WARRANTY OF MERCHANTABILITY OR FITNESS FOR
ANY PURPOSE. SONIX reserves the right to halt production or alter the specifications and
prices, and discontinue marketing the Products listed at any time without notice. Accordingly,
the reader is cautioned to verify that the data sheets and other information in this publication
are current before placing orders.
Products described herein are intended for use in normal commercial applications.
Applications involving unusual environmental or reliability requirements, e.g. military
equipment or medical life support equipment, are specifically not recommended without
additional processing by SONIX for such application.
Contact Information
Corporate Headquarters
Address: 9F, No. 8 Lane 32, Hsien Chen 5th St. Chupei City,
Hsinchu, Taiwan R.O.C.
Tel: 886-3-551 0520
Fax: 886-3-551 0523
Http:// www.sonix.com.tw
Taipei Sales Office
Address: 15F-2, No. 171, Song Ted Road, Taipei,
Taiwan R.O.C.
Tel: 886-2-2759 1980
Fax: 886-2-2759 8180
Hong Kong Sales Office
Address: Unit 705, 7/F Tower 1, Grand Central Plaza, No.
138 Shatin Rural Committee Rd, Shatin, N.T. Hong Kong
Tel: 852-2723 8086
Fax: 852-2723 9179