Misplaced Pages

I²S

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
A serial communication protocol for two-channel digital audio Not to be confused with I²C. "i2s" redirects here. Not to be confused with IIS (disambiguation), IS2 (disambiguation), or I2 (disambiguation).
I²S bus
Type Serial communication bus
Production history
Designer Philips Semiconductor, known today as NXP Semiconductors
Designed 1986; 38 years ago (1986)
Data
Data signal Push-pull
Width 1 data line (SD) +
2 clock lines (SCK, WS)
Protocol Serial

Inter-Integrated Circuit Sound (I²S, pronounced "eye-squared-ess") is a serial interface protocol for transmitting two-channel, digital audio as pulse-code modulation (PCM) between integrated circuit (IC) components of an electronic device. An I²S bus separates clock and serial data signals, resulting in simpler receivers than those required for asynchronous communications systems that need to recover the clock from the data stream. Alternatively, I²S is spelled I2S (pronounced eye-two-ess) or IIS (pronounced eye-eye-ess). Despite a similar name, I²S is unrelated to I²C.

History

The protocol standard was introduced in 1986 by Philips Semiconductor (now NXP Semiconductors) and was first revised June 5, 1996. The standard was last revised on February 17, 2022 and updated terms master and slave to controller and target.

Details

Timing diagram of I²S

As shown in the diagram, the protocol requires the following lines:

  • Serial clock (SCK), a.k.a. bit clock (BCLK).
  • Word select (WS); a.k.a. left-right clock (LRCLK) or frame sync (FS). 0 = Left channel, 1 = Right channel
  • Serial data (SD), a.k.a. SDATA, SDIN, SDOUT, DACDAT, ADCDAT

The protocol may also include the following lines:

  • Master clock (typically 256 x LRCLK); not part of the standard, but is commonly included for synchronizing the internal operation of the analog/digital converters
  • A multiplexed data line for upload

The bit clock pulses once for each discrete bit of data on the data lines. The bit clock frequency is the product of the sample rate, the number of bits per channel and the number of channels. So, for example, CD Audio with a sample frequency of 44.1 kHz, with 16 bits of precision and two channels (stereo) has a bit clock frequency of:

44.1 kHz × 16 × 2 = 1.4112 MHz

The word select clock lets the device know whether channel 1 (WS = 0) or channel 2 (WS = 1) is currently being sent, because I²S allows two channels to be sent on the same data line. It is a 50% duty-cycle signal that has the same frequency as the sample frequency. For stereo material, the I²S specification states that left audio is transmitted on the low cycle of the word select clock and the right channel is transmitted on the high cycle. It is typically synchronized to the falling edge of the serial clock, as the data is latched on the rising edge. The word select clock changes one bit clock period before the MSB is transmitted. This enables, for example, the receiver to store the previous word and clear the input for the next.

Data is signed, encoded as two's complement with the MSB (most significant bit) first. This allows the number of bits per frame to be arbitrary, with no negotiation required between transmitter and receiver.

As an audio interconnect

This section needs additional citations for verification. Relevant discussion may be found on the talk page. Please help improve this article by adding citations to reliable sources in this section. Unsourced material may be challenged and removed. (October 2022) (Learn how and when to remove this message)

In audio equipment, I²S is sometimes used as an external link between a CD player or digital audio streaming device and an external digital-to-analog converter, as opposed to a purely internal connection within one player box. This may form an alternative to the commonly used AES/EBU, Toslink or S/PDIF standards.

The I²S connection was not intended to be used via cables, and most integrated circuits will not have the correct impedance for coaxial cables. As the impedance adaptation error associated with the different line lengths can cause differences in propagation delay between the clock line and data line, this can result in synchronization problems between the SCK, WS and data signals, mainly at high sampling frequencies and bitrates. As the I²S bus doesn't have any error detection mechanism, this can cause significant decoding errors.

There is no standard interconnecting cable for this application. Some manufacturers simply provide three BNC connectors, an 8P8C ("RJ45") socket or a DE-9 connector. Others like Audio Alchemy (now defunct) used DIN connectors. PS Audio, Musica Pristina and Wyred4Sound use an HDMI connector. Dutch manufacturer Van Medevoort has implemented Q-link in some of its equipment, which transfers I²S over 4 RCA connectors (data, MCK, LRCK, BCK).

See also

References

  1. ^ "I²S Specification" (PDF). Philips Semiconductors. June 5, 1996. Archived from the original (PDF) on January 2, 2007.
  2. "UM11732 I2S bus specification" (PDF). NXP. Retrieved 19 March 2022.
  3. ^ Lewis, Jerad (January 2012). "Technical Article MS-2275: Common Inter-IC Digital Interfaces for Audio Data Transfer" (PDF). Analog Devices, Inc.
  4. ^ "MCLK in I2S audio protocol". electronics.stackexchange.com. Retrieved 2016-11-04. Clock source for the delta-sigma modulators and digital filters. ... It is the clock that is used by the audio codec ... to time and/or drive its own internal operation.
  5. "PCM1781 (or any I2S DAC) clock sources - Audio Converters Forum - Audio Converters - TI E2E Community". e2e.ti.com. Retrieved 2016-11-04. True, the master (modulator) clock is not part of the I2S standard
  6. Arbona, Jorge (September 2010). "Application Report SLAA469 Audio Serial Interface Configurations for Audio Codecs" (PDF). Audio converters based on the delta-sigma (ΔΣ) architecture require an internal master clock that operates at a much faster rate than the target sample rate.
  7. McGowan, Paul (2010-04-02). "I2S standards from PS Audio". diyAudio. Retrieved 2022-09-11.

External links

Technical and de facto standards for wired computer buses
General
Standards
Storage
Peripheral
Audio
Portable
Embedded
Interfaces are listed by their speed in the (roughly) ascending order, so the interface at the end of each section should be the fastest.
Category
Categories: