On-chip Channel Status and User bit buffer
memories allow block sized updates
Flexible 3-wire serial digital audio input port
Up to 192 kHz frame rate
Microcontroller write access to Channel
Status and User bit data
On-chip differential line driver
Generates CRC codes and parity bits
Standalone mode allows use without a
microcontroller
28-pin SOIC/TSSOP package
I
General Description
The CS8406 is a monolithic CMOS device which encodes and transmits audio data according to the AES3,
IEC60958, S/PDIF, or EIAJ CP1201. The CS8406 accepts audio and digital data, which is then multiplexed,
encoded and driven onto a cable.
The audio data is input through a configurable, 3-wire input port. The channel status and user bit data are input
through an SPI or I
assembled in block sized buffers. For systems with no
microcontroller, a stand alone mode allows direct access to channel status and user bit data pins.
Target applications include A/V Receivers, CD-R, DVD
receivers, digital mixing consoles, effects processors,
set-top boxes, and computer and automotive audio
systems.
ORDERING INFORMATION
CS8406-CS28-pin SOIC-10 to +70°C
CS8406-CZ28-pin TSSOP-10 to +70°C
CS8406-IS28-pin SOIC-40 to +85°C
CS8406-IZ28-pin TSSOP-40 to +85°C
2
C microcontroller port, and may be
RXP
ILRCK
ISCLK
SDIN
Serial
Audio
Input
Misc.
Control
RSTOMCKUSDA/
Advance Product Information
http://www.cirrus.com
VD
AD0/
CS
AES3
S/PDIF
Encoder
AD2H/S
C&Ubit
Data
Buffer
Control
Port &
Registers
SCL/
CDOUT
This document contains information for a new product.
Cirrus Logic reserves the right to modify this product without notice.
CCLK
AD1/
CDIN
CopyrightCirrus Logic, Inc. 2002
(All Rights Reserved)
VLDGND
Driver
Output
Clock
Generator
INT
TXP
TXN
TCBL
AUG ‘02
DS580PP1
1
TABLE OF CONTENTS
1. CHARACTERISTICS AND SPECIFICATIONS ........................................................................5
Power And Thermal Characteristics ......................................................................................... 5
Absolute Maximum Ratings ...................................................................................................... 5
Digital Characteristics............................................................................................................... 6
C Mode................................................................. 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.
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85°C for ‘IS’ & ‘IZ’ ; VD+ = 3.3 V ± 5%, VL+ = 3.135 V to 5.25 V,
Inputs: Logic 0 = 0 V, Logic 1 = VL+; C
=20pF)
L
ParameterSymbolMinTypMaxUnits
RST
pin Low Pulse Width200--µs
OMCK Frequency for OMCK = 512*Fs4.1-98.4MHz
OMCK Low and High Width for OMCK = 512*Fs4.1--ns
OMCK Frequency for OMCK = 384*Fs3.1-73.8MHz
OMCK Low and High Width for OMCK = 384*Fs5.4--ns
OMCK Frequency for OMCK = 256*Fs2.0-49.2MHz
OMCK Low and High Width for OMCK = 256*Fs8.1--ns
Frame Rate32-192kHz
AES3 Transmitter Output Jitter-200-ps
SWITCHING CHARACTERISTICS - SERIAL AUDIO PORTS
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85°C for ‘IS’ & ‘IZ’ ; VD+ = 3.3 V ± 5%, VL+ = 3.135 V to 5.25 V,
Inputs: Logic 0 = 0 V, Logic 1 = VL+; C
ParameterSymbolMinTypMaxUnits
SDIN Setup Time Before ISCLK Active Edge(Note 5)t
SDIN Hold Time After ISCLK Active Edge(Note 5)t
Master Mode
OMCK to ISCLK active edge delay(Note 5)t
OMCK to ILRCK delay(Note 6)t
ISCLK and ILRCK Duty Cycle-50-%
=20pF)
L
ds
dh
smd
lmd
5--ns
5--ns
0-10ns
0-10ns
6DS580PP1
ParameterSymbolMinTypMaxUnits
Slave Mode
ISCLK Periodt
ISCLK Input Low Widtht
ISCLK Input High Widtht
ISCLK Active Edge to ILRCK Edge(Note 7)t
ILRCK Edge Setup Before ISCLK Active Edge(Note 8)t
sckw
sckl
sckh
lrckd
lrcks
Notes: 5. The active edge of ISCLK is programmable.
6. The polarity of ILRCK is programmable.
7. This delay is to prevent the previous ISCLK edge from being interpreted as the first one after ILRCK has
changed.
8. This setup time ensures that this ISCLK edge is interpreted as the first one after ILRCK has changed.
CS8406
36--ns
14.4--ns
14.4--ns
10--ns
10--ns
ISCLK
(output)
ILRCK
(output)
OMCK
(input)
t
smd
t
lmd
ILRCK
(input)
ISCLK
(input)
SDIN
t
lrckd
t
lrcks
t
sckh
t
t
dh
ds
t
t
sckw
sckl
Figure 1. Audio Port Master Mode TimingFigure 2. Audio Port Slave Mode and Data Input Timing
DS580PP17
CS8406
SWITCHING CHARACTERISTICS - CONTROL PORT - SPI MODE
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85°C for ‘IS’ & ‘IZ’ ; VD+ = 3.3 V ± 5%, VL+ = 3.135 V to 5.25 V,
Inputs: Logic 0 = 0 V, Logic 1 = VL+; C
ParameterSymbolMinTypMaxUnits
CCLK Clock Frequency(Note 9)f
High Time Between Transmissionst
CS
Falling to CCLK Edget
CS
CCLK Low Timet
CCLK High Time(Note 10)t
CDIN to CCLK Rising Setup Timet
CCLK Rising to DATA Hold Time(Note 11 )t
CCLK Falling to CDOUT Stablet
Rise Time of CDOUTt
Fall Time of CDOUTt
Rise Time of CCLK and CDIN(Note 12)t
Fall Time of CCLK and CDIN(Note 12)t
=20pF)
L
sck
csh
css
scl
sch
dsu
dh
pd
r1
f1
r2
f2
0-6.0MHz
1.0--µs
20--ns
66--ns
MAX (1/256 FS+ 8, 66)ns
40--ns
15--ns
--50ns
--25ns
--25ns
--100ns
--100ns
Notes: 9. If Fs is lower than 51.850 kHz, the maximum CCLK frequency should be less than 115 Fs. This is
dictated by the timing requirements necessary to access the Channel Status and User Bit buffer
memory. Access to the control register file can be carried out at the full 6 MHz rate.
10. T
11. Data must be held for sufficient time to bridge the transition time of CCLK.
12. For f
must be greater than the larger of the two values, either 1/256FS + 8ns, or 66Tns.
sch
<1MHz.
sck
CS
t
t
css
scl
t
sch
t
csh
CCLK
t
r2
t
f2
CDIN
t
dsu
t
dh
t
pd
CDOUT
Figure 3. SPI Mode timing
8DS580PP1
CS8406
SWITCHING CHARACTERISTICS - CONTROL PORT - I2CMODE
(TA= 25 °C for suffixes ‘CS’ &’CZ’, TA= -40 to 85°C for ‘IS’ & ‘IZ’ ; VD+ = 3.3 V ± 5%, VL = 3.135 V to 5.25 V,
Inputs: Logic 0 = 0 V, Logic 1 = VL+; C
ParameterSymbolMinTypMaxUnits
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 Fallingt
SDA Setup Time to SCL Risingt
Rise Time of Both SDA and SCL Linest
Fall Time of Both SDA and SCL Linest
Setup Time for Stop Conditiont
=20pF)
L
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
0--µs
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
sust
t
hdst
Stop
t
f
t
r
t
susp
DS580PP19
2.TYPICAL CONNECTION DIAGRAMS
+3.3V
0.1 Fµ
VDVL
AES3 /
S/PDIF
Source
RXP
CS8406
+3.3V to +5V
0.1 Fµ
Serial
Audio
Source
Clock Source
and Control
Microcontroller
To/from other
CS8406's
ILRCK
ISCLK
SDIN
OMCK
AD0 / CS
AD1 / CDIN
AD2
SCL / CCLK
SDA / CDOUT
RST
INT
TCBL
CS8406
DGND
TXP
TXN
H/S
Transmission
Interface
U
47KΩ
User Data
Source
Figure 5. Recommended Connection Diagram for Software Mode
10DS580PP1
+3.3V
CS8406
+3.3V to +5V
Serial
Audio
Source
Clock Source
and Control
CData
Source
Hardware
Control
0.1 Fµ
ILRCK
ISCLK
SDIN
OMCK
COPY/C
SFMT0
SFMT1
APMS
TCBLD
RST
CEN
EMPH
AUDIO
ORIG
TCBL
VDVL
CS8406
DGND
H/S
TXP
TXN
0.1 Fµ
Transmission
Interface
U
47KΩ
V
47KΩ
User Data
Source
Validity
Source
To/from other
CS8406's
Figure 6. Recommended Connection Diagram for Hardware Mode
DS580PP111
CS8406
3. GENERAL DESCRIPTION
The CS8406 is a monolithic CMOS device which
encodes and transmits audio data according to the
AES3, IEC60958, S/PDIF, and EIAJ CP1201 interface standards. The CS8406 accepts audio, channel
status and user data, which is then multiplexed, encoded, and driven onto a cable.
The audio data is input through a configurable, 3wire input port. The channel status bits and user bit
data are input through an SPI or I2C Mode microcontroller port and may be assembled in separate
block sized buffers.
For systems with no microcontroller, a stand alone
mode allows direct access to channel status and
user data input pins.
Target applications include CD-R, DAT, DVD,
MD and VTR equipment, mixing consoles, digital
audio transmission equipment, high quality A/D
converters, effects processors, set-top TV boxes,
and computer audio systems.
Figure 5 shows the supply and external connec-
tions to the CS8406 when configured for operation
with a microcontroller.
3.1AES3 and S/PDIF Standards
Documents
This data sheet assumes that the user is familiar
with the AES3 and S/PDIF data formats. It is advisable to have current copies of the AES3 and
IEC60958 specifications on hand for easy reference.
The latest AES3 standard is available from the Audio Engineering Society or ANSI at www.aes.org
or www.ansi.org. Obtain the latest IEC60958 standard from ANSI or from the International Electrotechnical Commission at www.iec.ch. The latest
EIAJ CP-1201 standard is available from the Japanese Electronics Bureau.
Crystal Application Note 22: Overview of DigitalAudio Interface 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 preprint 3518.
4. THREE-WIRE SERIAL INPUT AUDIO
PORT
A 3-wire serial audio input port is provided. The interface format can be adjusted to suit the attached
device through the control registers. The following
parameters are adjustable:
•Masterorslave
•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
•Polarity of the bit clock
•Polarity of the left/right clock. (By setting the
appropriate control bits, many formats are possible).
Figure 7 shows a selection of common input for-
mats with the corresponding control bit settings.
In master mode, the left/right clock and the serial
bit clock are outputs, derived from the OMCK input pin master clock.
In slave mode, the left/right clock and the serial bit
clock are inputs. The left/right clock must be synchronous to the OMCK master clock, but the serial
bit clock can be asynchronous and discontinuous if
required. The left/right clock 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.
12DS580PP1
CS8406
Left
Justified
(In)
2
IS
(In)
Right
Justified
(In)
ILRCK
ISCLK
SDIN
ILRCK
ISCLK
SDIN
ILRCK
ISCLK
SDIN
Left
Right
MSBLSBMSBLSBMSB
LeftRight
MSB
Left
LSBMSBLSB
MSBLSB
LSB
MSB
Right
LSB
MSB
SIMS*SISF*SIRES[1:0]*SIJUST*SIDEL*SISPOL*SILRPOL*
Left JustifiedXX00+0000
2
S
I
XX00+0 1 0 1
Right JustifiedXXXX1000
X = don’t care to match format, but does need to be set to the desired setting
2
S can accept an arbitrary number of bits, determined by the number of ISCLK cycles
+I
* See Serial Input Port Data Format Register Bit Descriptions for an explanation of the meaning of each bit
Figure 7. Serial Audio Input Example Formats
DS580PP113
CS8406
5. AES3 TRANSMITTER
The CS8406 includes an AES3 digital audio transmitter. A comprehensive buffering scheme provides write access to the channel status and user
data. This buffering scheme is described in Appen-
dix B: Channel Status and User Data Buffer Management.
The AES3 transmitter encodes and transmits audio
and digital data according to the AES3, IEC60958
(S/PDIF), and EIAJ CP-1201 interface standards.
Audio and control data are multiplexed together
and bi-phase mark encoded. The resulting bit
stream is driven to an output connector either directly or through a transformer. The transmitter is
clocked from the clock input pin, OMCK. If
OMCK is asynchronous to the data source, an interrupt bit (TSLIP) is provided that will go high every time a data sample is dropped or repeated.
The channel status (C) and user (U) bits in the
transmitted data stream are taken from storage areas within the CS8406. The user can manually access the internal storage or configure the CS8406 to
run in one of several automatic modes. Appendix
B: Channel Status and User Data Buffer Management provides detailed descriptions of each auto-
matic mode and describes methods of manually
accessing the storage areas. The transmitted user
bit data can optionally be input through the U pin,
under the control of a control port register bit.
Figure 4 shows the timing requirements for input-
ting U data through the U pin.
5.1Transmitted Frame and Channel
Status Boundary Timing
The TCBL pin is used to control or indicate the
start of transmitted channel status block boundaries
and may be an input or an output.
In some applications, it may be necessary to control
the precise timing of the transmitted AES3 frame
boundaries. This may be achieved in two ways:
a) With TCBL set to input, driving TCBL high for
>3 OMCK clocks will cause a frame start, as
well as a new channel status block start.
b) If the serial audio input port is in slave mode and
TCBL is set to output, the start of the A channel
sub-frame will be aligned with the leading edge
of ILRCK.
5.2TXN and TXP Drivers
The line drivers are low skew, low impedance, differential outputs capable of driving cables directly.
Both drivers are set to ground during reset (RST
low), when no AES3 transmit clock is provided,
and optionally under the control of a register bit.
The CS8406 also allows immediate muting of the
AES3 transmitter audio data through a control register bit.
External components are used to terminate and isolate the external cable from the CS8406. These
components are detailed in “Appendix A: External
AES3/SPDIF/IEC60958TransmitterComponents” on page 36.
5.3Mono Mode Operation
An AES3 stream may be used in more than one
way to transmit 192 kHz sample rate data. One
method is to double the frame rate of the current
format. This results in a stereo signal with a sample
rate of 192 kHz, carried over a single twisted pair
cable. An alternate method is implemented using
the two sub-frames in a 96 kHz frame rate AES3
signal to carry consecutive samples of a mono signal, resulting in a 192 kHz sample rate stream. This
allows older equipment, whose AES3 transmitters
and receivers are not rated for 96 kHz frame rate
operation, to handle 192 kHz sample rate information. In this “mono mode”, two AES3 cables are
needed for stereo data transfer. The CS8406 offers
mono mode operation. The CS8406 is set to mono
mode by the MMT control bit.
In mono mode, the input port will run at the audio
sample rate (Fs), while the AES3 transmitter frame
=
14DS580PP1
CS8406
rate will be at Fs/2. Consecutive left or right channel serial audio data samples may be selected for
transmission on the A and B sub-frames, and the
channel status block transmitted is also selectable.
Using mono mode is only necessary if the incoming audio sample rate is already at 192 kHz and
contains both left and right audio data words. The
“mono mode” AES3 output stream may also be
achieved by keeping the CS8406 in normal stereo
mode, and placing consecutive audio samples in
the left and right positions in an incoming 96 kHz
word rate data stream.
DS580PP115
CS8406
6. CONTROL PORT DESCRIPTION
AND TIMING
The control port is used to access the registers, allowing the CS8406 to be configured for the desired
operational modes and formats. In addition, Channel Status and User data may be read and written
through the control port. The operation of the control port may be completely asynchronous with respect to the audio sample rate.
2
The control port has two modes: SPI and I
C, with
the CS8406 acting as a slave to control messages in
both modes. SPI mode is selected if there is a high
to low transition on the AD0/CS
pin after the RST
pin has been brought high. I2C mode is selected by
connecting the AD0/CS
pin to VL+ or DGND,
thereby permanently selecting the desired AD0 bit
address state.
6.1SPI Mode
In SPI mode, CS is the CS8406 chip select signal,
CCLK is the control port bit clock (input into the
CS8406 from the microcontroller); CDIN is the input data line from the microcontroller; and CDOUT is the output data line to the microcontroller.
Data is clocked in on the rising edge of CCLK and
out on the falling edge.
Figure 8 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 form the 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 47 kΩ resistor, if desired.
There is a MAP auto increment capability, enabled
by the INCR bit in the MAP. See “Memory Ad-
dress Pointer (MAP)” on page 18. If INCR is a ze-
ro, the MAP will stay constant for successive read
or writes. If INCR is set to a 1, then the MAP will
auto increment after each byte is read or written, allowing block reads or writes of successive registers.
To read a register, the MAP has to be set to the correct address by executing a partial write cycle
CS
CCLK
CHIP
ADDRESS
CDIN
CDOUT
16DS580PP1
0010000
MAP = Memory Address Pointer, 8 bits, MSB first
R/W
High Impedance
MAP
Figure 8. Control Port Timing in SPI Mode
MSB
byte 1
DATA
LSB
byte n
CHIP
ADDRESS
0010000
R/W
MSB
LSB
MSB
LSB
CS8406
which finishes (CS high) immediately after the
MAP byte. The MAP auto increment bit (INCR)
may be set or not, as desired. To begin a read, bring
low, send out the chip address and set the
CS
read/write bit (R/W
) high. The next falling edge of
CCLK will clock out the MSB of the addressed
register (CDOUT will leave the high impedance
state). If the MAP auto increment bit is set to 1, the
data for successive registers will appear consecutively.
6.2I
2
C Mode
In I2C Mode, SDA is a bidirectional data line. Data
is clocked into and out of the part by the clock,
SCL, with the clock to data relationship as shown
in Figure 9. There is no CS
pin. Each individual
CS8406 is given a unique address. Pins AD0, AD1,
and AD2 form the three least significant bits of the
chip address, and should be connected to VL+ or
DGND as desired. The upper four bits of the sevenbit address field are fixed at 0010. To communicate
with a CS8406, the chip address field, which is the
first byte sent to the CS8406, should match 0010
followed by the settings of AD2, AD1, and AD0.
The eighth bit of the address is the R/W
bit. If the
operation is a write, the next byte is the Memory
Address Pointer (MAP) which selects 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. Setting the auto increment bit in the
MAP allows successive reads or writes of consecutive registers. Each byte is separated by an acknowledge bit, ACK, which is output from the
CS8406 after each input byte is read. The ACK bit
is input to the CS8406 from the microcontroller after each transmitted byte.
6.3Interrupts
The CS8406 has a comprehensive interrupt capability. The INT output pin is intended to drive the
interrupt input pin on the host microcontroller. The
INT pin may be set to be active low, active high or
active low with no active pull-up transistor. This
last mode is used for active low, wired-OR hookups, 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 by a bit in the mask registers. In addition, each source 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
set-ups are possible, depending on the needs of the
equipment designer.
Note 1
SDA
SCL
Sta rt
Note 1: AD2,
Note 2: If operation is a write, this byte contains the Memory Address Pointer, MAP
Note 3: If operation is a read, the last bit of the read should be a NACK(high)
DS580PP117
0010AD2-0
AD1 and AD0 are determined by the state of the corresponding pins
Notes:Reserved registers must not be written to during normal operation. Some reserved registers are used
for test modes, which can completely alter the normal operation of the CS8406.
DS580PP119
CS8406
8.CONTROL PORT REGISTER BIT DEFINITIONS
8.1Control 1 (01h)
7 6 543210
0VSET0MUTEAES0INT1INT0TCBLD
VSET - Transmitted Validity bit level
Default = ‘0’
0 - Indicates data is valid, linear PCM audio data
1 - Indicates data is invalid or not linear PCM audio data
MUTEAES - Mute control for the AES transmitter output
Default = ‘0’
0 - Not Muted
1-Muted
INT1:INT0 - Interrupt output pin (INT) control
Default = ‘00’
00 - Active high; high output indicates interrupt condition has occurred
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
TCBLD - Transmit Channel Status Block pin (TCBL) direction specifier
Default = ‘0’
0-TCBLisaninput
1 - TCBL is an output
20DS580PP1
CS8406
8.2Control 2 (02h)
7 6 543210
00000MMTMMTCSMMTLR
MMT - Select AES3 transmitter mono or stereo operation
Default = ‘0’
0 - Normal stereo operation
1 - Output either left or right channel inputs into consecutive subframe outputs (mono
mode, left or right is determined by MMTLR bit)
MMTCS - Select A or B channel status data to transmit in mono mode
Default = ‘0’
0 - Use channel A CS data for the A subframe and use channel B CS data for the B subframe
1 - Use the same CS data for both the A and B subframe outputs. If MMTLR = 0, use the
left channel CS data. If MMTLR = 1, use the right channel CS data.
MMTLR - Channel Selection for AES Transmitter mono mode
Default = ‘0’
0 - Use left channel input data for consecutive subframe outputs
1- Use right channel input data for consecutive subframe outputs
8.3Data Flow Control (03h)
7 6 543210
0TXOFFAESBP00000
The Data Flow Control register configures the flow of audio data. The output data should be muted prior to changing
bits in this register to avoid transients.
TXOFF - AES3 Transmitter Output Driver Control
Default = ‘0
0 - AES3 transmitter output pin drivers normal operation
1 - AES3 transmitter output pin drivers drive to 0 V.
AESBP - AES3 bypass mode selection
Default = ‘0’
0 - Normal operation
1 - Connect the AES3 transmitter driver input directly to the RXP pin, which becomes a normal TTL
threshold digital input.
DS580PP121
CS8406
8.4Clock Source Control (04h)
7 6 543210
0RUNCLK1CLK00000
This register configures the clock sources of various blocks. In conjunction with the Data Flow Control register, various Receiver/Transmitter/Transceiver modes may be selected.
RUN - Controls the internal clocks, allowing the CS8406 to be placed in a “powered down” low
current consumption, state.
Default = ‘0’
0 - Internal clocks are stopped. Internal state machines are reset. The fully static
control port registers are operational, allowing registers to be read or changed. Reading and
writing the U and C data buffers is not possible. Power consumption is low.
1 - Normal part operation. This bit must be set to 1 to allow the CS8406 to begin operation.
All input clocks should be stable in frequency and phase when RUN is set to 1.
CLK1:0 - Output master clock (OMCK) input frequency to output sample rate (Fs) ratio selector.
If these bits are changed during normal operation, then always stop the CS8406 first (RUN = 0),
write the new value, then start the CS8406 (RUN = 1).
Default = ‘00’
00 - OMCK frequency is 256*Fs
01 - OMCK frequency is 384*Fs
10 - OMCK frequency is 512*Fs
11 - Reserved
8.5Serial Audio Input Port Data Format (05h)
7 6 543210
SIMSSISFSIRES1SIRES0SIJUSTSIDELSISPOLSILRPOL
SIMS - Master/Slave Mode Selector
Default = ‘0’
0 - Serial audio input port is in slave mode
1 - Serial audio input port is in master mode
SISF - ISCLK frequency (for master mode)
Default = ‘0’
0-64*Fs
1 - 128*Fs
SIRES1:0 - Resolution of the input data, for right-justified formats
SIJUST - Justification of SDIN data relative to ILRCK
Default = ‘0’
0 - Left-justified
1 - Right-justified
SIDEL - Delay of SDIN data relative to ILRCK, for left-justified data formats
Default = ‘0’
CS8406
0 - MSB of SDIN data occurs in the first ISCLK period after the ILRCK edge (left justified mode)
1 - MSB of SDIN data occurs in the second ISCLK period after the ILRCK edge (I
2
S mode)
SISPOL - ISCLK clock polarity
Default = ‘0’
0 - SDIN sampled on rising edges of ISCLK
1 - SDIN sampled on falling edges of ISCLK
SILRPOL - ILRCK clock polarity
Default = ‘0’
0 - SDIN data is for the left channel when ILRCK is high
1 - SDIN data is for the right channel when ILRCK is high
8.6Interrupt 1 Status (07h) (Read Only)
7 6 543210
TSLIP0 0000EFTC0
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. This register defaults
to 00h.
TSLIP - AES3 transmitter source data slip interrupt
In data flows where OMCK, which clocks the AES3 transmitter, is asynchronous to the data source,
this bit will go high every time a data sample is dropped or repeated. When TCBL is an input, this bit
will
go high on receipt of a new TCBL signal.
EFTC - E to F C-buffer transfer interrupt.
The source for this bit is true during the E to F buffer transfer in the C bit buffer management process.
DS580PP123
CS8406
8.7Interrupt 2 Status (08h) (Read Only)
7 6 543210
00000EFTU00
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. This register defaults
to 00h.
EFTU - E to F U-buffer transfer interrupt. (Block Mode only)
The source of this bit is true during the E to F buffer transfer in the U bit buffer management process.
8.8Interrupt 1 Mask (09h)
7 6 543210
TSLIPM0 0000EFTCM0
The bits of this register serve as a mask for the Interrupt 1 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 INT pin or the status register. The bit positions align with the corresponding bits in Interrupt 1 register. This register defaults to 00h.
The two Interrupt Mode registers form a 2-bit code for each Interrupt Register 1 function. 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 condition. In the Falling edge active mode, the INT pin becomes active
on the removal of the interrupt condition. In Level active mode, the INT interrupt 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 00.
00 - Rising edge active
01 - Falling edge active
10 - Level active
11 - Reserved
8.10Interrupt 2 Mask (0Ch)
7 6 543210
00000EFTUM00
The bits of this register serve as a mask for the Interrupt 2 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 INT pin or the status register. The bit positions align with the corresponding bits in Interrupt 2 register. This register defaults to 00h.
The two Interrupt Mode registers form a 2-bit code for each Interrupt Register 1 function. 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 condition. In the Falling edge active mode, the INT pin becomes active
on the removal of the interrupt condition. In Level active mode, the INT interrupt 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 00.
00 - Rising edge active
01 - Falling edge active
10 - Level active
11 - Reserved
8.12Channel Status Data Buffer Control (12h)
7 6 543210
00BSEL00EFTCICAM0
BSEL - Selects the data buffer register addresses to contain User data or Channel Status data
Default = ‘0’
0 - Data buffer address space contains Channel Status data
1 - Data buffer address space contains User data
Note:There are separate complete buffers for the Channel Status and User bits. This control bit determines which
buffer appears in the address space.
EFTCI - E to F C-data buffer transfer inhibit bit.
Default = ‘0’
0 - Allow C-data E to F buffer transfers
1 - Inhibit C-data E to F buffer transfers
CAM - C-data buffer control port access mode bit
Default = ‘0’
0-Onebytemode
1-Twobytemode
DS580PP125
CS8406
8.13User Data Buffer Control (13h)
7 6 543210
000UDUBM1UBM00EFTUI
UD - User bit data source specifier
Default = ‘0’
0 - U Pin is the source of transmitted U data
1 - U data buffer is the source of transmitted U data
UBM1:0 - Sets the operating mode of the AES3 User bit manager
EFTUI - E to F U-data buffer transfer inhibit bit (valid in block mode only).
Default = ‘0’
0 - Allow U-data E to F buffer transfers
1 - Inhibit U-data E to F buffer transfers
8.14Channel Status bit or User bit Data Buffer (20h - 37h)
Either the channel status data buffer E or the separate user bit data buffer E (provided UBM bits are set to block
mode) is accessible through these register addresses.
8.15CS8406 I.D. and Version Register (7Fh) (Read Only)
7 6 543210
ID3ID2ID1ID0VER3VER2VER1VER0
ID3:0 - ID code for the CS8406. Permanently set to 1110
VER3:0 - CS8406 revision level. Revision A is coded as 0001
26DS580PP1
9. PIN DESCRIPTION - SOFTWARE MODE
D
TEST
TEST
TEST
TEST
CS8406
TEST
TEST
TEST
SDA/CDOUT
AD0/CS
AD23
RXP4
DGND5
VD+
VL+
RST
TEST7
ILRCK12Serial Audio Input Left/Right Clock (Input/Output) - Word rate clock for the audio data on the SDIN
ISCLK13Serial Audio Bit Clock (Input/Output) - Serial bit clock for audio data on the SDIN pin.
SDIN14Serial Audio Data Port (Input) - Audio data serial input pin.
1
Serial Control Data I/O (I2C Mode) / Data Out (SPI) (Input/Output)-InI
I/O data line. SDA is open drain and requires an external pull-up resistor to VL+. In SPI mode, CDOUT
is the output data from the control port interface on the CS8406
2
Address Bit 0 (I2C Mode) / Control Port Chip Select (SPI) (Input) - A falling edge on this pin puts the
CS8406 into SPI control port mode. With no falling edge, the CS8406 defaults to I
mode, AD0 is a chip address pin. In SPI mode, CS
CS8406
Address Bit 2 (I2CMode)(Input) - Determines the AD2 address bit for the control port in I
and should be connected to DGND or VL+. If SPI mode is used, the AD2 pin should be connected to
either DGND or VL+.
Auxiliary AES3 Receiver Port (Input) - Input for an alternate, already AES3 coded, audio data source.
Digital Ground (Input) - Ground for the digital section.
7
8
22
6
Positive Digital Power (Input) - VD+ should operate at 3.3 V, VL+ may be operated at 3.3 V to 5 V
23
9Reset (Input)-WhenRSTis low, the CS8406 enters a low power mode and all internal states are reset.
On initial power up, RST
in frequency and phase. This is particularly true in hardware mode with multiple CS8406 devices, where
synchronization between devices is important.
Test Pins - These pins are used for test modes and should be tied to DGND.
8
10
11
16
17
18
pin.
must be held low until the power supply is stable, and all input clocks are stable
is used to enable the control port interface on the
2
C Mode, SDA is the control
2
C mode. In I2C
2
C mode,
DS580PP127
CS8406
TCBL15Transmit Channel Status Block Start (Input/Output) - When operated as output, TCBL is high during
the first sub-frame of a transmitted channel status block, and low at all other times. When operated as
input, driving TCBL high for at least three OMCK clocks will cause the next transmitted sub-frame to be
the start of a channel status block.
INT19Interrupt (Output) - Indicates key events during the operation of the CS8406. All bits affecting INT may
be unmasked through bits in the control registers. Indication of the condition(s) that initiated an interrupt
are readable in the control registers. The polarity of the INT output, as well as selection of a standard or
open drain output, is set through a control register. Once set true, the INT pin goes false only after the
interrupt status registers have been read and the interrupt status bits have returned to zero.
U20User Data (Input) - May optionally be used to input User data for transmission by the AES3 transmitter,
see Figure 4 for timing information. If not driven, a 47 kΩ pull-down resistor is recommended for the U
pin. If the U pin is driven by a logic level output, then a 100 Ω series resistor is recommended.
OMCK21Master Clock (Input) - The frequency must be 256x, 384x, or 512x the sample rate.
H/S
TXN
TXP
AD1/CDIN27
SCL/CCLK28Control Port Clock (Input) - Serial control interface clock and is used to clock control data bits into and
24Hardware/Software Control Mode Select (Input) -Determines the method of controlling the operation
of the CS8406, and the method of accessing Channel Status and User bit data. In software mode,
device control and CS and U data access is primarily through the control port, using a microcontroller.
Hardware mode provides an alternate mode of operation, and access to CS and U data is provided by
dedicated pins. This pin should be permanently tied to VL+ or DGND.
25
Differential Line Drivers (Output) - Transmitting AES3 data. Drivers are pulled low while the CS8406 is
26
in the reset state.
Address Bit 1 (I2CMode)/SerialControlDatain(SPI)(Input)-InI
pin. In SPI mode, CDIN is the input data line for the control port interface.
out of the CS8406. In I
2
C mode, SCL requires an external pull-up resistor to VL+.
2
C mode, AD1 is a chip address
28DS580PP1
CS8406
10. HARDWARE MODE
The CS8406 has a hardware mode that allows the
use of the device without a microcontroller. Hardware mode is selected by connecting the H/S
pin to
VL+. The flexibility of the CS8406 is necessarily
limited in hardware mode. Various pins change
function as described in the hardware mode pin description section.
The hardware mode data flow is shown in
Figure 10. Audio data is input through the serial au-
dio input port and routed to the AES3 transmitter.
10.1Channel Status, User and Validity
Data
The transmitted channel status, user and validity
data can be input in two methods, determined by
the state of the CEN pin. Mode A is selected when
the CEN pin is low. In mode A, the user bit data and
the validity bit are input through the U and V pins,
clocked by both edges of ILRCK. The channel status data is derived from the state of the COPY/C,
ORIG, EMPH
how the COPY/C and ORIG pins map to channel
status bits. In consumer mode, the transmitted category code is set to General (00h).
, and AUDIO pins. Table 2 shows
Mode B is selected when the CEN pin is high. In
mode B, the channel status, user data bits and the
validity bit are input serially through the COPY/C,
U and V pins. Data is clocked into these pins at
both edges of ILRCK. Figure 4 shows the timing
requirements.
The channel status block pin (TCBL) may be an input or an output, determined by the state of the
TCBLD pin.
10.2Serial Audio Port Formats
The serial audio input port data format is selected
as shown in Table 3, and may be set to master or
slave by the state of the APMS input pin. Table 4
describes the equivalent software mode, bit settings
for each of the available formats. Timing diagrams
are shown in Figure 7.
Power su pply pins a re omitted from this dia gram.
Please r efer to the Typica l Connection Dia gram for h ook-up d etails.
DS580PP129
APMS
Serial
Audio
Input
C, U, V Data Buffer
SFMT1 SFMT0
Figure 10. Hardware Mode Data Flow
COPY/C
ORIG EMPH AUDIO
Output
Clock
Source
AES3
Encoder
&Tx
OMCK
TCBLD
TXP
TXN
TCBL
CEN
U
V
CS8406
SFMT1 SFMT0Function
00
01
10
11
Table 3. Hardware Mode Serial Audio Port Format Selection
IF1 - Left Justified0000000
2
IF2 - I
S
IF3 - Right Justified, 24-bit data0001000
IF4 - Right Justified, 16-bit data0101000
Table 4. Equivalent Register Settings of Serial Audio Input Formats Available in Hardware Mode
Serial Input Format IF1 - Left Justified
Serial Input Format IF2 - I2S
Serial Input Format IF3 - Right Justified, 24bit data
Serial Input Format IF4 - Right Justified, 16bit data
SISF SIRES1/0 SIJUST SIDEL SISPOL SILRPOL
000 0 1 0 1
30DS580PP1
11. PIN DESCRIPTION - HARDWARE MODE
CS8406
TEST
TEST
TEST
TEST
TEST
COPY/C1COPY Channel Status Bit/C Bit (Input) - In hardware mode A (CEN = 0), the COPY/C and ORIG pins
determine the state of the Copyright, Pro, and L Channel Status bits in the outgoing AES3 data stream,
see Table 2. In hardware mode B, the COPY/C pin becomes the direct C bit input data pin, which is
sampled on both edges of LRCK.
VL+
VD+
EMPH
SFMT0
SFMT1
DGND22
RST
APMS10Serial Audio Data Port Master/Slave Select (Input) - APMS should be connected to VL+ to set serial
TCBLD11Transmit Channel Status Block Direction (Input) - Connect TCBLD to VL+ to set TCBL as an output.
ILRCK12Serial Audio Input Left/Right Clock (Input/Output) - Word rate clock for the audio data on the SDIN
ISCLK13Serial Audio Bit Clock (Input/Output) - Serial bit clock for audio data on the SDIN pin.
SDIN14Serial Audio Data Port (Input) - Audio data serial input pin.
TCBL15Transmit Channel Status Block Start (Input/Output) - When operated as output, TCBL is high during
CEN16CBitEnable(Input) - Determines how the channel status data bits are input. When CEN is low, hard-
V17Val idity Bit (Input) - In hardware modes A and B, the V pin input determines the state of the validity bit
23
Positive Digital Power (Input) - Typically +3.3 V. VD+ must be +3.3 V, the other VL+ pins may be oper-
6
ated at +3.3 V to +5 V
3Pre-Emphasis Indicator (Input) - In hardware mode A (CEN = 0), the EMPH pin low sets the 3 empha-
sis channel status bits to indicate 50/15 µs pre-emphasis of the transmitted audio data. If EMPH
then the three EMPH
4
Serial Audio Data Format Select (Input) - select the serial audio input port format. See Table 3.
5
Digital Ground (Input) - Ground for the digital section.
9Reset (Input)-WhenRSTis low, the CS8406 enters a low power mode and all internal states are reset.
On initial power up, RST
in frequency and phase. This is particularly true in hardware mode with multiple CS8406 devices, where
synchronization between devices is important.
audio input port as a master or connected to DGND to set the port as a slave.
Connect TCBLD to DGND to set TCBL as an input.
pin.
the first sub-frame of a transmitted channel status block, and low at all other times. When operated as
input, driving TCBL high for at least three OMCK clocks will cause the next transmitted sub-frame to be
the start of a channel status block.
ware mode A is selected, where the COPY/C, ORIG, EMPH
channel status data. When CEN is high, hardware mode B is selected, where the COPY/C pin is used to
enter serial channel status data.
in the outgoing AES3 transmitted data. This pin is sampled on both edges of the ILRCK.
channel status bits are set to 000, indicating no pre-emphasis.
must be held low until the power supply is stable, and all input clocks are stable
and AUDIO pins are used to enter selected
is high,
DS580PP131
CS8406
U18User Data Bit (Input) - In hardware modes A and B, the U pin input determines the state of the user
data bit in the outgoing AES3 transmitted data. This pin is sampled on both edges of the ILRCK.
AUDIO
OMCK21Master Clock (Input) - The frequency must be only 256x the sample rate.
H/S
TXN
TXP
ORIG28ORIG Channel Status Bit Control (Input) - In hardware mode A (CEN = 0), the ORIG and COPY/C
TEST2
19Audio Channel Status Bit (Input)-InhardwaremodeA(CEN=0),theAUDIOpin determines the state
of the audio/non audio Channel Status bit in the outgoing AES3 data stream.
24Hardware/Software Control Mode Select (Input) -Determines the method of controlling the operation
of the CS8406, and the method of accessing CS and U data. In software mode, device control and CS
and U data access is primarily through the control port, using a microcontroller. Hardware mode provides an alternate mode of operation, and access to CS and U data is provided by dedicated pins. This
pin should be permanently tied to VL+ or DGND.
25
Differential Line Drivers (Output) - Transmitting AES3 data. The drivers are pulled low while the
26
CS8406 is in the reset state.
pins determine the state of the Copyright, Pro, and L Channel Status bits in the outgoing AES3 data
stream, see Table 2.
Test Pins - These pins are used for test modes and should be tied to DGND.
7
8
20
27
32DS580PP1
CS8406
12. APPLICATIONS
12.1Reset, Power Down and Start-up
When RST is low, the CS8406 enters a low power
mode and all internal states are reset, including the
control port and registers, and the outputs are disabled. When RST
operational and the desired settings should be loaded into the control registers. Writing a 1 to the RUN
bit will then cause the part to leave the low power
state and begin operation.
is high, the control port becomes
12.2ID Code and Revision Code
The CS8406 has a register that contains a four-bit
code to indicate that the addressed device is a
CS8406. This is useful when other CS84XX family
members are resident in the same or similar systems, allowing common software modules.
The CS8406 four-bit revision level code is also
available. This allows the software driver for the
CS8406 to identify which revision of the device is
in a particular system, and modify its behavior accordingly. To allow for future revisions, it is
strongly recommended that the revision code is
read into a variable area within the microcontroller,
and used wherever appropriate as revision details
become known.
12.3Power Supply, Grounding, and PCB
layout
The CS8406 operates from a +5V supply. It may
also be operated with VD+ at +5V and the other
VL+ pins at +3.3 V. Follow normal supply decoupling practices, see Figure 5. The VL+ supplies
should be decoupled with a 0.1 µF capacitor to
DGND to minimize AES3 transmitter induced
transients.
Extensive use of power and ground planes, ground
plane fill in unused areas and surface mount decoupling capacitors are recommended. Decoupling capacitors should be mounted on the same side of the
board as the CS8406 to minimize inductance effects, and all decoupling capacitors should be as
close to the CS8406 as possible.
12.4Synchronization of Multiple CS8406s
The AES3 transmitters of multiple CS8406s can be
synchronized if all devices share the same master
clock, TCBL, and RST
used to synchronize multiple CS8406 AES3 transmitters at the channel status block boundaries. One
CS8406 must have its TCBL set to master; the others must be set to slave TCBL. Alternatively,
TCBL can be derived from external logic, whereby
all CS8406 devices should be set to slave TCBL.
Notes: 1.“D” and “E1” are reference datums and do not included mold flash or protrusions, but do include mold
mismatch and are measured at the parting line, mold flash or protrusions shall not exceed 0.20 mm per
side.
2.Dimension “b” does not include dambar protrusion/intrusion. Allowable dambar protrusion shall be
0.13 mm total in excess of “b” dimension at maximum material condition. Dambar intrusion shall not
reduce dimension “b” by more than 0.07 mm at least material condition.
3.These dimensions apply to the flat section of the lead between 0.10 and 0.25 mm from lead tips.
This section details the external components required to interface the AES3 transmitter to cables
and fiber-optic components.
14.1AES3 Transmitter External
Components
The output drivers on the CS8406 are designed to
drive both the professional and consumer interfaces. The AES3 specification for professional/broadcast use calls for a 110 Ω ± 20% source impedance
and a balanced drive capability. Since the transmitter output impedance at 5 V is TBD, a 110 -TBD Ω
resistor should be placed in series with one of the
transmit pins. The specifications call for a balanced
output drive of 2-7 volts peak-to-peak into a 110 Ω
load with no cable attached. Using the circuit in
Figure 11, the output of the transformer is short-
circuit protected, has the proper source impedance,
and provides a 5 volt peak-to-peak signal into a
110 Ω load. Lastly, the two output pins should be
attached to an XLR connector with male pins and a
female shell, and with pin 1 of the connector
grounded. If VL+ is driven from +3.3 V, use a resistor value of TBD.
In the case of consumer use, the IEC60958 specifications call for an unbalanced drive circuit with an
output impedance of 75 Ω ± 20% and a output
drive level of 0.5 volts peak-to-peak ±20% when
measured across a 75 Ω load using no cable. The
circuit shown in Figure 12 only uses the TXP pin
and provides the proper output impedance and
drive level using standard 1% resistors. If VL+ is
driven from +3.3 V, use resistor values of 243RT Ohms and 107 Ohms. The connector for a consumer application would be an RCA phono socket.
This circuit is also short circuit protected.
The TXP pin may be used to drive TTL or CMOS
gates as shown in Figure 13. This circuit may be
used for optical connectors for digital audio since
they usually have TTL or CMOS compatible inputs. This circuit is also useful when driving multiple digital audio outputs since RS422 line drivers
have TTL compatible inputs.
14.2Isolating Transformer Requirements
Please refer to the application note AN134: AES
and SPDIF Recommended Transformers for re-
15. APPENDIX B: CHANNEL STATUS
AND USER DATA BUFFER
MANAGEMENT
The CS8406 has a comprehensive channel status
(C) and user (U) data buffering scheme which allows the user to manage the C and U data through
the control port.
15.1AES3 Channel Status(C) Bit
Management
The CS8406 contains sufficient RAM to store a full
block of C data for both A and B channels (192x2
= 384 bits), and also 384 bits of U information. The
user may read from or write to these RAM buffers
through the control port.
The CS8406 manages the flow of channel status
data at the block level, meaning that entire blocks
of channel status information are buffered at the input, synchronized to the output timebase, and then
transmitted. The buffering scheme involves a cascade of 2 block-sized buffers, named E and F, as
shown in Figure 14. 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 32) is the consumer/professional bit for
channel status block A.
15.1.1Accessing the E buffer
The user can monitor the data being transferred by
reading the E buffer, which is mapped into the register space of the CS8406, through the control port.
The user can modify the data to be transmitted by
writing to the E buffer.
The user can configure the interrupt enable register
to cause interrupts to occur whenever “E to F” buffer transfers occur. This allows determination of the
allowable time periods to interact with the E buffer.
Also provided is an “E to F” inhibit bit. The “E to
F” buffer transfer is disabled whenever the user sets
this bit. This may be used whenever “long” control
port interactions are occurring.
A flowchart for reading and writing to the E buffer
is shown in Figure 15. For writing, the sequence
starts after a E to F transfer, which is based on the
output timebase.
If the channel status block to transmit indicates
PRO mode, then the CRCC byte is automatically
calculated by the CS8406, and does not have to be
written into the last byte of the block by the host
microcontroller. This is also true if the channel status data is entered serially through the COPY/C pin
when the part is in hardware mode.
The E buffer is accessible from the control port, allowing read and writing of the C data. The F buffer
is used as the source of C data for the AES3 transmitter. The F buffer accepts block transfers from
the E buffer.
AB
8-bits8-bits
E
24
words
Control Port
Figure 14. Channel Status Data Buffer Structure
DS580PP137
F
Transmit
Data
Buffer
To
AES3
Transmitter
E to F interrupt occurs
Optionally set E to F inhibit
Write E data
If set, clear E to F inhibit
Wait for E to F transfer
Return
Figure 15. Flowchart for Writing the E Buffer
CS8406
15.1.2Serial Copy Management System
(SCMS)
In software mode, the CS8406 allows read/modify/write access to all the channel status bits. For
consumer mode SCMS compliance, the host microcontroller needs to manipulate the Category
Code, Copy bit and L bit appropriately.
In hardware mode, the SCMS protocol can be followed by either using the COPY and ORIG input
pins, or by using the C bit serial input pin. These
options are documented in the hardware mode section of this data sheet.
15.1.3 Channel Status Data E Buffer Access
The E buffer is organized as 24 x 16-bit words. For
each word the MS Byte is the A channel data, and
the LS Byte is the B channel data (see Figure 14).
There are two methods of accessing this memory,
known as one byte mode and two byte mode. The desired mode is selected through a control register bit.
15.1.3.1One Byte mode
In many applications, the channel status blocks for
the A and B channels will be identical. In this situation, if the user reads a byte from one of the channel's blocks, the corresponding byte for the other
channel will be the same. Similarly, if the user
wrote a byte to one channel's block, it would be
necessary to write the same byte to the other block.
One byte mode takes advantage of the often identical nature of A and B channel status data.
When reading data in one byte mode, a single byte
is returned, which can be from channel A or B data,
depending on a register control bit. If a write is being done, the CS8406 expects a single byte to be input to its control port. This byte will be written to
both the A and B locations in the addressed word.
One byte mode saves the user substantial control
port access time, as it effectively accesses 2 bytes
worth of information in 1 byte's worth of access
time. If the control port's auto increment addressing
is used in combination with this mode, multi-byte
accesses such as full-block reads or writes can be
done especially efficiently.
15.1.3.2Two Byte mode
There are those applications in which the A and B
channel status blocks will not be the same, and the
user is interested in accessing both blocks. In these
situations, two byte mode should be used to access
the E buffer.
In this mode, a read will cause the CS8406 to output two bytes from its control port. The first byte
out will represent the A channel status data, and the
2nd byte will represent the B channel status data.
Writing is similar, in that two bytes must now be
input to the CS8406's control port. The A channel
status data is first, B channel status data second.
15.2AES3 User (U) Bit Management
The CS8406 U bit manager has two operating
modes:
Mode 1. Transmit all zeros.
Mode 2. Block mode.
15.2.1Mode 1: Transmit All Zeros
Mode 1 causes only zeros to be transmitted in the
output U data, regardless of E buffer contents. This
mode is intended for the user who wants the output
U channel to contain no data.
15.2.2Mode 2: Block Mode
Mode 2 is very similar to the scheme used to control
the C bits. Entire blocks of U data are buffered using
2 block-sized RAMs to perform the buffering. The
user has access to the first buffer, denoted the E buffer, through the control port. It is the only mode in
which the user can merge his own U data into the
transmitted AES3 data stream. The U buffer access
only operates in two byte mode, since there is no concept of A and B blocks for user data. The arrangement
of the data is as followings: Bit15[A7] Bit14[B7]
Bit13[A6] Bit12 [B6]...Bit1 [A0] Bit0[B0]. The arrangement of the data in the each byte is that the MSB
is the first transmitted bit. The bit for the A subframe
is followed by the bit for the B subframe.
38DS580PP1
• Notes •
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.