S/PDIF, AES3, HD Audio, AC'97 and MIDI
Inside a board, audio samples usually travel on I2S, TDM or PCM links. Between boxes they travel on S/PDIF or AES3, which put clock, audio and status on one wire or fibre, and inside PCs on the Intel HD Audio or older AC'97 link to the codec. MIDI carries note and control messages rather than audio. A logic analyser with the right decoder shows the samples, channel status and commands, which is often quicker than chasing clicks and dropouts by ear.
S/PDIF and AES3
S/PDIF (IEC 60958, consumer) and AES3 (professional) share one frame structure. Each sample period carries a frame of two 32-bit subframes, one per channel. A subframe has a 4-bit preamble, up to 24 bits of audio, a validity bit, a user data bit, a channel status bit and a parity bit. The channel status bits from 192 frames form a block that describes sample rate, word length, copy protection and, on AES3, professional flags. Preamble B marks a left subframe that starts a block, M the other left subframes and W the right subframes; they break the coding rule deliberately so the receiver can find them.
Data is biphase-mark coded: the level changes at every bit boundary, and again in the middle of a 1. The receiver recovers the clock from these edges, so there is no separate clock line. At 48 kHz the bit rate is 3.072 Mbit/s. S/PDIF uses 75 ohm coax at about 0.5 V peak to peak or a TOSLINK optical fibre; AES3 uses balanced 110 ohm cable on XLR connectors at 2 to 7 V peak to peak. Decode either from the logic-level output of the receiver or optical module. Our line codes guide covers biphase and Manchester codes in general.
Intel HD Audio and AC'97
Intel High Definition Audio links the chipset's audio controller to one or more codecs over five signals: BCLK (24 MHz), SYNC, SDO from the controller, SDI from each codec, and RST#. A new frame starts every 20.83 µs (48 kHz), marked by SYNC. On SDO the controller sends a command (a verb) followed by output stream packets, and on SDI each codec returns a response followed by input stream packets. Each stream is identified by a stream tag. A decoder shows the codec verbs, such as setting a pin widget or reading a parameter, which is how you find out why a headphone socket or microphone does not work.
AC'97 is the predecessor, with a 12.288 MHz BIT_CLK from the codec, SYNC, SDATA_OUT, SDATA_IN and RESET#. Each 48 kHz frame has a tag slot and 12 data slots of 20 bits, carrying register reads and writes and PCM audio. It is still found in embedded boards and older industrial PCs.
MIDI
MIDI 1.0 is an asynchronous serial link at 31.25 kbaud with 8 data bits, no parity and one stop bit, sent as a current loop through an opto-isolator at the receiver. Channel messages are a status byte (top bit set) followed by one or two data bytes: for example 0x90 (note on, channel 1), then note number and velocity. System real-time messages have no data bytes, and System Exclusive messages carry any number of data bytes between 0xF0 and 0xF7. Running status lets a sender omit repeated status bytes, which a MIDI decoder handles and a plain UART decoder does not. Decode from the UART side of the opto-isolator.
Audio Codec SSI
Many processors connect audio codecs through a synchronous serial port, often called SSI, with a bit clock, frame sync and data lines, configurable for I2S, left-justified or TDM framing. Acute lists a decoder for codec SSI framing. See our SSI and simple serial buses guide and the I2S guide.
How They Compare
| Interface | Connection | Clock | Carries |
|---|---|---|---|
| S/PDIF | 75 ohm coax or optical | Recovered (biphase-mark) | 2-channel PCM or compressed audio |
| AES3 | 110 ohm balanced, XLR | Recovered (biphase-mark) | 2-channel PCM, professional status |
| Intel HD Audio | On board, 5 signals | 24 MHz BCLK | Codec commands and multi-stream audio |
| AC'97 | On board, 5 signals | 12.288 MHz BIT_CLK | Codec registers and PCM audio |
| MIDI 1.0 | 5-pin DIN or 3.5 mm, current loop | Asynchronous 31.25 kbaud | Note, controller and system messages |
Common Faults and How to Find Them
| Symptom | Likely Cause | What to Check |
|---|---|---|
| Receiver will not lock to S/PDIF | Sample rate not supported, or poor signal edges | Check the channel status sample rate and the receiver output for clean transitions |
| Clicks every few seconds | Clock drift between source and receiver | Compare preamble timing against the receiver clock over a long capture |
| No sound from a jack on a PC board | Codec pin widget not enabled by the driver | Decode HD Audio verbs and check the pin control writes |
| MIDI notes stick on | Note-off lost, or running status mishandled | Decode the stream and check that every note on has a matching note off, or a note on with velocity 0, which also ends the note |
Tools for Decoding Digital Audio
Watch tools capture the logic-level signals and decode frames, channel status and commands.
| Product | Role | Capability | Price ex VAT |
|---|---|---|---|
| Acute TravelLogic 34-Channel | Watch | Acute decoders for S/PDIF, HD Audio and codec SSI, alongside I2S and PCM, with TDM available on request | €1.577,95 |
| ZeroPlus LAP-C Pro Series | Watch | ZeroPlus decoders for S/PDIF, AES3 (AES/EBU), HD Audio, AC'97 and MIDI | €1.158,95 |
Debugging an audio product? Tell us the interfaces and we will recommend a set-up.
Frequently Asked Questions
What Is the Difference Between S/PDIF and AES3?
They share the same subframe structure and biphase-mark coding. AES3 is the professional form on balanced 110 ohm cable at higher voltage, with professional channel status; S/PDIF is the consumer form on coax or optical fibre.
Can I Decode S/PDIF From an Optical Cable?
Use a TOSLINK receiver module and connect its logic-level output to the analyser.
What Sample Rate Does a Logic Analyser Need for S/PDIF?
At 48 kHz the bit rate is 3.072 Mbit/s and the shortest pulse is half a bit, so sample at 50 MHz or more for a clean decode, more for 96 or 192 kHz audio.
Can a UART Decoder Read MIDI?
It can read the bytes at 31.25 kbaud, but a MIDI decoder also shows message types and handles running status.
Is HD Audio the Same as HDMI Audio?
No. Intel HD Audio is the on-board link between the PC chipset and audio codecs. HDMI carries audio inside the video link.
More Protocols
By John Legg CEng, Director, Debug Store. Updated 24 November 2026.