3 General Purpose Outputs (GPO) allow signal
routing
Selectable signal routing to GPO pins
S/PDIF to TX inputs selectable in hardware mode
Flexible 3-wire serial digital output port
32 kHz to 192 kHz sample frequency range
Low jitter clock recovery
Pin and microcontroller read access to Channel
Status and User data
SPI or I2C control port Software Mode and
standalone Hardware Mode
Differential cable receiver
On-chip Channel Status data buffer memories
Auto-detection of compressed audio input
streams
Decodes CD Q sub-code
OMCK System Clock Mode
General Description
The CS8416 is a monolithic CMOS device which receives and decodes one of 8 channels of audio data
according to the IEC60958, S/PDIF, EIAJ CP1201, or
AES3 interface standards. The CS8416 has a serial digital audio output port and comprehensive control ability
through a selectable control port in Software Mode or
through selectable pins in Hardware Mode. Channel status data are assembled in buffers, making read access
easy.
GPO pins may be assigned to route a variety of signals
to output pins
A low jitter clock recovery mechanism yields a very clean
recoveredclockfromtheincomingAES3stream.
Stand-alone operation allows systems with no microcontroller to operate the CS8416 with dedicated output pins
for channel status data.
Target applications include A/V receivers, CD-R, DVD
receivers, multimedia speakers, digital mixing consoles,
effects processors, set-top boxes, and computer and automotive audio systems.
ORDERING INFORMATION
CS8416-CS28-pin SOIC-10 to +70°C
CS8416-CZ28-pin TSSOP-10 to +70°C
CS8416-IS28-pin SOIC-40 to +85°C
CS8416-IZ28-pin TSSOP-40 to +85°C
VA+ AG ND FI LT
RXN
RXP0
RXP1
RXP2
RXP3
RXP4
RXP5
RXP6
RXP7
Receiver
8:2
MUX
Clock &
Data
Recovery
Misc.
Control
RST
Advance Product Information
Cirrus Logic, Inc.
http://www.cirrus.com
RMCK
AES3
S/PDIF
Decod er
This document contains information for a new product.
Cirrus Logic reserves the right to modify this product without notice.
VD+
SDA/
CDOUT
CopyrightCirrus Logic, Inc. 2002
VL+ DGND
De-emphasis
Filter
C&Ubit
Data Buffer
Control
Port &
Registe rs
SCL/
AD1/
CDIN
AD0/
CS
CCLK
(All Rights Reserved)
OMCK
Serial
Audi o
Outpu t
MUX
n:3
OLRCK
OSCLK
SDOUT
GPO0
GPO1
AD2/GPO2
AUG ‘02
DS578PP2
1
TABLE OF CONTENTS
1 CHARACTERISTICS AND SPECIFICATIONS ......................................................................... 5
Power and Thermal Characteristics..........................................................................................5
Absolute Maximum Ratings ...................................................................................................... 5
Digital Characteristics............................................................................................................... 6
Switching Characteristics - Serial Audio Ports.......................................................................... 7
Switching Characteristics - Control Port - SPI Mode ................................................................ 8
C format................................................................. 9
Contacting Cirrus Logic Support
For all product questions and inquiries contact a Cirrus Logic Sales Representative.
To find one nearest you go to <http://www.cirrus.com/corporate/contacts/sales.cfm>
IMPORTANT NOTICE
"Preliminary" product information describes products that are in production, but for which full characterization data is not yet available. "Advance" product inf ormation describes products that are i n development and subject to development changes. Cirrus Logic, I nc. and its subsidiaries ("Cirrus") believe that the information contained in this document is accurate and reliable. However, the informati on is subject to change without notice and is provided "AS IS" without warranty
of any kind (express or implied). Customers are advised to obtain the latest version of relevant i nformation 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 acknowledgment, including those
pertaining to warranty, patent infringement, and limitation of liability. No responsibility i s assumed by Cirrus f or the use of this informati on, i ncludi ng use of this
information as the basis for manufacture or sale of any items, or for i nfringement of patents or other rights of third parties. This document is the property of Cir rus
and by furnishi ng this information, Cirrus grants no license, express or implied under any patents, mask work rights, copyrights, trademarks, trade secrets or
other intellectual property ri ghts. Ci rrus owns the copyrights of the information contained herein and gives consent for copies to be made of the info rmation only
for use within your organization wi th respect to Cirrus integr ated ci rcuits or other parts of Cirrus. This consent does not extend to other copying such as copying
for general distribution, advertising or pr omotional purposes, or for creating any work for resale.
An export permit needs to be obtained from the competent authorities of the Japanese Government if any of the products or technologies described in thismaterial and controlled under the "Foreign Exchange and Foreign Trade Law" is to be exported or taken out of Japan. An export li cense and/or quota needs to be
obtained from the competent authorities of the Chinese Government if any of the products or technologies describ ed in this material is subject to the PRC Foreign
Trade Law and i s to be exported or taken out of the PRC.
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 TO BE SUITABLE FOR USE IN LIFE-SUPPORT DEVICES OR SYSTEMS OR OTHER CRITICAL APPLICATIONS. INCLUSION OF CIRRUS PRODUCTS
IN SUCH APPLICATIONS IS UNDERSTOOD TO BE FULLY AT THE CUSTOMER'S RISK.
Cirrus Logic, Cirrus, and the Cirrus Logi c logo desi gns are trademarks of Cirrus Logic, Inc. All other brand and product names in this d ocument may be trademarks or service marks of their respective owners.
Notes: 1. Assumes that no digital inputs are left floating. It is recommended that all digital inputs be driven high
or low at all times.
2. ‘-CS’ and ‘-CZ’ parts are specified to operate over -10° C to 70° C but are tested at 25° C only.
3. ‘-IS’ and ‘-IZ’ parts are tested over the full -40° C to 85° C temperature range.
ABSOLUTE MAXIMUM RATINGS
(AGND, DGND = 0 V, all voltages with respect to ground)
ParameterSymbolMinMaxUnit
Power Supply VoltageVD+, VA+, VL+-6Volts
Input Current, Any Pin Except Supplies
(Note 4)
Input VoltageV
Ambient Operating Temperature
Notes: 4. Transient currents of up to 100mA will not cause SCR latch-up.
I
in
in
T
A
CS8416-C
CS8416-I
-1010mA
-0.3VL+.03Volts
-10°
-40°
70°
85°
°C
°C
DS578PP25
CS8416
DIGITAL CHARACTERISTICS
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85 °C for ‘IS’ & ‘IZ’ ; VA+ = VD+ = 3.3 V ± 5%, VL+ = 3.135 V to 5.5 V
ParameterSymbolMinTypMaxUnits
High-Level Input Voltage except RX
Low-Level Input Voltage except RX
Low-Level Output Voltage (I
High-Level Output Voltage (I
O
O
Input hysteresisV
Input Leakage CurrentI
Differential Input Sensitivity RXPn to RXN0-150200mV
SWITCHING CHARACTERISTICS
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85°C for ‘IS’ & ‘IZ’ ; VA+ = VD+ = 3.3 V ± 5%, VL+ = 3.135 V to 5.5
V, Inputs: Logic 0 = 0V, Logic 1 = VL+; C
ParameterSymbolMinTypMaxUnits
RST/Pin Low Pulse Width200--uS
PLL Clock Recovery Sample Rate Range30-200kHz
RMCK Output Jitter (Time Deviation)--200ps RMS
RMCK Output Duty-Cycle455055%
:VIH2-(VL+)+0.3Volts
n
:VIL-0.3-0.8Volts
n
=3.2mA)V
=3.2mA)V
=20pF)
L
OL
OH
H
IN
--0.5Volts
(VL+) - 1-VL+Volts
0.25-1.0Volts
-10-10uA
)
6DS578PP2
CS8416
SWITCHING CHARACTERISTICS - SERIAL AUDIO PORTS
(TA= 25 °C for suffixes ‘CS’ & ’CZ’, TA= -40 to 85 °C for ‘IS’ & ‘IZ’ ; VA+ = VD+ = 3.3 V ± 5%, VL+ = 3.135 V to 5.5
V, Inputs: Logic 0 = 0 V, Logic 1 = VL+; C
ParameterSymbolMinTypMaxUnits
OSCLK Active Edge to SDOUT Output Valid(Note 5)t
Master Mode
RMCK to OSCLK active edge delay(Note 5)t
RMCK to OLRCK delay(Note 6)t
OSCLK and OLRCK Duty Cycle-50-%
Slave Mode
OSCLK Periodt
OSCLK Input Low Widtht
OSCLK Input High Widtht
OSCLK Active Edge to OLRCK Edge(Notes 5,6,7)t
OSCLK Edge Setup Before OSCLK Active-Edge(Notes 5,6,8)t
Notes: 5. In Software mode the active edges of OSCLK are programmable.
6. In Software mode the polarity of OLRCK is programmable.
7. This delay is to prevent the previous OSCLK edge from being interpreted as the first one after OLRCK
has changed.
8. This setup time ensures that this OSCLK edge is interpreted as the first one after OLRCK has changed.
=20pF)
L
dpd
smd
lmd
sckw
sckl
sckh
lrckd
lrcks
--15ns
0-10ns
0-10ns
36--ns
14--ns
14--ns
10--ns
10--ns
OSCLK
(output)
OLRCK
(output)
RMCK
(output)
t
smd
t
lmd
OLRCK
(input)
OSCLK
(input)
SDOUT
t
lrckd
t
lrcks
t
sckh
t
sckw
t
sckl
t
dpd
Figure 1. Audio Port Master Mode TimingFigure 2. Audio Port Slave Mode and Data Input Timing
DS578PP27
CS8416
SWITCHING CHARACTERISTICS - CONTROL PORT - SPI MODE
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85°C for ‘IS’ & ‘IZ’ ; VA+ = VD+ = 3.3 V ± 5%, VL+ = 3.135 to 5.5V,
Inputs: Logic 0 = 0 V, Logic 1 = VL+; C
ParameterSymbolMinMaxUnit
CCLK Clock Frequency(Note 9)f
High Time Between Transmissions
CS
CS
Falling to CCLK Edge
CCLK Low Timet
CCLK High Timet
CDIN to CCLK Rising Setup Timet
CCLK Rising to DATA Hold Time(Note 10)t
CCLK Falling to CDOUT Stablet
Rise Time of CDOUTt
Fall Time of CDOUTt
Rise Time of CCLK and CDIN(Note 11)
Fall Time of CCLK and CDIN(Note 11)t
=20pF)
L
t
t
sck
csh
css
scl
sch
dsu
dh
pd
r1
f1
t
r2
r2
06.0MHz
1.0-µs
20-ns
66-ns
66-ns
40-ns
15-ns
-50ns
-25ns
-25ns
-100ns
-100ns
Notes: 9. If Fs is lower than 46.875 kHz, the maximum CCLK frequency should be less than 128 Fs. This is
dictated by the timing requirements necessary to access the Channel Status memory. Access to the
control register file can be carried out at the full 6 MHz rate. The minimum allowable input sample rate
is 32 kHz, so choosing CCLK to be less than or equal to 4.1 MHz should be safe for all possible
conditions.
10. Data must be held for sufficient time to bridge the transition time of CCLK.
11. For f
sck
<1 MHz.
CDOUT
CS
CCLK
CDIN
t
css
t
t
sch
scl
t
r2
t
dsu
t
f2
t
dh
t
pd
t
csh
Figure 3. SPI Mode Timing
8DS578PP2
CS8416
SWITCHING CHARACTERISTICS - CONTROL PORT- I2CFORMAT
(TA= 25° C; VA+ = VD+ = 3.3 V ± 5%, VL = 3.135 V to 5.5 V Inputs: Logic 0 = GND, Logic 1 = VL,CL=20pF)
ParameterSymbolMinMaxUnit
SCL Clock Frequencyf
Bus Free Time Between Transmissionst
Start Condition Hold Time (prior to first clock pulse)t
Clock Low timet
Clock High Timet
Setup Time for Repeated Start Conditiont
SDA Hold Time from SCL Falling(Note 12)t
SDA Setup time to SCL Risingt
Rise Time of SCL and SDAt
Fall Time SCL and SDAt
Setup Time for Stop Conditiont
Notes: 12. Data must be held for sufficient time to bridge the 25 ns transition time of SCL.
scl
buf
hdst
low
high
sust
hdd
sud
r
f
susp
-100kHz
4.7-µs
4.0-µs
4.7-µs
4.0-µs
4.7-µs
10-ns
250-ns
-25ns
-25ns
4.7-µs
SDA
SCL
StopStart
t
buf
t
hdst
t
low
t
high
t
hdd
Figure 4. I2CModeTiming
t
sud
Repeated
Start
t
t
sust
hdst
Stop
t
f
t
r
t
susp
DS578PP29
2TYPICAL CONNECTION DIAGRAMS
+3.3V
*
+3.3V
Analog
Supply
Ferrite
Bead
*
10 Fµ
VL+
VL+
0.1 Fµ
AES3 /
**
S/PDIF
Sources
MicrocontrollerSCL / CCLK
1nF
VA+
RXN
RXP0
RXP1
RXP2
RXP3
RXP4
RXP5
RXP6
RXP7
AD0 / CS
AD1 / CDIN
SDA / CDOUT
RST
10 Fµ0.1 Fµ1nF
VD+
CS8416
VL+
SDOUT
OLRCK
OSCLK
RMCK
OMCK
GPO0
GPO1
AD2/GPO2
0.1 Fµ
47KΩ
Clock Control
Clock Source
CS8416
+3.3V to +5V
1nF
Serial Audio
Input
Device
External
Interface
FILTDGNDAGND
Rflt
CfltCrip
***
A seperate analog supply is only necessary in applications where RMCK is used for a jitter
*
sensitive tast. For applications where RMCK is not used for a jitter sensitive task, connect
VA+ to VD+ via a ferrite bead. Keep decoupling capacitors between VA+ and AGND.
Please see section 5.1 "8:2 S/PDIF Input Multiplexer" and Appendix
**
A for typical input configurations and recommended input circuits.
For best jitter performance connect the filter ground directly to the AGND pin.
These pins must be pulled high to VL+ or low to DGND through a 47KΩ resistor.
*
A seperate analog supply is only necessary in applications where RMCK is used for a jitter
**
sensitive tast. For applications where RMCK is not used for a jitter sensitive task, connect
VA+ to VD+ via a ferrite bead. Keep decoupling capacitors between VA+ and AGND.
Please see section 5.1 "8:2 S/PDIF Input Multiplexer" and Appendix
***
A for typical input configurations and recommended input circuits.
For best jitter performance connect the filter ground directly to the AGND pin.
The CS8416 is a monolithic CMOS device which
receives and decodes audio data according to the
AES3, IEC60958, S/PDIF, and EIAJ CP1201 interface standards.
The CS8416 utilizes an 8:2 multiplexer to select
between eight inputs for decoding and to allow an
input signal to be routed to an output of the
CS8416. Input data is either differential or singleended. A low jitter clock is recovered from the incoming data using a PLL. The decoded audio data
is output through a configurable, 3-wire output
port. The channel status and Q-channel subcode
portion of the user data are assembled in registers
and may be accessed through an SPI or I
Three General Purpose Output (GPO) pins are provided to allow a variety of signals to be accessed
under software control. In hardware mode, dedicated pins are used to select audio stream inputs for
decoding and transmission to a dedicated TX pin.
Hardware mode also allows direct access to channel status and user data output pins.
Figure 5 and Figure 6 show the power supply and
external connections to the CS8416 when configured for software and hardware modes. Please note
2
C port.
that all I/O pins, including RXN and RXP[7:0], operate at the VL+ voltage.
3.1AES3 and S/PDIF Standards
Documents
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,
and IEC61937 specifications on hand for easy reference.
The latest AES3 standard is available from the Audio Engineering Society or ANSI at www.aes.org
or at www.ansi.org. Obtain a copy of the latest
IEC60958/61937 standard from ANSI or from the
InternationalElectrotechnicalCommissionat
www.iec.ch
available from the Japanese Electronics Bureau.
Application Note 22: Overview of Digital Audio In-terface Data Structures contains a useful tutorial
on digital audio specifications, but it should not be
considered a substitute for the standards.
The paper An Understanding and Implementation
of the SCMS Serial Copy Management System for
Digital Audio Transmission, by Clifton Sanchez, is
an excellent tutorial on SCMS. It is available from
the AES as reprint 3518.
. The latest EIAJ CP-1201 standard is
12DS578PP2
CS8416
4SERIAL AUDIO OUTPUT PORT
A 3-wire serial audio output port is provided. The
port can be adjusted to suit the attached device setting the control registers. The following parameters
are adjustable: master or slave, serial clock frequency, audio data resolution, left or right justification of the data relative to left/right clock, optional
one-bit cell delay of the first data bit, the polarity of
the bit clock, and the polarity of the left/right clock.
By setting the appropriate control bits, many formats are possible.
Figure 8 shows a selection of common output for-
mats, along with the control bit settings. A special
AES3 direct output format is included, which allows the serial output port access to the V, U, and
C bits embedded in the serial audio data stream.
The P bit, which would normally be a parity bit, is
replaced by a Z bit, which is used to indicate the
start of each block. The received channel status
block start signal is also available as the RCBL pin
in hardware mode and through a GPO pin in software mode.
In master mode, the left/right clock (OLRCK) and
the serial bit clock (OSCLK) are outputs, derived
from the recovered RMCK clock. In slave mode,
OLRCK and OSCLK are inputs. OLRCK is normally synchronous to the appropriate master clock,
but OSCLK can be asynchronous and discontinuous if required. By appropriate phasing of OLRCK
and control of the serial clocks, multiple CS8416’s
can share one serial port. OLRCK should be continuous, but the duty cycle can be less than the
specified typical value of 50% if enough serial
clocks are present in each phase to clock all the data
bits. When in slave mode, the serial audio output
port cannot be set for right-justified data. The
CS8416 allows immediate mute of the serial audio
output port audio data by the MUTESAO bit of
Control Register 1.
4.1Slip/Repeat Behavior
When using the serial audio output port in slave
mode with an OLRCK input that is asynchronous
to the incoming AES3 data, the interrupt bit OSLIP
(bit 5 in the Interrupt 1 Status register, 0Dh) is provided to indicate when repeated or dropped samples occur. Refer to Figure 7 for a AES3 data
format diagram.
When the serial output port is configured as slave,
depending on the relative frequency of OLRCK to
the input AES3 data (Z/X) preamble frequency, the
data will be slipped or repeated at the output of the
CS8416.
After a fixed delay from the Z/X preamble (a few
periods of the internal clock, which is running at
256Fs), the circuit will look back in time until the
previous Z/X preamble:
1) If during that time, the internal data buffer was
not updated, then a slip has occurred. Data from
the previous frame will be output and OSLIP
will be set to 1. Due to the OSLIP bit being
“sticky,” it will remain 1 until the register is
read. It will then be reset until another slip/repeat condition occurs.
2) If during that time the internal data buffer did
not update between two positive or negative
edges (depending on OLRPOL) of OLRCK,
then a repeat has occurred. In this case the buffer data was updated twice, so the part has lost
one frame of data. This event will also trigger
OSLIP to be set to 1. Due to the OSLIP bit being “sticky,” it will remain 1 until the register is
read. It will then be reset until another slip/repeat condition occurs.
3)If during that time, it did see a positive edge on
OLRCK (or negative edge if the SOLRPOL is
set to 1) then no slip or repeat has happened.
Due to the OSLIP bit being “sticky,” it will remain in its previous state until either the register is read or a slip/repeat condition occurs.
DS578PP213
Frame 191Frame 0Frame 1
CS8416
Channel A
X
Data
Y
Channel B
Data
Channel A
ZYXY
Data
Preambles
OLRCK (in slave mode)
Figure 7. AES3 Data Format
If the user reads OSLIP as soon as the event triggers, over a long period of time the rate of occurring INT will be equal to the difference in
frequency between the input AES data and the
slave serial output LRCK. The CS8416 uses a hysteresis window when a slip/repeat event occurs.
The slip/repeat is triggered when an edge of OLRCK passes a window size from the beginning of
the Z/X preamble. Without the hysteresis window,
jitter on OLRCK with a frequency very close to Fs
could slip back and forth, causing multiple slip/repeat events. The CS8416 uses a hysteresis window
to ensure that only one slip/repeat happens even
with jitter on OLRCK.
4.2AES11 Behavior
When OLRCK is configured as a master, the positive or negative edge of OLRCK (depending on the
setting of SOLRPOL in register 05h) will be within
-1.0%(1/Fs) to 1.1%(1/Fs) from the start of the preamble X/Z. In master mode, the latency through the
part is dependent on the input sample frequency.
The delay through the part from the beginning of
the preamble to the active edge of OLRCK for the
various sample frequencies is given in Table 1.In
Channel B
Data
Channel A
Data
Channel B
Data
master mode without the de-emphasis filter engaged, the latency of the audio data will be 3
frames.
Fs (kHz)Delay (ns)
3296.6
44.178.6
4874.6
6460.6
9650.6
192TBD
Table 1. Delays by Frequency Values
When OLRCK is configured as a slave any synchronized input within +/-28%(1/Fs) from the positive or negative edge of OLRCK (depending on
the setting of SOLRPOL in register 05h) will be
treated as being sampled at the same time. Since the
CS8416 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 delay between OLRCK and the preambles.
Both of these conditions are within the tolerance
range set forth in the AES11 standard.