This EE-Note provides a basic description of the Sony Philips Digital Interface (S/PDIF), its frame structure, and how to program S/PDIF on SHARC® ADSP-2136x and ADSP-21371 processors to transmit and receive data. This EE-Note also explains the Precision Clock Generator (PCG) setup required to provide necessary signals for an S/PDIF transmit section. Code examples are provided with this EE-Note.
This Engineer-to-Engineer Note provides a basic description of the Sony/Philips Digital Interface (S/PDIF), its frame structure, and instructions on how to program S/PDIF on SHARC ADSP-2136x and ADSP-21371 processors to transmit and receive data. It also details the Precision Clock Generator (PCG) setup required to provide necessary signals for an S/PDIF transmit section.
The document includes code examples demonstrating the programming of the S/PDIF transmit and receive sections, specifically for talk-through and data loopback operations. It covers the S/PDIF transmitter inputs, receiver compliance with standards like IEC-60958 and AES3, and the handling of status control bits in the DIRSTAT register.
The on-chip SPDIF receiver supports three specific DTS frame sizes: 256, 512, and 1024.
If the input is linear PCM, it performs a soft mute by decrementing the last valid audio sample to zero over 4096 frames.
The PLL de-asserts the DIR_LOCK bit whenever there is no input stream.