28 kHz to 216 kHz Sample Rate Range
2:1 Differential AES3 or 4:1 S/PDIF Input Mux
De-emphasis Filtering for 32 kHz, 44.1 kHz,
and 48 kHz
Recovered Master Clock Output: 64 x Fs,
96 x Fs, 128 x Fs, 192 x Fs, 256 x Fs,
384 x Fs, 512 x Fs, 768 x Fs, 1024 x Fs
49.152 MHz Maximum Recovered Master
Clock Frequency
Ultralow-jitter Clock Recovery
High Input Jitter Tolerance
No External PLL Filter Components Required
Selectable and Automatic Clock Switching
AES3 Direct Output and AES3 TX Pass-
through
On-chip Channel Status Data Buffering
Automatic Detection of Compressed Audio
Streams
Decodes CD Q Sub-Code
http://www.cirrus.com
Copyright Cirrus Logic, Inc. 2012
(All Rights Reserved)
NOV '12
DS692F2
CS8422
System Features
SPI™ or I²C™ Software Mode and Stand-Alone
Hardware Mode
Flexible 3-wire Digital Serial Audio Input Port
Dual Serial Audio Output Ports with
Independently Selectable Data Paths
Master or Slave Mode Operation for all Serial
Audio Ports
Time Division Multiplexing (TDM) Mode
Integrated Oscillator for use with External
Crystal
Four General-purpose Output Pins (GPO)
+3.3 V Analog Supply (VA)
+1.8 V to 5.0 V Digital Interface (VL)
Space-saving 32-pin QFN Package
General Description
The CS8422 is a 24-bit, high-performance, monolithic
CMOS stereo asynchronous sample rate converter with
an integrated digital audio interface receiver that decodes audio data according to the EIAJ CP1201, IEC60958, AES3, and S/PDIF interface standards.
Audio data is input through the digital interface receiver
or a 3-wire serial audio input port. Audio is output
through one of two 3-wire seria l audio output ports. Serial audio data outputs can be set to 24, 20, 18, or 16-bit
word-lengths. Data into the digital interface receiver and
serial audio input port can be up to 24-bits long. Input
and output data can be completely asynchronous, synchronous to an external clock through XTI, or
synchronous to the recovered master clock.
The CS8422 can be controlled through the control port
in Software Mode or in a Stand-Alone Hardware Mode.
In Software Mode, the user can control the device
through an SPI or I²C control port.
Target applications include digital recording systems
(DVD-R/RW, CD-R/RW, PVR, DAT, MD, and VTR), digital mixing consoles, high-quality D/A, effects
processors, and computer audio systems.
The CS8422 is available in a space-saving QFN package in Commercial (-40° C to +85° C) grade. The
CDB4822 is also available for device evaluation and implementation suggestions. Please refer to “Ordering
AES3/SPDIF Input(Input) - Single-ended or differential receiver inputs carrying AES3 or S/PDIF
RX[3:0],
RXP/RXN[1:0]
2
encoded digital data. RX[3:0] comprise the single-ended input multiplexer. RXP[1:0] comprise the
5
non-inverting inputs of the differential input multiplexer and RXN[1:0] comprise the inverting inputs
6
of the differential input multiplexer. Unused inputs should be tied to AGND/DGND.
Analog Power (Input) - Analog power supply, nominally +3.3 V. Care should be taken to ensure
VA3
that this supply is as noise-free as possible, as noise on this pin will directly affect the jitter perfor-
mance of the recovered clock.
AGND4
AD0/CS
AD1/CDIN8
SCL/CCLK9
SDA/CDOUT10
DS692F29
Analog Ground (Input) - Ground for the analog circuitry in the chip. AGND and DGND should be
connected to a common ground area under the chip.
Address Bit 0 (I²C) / Software Chip Select (SPI) (Input) - A falling edge on this pin puts the
CS8422 into SPI Control Port Mode. With no falling edge, the CS8422 defaults to I²C Mode. In I²C
7
Mode, AD0 is a chip address pin. In SPI Mode, CS
the CS8422. See “Control Port Description” on page 43.
Address Bit 1 (I²C) / Serial Control Data in (SPI) (Input) - In I²C Mode, AD1 is a chip address pin.
In SPI Mode, CDIN is the input data line to the control port interface. See “Control Port Description”
on page 43.
Software Clock (Input) - Serial control interface clock used to clock control data bits into and out of
the CS8422.
SerialControlDataI/O (I²C) / Data Out (SPI) (Input/Output) - In I²C Mode, SDA is the control I/O
data line. In SPI Mode, CDOUT is the output data from the control port interface on the CS8422.
is used to enable the control port interface on
CS8422
Pin NamePin #Pin Description
XTI11
XTO12
ILRCK13
ISCLK14Serial Audio Input Bit Clock (Input/Output) - Serial bit clock for audio data on the SDIN pin.
SDIN15Serial Audio Input Data Port (Input) - Audio data serial input pin.
GPO[3:0]
V_REG19Voltage Regulator In (Input) - Regulator power supply input, nominally +3.3 V.
VD_FILT20
DGND21
VL22Logic Power (Input) - Input/Output power supply, typically +1.8 V, +2.5 V, +3.3 V, or +5.0 V.
SDOUT223Serial Audio Output 2 Data Port (Output) - Audio data serial output 2 pin.
OSCLK224
OLRCK225
TDM_IN26
SDOUT127
OSCLK128
OLRCK129
RMCK31
RST
THERMAL PAD-
Crystal/Oscillator In(Input) - Crystal or digital clock input for Master clock. See “SRC Master
Clock” on page 38 for more details.
CrystalOut (Output) - Crystal output for Master clock. See “SRC Master Clock” on page 38 for
more details.
Serial Audio Input Left/Right Clock (Input/Output) - Word rate clock for the audio data on the
SDIN pin.
16
General Purpose Outputs(Output) - See page 51 for details. In I²C Mode, a 20 k pull-up resistor
17
to VL on GPO2 will set AD2 chip address bit to 1, otherwise AD2 will be 0.
18
30
Digital Voltage Regulator (Output) - Digital core voltage regulator output. Should be connected to
digital ground through a 10 µF capacitor. Typically +2.5 V. Cannot be used as an external voltage
source.
Digital & I/O Ground(Input) - Ground for the I/O and core logic. AGND and DGND should be con-
nected to a common ground area under the chip.
Serial Audio Output 2 Bit Clock (Input/Output) - Serial bit clock for audio data on the SDOUT2
pin.
Serial Audio Output 2 Left/ Righ t Clock (Input/Output) - Word rate clock for the audio data on the
SDOUT2 pin.
Serial Audio Output TDM Input (Input) - Time Division Multiplexing serial audio data input. Should
remain grounded when not used. See “Time Division Multiplexing (TDM) Mode” on page 27.
Serial Audio Output 1 Data Port (Output) - Audio data serial output 1 pin.
Serial Audio Output 1 Bit Clock (Input/Output) - Serial bit clock for audio data on the SDOUT 1
pin.
Serial Audio Output 1 Left/ Righ t Clock (Input/Output) - Word rate clock for the audio data on the
SDOUT 1 pin.
Recovered Master Clock(Output) - Recovered master clock from the PLL. Frequency is 128x,
192x, 256x, 384x, 512x, 768x, or 1024x Fs, where Fs is the sample rate of the incoming AES3-
compatible data, or ISCLK/64.
Reset(Input) - When RST is low the CS8422 enters a low power mode and all internal states are
32
reset. On initial power up RST must be held low until the power supply is stable and all input clocks
are stable in frequency and phase.
Thermal Pad - Thermal relief pad. Should be connected to the ground plane for optimized heat dis-
sipation.
10DS692F2
1.2Hardware Mode
109
8
7
6
5
4
3
2
1
11
12
13141516
17
18
19
20
21
22
23
24
25
262728
29
303132
Top-Down View
32-Pin QFN Package
Thermal Pad
XTO
MCLK_OUT
SRC_UNLOCK
SDOUT1
OSCLK2
VA
AGND
SAOF
RXP0
SDOUT2
VL
TDM_IN
OLRCK2
RXN0
RXP1
RXN1
RMCK
TX/U
VD_FILT
V_REG
XTI
MS_SEL
V/AUDIO
NV/RERR
TX_SEL
C
RCBL
RX_SEL
DGND
RST
OSCLK1
OLRCK1
CS8422
Pin NamePin #Pin Description
1
AES3/SPDIF Input (Input) - Differential receiver inputs carrying AES3 or S/PDIF encoded digital
RXP/RXN[1:0]
VA3
AGND4
SAOF7
MS_SEL8
NV/RERR9
V/AUDIO
XTI11
XTO12Crystal Out (Output) - Crystal output for Master clock. See “SRC Master Clock” on page 38.
DS692F211
2
5
6
10
data. RXP[1:0] comprise the non-inverting inputs of the differential input multiplexer; and RXN[1:0]
comprise the inverting inputs of the input multiplexer. Unused inputs should be tied to AGND.
Analog Power (Input) - Analog power supply, nominally +3.3 V. Care should be taken to ensure that
this supply is as noise-free as possible, as noise on this pin will directly affect the jitter performance of
the recovered clock.
Analog Ground(Input) - Ground for the analog circuitry in the chip. AGND and DGND should be
connected to a common ground area under the chip.
Serial Audio Output Format Select(Input) - Used to select the serial audio output format after RST
is released. See Table 4 on page 42 for format settings.
Master/Slave Select (Input) - Used to select Master or Slave settings for the output serial audio ports
after RST is released. See Table 5 on page 42 for format settings.
Non-Validity Receiver Error/Receiver Error (Output) - Receiver error indicator. NVERR is output by
default, RERR is selected by a 20 k resistor to VL.
Validity Data/AUDIO
data from the AES3 receiver, clocked by the rising and falling edges of OLRCK2 in master mode. If a
20 k pull-up is present, the pin will be low when valid linear PCM data is present at the AES3 input.
Crystal/Oscillator In (Input) - Crystal or digital clock input for Master clock. See “SRC Master Clock”
(Output) - If a 20 k pull-down is present on this pin, it will output serial Validity
on page 38.
CS8422
Pin NamePin #Pin Description
MCLK_OUT13
TX_SEL14
RX_SEL15Receiver MUX Selection (Input) - Used to select the active AES3-compatible receiver input.
RCBL16
C17
TX/U18
V_REG19Voltage Reg ul ato r In (Input) - Regulator power supply input, nominally +3.3 V.
VD_FILT20
DGND21
VL22Logic Power (Input) - Input/Output power supply, typically +1.8V, +2.5V, +3.3 V, or +5.0 V.
SDOUT223Serial Audio Output 2 Data Port (Output) - Audio data serial output 2 pin.
OSCLK224Serial Audio Output 2 Bit Clock (Input/Output) - Serial bit clock for audio data on the SDOUT2 pin.
OLRCK225
TDM_IN26
SDOUT127
OSCLK128Serial Audio Output 1 Bit Clock (Input/Output) - Serial bit clock for audio data on the SDOUT1 pin.
OLRCK129
SRC_UNLOCK30
RMCK31
RST
THERMAL PAD-
Buffered MCLK (Output) - Buffered out put of XTI cl ock. If a 20k pull-up resistor to VL is present on
this pin, the SRC MCLK source will be the PLL clock, otherwise it will be the ring oscillator.
TX Pin MUX Selection (Input) - Used to select the AES3-compatible receiver input for pass-through
to the TX pin.
Receiver Channel Status Block (Output) -Indicates the beginning of a received channel status
block. Will go high for one subframe during each Z preamble following the first detected Z preamble.
If no Z preamble is detected, output is indeterminate. See Figure 19 on page 36 for more detail.
Channel Status Data (Output) - Serial channel status data output from the AES3-compatible
receiver, clocked by the rising and falling edges of OLRCK2 in master mode. A 20 k pull-up resistor
to VL must be present on this pin to put the part in Hardware Mode.
Receiver MUX Pass-through/User Data (Output) - If no 20 k pull-up resistor is present on this pin
it will output a copy of the receiver mux input selected by the TX_SEL pin. If a 20 k pull-up resistor
to VL is present on this pin, it will output serial User data from the AES3 receiver, clocked by the rising
and falling edges of OLRCK2 in master mode.
Digital Voltag e Regu lator Out (Output) - Digital core voltage regulator output. Should be connected
to digital ground through a 10 µF capacitor. Cannot be used as an external voltage source.
Digital & I/O Ground (Input) - Ground for the I/O and core logic. AGND and DGND should be con-
nected to a common ground area under the chip.
Serial Audio Output 2 Left/Right Clock (Input/Output) - Word rate clock for the audio data on the
SDOUT2 pin.
Serial Audio Output 1 TDM Input (Input) - Time Division Multiplexing serial audio data input.
Grounded when not used. See “Time Division Multiplexing (TDM) Mode” on page 27
Serial Audio Output 1 Data Port (Output) - Audio data serial output 1 pin. A 20 k pull-up to VL
present on this pin will disable de-emphasis auto detect.
Serial Audio Output 1 Left/Right Clock (Input/Output) - Word rate clock for the audio data on the
SDOUT1 pin.
SRC Unlock Indicator (Output) - Indicates when the SRC is unlocked. See “SRC Locking” on
page 37 for more details.
Recovered Master Clock (Output) - Recovered master clock from the PLL. Frequency is 128 x,
256 x, or 512 x Fs, where Fs is the sample rate of the incoming AES3-compatible data or ISCLK/64.
If a 20 k pull-up to VL is present on this pin, the SDOUT1 MCLK source will be RMCK, otherwise it
will be the clock input through XTI-XTO.
Reset (Input) - When RST
32
reset. On initial power up RST
are stable in frequency and phase.
Thermal Pad - Thermal relief pad. Should be connected to the ground plane for optimized heat dissipation.
is low the CS8422 enters a low power mode and all internal states are
must be held low until the power supply is stable and all input clocks
for details.
12DS692F2
CS8422
2. CHARACTERISTICS AND SPECIFICATIONS
(All Min/Max characteristics and specifications are guar anteed over the S pecified Op erating Conditions. T ypical performance characteristics and specifications are derived from measurements taken at nominal supply voltages and
T
= 25° C.)
A
RECOMMENDED OPERATING CONDITIONS
GND = 0 V, all voltages with respect to 0 V.
ParameterSymbolMinNominalMaxUnits
Power Supply Voltage
V_REG
Ambient Operating Temperature:Commercial GradeT
VL
VA
A
1.71
3.135
3.135
-40-+85°C
3.3
3.30
3.30
5.25
3.465
3.465
V
V
V
ABSOLUTE MAXIMUM RATINGS
DGND = AGND = 0 V; all voltages with respect to 0 V. Operation beyond thes e limit s may result in permanent
damage to the device. Normal operation is not guaranteed at these extremes.
ParameterSymbolMinMaxUnits
Power Supply Voltage
V_REG
Input Current, Any Pin Except Supplies (Note 1)I
Input Voltage, Any Pin Except RXP[1:0], RXN[1:0], or
RX[3:0]
Input Voltage, RXP[1:0], RXN[1:0], or RX[3:0]V
Ambient Operating Temperature (power applied)T
Storage TemperatureT
VL
VA
V
stg
in
in
in
A
-0.3
-0.3
-0.3
-±10mA
-0.3VL+0.4V
-0.3VA+0.4V
-55+125°C
-65+150°C
6.0
4.3
4.3
V
V
V
Notes:
1. Transient currents of up to 100 mA will not cause SCR latch-up.
2. Fsi indicates the input sample rate. Fso indicates the output sample rate. Numbers separated by a colon
indicate the ratio of Fsi to Fso.
DIGITAL FILTER CHARACTERISTICS
ParameterMin TypMaxUnits
Passband (Upsampling or Downsampling)
Passband Ripple--± 0.05dB
Stopband (Downsampling)
Stopba nd Attenuation125--dB
Group DelaySee “Group Delay” on page 70
14DS692F2
--
0.5465*Fso
--Fs
0.4535*
min(Fsi,Fso)
Fs
DC ELECTRICAL CHARACTERISTICS
AGND = DGND = 0 V; all voltages with respect to 0 V.
ParameterMinTypMaxUnits
Power-Down Mode
Supply Current in power downVA
Normal Operation
Supply Current at 48 kHz Fsi and FsoVA
Supply Current at 192 kHz Fsi and FsoVA
(Note 3)
V_REG
VL = 1.8 V
VL = 2.5 V
VL = 3.3 V
VL = 5.0 V
(Note 4)
V_REG
VL = 1.8 V
VL = 2.5 V
VL = 3.3 V
VL = 5.0 V
V_REG
VL = 1.8 V
VL = 2.5 V
VL = 3.3 V
VL = 5.0 V
CS8422
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
4.7
1
0.3
7.1
16.9
102.6
18.8
15.2
2.7
3.8
5.2
5.3
18.9
32.4
6.2
8.8
12
18
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
µA
µA
µA
µA
µA
µA
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
mA
Notes:
3. Power-Down Mode is defined as RST
attached across XTI - XTO.
4. Normal operation is defined as RST
interface receiver in differential mode, serial audio output port 1 in master mode sourced by the SRC,
and serial audio output port 2 in master mode sourced by the AES3 receiver output.
= LOW with all clocks and data lines held static and no crystal
= HIGH. The typical values shown were measured with the digital
DS692F215
CS8422
DIGITAL INTERFACE SPECIFICATIONS
AGND = DGND = 0 V; all voltages with respect to 0 V.
ParameterSymbolMinTypMaxUnits
Input Leakage Current (Note 5)I
Input CapacitanceI
in
in
Digital Interface Receiver - RXP[1:0], RXN[1:0], RX[3:0 ]
Differential Input Sensitivity, RXP to RXN (Note 6)--200mVpp
Differential Input Impedance, RXP and RXN to GND-11-k
Single-Ended Input Sensitivity, RX pins, Receiver Input Mode 1
(Note 6)
Single-Ended Input Impedance, RX pins, Receiver Input Mode 1-11-k
High-Level Input Voltage, RX pins in Digital modeV
Low-Level Input Voltage, RX pins in Digital modeV
IH
IL
Digital I/O
High-Level Output Voltage (I
Low-Level Output Voltage (I
High-Level Input VoltageV
Low-Level Input Voltage V
= -4 mA)
OH
= 4 mA)
OL
V
OH
V
OL
IH
IL
Input Hysteresis-0.2-V
--+32A
-8-pF
--200mVpp
0.55xVA
-0.3
.77xVL
-
0.65xVL
-
-
VA+0.3V
-
-
-
-
-
0.3xVLV
0.8V
-V
0.6V
-V
Notes:
5. When a digital signal is sent to the AES RX pins, the pins will draw approximately 730 µA from the digital
signal’s supply from the time RST
is released until the RX_MODE, RX_SEL, and INPUT_TYPE bits in
register 03h are properly configured to allow a digital input signal on the driven pins, see Section 11.3
on page 49.
6. Maximum sensitivity in accordance with AES3-2003 section 8.3.3. Measured with eye diagram height
at the specified voltage and width of at least 50% of one-half the biphase symbol period.
RMCK/MCLK_OUT Output Frequency
RMCK/MCLK_OUT Output Duty Cycle
--49.152MHz
455055%
Slave Mode
ISCLK Frequency
ISCLK High Time
ISCLK Low Time
OSCLK Frequency
OSCLK High Time
OSCLK Low Time
I/OLRCK Edge to I/OSCLK Rising Edge
I/OSCLK Rising Edge to I/OLRCK Edge
OSCLK Falling Edge/OLRCK Edge to SDOUT Output Valid
SDIN/TDM_IN Setup Time Before I/OSCLK Rising Edge
SDIN/TDM_IN Hold Time After I/OSCLK Rising Edge
TDM Mode OLRCK High Time (Note 10)
TDM Mode OLRCK Rising Edge to OSCLK Rising Edge
TDM Mode OSCLK Rising Edge to OLRCK Falling Edge
t
sckh
t
sckl
t
sckh
t
sckl
t
lcks
t
lckd
t
dpd
t
t
t
lrckh
t
fss
t
fsh
ds
dh
--49.152MHz
9.2--ns
9.2--ns
--26.9MHz
16.7--ns
16.7--ns
5.7--ns
4.2--ns
--15ns
3.6--ns
5.5--ns
20--ns
5.3--ns
4.2--ns
Master Mode (Note 11)
I/OSCLK Frequency (non-TDM Mode)48*Fsi/o-128*Fsi/oMHz
I/OLRCK Duty Cycle49.5-50.5%
I/OSCLK Duty Cycle45-55%
I/OSCLK Falling Edge to I/OLRCK Edget
OSCLK Falling Edge to SDOUT Output Validt
SDIN Setup Time Before I/OSCLK Rising Edge
SDIN Hold Time After I/OSCLK Rising Edge
OSCLK Frequency
OSCLK High Time
OSCLK Low Time
I/OLRCK Edge to I/OSCLK Rising Edge
I/OSCLK Rising Edge to I/OLRCK Edge
OSCLK Falling Edge/OLRCK Edge to SDOUT Output Valid
SDIN/TDM_IN Setup Time Before I/OSCLK Rising Edge
SDIN/TDM_IN Hold Time After I/OSCLK Rising Edge
TDM Mode OLRCK High Time (Note 10)
TDM Mode OLRCK Rising Edge to OSCLK Rising Edge
TDM Mode OSCLK Rising Edge to OLRCK Falling Edge
t
sckh
t
sckl
t
lcks
t
lckd
t
dpd
t
t
t
lrckh
t
fss
t
fsh
ds
dh
Master Mode (Note 11)
I/OSCLK Frequency (non-TDM Mode)48*Fsi/o-128*Fsi/oMHz
I/OLRCK Duty Cycle45-55%
I/OSCLK Duty Cycle45-55%
I/OSCLK Falling Edge to I/OLRCK Edget
OSCLK Falling Edge to SDOUT Output Valid (VL = 1.8 V)t
OSCLK Falling Edge to SDOUT Output Valid (VL = 2.5 V)t
SDIN Setup Time Before I/OSCLK Rising Edge
SDIN Hold Time After I/OSCLK Rising Edge
lcks
dpd
dpd
t
ds
t
dh
TDM Mode OSCLK Frequency (Note 12)--31MHz
TDM Mode OSCLK Falling Edge to OLRCK Edge (VL = 1.8V)t
TDM Mode OSCLK Falling Edge to OLRCK Edge (VL = 2.5V)t
fsm
fsm
Notes:
7. After powering up the CS8422, RST
should be held low until the power supplies and clocks are se ttled.
8. If ISCLK is selected as the clock source for the PLL, then the Sample Rate = ISCLK/64.
9. Typical base band jitter in accordance with AES-12id-2006 section 3.4.2. Measurements are Time Interval Error (TIE) taken with 3rd order 100 Hz to 40 kHz band-pass filter. Measured with Sample Rate
= 48 kHz.
10. OLRCK must remain high for at least 1 OSCLK period and at most 255 OSCLK periods in TDM Mode.
11. In TDM formatted master mode, the TDM_IN pin is not supported.
12. In TDM formatted master mode, the OSCLK frequency is fixed at 256*OLRCK.
DS692F219
SWITCHING CHARACTERISTICS - CONTROL PORT - SPI MODE
t
r2
t
f2
t
dsu
t
dh
t
sch
t
scl
CS
CCLK
CDIN
t
css
t
csh
t
spi
t
srs
RST
CDOUT
t
scdov
t
scdov
t
cscdo
Hi-Impedance
Figure 5. SPI Mode Timing
Inputs: Logic 0 = 0 V, Logic 1 = VL; CL = 20 pF.
ParameterSymbolMinM axUnit
CCLK Clock Frequency
RST
Rising Edge to CS Falling
CCLK Edge to CS
CS
High Time Between Transmissions
CS
Falling to CCLK Edge
Falling (Note 13)
CCLK Low Time
CCLK High Time
CDIN to CCLK Rising Setup Time
CCLK Rising to DATA Hold Time (Note 14)
CCLK Falling to CDOUT Valid (Note 15)
Time from CS
Rising to CDOUT High-Z
CDOUT Rise Time
CDOUT Fall Time
CCLK and CDIN Rise Time (Note 16)
CCLK and CDIN Fall Time (Note 16)
f
sck
t
srs
t
spi
t
csh
t
css
t
scl
t
sch
t
dsu
t
dh
t
scdov
t
cscdo
t
r1
t
f1
t
r2
t
f2
06.0MHz
500-µs
500-ns
1.0-µs
20-ns
66-ns
66-ns
40-ns
15-ns
-100ns
-100ns
-25ns
-25ns
-100ns
-100ns
CS8422
Notes:
13. t
only needed before first falling edge of CS after RST rising edge. t
spi
14. Data must be held for sufficient time to bridge the transition time of CCLK.
15. CDOUT should not be sampled during this time.
16. For f
< 1 MHz.
sck
= 0 at all other times.
spi
20DS692F2
SWITCHING CHARACTERISTICS - CONTROL PORT - I²C MODE
t
buf
t
hdst
t
low
t
hdd
t
high
t
sud
StopStart
SDA
SCL
t
irs
RST
t
hdst
t
rc
t
fc
t
sust
t
susp
Start
Stop
Repeated
t
rd
t
fd
t
ack
Figure 6. I²C Mode Timing
Inputs: Logic 0 = 0 V, Logic 1 = VL; CL = 20 pF.
ParameterSymbolMinMaxUnit
SCL Clock Frequency
RST
Rising Edge to Start
Bus Free Time Between Transmissions
Start Condition Hold Time (prior to first clock pulse)
Clock Low time
Clock High Time
Setup Time for Repeated Start Condition
SDA Hold Time from SCL Falling (Note 17)
SDA Setup time to SCL Rising
Rise Time of SCL and SDA
Fall Time SCL and SDA
Setup Time for Stop Condition
Acknowledge Delay from SCL Falling
t
t
t
t
t
t
t
t
rc
t
fc
t
susp
t
f
scl
t
irs
buf
hdst
low
high
sust
hdd
sud
, t
, t
ack
rd
fd
-100kHz
500-µs
4.7-µs
4.0-µs
4.7-µs
4.0-µs
4.7-µs
10-ns
250-ns
-1000ns
-300ns
4.7-µs
3001000ns
CS8422
Notes:
17. Data must be held for sufficient time to bridge the transition time, t
The CS8422 is a 24-bit, high performance, monolithic CMOS stereo asynchronous sample r ate converter with integrated digital audio interface receiver that decodes audio data according to EIAJ CP1201, IEC-60958, AES3, and
S/PDIF interface standards.
Audio data is input through either a 3-wire serial audio port or the AES3-compatible digital interface receiver. Audio
data is output through one of two 3-wire serial audio output ports. The serial audio ports are capable of 24, 20, 18,
or 16-bit word lengths. Data in to the digital inter face receiver can be up to 24- bit. Input and output data can be completely asynchronous, synchronous to an external data clock through XTI, or synchronous to the master clock recovered from the incoming S/PDIF or AES3 data.
CS8422 can be controlled either in Software Mode or in a stand-alone Hardware Mod e. In Software Mode, the user
can control the device through either a SPI or I²C control port.
Target applications include digital recording systems (DVD-R/RW, CD-R/RW, PVR, DAT, MD, and VTR), digital mixing consoles, high quality D/A, effects processors, and computer audio systems.
Figure 7 and Figure 8 show typical connections to the CS8422.
5. THREE-WIRE SERIAL INPUT/OUTPUT AUDIO PORT
The CS8422 provides two independent 3-wire serial audio output ports, and a 3-wire serial audio input (only available in Software Mode). The interface format should be chosen to suit the attached device either through the control
port in Software Mode, or through the MS_SEL and SAOF pins in Hardware Mode. The following parameters are
adjustable:
Hardware Mode
•Master or slave mode operation
•Master-mode MCLK-to-OLRCK (OLRCK1 and OLRCK2) ratios: 128, 256, and 512
•Audio data resolution of 16, 20, or 24-bits
•Left-Justified, I²S, or Right-Justified serial data formats
•Multi-channel TDM serial audio format (Serial Audio Output 1 only)
Software Mode
•Master or slave mode operation
•Master-mode MCLK-to-ILRCK and MCLK-to-OLRCK (OLRCK1 and OLRCK2) ratios: 64, 128, 192, 256,
384, 512, 768, and 1024
•Audio data resolution of 16, 18, 20, or 24-bits
•Left-Justified, I²S, or Right-Justified serial data formats
•Multi-channel TDM serial audio format
•AES3 Direct Output format
Figures 9, 10, 11, and 12 show the standard input/output formats available. The TDM serial audio format is de-
scribed in Section 5.1.5 on page 27. For more information about serial audio formats, refer to the Cirrus Logic applications note AN282, “The 2-Channel Serial Audio Interface: A Tutorial”, available at www.cirrus.com.
24DS692F2
5.1Serial Port Clock Operation
5.1.1Master Mode
When a serial port is set to master mode, its left/righ t clock (I LRCK, OLRCK1, or OLRCK2), and its serial
bit-clock (ISCLK, OSCLK1, or OSCLK2) are outputs. If a serial output is source d directly by the AES3 receiver, then that serial port’s left/right clock and serial bit-clock will be synchronous with RMCK. If a serial
port is routed to or from the sample rate converter (SRC), then that serial port’s left/right clock and serial
bit-clock can be synchronous with either the XTI-XTO or RMCK when it is in master mode.
If a serial output is source directly by the serial input port without the use of the SRC, then all associated
clocks must be synchrono us, so both serial ports must use the same master clock source. It is for this
reason that, when in this mode, the serial output clock control is done throu gh the Serial Audio Input Clock
Control (07h) register.
5.1.2Slave Mode
When a serial port is in slave mode, its left/right clock (ILRCK, OLRCK1, or OLRCK2), and its serial bitclock (ISCLK, OSCLK1, or OSCLK2) are inputs. If the serial input or a serial output has the SRC in its
data path, then the serial port’s LRCK and SCLK may be asynchronous to all other serial ports. The
left/right clock should be continuous, but the duty cycle can be less than 50% if enough serial clocks are
present in each associated LRCK phase to clock all of the data bits.
CS8422
If there are fewer SCLK periods than required to clock all the bits present in on e half LRCK period in LeftJustified and I²S Modes, data will be truncated beginning with the LSB. In Right-Justified Modes, the data
will be invalid.
If a serial audio output is operated in slave mode and sourced directly by the AES3 receiver or the serial
input port without the use of the sample rate converter, then the OLRCK supplied to the seri al audio output
should be synchronous to Fsi or ILRCK to avoid skipped or repeated samples. The OSLIP bit (“Interrupt
Status (14h)” on page 60) is provided to indicate when skipped or repeated samples occur.
If the input sample rate, Fsi or ILRCK, is greater than the slave-mode OLRCK frequency, then dropped
samples will occur. If Fsi or ILRCK is less than the slave-mode OLRCK frequency, then samples will be
repeated. In either case the OSLIP bit will be set to 1 and will not be cleared until read through the control
port.
5.1.3Hardware Mode Control
In Hardware Mode, the serial audio input port is not available. SDOUT1 is th e ser ial da ta outp ut fr om the
sample rate converter, and SDOUT2 is the serial audio output directly from the AES3-compatible receiver.
Because there is no serial audio input available in Hardware Mode, all audio data input is done through
the AES3-compatible receiver. In Hardware Mode, the serial output ports are controlled through the SAOF
and MS_SEL pins. See “Hardware Mode Serial Audio Port Control” on page 41 for more details.
In Hardware Mode, there are always 64 SCLK pe riods per LRCK period when a ser ial port is set to master
mode.
5.1.4Software Mode Control
In Software Mode, the CS8422 provides a serial audio input port and two serial audio output ports. Each
serial port’s clocking and data routin g options ar e fully configu rable as show n in Serial Audio Input Data
Format (0Bh), Serial A udio Ou tput Data Forma t - SDOUT 1 (0Ch) , and Serial Au dio Ou tput Dat a Forma t
- SDOUT2 (0Dh) registers, found on pages 54, 55, and 56.
DS692F225
CS8422
I/OLRCK
I/OSCLK
MSBLSB
MSB
LSB
Channel A
SDIN
SDOUT
MSB
Channel B
Figure 9. Serial Audio Interface Format – I²S
MSBLSB
MSB
LSB
MSB
I/OLRCK
I/OSCLK
SDIN
SDOUT
Channel AChannel B
Figure 10. Serial Audio Interface Format – Left-Justified
I/OLRCK
I/OSCLK
Channel A
SDIN
Channel B
MSB
SDOUT
MSB
MSB
MSBLSB
LSB
LSB
LSB
MSB ExtendedMSB Extended
Figure 11. Serial Audio Interface Format – Right-Justified (Mast er Mode only)
OLRCK
OSCLK
SDOUT
Channel AChannel B
LSBMSBVUCZ
LSB
MSBVUCZ
Figure 12. Serial Audio Interface Format – AES3 Direct Output
26DS692F2
5.1.5Time Division Multiplexing (TDM) Mode
TDM Mode allows several TDM-compatible devices to be serially connected together allowing their corresponding serial output data to be multiplexed onto one line for input into a DSP or other TDM capable
input device.
In TDM Mode, the TDM_IN pin is used to in put TDM-formatted da ta while the SDOUT1 or SDOUT2 ( Software Mode only) pin is used to output TDM data. If the CS8422 is the first TDM device in the chain, it
should have its TDM_IN connected to GND. Data is transmitted from SDOUTx (SDOUT1 or SDOUT2)
most significant bit first on the first falling OSCLKx edge after an OLRCKx rising edge and is valid on the
rising edge of OSCLKx.
5.1.5.1TDM Master Mode
In TDM master mode, OSCLKx frequency is fixed at 256*OLRCKx (where x = 1 or x = 2 depending on
which serial output port is selected as being in TDM Mode). Each sample time slot is 32 bit-clock periods
long; providing 8 channels of digital audio multiplexed together, with the first two channels being supplied
by the CS8422 which has been placed in master mode. An OSCLKx-wide OLRCKx pulse identifies the
start of a new frame, with the valid data sample beginning one OSCLKx after the OLRCKx r ising edge. In
TDM master mode, the master clock source for the TDM serial port must be 256, 512, or 10 24*Fso. Valid
data lengths are 16, 18, 20, or 24 bits. Figure 13 shows the interface format for TDM master mode. In
TDM master mode, the TDM_IN pin is not supported. Thus the CS8422 placed in TDM master mode
should be the first TDM device in the chain, as shown in Figure 16
CS8422
5.1.5.2TDM Slave Mode
In TDM slave mode, the number of channels that can by multiplexed to one serial data line depends on
the output sample rate. For slave mode, OSCLKx must operate at N*64*Fso, where N is the number of
CS8422’s in the TDM chain. For example, if Fso = 96 kHz, N = 4 (8 channels of serial audio data),
OSCLKx frequency must be 24.576 MHz. Note that the maximum OSCL Kx fre quency in sla ve mod e is a
function of the VL supply voltage, as shown in “Switching Specifications” on page 17. Figure 14 shows
the interface format for TDM slave mode.
5.1.5.3Hardware Mode Control
In Hardware Mode, TDM Mode is selected through the SAOF pin. See Section 8.1 on page 41 for more
details.
5.1.5.4Software Mode Control
In Software Mode, TDM Mode is selected through the Serial Audio Outp ut Data Format - SDOUT1 ( 0Ch)
register, found on page 55.
DS692F227
CS8422
OLRCK
OSCLK
SDOUT/
TDM_IN
MSB
32 OSCLKs
SDOUT 4, ch A
32 OSCLKs
SDOUT 4, ch B
32 OSCLKs
SDOUT 3, ch A
32 OSCLKs
SDOUT 3, ch B
32 OSCLKs
SDOUT 2, ch A
32 OSCLKs
SDOUT 2, ch B
32 OSCLKs
SDOUT 1, ch A
32 OSCLKs
SDOUT 1, ch B
MSBMSBMSBMSBMSBMSBMSB
MSBLSB
Data
Figure 13. TDM Master Mode Timing Diagram
OLRCK
OSCLK
SDOUT/
TDM_IN
MSB
32 OSCLKs
SDOUT 4, ch A
32 OSCLKs
SDOUT 4, ch B
32 OSCLKs
SDOUT 3, ch A
32 OSCLKs
SDOUT 3, ch B
32 OSCLKs
SDOUT 2, ch A
32 OSCLKs
SDOUT 2, ch B
32 OSCLKs
SDOUT 1, ch A
32 OSCLKs
SDOUT 1, ch B
MSBMSBMSBMSBMSBMSBMSB
MSBLSB
Data
Figure 14. TDM Slave Mode Timing Diagram
ILRCK
ISCLK
SDIN
OLRCK
OSCLK
SDOUTTDM_IN
OLRCK
OSCLK
SDOUTTDM_IN
ILRCK
ISCLK
SDIN
OLRCK OSCLK SDOUT
PCM Source 2
OLRCK OSCLK SDOUT
PCM Source 1
CS8422
1
Slave
CS8422
2
Slave
LRCK
SCLK
SDIN
DSP
Master
OLRCK
OSCLK
SDOUTTDM_IN
ILRCK
ISCLK
SDIN
CS8422
3
Slave
OLRCK
OSCLK
SDOUTTDM_IN
ILRCK
ISCLK
SDIN
CS8422
4
Slave
OLRCK OSCLK SDOUT
PCM Source 3
OLRCK OSCLK SDOUT
PCM Source 4
Figure 15. TDM Mode Configuration (All CS8422 outputs are slave)
ILRCK
ISCLK
SDIN
OLRCK
OSCLK
SDOUTTDM_IN
CS8422
1
OLRCK OSCLK SDOUT
PCM Source 2
OLRCK OSCLK SDOUT
PCM Source 1
Master
LRCK
SCLK
SDIN
DSP
Slave
OLRCK
OSCLK
SDOUTTDM_IN
ILRCK
ISCLK
SDIN
CS8422
4
Slave
OLRCK
OSCLK
SDOUTTDM_IN
ILRCK
ISCLK
SDIN
CS8422
2
Slave
OLRCK
OSCLK
SDOUTTDM_IN
ILRCK
ISCLK
SDIN
CS8422
3
Slave
OLRCK OSCLK SDOUT
PCM Source 3
OLRCK OSCLK SDOUT
PCM Source 4
Figure 16. TDM Mode Configuration (First CS8422 output is master, all others are slave)
28DS692F2
CS8422
6. DIGITAL INTERFACE RECEIVER
The CS8422 includes a digital interface receiver that can receive and decode audio data according to the AES3,
IEC60958, S/PDIF, and EIJ CP1201 interface standards.
The CS8422 uses either a 4:1 single-ended or 2:1 differential input mux to select the input pin(s) that will receive
input data to be decoded. A low-jitter clock (RMCK) is recovered using a PLL, which provides the digital inte rface
receiver with a master clock. T he decoded au dio data can either be routed through the SRC for sample rate conversion, or can be an output on one of two serial audio output ports. The channel status and Q-subcode data portion
of the user data are assembled and buffered in Channel Status Registers (23h - 2Ch) a nd Q-Channel Subcode (19 h
- 22h), and may be accessed through the control port in either SPI or I²C Mode.
6.1AES3 and S/PDIF Standards
This document assumes that the user is familiar with the AES3 and S/PDIF data formats. It is advisable to
have current copies of the AES3, IEC60958, IEC61937, and EIJ CP1201 specifications on hand for easy
reference.
The latest AES3 standard is available from the Audio Engineering Society at www.aes.org
IEC60958/61937 standard is available from the International Electrotechnical Commission at www.iec.ch
The latest EIAJ CP-1201 standard is available from the Japanese Electronics Bureau at www.jei-
ta.or.jp/eiaj/.
Application Note 22: Overview of Digital Audio Interface Data Structures, available at www.cirrus.com, con-
tains a useful tutorial on digital audio specifications, but it should not b e considered a substitute for the standards.
The paper titled An Understanding and Implementation of the SCMS Serial Copy Management System forDigital A udio Transmission, by Clifton Sanchez, is an excellent tutorial on SCMS. It is available from the
AES as reprint 3518.
6.2Receiver Input Multiplexer
The CS8422’s receiver input multiplexer allows input of data compatible with AES3, S/PDIF, IEC60958, and
EIAJ CP-1201 standards. For information about reco mmended receiver input circuits, see “External Receiv-
er Components” on page 65.
6.2.1Hardware Mode Control
In Hardware Mode, the receiver input multiplexer is limited to a selection between two differential inputs,
RXP0/RXN0 and RXP1/RXN1. The receiver input multiplexer will decode data present at the differential
input selected by the RX_SEL pin. See Section 8. “Hardware Mode Control” on page 39 for more details.
Multiplexer inputs are floating when not selected. Unused inputs should be tied to AGND/DGND
. The latest
.
6.2.2Software Mode Control
In Software Mode, CS8422 offers either a 4:1 single-ended, or a 2:1 differential input multiplexer to accommodate switching between up to four channels of AES3 or S/PDIF-compatible data input. In SingleEnded Mode, the CS8422 can switch between four single-ended signals present at RX[3:0]. In differential
mode, the CS8422 can switch between two differential signals, present on RXP0/RXN0 and RXP1/RXN1.
Multiplexer inputs are floating when not selected. Unused inputs should be tied to AGND/DGND
In Software Mode, the receiver input multiplexer is controlled through the register described in Section
11.3 “Receiver Input Control (03h)” on page 49.
DS692F229
CS8422
+
-
VA
22 k
(22000/N) 22 k
AGND
RX[3:0]
(1500 + 1500/N)
(22000/N)
Note:
1. If RX[3:0] is selected by either the receiver MUX or the TX pass-through MUX, N=1.
2. If RX[3:0] is selected by both the receiver MUX and the TX pass-through MUX, N=2.
3. If RX[3:0] is not selected at all, N=0 (i.e. high impedance).
6.2.2.1Single-Ended Input Mode
When the receiver input multiplexer is set to Single-Ended Mode, the receiver inputs can be switched between operation as comparator inputs or digital inputs.
Receiver Input Mode 1 (Analog Sensitivity Mode)
If Mode 1 is selected, the inputs are biased at VA/2 and should be coupled through a capacitor. The recommended value for the AC coupling capacitors is 0.01 µF to 0.1 µF. The recommended dielectrics for
the AC coupling capacitors are C0G or X7R.
When the receiver input multiplexer is in Mode 1, the receiver input p ins allow very low a mplitude signals
to be decoded reliably. In this mode, the maximum allowable input amplitude is determined by VA, which
is nominally 3.3 volts. If input amplitudes greater than 3.3 Volts to a single pin of the receiver input multiplexer are required, then attenuation is necessary prior to the receiver input to avoid damage to the part
(See “Attenuating Input signals” on page 66 for more details). Figure 17 shows the input structure of the
receiver in Single-Ended Mode.
If Mode 2 is selected, the receiver inputs should be driven by a digital signal referenced to VA. In this
mode, the selected receiver input is not biased, and does not require the use of an AC coupling capacitor
(as with the use of a typical optical receiver output).
When the receiver input multiplexer is in Mode 2 the specifications for V
ifications” on page 17 for more details).
apply (see “Switching Spec-
IH/VIL
6.2.2.2Differential Input Mode
When the receiver input multiplexer is set to differential input mode, the inputs are biased at VA/2, and
require the use of AC coupling capacitors, as mentioned in Section 6.2.2.1. Figure 18 shows the structure
of the receiver in differential mode.
30DS692F2
CS8422
+
-
VA
(22000/N)
AGND
RXP[1:0]
(1500 + 1500/N)
(22000/N)
RXN[1:0]
(1500 + 1500/N)
(22000/N)
(22000/N)
Note:
1. If RXP/N[1:0] is selected by either the receiver MUX or the TX pass-through MUX, N=1.
2. If RXP/N[1:0] is selected by both the receiver MUX and the TX pass-through MUX, N=2.
3. If RXP/N[1:0] is not selected at all, N=0 (i.e. high impedance).
Figure 18. Differential Receiver Input Structure
6.3Recovered Master Clock - RMCK
The CS8422 has an internal PLL which recovers a high-frequency system clock, referred to as the recovered master clock (RMCK). RMCK can be generated by incoming AES3-compatible data or the ISCLK
(slave mode and Software Mode only). This clock is used as the master clock source for the AES3 receiver
and the master-mode serial port that it directly supplies data to, and is available as an output on the RMCK
pin. In addition, the user can set the RMCK as the master clock of either of the two remaining serial ports.
6.3.1Hardware Mode Control
In Hardware Mode, the RMCK frequency is determined by the incoming AES3 frame rate and the
MS_SEL pin. RMCK can be routed for use as the master clock for the serial audio output associated with
SDOUT1 by connecting a 20 k resistor from the RMCK pin to VL. See “Hardware Mode Control” on
page 39 for more details.
6.3.2Software Mode Control
In Software Mode, The RMCK frequency is determined by the incoming AES3 frame rate or ISCLK/64
(slave mode only). The RMCK frequency is configured in the register described in Section 11.9 “Recov-
ered Master Clock Ratio Control & Misc. (09h)” on page 53. If the ISCLK is chosen as the source for RM-
CK, then the ratios in the “Recovered Master Clock Ratio Control & Misc. (09h)” register reflect the ratio
of 64*RMCK/ISCLK.
6.4XTI System Clock Mode
A special clock switching mode is available that allows the clock present at the XTI-XTO clock input to automatically replace RMCK when the PLL becomes unlocked. This is accomplished without spurious transitions or glitches on RMCK.
When clock switching is enabled, the PLL’s loss of lock will cause the XTI-XTO clock input to be output on
RMCK. If a serial port is set master mode and has RMCK as its master clock source, its LRCK and SCLK
DS692F231
frequencies will be derived from the XTI-XTO clock when clock switching has taken place and the RMCKto-LRCK ratio will be maintained.
When clock switching is not enabled and the PLL has lost lock, RMCK will be derived from the VCO idle
frequency. The frequency of the RMCK output will still be determined by the ratio selected by the RMCK[2:0]
bits in register 09h, or the MS_SEL pin in Hardware Mode. When the PLL has lost lock, the VCO idle frequency is equivalent to AES3 input data with Fs 54 kHz ± 5% (or ISCLK 3.456 MHz ± 5%).
6.4.1Hardware Mode Control
In Hardware Mode, XTI System Clock Mode is always enabled.
6.4.2Software Mode Control
In Software Mode, XTI System Clock Mode is cont rolled through the register des cribed in Section 11.2
“Clock Control (02h)” on page 48.
6.5AES11 Behavior
When an AES3-derived OLRCK is configured as a master, the rising or falling edge of OLRCK (depending
on the serial port interface format setting) will be within -1.5%(1/Fs) to 1.5%(1/Fs) from the start of the preamble X/Z. In master mode, the latency through the receiver depends on the input sample frequency. In
master mode the latency of the audio data will be 3 frames in AES3 direct mode, and 4 frames in all other
cases.
CS8422
When an AES3-derived OLRCK is configured as a slave, any synchronized input within +/-25% of an AES3
frame from the positive or negative edge of OLRCK (depending on the serial port interface format setting)
will be treated as being sampled at the same time. Since the CS8422 has no control of the OLRCK in slave
mode, the latency of the data through the part will be a multiple of 1/Fs plus the intrinsic delay between OLRCK and the preambles also present in master mode.
Both of these conditions are within the tolerance range set forth in the AES11 standard.
6.6Error and Status Reporting
While decoding the incoming bi-phase encoded data stream, the CS8422 has the ability to identify various
error conditions. Refer to Sections 6.6.1 and 6.6.2 for details.
6.6.1Software Mode
Software Mode allows the most flexibility in reading errors. When unmasked, bits in the Receiver Error
register (13h) indicate the following errors:
1. QCRC – CRC error in Q subcode data.
2. CCRC – CRC error in channel status data.
3. UNLOCK – PLL is not locked to incoming bi-phase data str eam, or 2 valid Z p reamb les have no t ye t
been detected.
4. V – Data Validity bit is set.
5. CONF – The input data stream may be near error condition due to jitter degradation.
6. BIP – Bi-phase encoding error.
7. PAR – Parity error in incoming data.
32DS692F2
CS8422
The error bits are “sticky”, meaning that they are set o n the first occu rrence of the as sociated error and
will remain set until the user reads the register through the control port. This enables the register to log all
unmasked errors that occurred since the last time the register was read.
As a result of the bits “stickiness”, it is necessary to perform two reads on these registers to see if the error
condition still exists.
The Receiver Error Mask register (0Eh) allows masking of individual errors. The bits in this register default
to 00h and serve as masks for the corresponding bits of the Receiver Error register. If a mask bit is set to
1, the error is unmasked, which implies the following: its occurrence will be reported in the receiver error
register, induce a pulse on RERR, invoke the occurrence of a RERR interrupt, and affect the current audio
sample according to the status of the HOLD bits. The exceptions are the QCRC and CCRC errors, which
do not affect the current audio sample, even if unmasked.
The HOLD bits allow a choice of the following:
– Holding the previous sample
– Replacing the current sample with zero (mute)
– Not changing the current audio sample
If needed, the current receiver error status can be output to a GPO pin in software mode, see Section
11.6. The receiver error (RERR) and non-validity receiver error (NVERR) signals output to the GPO pins
are level active; therefore they are active only while an unmasked receiver error (register 0Eh) is occurring. Reading the receiver status register (13h) does not affect the RERR/NVERR signals output to the
GPO pins. The difference between the RERR and NVERR signals on the GPO pins is that the NVERR
signal is not active while an unmasked validity bit error is occurring
For more details, refer to “Receive r Error Unmasking (0Eh)” on page 57, “Interrupt Unmasking (0Fh)” on
page 58, “Interrupt Mode (10h)” on page 58, “Receiver Error (13h)” on page 59, and “Interrupt Status
(14h)” on page 60.
6.6.2Hardware Mode Control
In Hardware Mode, the user may choose to output ei ther the Non-Validity Receiver Error (NVERR) or the
Receiver Error (RERR) on the NV/RERR pin. By default the pin will output the NRERR signal. If upon startup a 20 kresistor is connected between the pin and VL, the NV/RERR pin will output the RERR error
signal. Both RERR and NVERR are updated on AES3 subfr ame b oun da ries. See “ H ard ware Mo de Con-
trol” on page 39 for more details.
NVERR – The previous audio sample is held and passed to the serial audio output port if a parity, biphase, confidence or PLL lock error occurs during the current sample or if a Q-subcode data or channel
status block CRC error occurs.
RERR – The previous audio sample is held and passed to the serial audio output port if the validity bit is
high, or a parity, bi-phase, confidence or PLL lock error occurs during the current sample or if a Q-su bcode
data or channel status block CRC error occurs.
6.7Non-Audio Detection
An AES3 data stream may be used to convey non-audio data, thus it is important to know whether the incoming AES3 data stream is digital audio or not. This information is typically conveyed in channel status bit
1, which is extracted automatically by the CS8422. However, ce rtain non -a udio so ur ce s, such as AC-3
MPEG encoders, may not adhere to this convention and the bit may not be properly set. The CS8422 AES3
receiver can detect such non-audio data through the use of an au to-detect module. The auto -detect module
is similar to auto-detect software used in Cirrus Logic DSPs.
®
or
DS692F233
CS8422
If the AES3 stream contains sync codes in the proper format for IEC61937 or DTS® data transmission, an
internal AUTODETECT signal will be asserted. If the sync codes no longer appear after a certain amount
of time, auto-detection will time-out and AUTODETECT will be de-asserted until another format is detected.
The AUDIO
signal is the logical OR of AUTODETECT and the received channel status bit 1.
In Software Mode AUDIO
processed exactly as if it were normal audio. The exception is the use of de-emphasis auto-select feature
which will bypass the de-emphasis filter if the input stream is detected to be non-audio. It is up to the user
to mute the outputs as required.
is available through the GPO pins. If non-audio data is detected, the data is still
6.7.1Hardware Mode Control
In Hardware Mode, AUDIO is output on the V/AUDIO pin when a 20 k resistor is connected from the
V/AUDIO
pin to VL.
6.7.2Software Mode Control
In Software Mode, the AUDIO signal is available through the GPO pins. See “GPO Control 1 (05h)” on
page 51 for more details.
6.8Format Detection (Software Mode Only)
In Software Mode, the CS8422 can automatically detect various serial audio input fo rmats. The Format Detect Status register (12h) is used to indicate a detected format. The register will indicate if uncompressed
PCM data, IEC61937 data, DTS_LD data, DTS_CD data, or digital silence was detected. Additionally, the
IEC61937 Pc/Pd burst preambles are available in regi sters 2Dh-30h. See the regist er descriptions for more
information.
6.9Interrupts (Software Mode Only)
The INT signal, available in Software Mode, indicates when an interrupt condition has occurred and may be
output on one of the GPOs. It can be set through bits INT[1:0] in the Control1 register (02h) to be active low,
active high, or open-drain active low. This last mode is used for active low, wired-OR hook-ups, with multiple
peripherals connected to the microcontroller interrupt input pin.
Many conditions can cause an interrupt, as listed in the interrupt status register descriptions. Each source
may be masked off through mask register bits. In addition, some sources may be set to rising edge, falling
edge, or level sensitive. Combined with the option of level sensitive or edge sensitive modes within the microcontroller, many different configuratio ns are poss ible, dependin g on the needs of the equipment designer. Refer to the register descriptions for the Interrupt Unmasking (0Fh), Interrupt Mode (10h), and Interrupt
Status (14h) registers
6.10Channel Status and User Data Handling
“Channel Status Buffer Management” on page 67 describes the overall handling of Channel Status and
User data.
6.10.1Hardware Mode Control
In Hardware Mode, Received Channel Status (C), and User ( U) bits are output on the C and TX/U pins
(U data output must be selected on the TX/U pin, see “Hardware Mode Control” on page 39 for details).
OLRCK2 and RCBL are made available to qualify the C and U data output. Figure 19 illustrates timing of
the C and U data and their related signals.
34DS692F2
6.10.2Software Mode Control
In Software Mode, several options are available for accessing the Channel Status and User data that is
encoded in the received AES3 or SPDIF data.
The first option allows access directly through registers. T he first 5 by tes of the Ch annel Status block ar e
decoded into the “Channel Status Registers (23h - 2Ch)”. Register s 23h-27h contain the A channel status
data. Registers 28h-2Ch contain the B channel status data.
CS8422
Received Channel Status (C), User (U), and EMPH
appropriately setting the GPOxSEL bits in the “GPO Control 1 (05h)” registers. OLRCK and RCBL can be
made available to qualify the C and U data output. In serial port slave mode, VLRCK and RCBL can be
made available to qualify the C and U data output. VLRCK is a virtual word clock, equal to the receiver
recovered sample rate, that can be used to frame the C/U outp ut. VLRCK and RCBL are available through
the GPO pins. Figure 19 illustrates timing of the C and U data, and their related signals. To recover serial
C-data or U-data with either OLRCK1 or OLRCK2, the correspond ing serial port must be directly sour ced
by the AES3 receiver (not the SRC).
To source an SDOUT signal direc tly from th e RX rece iver, the receiver should be set in master mode in
order to recover the received data. In this configuration, the SDOUT signal sourced from the receiver will
toggle at the AES frame rate. If the RX receiver is set to slave mode, the user must ensure that its associated input OLRCK signal is externally synchronized to the input S/PDIF stream in order to recover the
received data. In both configurations, VLRCK is equal to th e OLRCK signal associated with the serial port
used to clock the recovered receiver data.
When both SDOUTs are sourced from the RX receiver, VLRCK will equal OLRCK1. When both SDOUTs
are sourced from the SRC, then VLRCK will equal the recovered AES frame rate, not OLRCK.
SDOUT1SDOUT2VLRCKCOMMENT
RXRXOLRCK1see (Note 4)
RXSRCOLRCK1see (Not e 4)
SRCRXOLRCK2see (Note 4)
SRCSRCAES FRAMESsee (N ot e 6)
bits may also be serial outputs to the GPO pins by
Table 1. VLRCK Behavior
The user may also access all of the C and U bits directly from the output data stream (SDOUT) by setting
bits SOFSELx[1:0]=11 (AES3 Direct mode) in “Serial Audio Output Data Format - SDOUT1 (0Ch)” or “Se-
rial Audio Output Data Format - SDOUT2 (0Dh)”. The appropriate bits can be stripped from the SDOUT
signal by external control logic such as a DSP or microcontroller. AES3 Direct mode is only valid if the
serial port in question is directly sourced by the AES3 receiver (not the SRC).
If the incoming User data bits have been encoded as Q-channel subcode, the data is decoded, buffered,
and presented in 10 consecutive register locations located in “Q-Channel Subcode (19h - 22h)” register.
An interrupt may be enabled to indicate the decoding of a new Q-channel block, which may be read
through the “Interrupt Status (14h)” register.
The encoded Channel Status bits which indicate sample word length are decoded according to
AES3-2003 or IEC 60958. The number of auxiliary bits are reported in bits 7 through 4 of the “Receiver
Channel Status (11h)”.
DS692F235
CS8422
RCBL (out)
VLRCK (out)
C/U (out)
C/U[0]C/U[1]C/U[383]
tt
192 AES3 Frames
Figure 19. C/U Data Outputs
Note:
1.RCBL will go high on the transition of the first output C/U data bit (C/U[0]) and will remain high until the C/U[0] - C/U[1] transition.
2.VLRCK is a virtual word clock that is available through the GPO pins, and can be used to frame the C/U output.
3.VLRCK frequency is always equal to the incoming frame rate of the AES3-compatible data. If there are an even number of OSCLK
periods per OLRCK, then the VLRCK duty cycle is 50%, otherwise it is 50% ± one OSCLK period.
4.If a serial audio output port is sourced directly by the AES3-compatible receiver VLRCK = OLRCK
in I²S Mode, and
VLRCK = OLRCK in left-justified and Right-Justified Modes.
5.If a serial port is sourced directly by the AES3-compatible receiver, the data will transition on the fourth OSCLK falling edge after a
VLRCK edge and will be valid on VLRCK edges (t = 4 OSCLK period).
6.If a serial port is not sourced directly by the AES3-compatible receiver (as in a sample rate conversion application), the data will
transition 1/64*Fsi after a VLRCK edge, and will be valid on VLRCK edges (t = 1/64*Fsi).
36DS692F2
CS8422
7. SAMPLE RATE CONVERTER (SRC)
Multirate digital signal processing techniques are used to conceptually upsample the incoming data to a very high
rate and then downsample to the outgoing rate. Internal filtering is designed so that a full input audio bandwidth of
20 kHz is preserved if the input sample and output sample rates are greater than or equal to 44.1 kHz. When the
output sample rate becomes less than the input sample rate, the input is automatically band limited to avoid aliasing
artifacts in the output signal. Any jitter in the incoming signal has little impact on the dynamic performance of the rate
converter and has no influence on the output clock.
7.1SRC Data Resolution and Dither
When using the serial audio input port in left justified and I²S Modes, all input data is treated as 24- bits wide.
Any truncation that has been done prior to the CS8422 to less than 24-bits should have been done using
an appropriate dithering process. If the serial audio input port is in Right-Justified Mode, the input data will
be truncated to the bit depth set through the “Serial Audio Input Data Format (0Bh)” reg ister. If the bit depth
is set to 16 bits, and the input data is 24-bits wide, then truncation distortion will occur. Similarly, in any serial
audio input port mode, if an inadequate number of bit clocks are entered (i.e. 16 clocks instead of 20 clocks),
then the input words will be truncated, causing truncation distortion at low levels. In summary, there is no
dithering mechanism on the input side of the CS8422, and care must be take n to en sure th at no truncation
occurs.
The output side of the SRC can be set to 16, 18, 20, or 24. Ditherin g is applied and is automatically scaled
to the selected output word length. This dither is not correlated between left and right channel.
7.1.1Hardware Mode Control
In Hardware Mode, the SRC is the data source for SDOUT1, and its serial output port data resolution is
controlled through the SAOF pin. See Section 8.1 on page 41 for more details.
7.1.2Software Mode Control
In Software Mode, the serial port data resolution is controlled through the “Serial Audio Input Data For mat
(0Bh)”, “Serial Audio Output Data Format - SDOUT1 (0Ch)”, and “Serial Audio Output Data Format SDOUT2 (0Dh)” registers.
7.2SRC Locking
The SRC calculates the ratio between the input sample rate and the output sample rate, and uses this information to set up various parameters inside the SRC block. The SRC takes some time to make this calculation (approximately ~100 ms when Fso = 48 kHz).
The SRC_UNLOCK signal is used to indicate when the SRC is not locked. When RST
is a change in Fsi or Fso, SRC_UNLOCK will be set high. The SRC_UNLOCK pin will continue to be high
until the SRC has reacquired lock and settled, at which point it will transition low. When the SRC_UNLOCK
pin is set low, SDOUT is outputting valid audio data. This can be used to signal a DAC to unmute its output.
The SRC_UNLOCK signal is available through the control port register 15h, or through the SRC_UNLOCK
pin in Hardware Mode.
is asserted, or if there
DS692F237
7.3SRC Muting
XTIXTO
CC
Figure 20. Typical Connection Diagram for Crystal Circuit
The SDOUT pin sourced by the SRC (SDOUT1 or SDOUT2 in Software Mode, SDOUT1 in Hardware
Mode) is set to all zero output (full mute) immediately after the RST
the SRC becomes valid, SDOUT will be soft unmuted over a period of approximately 27488/Fsi while in interpolation mode (Fsi < Fso) or 54976/Fso while in decimation mode (Fsi > Fso). When the ou tput becomes
invalid the SRC’s SDOUT is immediately set to all zero output (hard muted). After all invalid states have
been cleared, the SRC will soft unmute SDOUT.
7.4SRC Master Clock
The CS8422 can use the clock signal supplied through XTI-XTO, the PLL, or an internal ring oscillator as
its master clock (MCLK). If the SRC MCLK source is selected as being XTI-XTO, care must be taken to ensure that the SRC MCLK source does not exceed 33 MHz. If the SRC MCLK source exceeds 33 MHz, an
internal clock divider can be enabled to divide the SRC MCLK source by 2, allowing the use of higher frequency clocks. See Section 7.4.1 and Section 7.4.2 for more details.
If the SRC MCLK is applied through XTI then it can be supplied from a digital clock source, a crystal oscillator, or a fundamental mode crystal. If XTO is not used, such as with a digital clock source or crystal oscillator, XTO should be left unconnected or pulled low through a 20 k resistor to GND.
If a crystal in conjunction with the internal oscillator is used to supply the SRC MCLK, the crystal circuit
should be connected as shown in Figure 20. If VL < 2.5 Volts, it is recommended that the crystal attached
across XTI and XTO should be specified as operating with a load capacitance of 10pF (capacitors in
Figure 20 should be 20 pF). If VL 2.5 Volts, it is recommended that the crystal attached across XTI and
XTO should be specified as operating with a series capacitance of at 20pF (capacitors in Figure 20 should
be at 40 pF) . Please refer to the crys tal manufacturer’s specifications for more information about external
capacitor recommendations.
CS8422
pin is set high. While the output from
If the PLL clock is selected as the SRC MCLK, the SRC MCLK will be synchronous to incoming AES3-compatible data or ISCLK. Unlike RMCK, the user does not control PLL clock’s relationship to the sampling rate
of incoming AES3-compatible data (Fsi), or ISCLK. See Table 2 for the relationship between the Fsi or ISCLK/64, and the PLL clock.
The CS8422 has the ability to operate without a master clock input through XTI. This benefits the design by
not requiring extra external clock components (lowering production cost) and not requiring a master clock
to be routed to the CS8422, resulting in lowered noise contribution in the system. In this mode, an internal
oscillator provides the clock to run all of the internal logic. See Section 7.4.1 and Sectio n 7.4.2 for explanation of how the SRC MCLK can be selected.
7.4.1Hardware Mode Control
In Hardware Mode, the default master clock source for the SRC is the internal ring oscillator. Therefore,
it is not necessary to apply an external MCLK source for the SRC. Optionally the user may select the PLL
clock as the SRC MCLK source by connecting a 20 k pull-up resistor between MCLK_OUT and VL.
7.4.2Software Mode Control
In Software Mode, the SRC master clock source is selected by the SRC_MCLK[1:0] bits in the “SRC Out-
put Serial Port Clock Control (08h)” register . If the XTI clock is selected as the SRC MCLK and XTI is tied
to VL or DGND and XTO is left unconnected, then the internal ring oscillator will take the place of the XTIXTO clock source.
If the selected SRC MCLK source is XTI-XTO, and is greater tha t 33 MHz, the user can enable the internal
clock divide-by-two by setting the SRC_DIV bit in control port register 08h. See “SRC Output Serial Port
Clock Control (08h)” on page 52 for more details.
8. HARDWARE MODE CONTROL
The CS8422 provides a stand-alone hardware control mode in which the part does not require an I²C or SPI control
port. In Hardware Mode, the user is provided with a subset of the features available in Software Mode as shown in
Figure 21. The part will be in Hardware Mode if there is a 20 k pull-up resistor connected betwe en the C p in and
VL upon the release of RST
Controlling the CS8422 in Hardware Mode is done through dedicated control inputs, 20 k pull-up or pull-down resistors attached to dual-purpose pins, and by attaching a specific resistor values from one of two dedicated control
pins (SAOF and MS_SEL) to either VL or ground. In the case of SAOF and MS_SEL, the resistor should be connected as close to the pin as possible and should have a tolerance no greater than ±1%. Dedicated controls
(TX_SEL and RX_SEL) can be changed during operation whereas pull-up resistor controls are sensed on startup.
Figure 21 shows clock routing options available in Hardware Mode. Control signal names are in italics and are de-
scribed in the table below.
.
DS692F239
CS8422
RXP/RXN0
RXP/RXN1
Receiver
Clock
Recovery
(PLL)
Sample
Rate
Converter
Serial
Audio
Output
2
OLRCK1
OSCLK1
SDOUT1
TDM_IN1
OLRCK2
OSCLK2
SDOUT2
Serial
Audio
Output
1
2
2
RX_SEL
TX_SEL
TX
Ring Oscillator
(RMCK Pull-Up)
2:1
MUX
(MCL K_OUT Pull-up)
Clock
Generator
XTI XTO
MCLK_OUT
2:1
MUX
2:1
MUX
MS_SEL
SAOF
MS_SEL
SAOF
RMCK
2:1
MUX
Figure 21. Hardware Mode Clock Routing
40DS692F2
CS8422
Pin NameDescriptionPin ConfigurationSelection
RX_SELSelects Active AES3 RX Input
TX_SEL
SDOUT1
SAOF
MS_SEL
RMCK
MCLK_OUT
TX/U
C
NV/RERR
V/AUDIO
Selects RX Input to be output on
TX pin
Enables or Disables De-emphasis
Auto-detect
Selects data format for SDOUT1
& SDOUT2
Selects master/slave and clock
configuration for SDOUT1&
SDOUT 2
Selects master clock source for
SDOUT1 serial port
Selects master clock source for
the SRC
Selects TX pass-through output or
incoming U data output
Selects Software or Hardware
Mode
Selects error signal output on
NV/RERR
Selects either incoming Validity
data output or AUDIO indicator
output
Connected to GNDRXP0/RXN0 is active
Connected to VLRXP1/RXN1 is active
Connected to GNDRXP0/RXN0 to TX
Connected to VLRXP1/RXN1 to TX
No pull-up on SDOUT1
20 k pull-up on SDOUT1
See Table 4 on page 42
See Table 5 on page 42
No pull-up on RMCK XTI-XTO
20 k pull-up on RMCKRMCK
No pull-up on MCLK_OUTRing Oscillator
20 k pull-up on MCLK_OUTPLL Clock
No pull-up on UTX Pass-through
20 k pull-up on UU Data Output
No pull-up on CSoftware Mode
20 k pull-up on CHardware Mode
No pull-up on RERR/NVERRNVERR
20 k pull-up on RERR/NVERRRERR
20 k pull-down on V/AUDIOValidity data output
20 k pull-up on V/AUDIO
De-emphasis Auto-detect
Enabled
De-emphasis Auto-detect
Disabled
AUDIO indicator output
Table 3. Hardware Mode Control Settings
8.1Hardware Mode Serial Audio Port Control
The CS8422 uses the resistors attached to the MS_SEL and SAOF p i ns to determin e the m ode s o f o peration for its serial output ports. After RST
sensed. This operation will take approximately 4 ms to complete. The SRC_UNLOCK pin will remain high
and both SDOUT pins will be muted until the mode detection sequence has completed. After this, if all clocks
are stable, SRC_UNLOCK will be brought low when audio output is valid and normal operation will begin.
The resistor attached to each mode selection pin sh ould be placed physically close to the CS84 22. The end
of the resistor not connected to the mode selection pins should be connecte d as close as possible to VL and
GND to minimize noise. Table 4 and Table 5 show the pin functions and their corresponding settings.
Table 4 shows the Hardware Mode options for output serial port format and the required SAOF pin config-
urations. In the case of SDOUT2, the output resolution depends on the resolution of the incoming AES3compatible data. In Right-Justified Modes, the serial format word-length will be equal to the AES3 input data
resolution. The exception is the case where Right-Justified Mode is selected and the AES3 input wordlength is an odd number of bits. In this case, the SDOUT2 word-length will be zero-stuffed to be 1 bit longer
then the AES3 input word-length (example: a 19-bit AES3 input word will result in an 20-bit right-justified
serial format). For a more detailed description of serial formats, refer to Section 5. on page 24.
Table 5 shows the Hardware Mode master/slave and clock options for both serial ports, and the required
MS_SEL pin configurations. For SDOUT1, when the serial port is set to master mode, the master clock ratio
DS692F241
is released, the resistor value and condition (VL or GND) are
CS8422
determines what the output sample rate will be based on the MCLK selected for SDOUT1, as shown in the
hardware control pin descriptions shown above. For SDOUT2, the output sample rate is dictated by the incoming AES3 data, and the master mode clock ratio determines the frequency of RMCK relative to the incoming AES3 sample rate. Note: if TDM Mode is selected for SDOUT1, then SDOUT1 cannot be set to
“Master, Fso = MCLK/128”.
SAOF pinSDOUT1 Data FormatSDOUT2 Data Format
32.4 k ± 1% to GNDI²S 24-bit dataI²S
16.2 k ± 1% to GNDI²S 20-bit dataI²S
8.06 k ± 1% to GNDI²S 16-bit dataI²S
4.02 k ± 1% to GNDLeft-Justified 24-bi t dataLeft-Justified
1.96 k ± 1% to GNDLeft-Justified 20-bi t dataLeft-Justified
1.0 k + 1% to GNDLeft-Justified 16-bit dataLeft-Justified
32.4 k ± 1% to VLRight-Justified 24-bit data
(Master mode only)
16.2 k ± 1% to VLRight-Justified 20-bit data
(Master mode only)
8.06 k ± 1% to VLRight-Justified 16-bit data
(Master mode only)
4.02 k ± 1% to VLTDM Mode 24-bit dataI²S
1.96 k ± 1% to VLTDM Mode 20-bit dataI²S
1.0 k + 1% to VLTDM Mode 16-bit dataI²S
Right-Justified
(Master mode only)
Right-Justified
(Master mode only)
Right-Justified
(Master mode only)
Table 4. Hardware Mode Serial Audio Format Control
MS_SEL pinSDOUT1SDOUT2
127.0 k ± 1% to GNDSlave
63.4 k ± 1% to GNDMaster, Fso = MCLK/128
32.4 k ± 1% to GNDMaster, Fso = MCLK/256
16.2 k ± 1% to GNDMaster, Fso = MCLK/512
8.06 k ± 1% to GNDSlave
4.02 k ± 1% to GNDMaster, Fso = MCLK/128
1.96 k ± 1% to GNDMaster, Fso = MCLK/256
1.0 k + 1% to GNDMaster, Fso = MCLK/512
127.0 k ± 1% to VLSlave
63.4 k ± 1% to VLMaster, Fso = MCLK/128
32.4 k ± 1% to VLMaster, Fso = MCLK/256
16.2 k ± 1% to VLMaster, Fso = MCLK/512
8.06 k ± 1% to VLSlave
4.02 k ± 1% to VLMaster, Fso = MCLK/128
1.96 k ± 1% to VLMaster, Fso = MCLK/256
1.0 k + 1% to VLMaster, Fso = MCLK/512
RMCK = 256 x Fsi
Master Mode,
RMCK = 128 x Fsi
Master Mode,
RMCK = 256 x Fsi
Master Mode,
RMCK = 512 x Fsi
Table 5. Hardware Mode Serial Audio Port Clock Control
Slave
42DS692F2
9. SOFTWARE MODE CONTROL
MAP
MSB
LSB
DATA
byte 1
byte n
R/W
R/W
ADDRESS
CHIP
ADDRESS
CHIP
CDIN
CCLK
CS
CDOUT
MSB
LSB
MSB
LSB
0010000
0010000
MAP = Memory Address Pointer,8 bits, MSB first
High Impedance
Figure 22. Control Port Timing in SPI Mode
9.1 Control Port Description
The control port is used to access the registers, allowing the CS8422 to be configured for the desired operational modes and formats. The operation of the control port may be completely asynchronous with r espect
to the audio sample rates. However, to avoid potential interference problems, the control port pins should
remain static if no operation is required.
The control port has two modes: SPI and I²C, with the CS8422 acting as a slave device. SPI Mode is selected if there is a high to low transition on the AD0/CS
Mode is selected by connecting the AD0/CS
selecting the desired AD0 bit address state.
9.1.1SPI Mode
In SPI Mode, CS is the CS8422 chip select signal, CCLK is the control port bit clock (input into the CS8422
from the microcontroller), CD IN is t he in pu t d a ta line fr o m the m icr ocontroller, CDOUT is the output da ta
line to the microcontroller. Data is clocked in on the rising edge of CCLK and out on the falling edge.
CS8422
pin, after the RST pin has been brought high. I²C
pin through a resistor to VL or DGND, thereby permanently
Figure 22 shows the operation of the control port in SPI Mode. To write to a register, bring CS
low. The
first seven bits on CDIN form the chip address and must be 0010000. The eighth bit is a read/write indicator (R/W
), which should be low to write. The next eight bits include the 7-bit Memory Address Pointer
(MAP), which is set to the address of the register that is to be updated. The next eight bits are the data
which will be placed into the register designated by the MAP. During writes, the CDOUT output stays in
the Hi-Z state. It may be externally pulled high or low with a 20 k resistor, if desired.
To read a register, the MAP has to be set to the correct address by executing a partial write cycle which
finishes (CS
dress and set the read/write bit (R/W
high) immediately after the MAP byte. To begin a read, bring CS low, send out the chip ad-
) high. The next falling edge of CCLK will clock out the MSB of the
addressed register (CDOUT will leave the high impedance state). The MAP automatically increments, so
DS692F243
data for successive registers will appear consecutively.
9.1.2I²C Mode
4 5 6 7 24 25
SCL
CHIP ADDRESS (WRITE)MAP BYTEDATA
DATA +1
START
ACK
STOP
ACKACKACK
0 0 1 0 AD2 AD1 AD0 0
SDA
6 5 4 3 2 1 0
7 6 1 07 6 1 07 6 1 0
0 1 2 3 8 9 12 16 17 18 19 10 11 13 14 15 27 28
26
DATA +n
INC
Figure 23. Control Port Timing, I²C Slave Mode Write
SCL
CHIP ADDRESS (WRITE)
MAP BYTE
DATA
DATA +1
START
ACK
STOP
ACK
ACK
ACK
SDA
CHIP ADDRESS (READ)
START
6 5 4 3 2 1 0
7 07 07 0
NO
16 8 9 12 13 14 15 4 5 6 7 0 1 20 21 22 23 24
26 27 28
2 3 10 11 17 18 19 25
ACK
DATA + n
STOP
0 0 1 0 AD2 AD1 AD0 00 0 1 0 AD2 AD1 AD0 1
INC
Figure 24. Control Port Timing, I²C Slave Mode Read
In I²C Mode, SDA is a bidirectional data line. Data is clocked into and out of the part by the clock, SCL.
There is no CS
be connected to VL or DGND as desired. The GPO2 pin is used to set the AD2 bit by connecting a 20 k
resistor from the GPO2 pin to VL (a 20 k pull-up sets AD2 = 1, and the absence of a pull-up sets
AD2 = 0). The states of the pins are sensed after RST
The signal timings for a read and write cycle are shown in Figure 23 and Figure 24. A Start condition is
defined as a falling transition of SDA while the clock is high. A Stop condition is a rising transition while
the clock is high. All other transitions of SDA occur while the clock is low. The first byte sent to the CS8422
after a Start condition consists of a 7-bit chip address field and a R/W
The upper 4 bits of the 7-bit address field are fixed at 0010.
To communicate with a CS8422, the chip address field, which is the first byte sent to the CS8422, should
match 0010 followed by the settings of the AD2, AD1, and AD0 pins. The eighth bit of the address is the
R/W
bit. If the operation is a write, th e next byte in cludes the M emory Addr ess Pointer (MAP) which se lects the register to be read or written. If the operation is a read, the contents of the register pointed to by
the MAP will be output. Each byte is separated by an acknowledge bit (ACK). The ACK bit is output from
the CS8422 after each input byte is read, and is input to the CS8422 from the microcontroller after each
transmitted byte.
CS8422
pin. Pins AD0 and AD1 form the two least significant bits of the chip addr ess an d should
is released.
bit (high for a read, low for a write).
Note that the read operation can not set the MAP so an aborted write operation is used as a preamble.
As shown in Figure 24, the write operation is aborted after the acknowledge for the MAP byte by sending
a stop condition.
9.1.3Memory Address Pointer (MAP)
The MAP is an 8-bit word containing the control port address to be read or written in both SPI and I²C Modes
and a bit to control an auto-increment feature. MAP[6:0] constitute the address to be read or written, while
bit 7 of the MAP (INC) de termin es whe ther or not M AP[6:0] will automa tically inc rement after each contro l
port read or write. If INC = 0, MAP[6:0] will not automatically increment after each control port read or write.
If INC = 1, MAP[6:0] will automatically increment after each control port read or write. The MAP byte is
shown in Figures 23 and 24.
44DS692F2
CS8422
10.REGISTER QUICK REFERENCE
This table shows the register names and default values for read-write registers.
Table 6. Summary of Software Register Bits (Continued)
46DS692F2
CS8422
AddrFunction76543210
2Ch Channel B Sta-
tus Byte 4
2Dh Burst
Preamble PC
Byte 0
2Eh Burst
Preamble PC
Byte 1
2Fh Burst
Preamble Pd
Byte 0
30h Burst
Preamble PD
Byte 1
BC4[7]BC4[6]BC4[5]BC4[4]BC4[3]BC4[2]BC4[1]BC4[0]
PC0[7]PC0[6]PC0[5]PC0[4]PC0[3]PC0[2]PC0[1]PC0[0]
PC1[7]PC1[6]PC1[5]PC1[4]PC1[3]PC1[2]PC1[1]PC1[0]
PD0[7]PD0[6]PD0[5]PD0[4]PD0[3]PD0[2]PD0[1]PD0[0]
PD1[7]PD1[6]PD1[5]PD1[4]PD1[3]PD1[2]PD1[1]PD1[0]
Table 6. Summary of Software Register Bits (Continued)
DS692F247
CS8422
11.SOFTWARE REGISTER BIT DEFINITIONS
The table row beneath the row that contain s the re giste r-bit name shows the register bit default value. Bits labeled
‘Reserved’ must remain at their default value.
11.1CS8422 I.D. and Version Register (01h)
76543210
ID4ID3ID2ID1ID0REV2REV1REV0
00010000
ID[4:0] - ID code for the CS8422. Permanently set to 00010
REV[2:0] = 000 (revision A)
REV[2:0] = 010 (revision B1)
11.2Clock Control (02h)
76543210
PDNFSWCLKSWCLK
10000000
PDN - Controls the internal clocks, allowing the CS8422 to be placed in a “powered down”, low current consumption state. This bit must be written to the 0 state to allow the CS8422 to begin oper ation. All input clocks
should be stable in frequency and phase when PDN is set to 0.
RMCK_CTL1 RMCK_CTL0
INT1
INT0Reserved
0- Normal part operation.
1- Internal clocks are stopped. Internal state machines are re set. The fully static control port is operational,
allowing registers to be read or changed. Power consumption is low.
FSWCLK – Forces the clock signal on XTI to be output on RMCK regardless of the SWCLK bit functionality
or PLL lock.
0 – Clock signal on XTI is output on RMCK according to the SWCLK bit functionality.
1 – Forces the clock signal on XTI to be output on RMCK regardless of the SWCLK bit functionality.
SWCLK - Outputs XTI clock signal on RMCK pin when PLL loses lock. Any OSCLK or OLRCK derived from
RMCK under normal conditions will be derived from XTI in this case.
0 - Disable automatic clock switching.
1 - Enable automatic clock switching on PLL unlock. Clock signal selected on XT I is a utomatica lly outpu t
on RMCK on PLL Unlock.
RMCK_CTL[1:0] - RMCK Control
00 - RMCK is an output and is derived from the frame rate of incoming AES3 data.
01 - RMCK is an output and is derived from the ISCLK input frequency divided by 64. Only valid if serial
audio input port is in slave mode (SIMS = 0 in “Serial Audio Input Data Forma t (0Bh)” on page 54).
10 - RMCK is high-impedance.
11 - Reserved
INT[1:0] - Interrupt output pin (INT) control
00 - Active high; high output indicates interrupt condition has occurred.
48DS692F2
CS8422
01 - Active low, low output indicates an interrupt condition has occurred.
10 - Open drain, active low. Requires an external pull-up resistor on the INT pin.
11 - Reserved.
11.3Receiver Input Control (03h)
76543210
RX_MODERXSEL1RXSEL0TXSEL1TXSEL0
00010000
RX_MODE - Selects the input mode (single-ended or differential) of the RX pins
0 - Receiver inputs are differential-pair inputs RXP1/RXN1 and RXP0/RXN0.
1 - Receiver inputs are single-ended inputs RX[3:0].
RX_SEL[1:0] – Input multiplexer to the receiver
00 - RX0 or RXP0/RXN0
01 - RX1 (Only valid if RX_MODE = 1)
10 - RX2 or RXP1/RXN1
11 - RX3 (Only valid if RX_MODE = 1)
INPUT_TYPE
ReservedReserved
TX_SEL[1:0] – Selects receiver input for GPO TX source
00 - RX0 or RXP0/RXN0
01 - RX1 (Only valid if RX_MODE = 1)
10 - RX2 or RXP1/RXN1
11 - RX3 (Only valid if RX_MODE = 1)
INPUT_TYPE – Selects receiver input type
0 - Mode 1, receiver multiplexer inputs are comparator inputs biased at VA/2.
1 - Mode 2, receiver multiplexer inputs are digital inputs, referenced to VA. Valid only if RX_MODE = 1.
TRUNC – Determines if the audio word length is set according to the incoming channel status data as decoded by the AUX[3:0] bits. The resulting word length in bits is 24 minus AUX[3:0].
0 – Incoming data is not truncated.
1 – Incoming data is truncated according to the length specified in the channel status data.
Truncation occurs before the de-emphasis filter. TRUNC has no effect on output data is detected as being
non-audio.
HOLD[1:0] – Determine how received AES3 audio sample is affected when a rece ive er ro r oc cu rs
00 - hold last audio sample.
DS692F249
CS8422
Figure 25. De-Emphasis Filter Response
Gain
dB
-10dB
0dB
Frequency
T2 = 15 µs
T1=50 µs
F1F2
3.183 kHz10.61 kHz
01 - replace the current audio sample with all zeros (mute).
10 - do not change the received audio sample.
11 - reserved
CHS – Sets which channel's C data is decoded in the Receiver Channel Status register (11h) (Defau lt = ‘0’)
0 - A channel
1 - B channel
If CHS = 0 and TRUNC = 1, both channels' audio data will be truncated by the AUX[3:0] bits indicated in
the channel A Channel Status data. If CHS = 1 and TRUNC = 1, both channels' audio data will be truncated by the AUX[3:0] bits indicated in the channel B Channel Status data. This will occur even if the
AUX[3:0] bits indicated in the channel A Channel Sta tus data are not equal to the AUX[3:0] bits indicated
in the channel B Channel Status data.
DETCI - D to E status transfer inhibit
0 -Allow update
1 -Inhibit update
DEM_CNTL[2:0] – De-emphasis filter control. See Figure 25 for De-emphasis filter response.
000 - De-emphasis filter off.
001 - 32 kHz setting
010 - 44.1 kHz setting
011 - 48 kHz setting
100 - Auto-detect Sample Rate. If the PLL estimates that the incoming sample rate is below 49 kHz, de-
emphasis will be applied according to the Channel Status data of the incoming AES3 or S/PDIF data. If
the PLL estimates that the incoming sample rate is not below 49 kHz, de-emphasis will not be enabled. If
the incoming Channel Status data indicates that no de-emphasis should be applied, de-emphasis will not
be enabled. If data is detected as being non-audio, the de-emphasis filter will not be enabled.
SAI_CLK[3:0] – Selects the serial audio input master clock-to-ILRCK ratio when the serial audio inpu t port
is set to master mode (SIMS = 1 as shown in “Serial Audio Input Data Format (0Bh)” on page 54). Note: if
a serial audio output is sourced directly by the serial audio input port, SAI_CLK[3:0] determine the
MCLK/LRCK ratio for both serial ports if they are set to master mode.
SAI_MCLK – Selects the master clock (MCLK) source for the serial audio input when set to master mode
(SIMS = 1, as shown in “Serial Audio Input Data Format (0Bh)” on page 54). When set to master, ILRCK
and ISCLK are derived from the MCLK selected in this register. Note: if either serial audio output port is
sourced directly by the serial audio input port, this bit determines the master clock source for the selected
serial output port when it is in master mode.
SAO_CLK[3:0] – Valid only for the serial port sourced by the SRC. Selects the serial audio input master
clock-to-OLRCK ratio when the serial audio output port is set to master mode (SOMS = 1 as shown in “Serial
Audio Output Data Format - SDOUT1 (0Ch)” on page 55 and “Serial Audio Output Data Format - SDOUT2
(0Dh)” on page 56).
SAO_MCLK – Selects the master clock (MCLK) source for the serial audio output, sourced by the SRC,
when set to master mode (SOMS1 or SOMS 2 = 1, as shown in “Serial Audio Output Data Format - SDOUT1
(0Ch)” on page 55 and “Serial Audio Output Data Format - SDOUT2 (0Dh)” on page 56). When set to mas-
ter, OLRCK and OSCLK are derived from the MCLK selected in this register.
52DS692F2
CS8422
0 - XTI-XTO
1 - RMCK
SRC_MCLK[1:0] - Controls the master clock (MCLK) source for the sample rate converter. See “SRC Mas-
ter Clock” on page 38 for details.
00 - XTI-XTO. If XTI is connected to GND or VL and XTO is left floating, the SRC MCLK will be the internal
ring oscillator.
01 - PLL clock
10 - Internal Ring Oscillator
11 - Reserved
SRC_DIV – Divide-by-two for the SRC MCLK source. Valid only if SRC_MCLK = 00.
0 - SRC MCLK is not divided. Maximum allowable SRC MCLK frequency is 33 MHz.
1 - SRC MCLK is divided. Maximum allowable SRC MCLK frequency is 49.152 MHz.
11.9Recovered Master Clock Ratio Control & Misc. (09h)
RMCK[3:0] – Selects the RMCK/Fsi ratio, where Fsi is the sample rate of the incoming AES3-compatible
data or ISCLK/64. Note: If a serial audio output port is in master mode and sourced directly by the AES3
receiver, then RMCK is the master clock source for the selected serial output p ort and RMCK[3:0] determine
the MCLK/OLRCK ratio for the selected serial output port.
0000 - RMCK = 64 x Fsi
0001 - RMCK = 96 x Fsi
0010 - RMCK = 128 x Fsi
0011 - RMCK = 192 x Fsi
0100 - RMCK = 256 x Fsi
0101 - RMCK = 384 x Fsi
0110 - RMCK = 512 x Fsi
0111 - RMCK = 768 x Fsi
1000 - RMCK = 1024 x Fsi
SRC_MUTE – When SRC_MUTE is set to ‘1’, the SRC will soft-mute when it loses lock and soft unmute
when it regains lock.
0 - Serial audio input port is in slave mode. ISCLK and ILRCK are inpu ts.
1 - Serial audio input port is in master mode. ISCLK and ILRCK are outputs.
SISF - ISCLK Frequency. Valid only in master mode (SIMS = 1). Should be changed when PDN = 1. See
Table 8 for details.
SAI_CLK[3:0]MCLK/ILRCK Ratio
Table 8. ISCLK/ILRCK Ratios and SISF Settings
54DS692F2
ISCLK/ILRCK Ratio
SISF = 0SISF = 1
00006464INVALID
0001964896
001012864128
00111924896
010025664128
01013844896
011051264128
01117684896
1000102464128
Table 8. ISCLK/ILRCK Ratios and SISF Settings
SIFSEL[2:0] - Serial audio input data format
000 - Left-Justified, up to 24-bit data
001 - I²S, up to 24-bit data
010 - Right-Justified, 24-bit data
011 - Right-Justified, 20-bit data
100 - Right-Justified, 18-bit data
CS8422
101 - Right-Justified, 16-bit data
110, 111 - Reserved
11.12 Serial Audio Output Data Format - SDOUT1 (0Ch)
0 - Serial audio output port is in slave mode. OSCLK and OLRCK are inputs.
1 - Serial audio output port is in master mode. OSCLK and OLRCK are outputs.
SOSF1 - OSCLK1 Frequency. Valid only in master mode (SOMS1 = 1). If the SRC is selected as the source
for SDOUT1 (SDOUT1[1:0] = 00 in register 0Ah), then the master clock (MCLK) is the SAO MCLK (as selected by the SAO_MCLK bit in register 08h). If the AES3 receiver is selected as the source for SDOUT1
(SDOUT1[1:0] = 01 in register 0Ah) , then the MCLK is RMCK. Should be changed when PDN = 1. See
Table 9 for details. Note: If serial output 1 is in maste r mode and sourced dir ectly by the serial input po rt,
SAI_CLK[3:0] determines the MCLK/OLRCK1 ratio.
SAO_CLK[3:0],
SAI_CLK[3:0], or
MCLK/OLRCK1 Ratio
RMCK[3:0]
00006464INVALID
0001964896
001012864128
00111924896
OSCLK1/OLRCK1 Ratio
SOSF1 = 0SOSF1 = 1
Table 9. OSCLK1/OLRCK1 Ratios and SOSF1 Settings
DS692F255
010025664128
01013844896
011051264128
01117684896
1000102464128
Table 9. OSCLK1/OLRCK1 Ratios and SOSF1 Settings
SORES1[1:0] - Resolution of the output data on SDOUT
11 - AES3 Direct. Direct copy of the received NRZ data from the AES3 receiver including C, U, and V bits.
The time slot occupied by the Z bit is used to indicate the location of the block star t. Only valid if serial port
sourced directly by the AES3-compatible receiver.
TDM[1:0] - Enable the time-division mu ltip le xing (T D M) th ro ug h TDM_IN and either SDOUT1 or SDOUT 2.
See “Time Division Multiplexing (TDM) Mode” on page 27 for more details.
00 - TDM Mode not enabled. Serial audio format selected by SOFSEL1[1:0]
01 - TDM Mode enabled through TDM_IN and SDOUT1. SOFSEL1[1:0] has no effect in this mode.
10 - TDM Mode enabled through TDM_IN and SDOUT2. SOFSEL2[1:0] has no effect in this mode.
11 - Reserved
11.13 Serial Audio Output Data Format - SDOUT2 (0Dh)
0 - Serial audio output port is in slave mode. OSCLK and OLRCK are inputs.
1 - Serial audio output port is in master mode. OSCLK and OLRCK are outputs.
SOSF2 - OSCLK2 Frequency. Valid only in master mode (SOMS2 = 1). If the SRC is selected as the source
for SDOUT2 (SDOUT2[1:0] = 00 in register 0Ah), then the master clock (MCLK) is the SAO MCLK (as selected by the SAO_MCLK bit in re gister 08h). If t he AES3 receiver is selected as the source for SDOU T2
(SDOUT2[1:0] = 01 in register 0Ah), then the MCLK is RMCK. Should be changed when PDN = 1. See
Table 10 for details. Note: If serial output 2 is in master mode and sourced directly by the serial input port,
then SAI_CLK[3:0] determine the MCLK/OLRCK1 ratio.
00 - Left-Justified
01 - I²S
10 - Right-Justified (Master mode only)
11 - AES3 Direct. Direct copy of the received NRZ data from the AES3 receiver including C, U, and V bits.
The time slot occupied by the Z bit is used to indicate the location of the blo ck start. Only valid if serial port
source is the AES3-compatible receiver.
11.14 Receiver Error Unmasking (0Eh)
76543210
ReservedQCRCMCCRCMUNLOCKMVMCONFMBIPMPARM
—0000000
RECEIVER ERROR MASK[7:0]
The bits[7:0] in this register serve as masks for the corresponding bits of the Receiver Error Register. If a
mask bit is set to 1, the error is unmasked, meaning that its occurrence will appear in the receiver error register, will affect RERR[6:0], will affect the RERR interrupt, and will affect the current audio sample according
to the status of the HOLD bit. If a mask bit is set to 0, the error is masked, meaning that its occurrence will
not appear in the receiver error register, will not affect the RERR pin, will not affect the RERR interrupt, and
will not affect the current audio sample. The CCRC and QCRC bits behave differently from the other bits:
they do not affect the current audio sample even when unmasked. If QCRC, CCRC, CONF, BIP, or PARM
are unmasked, and RERRM in register 0Fh is unmasked, then RERR[1:0] should be set to “Rising Edge
Active” in the Interrupt Mode register (register 10h). This register defaults to 00h.
DS692F257
CS8422
11.15 Interrupt Unmasking (0Fh)
7654321 0
PCCHMOSLIPMDETCMCCHMRERRMQCHMFCHMSRC_UNLOCKM
0000000 0
The bits of this register serve as a m ask for the Interrupt Status register. If a mask bit is set to 1, the error
is unmasked, meaning that its occurrence will affect the INT pin and the status register. If a mask bit is set
to 0, the error is masked, meaning that its occurrence will not affect the internal INT signal or the status register. The bit positions align with the corresponding bits in Interrupt Status register. This register defaults to
00h.
The INT signal may be selected to output on the GPO pins. See Section 11.5 on page 51 for more details.
The interrupt mode control in the behavior of the INT pin to RERR and SRC_UNLOCK interrupts. There are
three ways to set the INT pin active in accordance with the interrupt condition. In the Rising edge active
mode, the INT pin becomes active on the arrival of the interrupt conditio n. In the Fa lling e dge active mode ,
the INT pin becomes active on the removal of the interrupt co ndition. In Level active mode, the INT i nterrupt
pin becomes active during the interrupt condition. Be aware that the active level (Active High or Low) only
depends on the INT[1:0] bits. These registers default to 00h. The interrupts in the Interrupt Status register
not represented here are all rising edge act i ve .
00 - Rising edge active
01 - Falling edge active
10 - Level active
11 - Reserved
11.17 Receiver Channel Status (11h)
76543210
AUX3AUX2AUX1AUX0PROCOPYORIGEMPH
The bits in this register can be associated with either channel A or B of the received data. The desired channel is selected with the CHS bit of “Receiver Data Control (04h)” on page 49.
AUX3:0 - Incoming auxiliary data field width, as indicated by the incoming channel status bits, decoded according to IEC60958 and AES3.
0000 - Auxiliary data is not present.
0001 - Auxiliary data is 1 bit long.
0010 - Auxiliary data is 2 bits long.
0011 - Auxiliary data is 3 bits long.
0100 - Auxiliary data is 4 bits long.
0101 - Auxiliary data is 5 bits long.
0110 - Auxiliary data is 6 bits long.
0111 - Auxiliary data is 7 bits long.
58DS692F2
CS8422
1000 - Auxiliary data is 8 bits long.
1001 - 1111 Reserved
PRO - Channel status block format indicator
0 - Received channel status block is in the consumer format.
1 - Received channel status block is in the professional format.
COPY - SCMS copyright indicator
0 - Copyright asserted.
1 - Copyright not asserted. If the category code is set to General in the incoming AES3 stream, copyright
will always be indicated by COPY, even when the stream indicates no copyright.
ORIG - SCMS generation indicator, decoded from the category code and the L bit.
0 - Received data is 1st generation or higher.
1 - Received data is original.
Note:COPY and ORIG will both be set to 1 if incoming data is flagged as professional or if the receiver
is not in use.
EMPH
– Indicates if the input channel status data indicates that the incoming aud io data ha s been pr e-em-
Note:PCM, DTS_LD, DTS_CD and IEC61937 are mutually exclusive. A ‘1’ indicated the condition
was detected.
PCM – Un-compressed PCM data was detected.
IEC61937 – IEC61937 data was detected.
DTS_LD – DTS_LD data was detected.
DTS_CD – DTS_CD data was detected.
HD_CD – HD_CD data was detected.
DGTL_SIL – Digital Silence was detected: at least 2047 consecutive constant samples of the same 24-bit
audio data on both channels.
11.19 Receiver Error (13h)
76543210
ReservedQCRCCCRCUNLOCKVCONFBIPPAR
This register contains the AES3 receiver status bits. Unmasked bits will go high on occurrence of the error,
and will stay high until the register is read. Reading the register resets all bits to 0, unless the receiver error
DS692F259
CS8422
interrupt mode is set to level active and the error source is still true. Bits that are masked off in the receiver
error mask register will always be 0 in this register.
QCRC - Q-subcode data CRC error indicator. Updated on Q-subcode block boundaries
0 - No error.
1 - Error.
CCRC - Channel Status Block Cyclic Redundancy Check bit. Updated on CS block boundaries, valid only
in Pro mode.
0 - No error.
1 - Error.
UNLOCK - Receiver lock status when sourced by incoming AES3-compatible data. Updated on CS block
boundaries.
0 - Receiver locked.
1 - Receiver out of lock.
V - Received AES3 Validity bit status. Updated on sub-frame boundaries.
0 - Data is valid and is normally linear coded PCM audio.
1 - Data is invalid, or may be valid compressed audio.
CONF - Confidence bit. Updated on sub-frame boundaries.
0 - No error.
1 - Confidence error. The input data stream may be near error condition due to jitter degradation.
BIP - Bi-phase error bit. Updated on sub-frame boundaries.
0 - No error.
1 - Bi-phase error. This indicates an error in the received bi-phase coding.
PAR - Parity bit. Updated on sub-frame boundaries.
0 - No error.
1 - Parity error.
11.20 Interrupt Status (14h)
76543210
PCCHOSLIPDETCCCHRERRQCHFCHSRC_UNLOCK
For all bits in this register, a “1” means the associated interrupt condition has occurred at least once since
the register was last read. A “0” means the associated interrupt condition has NOT occurred since the last
reading of the register. Reading the register resets all bits to 0, unless the interrupt mode is set to level and
the interrupt source is still true. Status bits that are masked off in the associated mask register will always
be “0” in this register.
PCCH – PC burst preamble change.
60DS692F2
CS8422
Indicates that the PC byte has changed from its previous value. If the IEC61937 bit in the Format Detect
Status register goes high, it will cause a PCCH interrupt even if the PC byte hasn’t changed since the last
time the IEC61937 bit went high.
OSLIP - Serial audio output port data slip interrupt
When the serial audio output port is in slave mode, and OLRCK is asynchro nous to the por t data source,
this bit will go high every time a data sample is dropped or repeated. See “Serial Port Clock Operation”
on page 25 for more information.
DETC - D to E C-buffer transfer interrupt.
Indicates the completion of a D to E C-buffer transfer. See “Channe l Status Buffer Management” on page
53.
CCH - C-Data change.
Indicates that the current 10 bytes of channel status is different from the previous 10 bytes. (5 bytes per
channel)
RERR - A receiver error has occurred.
The Receiver Error register may be read to determine the nature of the error which caused the interrupt.
QCH – A new block of Q-subcode is available for reading.
The data must be read within 588 AES3 frames after the interrupt occurs to avoid corruption of the data
by the next block.
FCH – Format Change
Goes high when the PCM, IEC61937, DTS_LD, DTS_CD, or DGTL_SIL bits in the Format Detect Status
register transition from 0 to 1. When these bits in the Format Detect Status register transition from 1 to 0,
an interrupt will not be generated.
SRC_UNLOCK - SRC Unlock condition.
Indicates that the SRC has lost the ability to output valid data
11.21 PLL Status (15h)
76543210
RX_ACTIVE
RX_ACTIVE - Receiver Active
This bit is a level-signal version of the ACTIVE bit in register 13h.
ISCLK_ACTIVE- ISCLK Active
0 - There is no toggling on the ISCLK pin, or the frequency of toggling is less than 36 kHz on the ISCLK
pin.
ISCLK
ACTIVE
PLL_LOCK96KHZ192KHZReservedReservedReserved
1 - There is toggling at a frequency of at least 1.536 MHz on the ISCLK pin.
PLL_LOCK -
0 - The PLL has not achieved lock.
1 - The PLL, driven by either an AES3 or ISCLK input, has achieved lock.
DS692F261
CS8422
96KHZ – Indicates the frequency range of the sample rate of incoming AES3 data (Fsi). If Fsi 49 kHz or
Fsi 120 kHz, this bit will output a “0”. If 60 kHz Fsi 98 kHz, this bit will output a “1”. Otherwise the output
is indeterminate.
192KHZ – Indicates the frequency range of the sample rate of incoming AES3 data (Fsi). If Fsi 98 kHz,
this bit will output a “0”. If Fsi 120 kHz, this bit will output a “1”. Otherwise the output is indeterminate.
CS_UPDATE - Determines whether channel status registers and RCVR_RATE are updated in the presence
of
a receiver error (register 14h).
0 - The receiver channel status registers and RCVR_RATE are updated on each AES3 block boundary.
1 - The receiver channel status registers and RCVR_RATE are updated on each AES3 block boundary if
no biphase, confidence, parity, or CRCC error has occurred during the reception of the channel status
block.
RCVR_RATE - Input sample rate represented in the channel status data of incoming AES3 data.
0 - The PLL has not achieved lock for more than 2 Z preambles or AES3 input is not driving PLL.
1 - Goes high 2 Z preambles after the PLL has achieved lock when an AES3 input has been selected to
drive the PLL.
BLK_VERR - Block Validity Error. Updated on DETC boundaries
0 - The Validity bit of the incoming AES3 data has remained low during the input of the last AES3 data
block.
1 - The Validity bit of incoming AES3 data has gone high at some point during the input of the last AES3
data block.
BLK_CERR - Block Confidence Error. Updated on DETC boundaries
0 - The Confidence bit associated with incoming AES3 data has remained high during the input of the last
AES3 data block.
1 - The Confidence bit associated with incoming AES3 data has gone low at least once during the input
of the last AES3 data block.
BLK_BERR - Block Biphase Error. Updated on DETC boundaries
0 - There has been no biphase error associated with incoming AES3 data during the input of the last AES3
data block.
62DS692F2
CS8422
1 - There has been at least one biphase error associated with incoming AES3 data during the input of the
last AES3 data block.
BLK_PERR - Block Parity Error. Updated on DETC boundaries
0 - There has been no parity error associated with incoming AES3 data during the input of the last AES3
data block.
1 - There has been at least one parity error associated with incoming AES3 data during the input of the
last AES3 data block.
FS_XTI[15:0] - 256*Fs/XTI, where Fs is the sample rate of incoming AES3-compatible data.
The integer part of FS_XT[15:0] is represented in bits [15:10] in register 17h, and the fractional part is represented in bits [9:0] of registers 17h and 18h; with a precision of 300 Hz in Fs and is updated approximately every 2048/(XTI frequency). Reading register 17h will cause the value of 18h to freeze until
register 18h is read.
Each byte is LSB first with respect to the 80 Q-subcode bits Q[79:0]. Thus bit 7 of address 19h is Q[0] while
bit 0 of address 19h is Q[7]. Similarly bit 0 of address 22h corresponds to Q[79].
23hChannel A Status Byte 0AC0[7]AC0[6]AC0[5]AC0[4]AC0[3]AC0[2]AC0[1]AC0[0]
24hChannel A Status Byte 1AC1[7]AC1[6]AC1[5]AC1[4]AC1[3]AC1[2]AC1[1]AC1[0]
25hChannel A Status Byte 2AC2[7]AC2[6]AC2[5]AC2[4]AC2[3]AC2[2]AC2[1]AC2[0]
26hChannel A Status Byte 3AC3[7]AC3[6]AC3[5]AC3[4]AC3[3]AC3[2]AC3[1]AC3[0]
27hChannel A Status Byte 4AC4[7]AC4[6]AC4[5]AC4[4]AC4[3]AC4[2]AC4[1]AC4[0]
28hChannel B Status Byte 0BC0[7]BC0[6]BC0[5]BC0[4]BC0[3]BC0[2]BC0[1]BC0[0]
29hChannel B Status Byte 1BC1[7]BC1[6]BC1[5]BC1[4]BC1[3]BC1[2]BC1[1]BC1[0]
2AhChannel B Status Byte 2BC2[7]BC2[6]BC2[5]BC2[4]BC2[3]BC2[2]BC2[1]BC2[0]
2BhChannel B Status Byte 3BC3[7]BC3[6]BC3[5]BC3[4]BC3[3]BC3[2]BC3[1]BC3[0]
2ChChannel B Status Byte 4BC4[7]BC4[6]BC4[5]BC4[4]BC4[3]BC4[2]BC4[1]BC4[0]
DS692F263
CS8422
Each byte is MSB first with respect to the 80 Channel Status bits. Thus bit 0 of address 23h, AC0[0], is the
location of the Pro bit. For N = 0-79, Channel Status bit N (per AES specification) is mapped to bit N mod 8
(remainder of N divided by 8) at address 23h+floor(N/8) (23h + integer result of N divided by 8 rounded
down). For example, Channel Status bit 35 is mapped to bit 3 (35/8 = 4 remainder 3) of address 27h (23h
+ 4h).
When RST is low the CS8422 enters a low power mode, all internal states are reset, and the outputs are
disabled. After RST
(MS_SEL and SAOF) and sets the appropriate mode of operation. After the mode has been set (approximately 4 s) the part is set to normal operation and all outputs are functional.
12.2Power Supply, Grounding, and PCB layout
The CS8422 operates from a VA = +3.3 V and VL = +1.8 V to +5.0 V supp ly. These supplies may be set
independently. Follow normal supply decoupling practices, see Figure 7 and 8 for details.
Extensive use of power and ground planes, ground plane fill in unused areas, and surface mount decoupling
capacitors are recommended. Decoupling capacitors should be m oun ted o n the same sid e of the boa rd as
the CS8422 to minimize inductance effects and all decoupling capacitors should be as close to the CS8422
as possible. The pin of the configuration resistors not connected to MS_SEL and SAOF should be connected as close as possible to VL or DGND.
12.3External Receiver Components
The CS8422 AES3 receiver is designed to accept both the professional and consumer interfaces. The digital audio specifications for professional use call for a balanced receiver, using XLR connectors, with
110 ± 20% impedance. The XLR connector on the receiver should have female pins with a male shell.
Since the receiver has a very high input impedance , a 110 resistor should be placed across the receiver
terminals to match the line impedance, as shown in Figure 26 and Figure 27. Although transformers are not
required by the AES specification, they are strongly recommended.
transitions from low to high the part senses the resistor value on the configuration pins
CS8422
If some isolation is desired without the use of transformers, a 0.01 F capacitor should be placed in series
with each input pin (RXP[3:0] an d RXN[ 3: 0]) a s s ho wn in Figure 27. However, if a transformer is not used,
high frequency energy could be coupled into the receiver, causing degradation in analog performance.
Figure 26 and Figure 27 show an optional (recommended) DC blocking capacitor (0.1 F to 0.47 F) in se-
ries with the cable input. This improves the robustness of the receiver, preventing the satura tion of the transformer, or any DC current flow, if a DC voltage is present on the cable.
The circuit in Figure 28 shows the input circuit for switching between up to four single-ended signals in receiver input Mode 1 (analog sensitivity mode). If the app lication requires switching be tween a single-en ded
consumer interface and a differential interface, the CS8422 must be in differential m ode and the input circuit
in Figure 29 should be used for the single ended source. Standards for the consumer interface call for an
unbalanced circuit having a receiver impedance of 75 ±5%. The connector for the consumer interface is
an RCA phono socket.
The circuit in Figure 30 shows the input circuit for switching between up to four single-ended TTL or CMOS
signals, and should be used when th e S/PDIF receiver is in Receiver Input Mode 2. If the application requires switching between a CMOS or TTL source and a differential source, the CS8422 must be in differential mode and the input circuit in Figure 31 should be used for the single-ended digital source. If the
application requires switching between a single ended source in Mode 1, and a TTL or CMOS source, the
circuit in Figure 31 should be used for the CMOS/TTL source (no RXN connection is present in this case).
When designing systems, it is important to avoid ground loops and DC current flowing down the shield of
the cable that could result when boxes with different ground potentials are connected. Generally, it is good
practice to ground the shield to the chassis of the transmitting unit, and connect the shield through a capacitor to chassis ground at the receiver. However, in some cases it is advantageous to have the ground of two
DS692F265
CS8422
1
XLR
110
Twisted
Pair
110
CS8422
RXP
RXN
* See Text
1
XLR
110
CS8422
RXP0
RXN0
0.01 F
0.01 F
*SeeText
110
Twisted
Pair
Figure 26. Professional Input Circuit – Differential
Mode
Figure 27. Transformerless Professional Input Cir-
boxes held to the same potential, and the cable shield might be depended upon to make that electrical connection. Generally, it is a good idea to provide the option of groun ding or ca pacitively coup ling the shield to
the chassis.
12.3.1Attenuating Input signals
The input signals to the RX, RXP, and RXN pins in all modes of operation are limited to amplitudes equal
to, or less than +3.3 V. In some cases it may be necessary to attenuate the input signal so the input to the
device is within the valid operating range. Figures 32 and 33 illustrate how this should be done for both single-ended and differential inputs. In both cases, equations (1) and (2) must be satisfied simultaneously.
Please refer to the application note AN134: AES and SPDIF Recommended Transformers for resources on
transformer selection
12.4Channel Status Buffer Management
12.4.1AES3 Channel Status (C) Bit Management
The CS8422 contains sufficient RAM to store the first 5 bytes o f C data for both A and B channels (5 x 2 x 8
= 80 bits). The user may read from this buffer’s RAM through the control port.
The buffering scheme involves two buffers, named D and E, as shown in Figure 34. The MSB of each byte
represents the first bit in the serial C data stream. For example, the MSB of byte 0 (which is at control port
address 23h) is the consumer/professional bit for channel status block A.
The first buffer (D) accepts incoming C data from the AES receiver. The 2nd buffer (E) accepts entire blocks
of data from the D buffer. The E buffer is also accessible from the control port, allowing reading of the first
five bytes of C data.
The complete C data may be obtained through the C pin in Hardware Mode and through one of the GPO
pins in Software Mode. The C data is serially shifted out of the CS8422 clocked by the rising and falling
edges of OLRCK or VLRCK.
DS692F267
CS8422
From
AES3
Receiver
E
8-bits8-bits
AB
D
Received
Data
Buffer
5 words
C Data Serial Output
Control
Port
Registers
24 words
Figure 34. Channel Status Data Buffer Structure
D to E interrupt occurs
Optionally set D to E inhibit
Read E data
If set, clear D to E inhibit
Return
Figure 35. Flowchart for Reading the E Buffer
There are a number of conditions that will inhibit the buffer update. If the CS_UPDATE bit in “Receiver Sta-
tus (16h)” is set to ‘0’, the only condition that will inhibit the update is PLL phase unlock. If the CS_UPDATE
bit in “Receiver Status (16h)” is set to ‘1’, a biphase, confidence, parity, or CRC error will also inhibit the
update.
12.4.2Accessing the E buffer
The user can monitor the incoming data by read ing the E buffer, wh ich is mapped in to the re gister space o f
the CS8422, through the control port.
The user can configure the interrupt enable register to cause interrupts to occur whenever D to E buffer
transfers occur. This allows determination of the allowable time periods to interact with the E buffer.
Also provided is a D to E inhibit bit in the “Receiver Data Control (04h )” register. This may be used whenever
“long” control port interactions are occurring or for debugging purposes.
A flowchart for reading the E buffer is shown in Figure 35. Since a D to E interrupt occurs just after reading,
there is a substantial time interval until the next D to E transfer (approximately 192 frames worth of time).
This is usually enough time to access the E data without having to inhibit the next transfer.
In Software Mode, the CS8422 allows read access to all the channel status bits. For consumer mode SCMS
compliance, the host microcontroller needs to read and in te rpre t th e Ca tegory Cod e, Co py bit and L bit appropriately.
In Hardware Mode, the SCMS protocol can be followed by using the C bit serial output pin. See “Channel
Status and User Data Handling” on page 34 for more details.
12.5Jitter Attenuation
Figure 36 shows the jitter attenuation characteristics of the CS8422 PLL. The AES3 and IEC60958-4 spec-
ifications state a maximum of 2 dB jitter gain.
CS8422
DS692F269
12.6Jitter Tolerance
Figure 37. Jitter Tolerance Template
TotalGroupDelay
8.7
Fsi
------- -
5
Fso
---------InterfaceDelay++
=
The CS8422 is compliant to the jitter tolerance requirements set forth in the AES-3 and IEC60958-4 specifications. Figure 37 shows the receiver jitter tolerance template as illustrated in the AES3 and IEC60958-4
specifications along with the measured tolerance of the CS8422.
CS8422
12.7Group Delay
The group delay introduced by the CS8422 depends on the type of interfa ce selected, and inp ut and output sample
rates of the sample rate converter. The expression for t he group dela y through the CS8422 with the use of the sa mple rate converter is shown below, where the interface delay is 3 OLRCK periods in all modes except AES3 direct
mode, in which it is 2 OLRCK periods. If the sample rate converter is not being used, then the approximate group
delay will be equal to the interface delay.
70DS692F2
CS8422
-200
+0
-190
-180
-170
-160
-150
-140
-130
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
d
B
F
S
10k90k20k30k40k50k60k70k80k
Hz
-200
+0
-190
-180
-170
-160
-150
-140
-130
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
d
B
F
S
2.5k22.5k5k7.5k10k 12.5k 15k 17.5k 20k
Hz
Figure 38. Wideband FFT –
0 dBFS 1 kHz Tone, 48 kHz:48 kHz
Figure 39. Wideband FFT –
0dBFS 1kHz Tone, 44.1kHz:192kHz
-200
+0
-190
-180
-170
-160
-150
-140
-130
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
d
B
F
S
2.5k22.5k5k7.5k10k 12. 5k 15k 17.5k 20k
Hz
-200
+0
-190
-180
-170
-160
-150
-140
-130
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
d
B
F
S
2k22k4k6k8k 10k 12k 14k 16k 18k 20k
Hz
Figure 40. Wideband FFT –
0 dBFS 1 kHz Tone, 44.1 kHz:48 kHz
Figure 41. Wideband FFT –
0dBFS 1kHz Tone, 48kHz:44.1kHz
-200
+0
-190
-180
-170
-160
-150
-140
-130
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
d
B
F
S
5k45k10k15 k20k25k30k35k40 k
Hz
-200
+0
-190
-180
-170
-160
-150
-140
-130
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
d
B
F
S
2.5k22.5k5k7.5k10k 12. 5k 15k 17.5k 20k
Hz
Figure 42. Wideband FFT –
0 dBFS 1 kHz Tone, 48 kHz:96 kHz
Figure 43. Wideband FFT –
0dBFS 1kHz Tone, 96kHz:48kHz
13.PERFORMANCE PLOTS
Test conditions (unless otherwise specified): Measurement bandwidth is 20 Hz to Fso/2 Hz (unweighted);
VA = VL = V_REG = 3.3 V; XTI - XTO = 24.576 MHz; Input signal is a 0 dBFS 1 kHz sine wave; data resolution is
24 bits; Serial Audio Input and Output ports set to slave; Input and output clocks and data are asynchronous
is specified according to JEDEC specifications for multi-layer PCBs.
JA
ParametersSymbolMinTypMaxUnits
JA
-38-°C/Watt
16.ORDERING INFORMATION
CS8422
Temp
RangeContainer
RailCS8422-CNZ
-40° to
+85°C
Tape and ReelCS8422-CNZR
Order#
ProductDescriptionPackage
24-bit, Asynchronous
CS8422
CDB8422
Sample Rate Converter with
Integrated Digital Interface
Receiver
Evaluation Board for
CS8422
QFNYESCommercial
-YES---CDB8422
Pb-Free
Grade
17.REFERENCES
1. Audio E ngineering Society AES3-2003: “AES standard for digital audio - Digital input-output interfacing Serial transmission format for two-channel linearly represented digital audio data,” September 2003.
2. Audio Engineering Society AES-12id-2006: “AES Information Document for digital audio measurements Jitter performance specifications,” May 2007.
3. Philips Semiconductor, “The I²C-Bus Specification: Version 2,” Dec. 1998.
http://www.semiconductors.philips.com
DS692F281
18.REVISION HISTORY
Contacting Cirrus Logic Support
For all product questions and inquiries, contact a Cirrus Logic Sales Representative.
To find one nearest you, go to www.cirrus.com.
IMPORTANT NOTICE
Cirrus Logic, Inc. and its subsidiaries ("Cirrus") believe t hat the information contained in this document is accurate and reli able. However, the information is subject
to change without not ice and i s provi ded "AS IS " without warrant y of any ki nd (exp ress or i mplied) . Custome rs are ad vised to o btain the latest version of relevant
information to verify, before placing orders, that information being relied on is current and complete. All products are sold subject to the terms and conditions of sale
supplied at the time of order acknowled gment, including tho se pertaining to warra nty, indemnification, an d limitation of liability. No responsibility is assumed by Cirrus
for the use of this information, including use of this information as the basis for manufacture or sale of any items, or for infringement of patents or other rights of third
parties. This document is the property of Cirrus and by furnishing this information, Cirrus grants no lice n s e, e xpr ess or i m p lied under an y patents, mask wor k rights,
copyrights, trademarks, trade secrets or other intellectual property rights. Cirrus owns the copyrights associated with the information contained herein and g ives consent for copies to be made of the information only for use within your organization with respect to Cirrus integrated circuits or other products of Cirrus. This consent
does not extend to other copying such as copying for general distribution, advertising or promotional purposes, or for creating any work for resale.
CERTAIN APPLICATIONS USING SEMICONDUCTOR PRODUCTS MAY INVOLVE POTENTIAL RISKS OF DEATH, PERSONAL INJURY, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE (“CRITICAL APPLICATIONS”). CIRRUS PRODUCTS ARE NOT DESIGNED, AUTHORIZED OR WARRANTED FOR USE
IN PRODUCTS SURGICALLY IMPLANTED INTO THE BODY, AUTOMOTIVE SAFETY OR SECURITY DEVICES, LIFE SUPPORT PRODUCTS OR OTHER CRITICAL APPLICATIONS. INCLUSION OF CIRRUS PRODUCTS IN SUCH APPLICATIONS IS UNDERSTOOD TO BE FULLY AT THE CUSTOMER’S RISK AND CIRRUS DISCLAIMS AND MAKES NO WARRANTY, EXPRESS, STATUTORY OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR PARTICULAR PURPOSE, WITH REGARD TO ANY CIRRUS PRODUCT THAT IS USED IN SUCH A MANNER. IF THE CUSTOMER OR CUSTOMER’S CUSTOMER USES OR PERMITS THE USE OF CIRRUS PRODUCTS IN CRITICAL APPLICATIONS, CUSTOMER AGREES, BY SUCH USE, TO FULLY
INDEMNIFY CIRRUS, ITS OFFICERS, DI RECTORS, EMPL OYEES, DIST RIBUT ORS AND OTHER AGENTS FROM ANY AND ALL LIABILITY, INCLUDING ATTORNEYS’ FEES AND COSTS, THAT MAY RESULT FROM OR ARISE IN CONNECTION WITH THESE US ES .
Cirrus Logic, Cirrus, and the Cirrus Logic logo designs are trade marks of Cirrus Logic, Inc. All other brand and product names in this document may be trademarks
or service marks of their respective owners.
AC-3 is a registered trademark of Dolby Labo ratories, Inc.
DTS is a registered trademark of Digital Theater S ystems, Inc.
I²C is a trademark of Philips Semiconductor.
SPI is a trademark of Motorola, Inc.
ReleaseChanges
F1Final Release.
Changed VA, VREG, and VL = 5.0 V normal operation values in DC Electrical Characteristics table.
Updated Figure 37 with test data from CS8422.
Updated Figure 90.
Updated hardware mode NVERR and RERR descriptions in Section 6.6.2 Hardware Mode Control.
Updated values in Switching Specifications table.
Added TDM_IN pin not supported in master mode in Switching Specificati ons table and Section 5.1.5.1.
Updated Section 11.19 Receiver Error (13h) description.
F2Removed references to Automotive package.
Fixed incorrect register address listed for Receiver Error register in Section 6.6.1 Software Mode.
Changed Bit 7 in register 0Eh and 13h to reserved.
Added information regarding RERR and NVERR to Section 6.6.1.
Fixed incorrect SRC unmute ramp time in Section 7.3 SRC Muting.
Added description of NVERR signal to Section 11.6 GPO Control 2 (06h).
CS8422
82DS692F2
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.