SPDIF AES EBU Protocol Colored
   HOME

TheInfoList



OR:

S/PDIF (Sony/Philips Digital Interface) is a type of digital audio interface used in consumer audio equipment to output audio over relatively short distances. The signal is transmitted over either a
coaxial cable Coaxial cable, or coax (pronounced ), is a type of electrical cable consisting of an inner Electrical conductor, conductor surrounded by a concentric conducting Electromagnetic shielding, shield, with the two separated by a dielectric (Insulat ...
using
RCA RCA Corporation was a major American electronics company, which was founded in 1919 as the Radio Corporation of America. It was initially a patent pool, patent trust owned by General Electric (GE), Westinghouse Electric Corporation, Westinghou ...
or BNC connectors, or a
fibre-optic cable A fiber-optic cable, also known as an optical-fiber cable, is an assembly similar to an electrical cable but containing one or more optical fibers that are used to carry light. The optical fiber elements are typically individually coated with p ...
using TOSLINK connectors. S/PDIF interconnects components in
home theater A home cinema, also called home theater, is a home entertainment audio-visual system that seeks to reproduce a movie theater experience and mood using consumer grade electronic video and audio equipment and is set up in a private home. In t ...
s and other digital
high-fidelity High fidelity (hi-fi or, rarely, HiFi) is the high-quality reproduction of sound. It is popular with audiophiles and home audio enthusiasts. Ideally, high-fidelity equipment has inaudible noise and distortion, and a flat (neutral, uncolored) f ...
systems. S/PDIF is based on the
AES3 AES3 is a technical standard, standard for the exchange of digital audio signals between professional audio devices. An AES3 signal can carry two channels of pulse-code modulation, pulse-code-modulated digital audio over several transmission medi ...
interconnect
standard Standard may refer to: Symbols * Colours, standards and guidons, kinds of military signs * Standard (emblem), a type of a large symbol or emblem used for identification Norms, conventions or requirements * Standard (metrology), an object ...
. S/PDIF can carry two channels of uncompressed
PCM audio Pulse-code modulation (PCM) is a method used to digitally represent analog signals. It is the standard form of digital audio in computers, compact discs, digital telephony and other digital audio applications. In a PCM stream, the amplitude o ...
or compressed
5.1 surround sound 5.1 surround sound ("five-point one") is the common name for surround sound audio systems. 5.1 is the most commonly used layout in home theatres. It uses five full-bandwidth channels and one low-frequency effects channel (the "point one"). Dolb ...
; it cannot support lossless surround formats that require greater
bandwidth Bandwidth commonly refers to: * Bandwidth (signal processing) or ''analog bandwidth'', ''frequency bandwidth'', or ''radio bandwidth'', a measure of the width of a frequency range * Bandwidth (computing), the rate of data transfer, bit rate or thr ...
. S/PDIF is a
data link layer The data link layer, or layer 2, is the second layer of the seven-layer OSI model of computer networking. This layer is the protocol layer that transfers data between nodes on a network segment across the physical layer. The data link layer p ...
protocol as well as a set of
physical layer In the seven-layer OSI model of computer networking, the physical layer or layer 1 is the first and lowest layer: the layer most closely associated with the physical connection between devices. The physical layer provides an electrical, mechani ...
specifications for carrying digital audio signals over either optical or electrical cable. The name stands for Sony/Philips Digital Interconnect Format but is also known as Sony/Philips Digital Interface.
Sony is a Japanese multinational conglomerate (company), conglomerate headquartered at Sony City in Minato, Tokyo, Japan. The Sony Group encompasses various businesses, including Sony Corporation (electronics), Sony Semiconductor Solutions (i ...
and
Philips Koninklijke Philips N.V. (), simply branded Philips, is a Dutch multinational health technology company that was founded in Eindhoven in 1891. Since 1997, its world headquarters have been situated in Amsterdam, though the Benelux headquarter ...
were the primary designers of S/PDIF. S/PDIF is standardized in
IEC The International Electrotechnical Commission (IEC; ) is an international standards organization that prepares and publishes international standards for all electrical, electronic and related technologies. IEC standards cover a vast range of ...
60958 as IEC 60958 type II (IEC 958 before 1998).


Applications

A common use is to carry two channels of uncompressed digital audio from a CD player to an amplifying receiver. The S/PDIF interface is also used to carry compressed digital audio for
surround sound Surround sound is a technique for enriching the fidelity and depth of sound reproduction by using multiple audio channels from speakers that surround the listener ( surround channels). Its first application was in movie theaters. Prior to ...
as defined by the IEC 61937 standard. This mode is used to connect the output of a
Blu-ray Blu-ray (Blu-ray Disc or BD) is a digital optical disc data storage format designed to supersede the DVD format. It was invented and developed in 2005 and released worldwide on June 20, 2006, capable of storing several hours of high-defin ...
,
DVD player A DVD player is a machine that plays DVDs produced under both the DVD-Video and DVD-Audio technical standards, two different and incompatible standards. Some DVD players will also play audio CDs. DVD players are connected to a television to ...
or computer, via optical or coax, to a
home theatre A home cinema, also called home theater, is a home entertainment audio-visual system that seeks to reproduce a movie theater experience and mood using consumer grade electronic video and audio equipment and is set up in a private home. In t ...
amplifying receiver that supports
Dolby Digital Dolby Digital, originally synonymous with Dolby AC-3 (see below), is the name for a family of audio compression technologies developed by Dolby Laboratories. Called Dolby Stereo Digital until 1995, it is lossy compression (except for Dolby Tr ...
or
DTS Digital Surround DTS, Inc. (originally Digital Theater Systems) is an American company. DTS company makes multichannel audio technologies for film and video. Based in Calabasas, California, the company introduced its DTS technology in 1993 as a competitor to Dol ...
decoding.


Hardware specifications

S/PDIF was developed at the same time as the main standard, AES3, used to interconnect professional audio equipment in the
professional audio Professional audio, abbreviated as pro audio, refers to both an activity and a category of high-quality, studio-grade audio equipment. Typically it encompasses sound recording, sound reinforcement system setup and audio mixing, and studio mus ...
field. This resulted from the desire of the various stakeholders to have at least sufficient similarities between the two interfaces to allow the use of the same, or very similar, designs for interfacing ICs. S/PDIF is nearly identical at the
protocol Protocol may refer to: Sociology and politics * Protocol (politics) Protocol originally (in Late Middle English, c. 15th century) meant the minutes or logbook taken at a meeting, upon which an agreement was based. The term now commonly refers to ...
level, but uses either
coaxial cable Coaxial cable, or coax (pronounced ), is a type of electrical cable consisting of an inner Electrical conductor, conductor surrounded by a concentric conducting Electromagnetic shielding, shield, with the two separated by a dielectric (Insulat ...
(with
RCA connector The RCA connector is a type of electrical connector commonly used to carry analog audio and video signals. The name refers to the popular name of Radio Corporation of America, which introduced the design in the 1930s. Typically, the output i ...
s) or
optical fibre An optical fiber, or optical fibre, is a flexible glass or plastic fiber that can transmit light from one end to the other. Such fibers find wide usage in fiber-optic communications, where they permit transmission over longer distances and at ...
( TOSLINK; i.e., JIS F05 or EIAJ optical), both of which cost less than the XLR connection used by AES3. The RCA connectors are typically colour-coded orange to differentiate from other RCA connector uses such as
composite video Composite video, also known as CVBS (composite video baseband signal or color, video, blanking and sync), is an analog video format that combines image information—such as brightness (luminance), color (chrominance), and synchronization, int ...
. S/PDIF uses 75 Ω coaxial cable while AES3 uses 110  Ω
balanced In telecommunications and professional audio, a balanced line or balanced signal pair is an electrical circuit consisting of two conductors of the same type, both of which have equal impedances along their lengths, to ground, and to other c ...
twisted pair Twisted pair cabling is a type of communications cable in which two conductors of a single circuit are twisted together for the purposes of improving electromagnetic compatibility. Compared to a single conductor or an untwisted balanced ...
. Signals transmitted over consumer-grade TOSLINK connections are identical in content to those transmitted over coaxial connectors. Optical provides electrical isolation that can help address ground loop issues in systems. The electrical connection can be more robust and supports longer connections.


Protocol specifications

S/PDIF is used to transmit digital signals in a number of formats, the most common being the 48 kHz
sample rate In signal processing, sampling is the reduction of a continuous-time signal to a discrete-time signal. A common example is the conversion of a sound wave to a sequence of "samples". A sample is a value of the signal at a point in time and/or ...
format (used in
Digital Audio Tape Digital Audio Tape (DAT or R-DAT) is a signal recording and playback medium developed by Sony and introduced in 1987. In appearance it is similar to a Compact Cassette, using 3.81 mm / 0.15" (commonly referred to as 4 mm) magnetic t ...
and
DVD The DVD (common abbreviation for digital video disc or digital versatile disc) is a digital optical disc data storage format. It was invented and developed in 1995 and first released on November 1, 1996, in Japan. The medium can store any ki ...
s) and the 44.1 kHz format, used in
CD audio Compact Disc Digital Audio (CDDA or CD-DA), also known as Digital Audio Compact Disc or simply as Audio CD, is the standard format for audio compact discs. The standard is defined in the '' Red Book'' technical specifications, which is why t ...
. In order to support both sample rates, as well as others that might be needed, the format has no defined
bit rate In telecommunications and computing, bit rate (bitrate or as a variable ''R'') is the number of bits that are conveyed or processed per unit of time. The bit rate is expressed in the unit bit per second (symbol: bit/s), often in conjunction ...
. Instead, the data is sent using
biphase mark code Biphase or Bi-phase may refer to: * Biphase modulation, or binary phase-shift keying * Differential Manchester encoding, also known as Aiken biphase or biphase mark code * Harvard biphase, used to encode data onto magnetic tape * Mu-Tron Bi-Pha ...
, which has either one or two transitions for every bit, allowing the original
word clock In digital audio electronics, a word clock or wordclock (sometimes sample clock, which can have a broader meaning) is a clock signal used to synchronise other devices, such as digital audio tape machines and compact disc players, which inter ...
to be extracted from the signal itself. S/PDIF protocol differs from
AES3 AES3 is a technical standard, standard for the exchange of digital audio signals between professional audio devices. An AES3 signal can carry two channels of pulse-code modulation, pulse-code-modulated digital audio over several transmission medi ...
only in the channel status bits; see for the high-level view. Both protocols group 192 samples into an audio block, and transmit one channel status bit per sample, providing one 192-bit ''channel status word'' per channel per audio block. For S/PDIF, the 192-bit status word is identical between the two channels and is divided into 12
words A word is a basic element of language that carries meaning, can be used on its own, and is uninterruptible. Despite the fact that language speakers often have an intuitive grasp of what a word is, there is no consensus among linguists on its ...
of 16 bits each, with the first 16 bits being a control code.


Data framing

S/PDIF is meant to be used for transmitting 20-bit audio data streams plus other related information. S/PDIF can also transport 24-bit samples by way of four extra bits; however, not all equipment supports this, and these extra bits may be ignored. To transmit sources with less than 20 bits of sample accuracy, the superfluous bits will be set to zero, and the 4:1–3 bits (sample length) are set accordingly.


IEC 61937 encapsulation

IEC 61937 defines a way to transmit compressed, multi-channel data over S/PDIF. * The control word bit 0:1 is set to indicate the presence of non-linear-PCM data. * The sample rate is set to maintain the needed symbol (data) rate. The symbol rate is usually 64 times the sample rate. * Data is packed into blocks. Each data block is given a IEC 61937 preamble, containing two 16-bit sync words and indicating the state and identity (type, validity, bitstream number, length) of encapsulated data present. Padding is added to match full block size as required by timing. A number of encodings are available over IEC 61937, including Dolby AC-3/
E-AC-3 Dolby Digital Plus, also known as Enhanced AC-3 (and commonly abbreviated as DDP, DD+, E-AC-3 or EC-3), is a digital audio compression scheme developed by Dolby Labs for the transport and storage of multi-channel digital audio. It is a successor ...
,
Dolby TrueHD Dolby TrueHD is a lossless, multi-channel audio codec developed by Dolby Laboratories for home video, used principally in Blu-ray Disc and compatible hardware. Dolby TrueHD, along with Dolby Digital Plus (E-AC-3) and Dolby AC-4, is one of th ...
, MP3, AAC,
ATRAC Adaptive Transform Acoustic Coding (ATRAC) is a family of proprietary audio compression algorithms developed by Sony. MiniDisc was the first commercial product to incorporate ATRAC, in 1992. ATRAC allowed a relatively small disc like MiniDisc t ...
, DTS, and
WMA Pro Windows Media Audio (WMA) is a series of audio codecs and their corresponding audio coding formats developed by Microsoft. It is a proprietary technology that forms part of the Windows Media framework. Audio encoded in WMA is stored in a digital c ...
.


Limitations

The receiver does not control the data rate, so it must avoid
bit slip In digital transmission, bit slip is the loss or gain of a bit or bits, caused by clock driftvariations in the respective clock rates of the transmitting and receiving devices. One cause of bit slip is overflow of a receive buffer that occu ...
by synchronizing its reception with the source clock. Many S/PDIF implementations cannot fully decouple the final signal from influence of the source or the interconnect. Specifically, the process of
clock recovery Clock recovery is a process in serial communication used to extract timing information from a stream of serial data being sent in order to accurately determine payload sequence without separate clock information. It is widely used in data communi ...
used to synchronize reception may produce
jitter In electronics and telecommunications, jitter is the deviation from true periodicity of a presumably periodic signal, often in relation to a reference clock signal. In clock recovery applications it is called timing jitter. Jitter is a signifi ...
.Giorgio Pozzoli.
DIGITabilis: crash course on digital audio interfaces
tnt-audio.com.
Chris Dunn, Malcolm J. Hawksford.
Is the AES/EBU/SPDIF Digital Audio Interface Flawed?
AES Convention 93, paper 3360.
If the DAC does not have a stable clock reference then noise will be introduced into the resulting analog signal. However, receivers can implement various strategies that limit this influence. AES Convention 121, paper 6948


See also

*
ADAT Lightpipe The ADAT Lightpipe, officially the ADAT Optical Interface, is a standard for the transfer of digital audio between equipment. It was originally developed by Alesis but has since become widely accepted, with many Third-party developer, third party ...
* I2S *
McASP A Multichannel Audio Serial Port (McASP) is a communication peripheral in digital signal processor ( DSP) and microcontroller unit ( MCU) components from Texas Instruments. An McASP functions as a general-purpose audio serial port optimized for th ...


Notes


References


External links


S/PDIF at Epanorama.net
*

{{DEFAULTSORT:S PDIF Audio communications protocols Computer hardware standards IEC 60958 Digital audio transport Digital audio connectors