I2S and Digital Audio Interfaces

I2S (Inter-IC Sound) is the standard three-wire serial link for carrying digital audio between chips on a board: a bit clock, a word select that marks left and right channels, and a serial data line. TDM, PCM, PDM and MIPI SoundWire are its relatives for more channels, voice, microphones and laptop audio. To watch any of them you need a logic analyser with the matching audio decoder, which turns the bit stream into sample values per channel.

3 wiresSCK (bit clock), WS (word select), SD (data)
MCLKOptional master clock, often 256 times the sample rate
MSB firstTwo's complement samples
StereoWS low for left, high for right
TDM4 to 16 channels on one data line
PDM1-bit stream from MEMS microphones

How I2S Is Wired and Clocked

One device, the clock controller, drives the bit clock (SCK, also called BCLK) and word select (WS, also called LRCLK or frame sync). It may be the processor or the codec, depending on which has the better clock source. Data flows on SD in one direction per line; a codec with both a DAC and an ADC has two data lines sharing one set of clocks. Many converters also need a master clock (MCLK), typically 256 or 512 times the sample rate, to run their internal filters.

Sample RateBits per ChannelChannelsBit Clock (SCK)MCLK at 256 fs
44.1 kHz1621.4112 MHz11.2896 MHz
48 kHz3223.072 MHz12.288 MHz
96 kHz3226.144 MHz24.576 MHz
48 kHz328 (TDM)12.288 MHz12.288 MHz

Bit clock = sample rate × bits per channel × channels. When the slot is wider than the sample, for example 24-bit audio in 32-bit slots, the extra bits are padded and the format decides where the sample sits in the slot.

How an I2S Frame Works

I2S timing: word select changes one bit clock before the most significant bit of each channelThree traces. The bit clock (SCK) runs continuously. Word select (WS) is low for the left channel and high for the right channel. Serial data (SD) carries each sample most significant bit first, starting one bit clock after word select changes, and is sampled on the rising edge of the bit clock.SCKWSSDMSB (left)MSB (right)left channelright channel
Philips I2S: word select changes one bit clock before the most significant bit of each channel. Data is sampled on the rising edge of SCK.
FormatWhere the MSB SitsNotes
I2S (Philips)One bit clock after WS changesWS low means left channel
Left-justifiedOn the same clock edge as the WS changeWS high usually means left: check the datasheet
Right-justifiedLSB lands on the last bit before WS changesNeeds the sample width set correctly on both ends
DSP or PCM modeAfter a short frame sync pulseUsed for mono or TDM; short-frame and long-frame variants

The formats look almost the same on an oscilloscope, differing only by a one-bit offset and the WS polarity, so a format mismatch is an easy mistake to make: audio plays, but loud, distorted or with channels swapped.

TDM, PCM, PDM and SoundWire

  • TDM (time-division multiplexing): one frame sync pulse per sample period and 4, 8 or 16 slots on one data line, for multi-channel codecs, microphone arrays and automotive amplifiers. Slot width, slot count and frame sync position vary by device.
  • PCM: in telephony and Bluetooth modules, a short or long frame sync and one or two 8 or 16-bit voice channels at 8 or 16 kHz.
  • PDM (pulse-density modulation): digital MEMS microphones output a 1-bit stream, typically at about 1 to 3.3 MHz in normal mode, with low-power modes from about 0.4 MHz and some parts running up to 4.8 MHz. Two microphones share one data line, one driving on the rising clock edge and one on the falling edge. The processor filters and decimates the stream to PCM; a decoder can show the density as a waveform.
  • MIPI SoundWire: a two-wire multi-drop bus (clock and one or more data lanes) for audio and control in laptops and phones. Data moves on both clock edges with a frame structure that interleaves control and audio channels, so it needs its own decoder.
  • Intel HD Audio: the PC codec link with a 24 MHz bit clock, SYNC, SDO, SDI and reset. Older PCs used AC'97 on similar pins.

Where Digital Audio Interfaces Are Used

  • Codecs and amplifiers: processor to DAC, ADC or class-D amplifier on almost every embedded audio product.
  • Voice products: smart speakers and headsets with PDM or TDM microphone arrays feeding a DSP.
  • Automotive: TDM between head units, DSPs and amplifiers.
  • Bluetooth and cellular modules: PCM voice to the host processor.
  • Laptops: HD Audio or SoundWire to the codec and speaker amplifiers.

Common Digital Audio Faults and How to Find Them

SymptomLikely CauseWhat to Check
Loud, harsh distortionFormat mismatch (I2S versus left-justified) shifts every sample by one bitCapture WS, SCK and SD and compare where the MSB starts with each datasheet
Left and right swappedWS polarity differs between devicesPlay a left-only test tone and decode which slot it lands in
Clicks every few secondsTwo clock domains drifting, so samples are dropped or repeatedCheck whether codec and processor share MCLK; measure SCK against the expected rate
Silence from one TDM channelSlot offset or slot count set differently on each deviceDecode the TDM frame and count slots from the frame sync
Only one PDM microphone worksBoth microphones set to the same clock edge by their select pinsLook at the data line on both clock edges
Noise or pops on start-upClocks started after the codec was unmutedCapture power-up: MCLK and SCK should be stable before audio starts

Tools for Analysing and Decoding Digital Audio

Watch tools capture the clocks and data and decode them into sample values per channel, so you can see a test tone, a swapped channel or a stuck bit. Sample at least four times the bit clock, so 12.5 MS/s or more for 48 kHz stereo and 50 MS/s or more for TDM.

ProductRoleCapabilityPrice ex VAT
Saleae Logic 8Watch8 channels, digital and analogue; I2S/PCM decoder in the Logic 2 software, with export of decoded samples£405
Saleae Logic Pro 16Watch16 channels at up to 500 MS/s for several data lines at once; the built-in I2S/PCM decoder handles two channels per instance, so TDM needs several instances or a community TDM extension£1,245
ZeroPlus LAP-C Pro SeriesWatchLogic analyser; ZeroPlus lists I2S, PCM, HD Audio, S/PDIF, AC97 and SoundWire decoders (ask us to confirm which suit your LAP-C Pro model and bit clock rate)£925
ZeroPlus LAP-F 40/64-ChannelWatch40 or 64 channels for wide TDM and multi-codec captures, with I2S hardware triggering; ask us to confirm audio decoder availability£1,350
Acute TravelLogic 34-ChannelWatchLogic analyser running Acute's decoder library, which includes I2S, PCM and HD Audio; PDM, TDM and SoundWire decoders are supplied on request from Acute£1,161.65

To check the codec's control interface, usually I2C or SPI, see our I2C and SPI guides. Browse our logic analysers, or tell us your format, sample rate and channel count and we will recommend one.

Frequently Asked Questions

Is I2S the Same as I2C?

No. The names are similar because both came from Philips, but I2C is a two-wire control bus with addresses, and I2S is a clocked stream of audio samples with no addresses or acknowledges. Most audio codecs use both: I2C or SPI to configure them, I2S to carry the audio.

What Is the Difference Between I2S and TDM?

I2S carries two channels, left and right, marked by the level of word select. TDM carries more channels in one frame, marked by a short frame sync pulse, with each channel in a fixed slot. Many codecs support both, selected by a register.

Do I Need MCLK?

Only if one of your devices asks for it. Many DACs and ADCs need a master clock at 256 or 512 times the sample rate for their filters; others generate it internally from the bit clock with a PLL. Check the codec datasheet.

How Do I Capture PDM Microphone Data?

Capture the clock and data at four or more times the PDM clock rate. A PDM decoder converts the 1-bit stream into a waveform by filtering, so you can confirm the microphone responds to sound. Remember that two microphones may share the line on opposite clock edges.

What Sample Rate Do I Need on My Logic Analyser?

At least four times the bit clock. For 48 kHz stereo with 32-bit slots, the bit clock is 3.072 MHz, so 12.5 MS/s or more. For an 8-channel TDM bus at 12.288 MHz, use 50 MS/s or more.

Where to Start with I2S, TDM, PDM and SoundWire

More Protocols

By John Legg CEng, Director, Debug Store. Updated 12 November 2026.