Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Embedded Systems

Interfacing Processors to Audio and Video Devices


This article aims to familiarize the reader with the basic principles of connecting digital signal processors to audio and video devices. While a basic working knowledge of audio and video would provide the reader with a helpful background, basic refreshers are included in the article where appropriate.

Processor Interface Overview
Generally targeted at applications requiring heavy I/O loads, DSPs commonly provide developers with a variety of integrated interfaces—some standard and some proprietary. For example, Blackfin processors from Analog Devices are convergent processors, which means they integrate DSP and MCU functionality into a single device. Blackfin processors have two main types of serial interfaces relevant to audio applications. The processor's low bit-rate TWI (two wire interface) and SPI (serial peripheral interface) modules are used for control and configuration of audio devices. The forward channel of these peripherals is generally used to configure or control audio converters, and the reverse channel relays feedback or status information from the converters. The processor's higher bit rate SPORT (serial port) peripheral is customarily used to perform the actual interchange of audio data.

Blackfin's TWI is compatible with the Philips bidirectional open-collector I²C (Inter-Integrated Circuit) bus. It provides a very simple and concise way to exchange control and data information between multiple devices. It supports both master and slave operation with transmission speeds up to 400 kbits per second. The I²C bus serial data (SDA) and serial clock (SCL) lines (see Figure 1) comprise a multi-master interface, so it can connect to more than one IC capable of initiating a data transfer. The phase differences between the SDA and SCL data streams determine the mode of operation, slave or master, at a given point in time. To list all the world's I²C devices here would be impossible, but suffice it to say that using a DSP with an I²C port opens the architecture up to a very wide variety of interconnectivity options.


1. Example I²C signaling (adapted from Philips spec)

The full-duplex Blackfin SPI is compatible with the Motorola SPI standard. It It operates at up to 33 Mbits per second, well beyond the control needs of most A/D and D/A converters. The SPI name was created by Motorola but is also known as Microwire, which is a trademark of National Semiconductor. Extensions to SPI, including QSPI (Queued Serial Peripheral Interface) and MicrowirePLUS, have also come to market. The SPI consists of a three-pin data communication interface (see Figure 2) that supports both master-slave and multi-master environments. The SPI pins include the MOSI (master output to slave device), the MISO (master input from slave device), and the SCK (serial clock). There are also a total of eight SPI chip-select pins. One input pin lets other SPI devices select the Blackfin processor, and seven output pins let the Blackfin processor select other SPI devices. While developers typically utilize SPI as a synchronous serial communication interface between processors and peripherals, SPI can just as well be used for interprocessor communication. As with I²C, SPI has been widely adopted throughout the industry, and the list of SPI-compatible devices is richly populated.


2. Example SPI signaling

Blackfin's full-duplex synchronous serial port, called "SPORT," operates at high bit rates and supports simultaneous transmit and receive applications. SPORT features that are relevant to audio applications include two sets of independent transmit and receive pins (primary data, secondary data, clock and frame sync). These pins enable eight channels of I²S stereo audio. (I²S is Phillips Semiconductor's "Integrated Interchip Sound" bus protocol for digital audio.), Each of these channels supports word lengths up to 32 bits, surpassing the resolution of most high-precision audio applications.

I²S is a well known serial-bus stereo audio transmission standard, widely used to interconnect system elements like analog-to-digital and digital-to-analog converters. I²S interfaces are also found on some high-end CD and DVD players, and on some PC sound cards. An I²S bus design consists of three serial bus lines: a line with two time-division multiplexing (TDM) data channels, a word select line, and a clock line. In the I²S format (see Figure 3), any device can act as the system master by providing the necessary clock signals, and an I²S slave will usually derive its internal clock signal from an external clock input. The I²S design handles audio data separately from clock signals, and by separating the data and clock signals, time-related errors that can introduce jitter are mitigated, eliminating the need for anti-jitter devices.


3. Example I²S audio signaling

Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.