Global Sources
EE Times-India
Stay in touch with EE Times India
EE Times-India > Interface

Managing different clock frequencies of audio codecs

Posted: 02 Dec 2011     Print Version  Bookmark and Share

Keywords:Hi-Fi  audio-video  digital filters  analogue-to-digital converter 

The 44.1 kS/s audio rate, however, can only be approximately generated. Using a sample rate conversion of 272X, the audio clock can be approximated to 44.1176 kS/s, which is slightly different from the nominal. But the difference is quite small and hardly noticeable. In effect, it is just a 0.04% change in pitch. To put that in perspective, it is 100 times less than a semitone. Another way to appreciate the effect of the clock approximation is in the duration of a song: 0.04% faster playback corresponds to a 3-minute song completing 10ms (ms) earlier.

A/V clocks
A/V multimedia equipment produces data streams that are both video and audio. Examples are DVD players and MPEG media readers. The sampling rates are independent for video and audio. Video uses 27MHz clocks or multiples. The audio clocks must be derived from 27MHz and all standards based on 44.1 kS/s, 48 kS/s and 8 kS/s must be supported.

These audio clocks are best generated with a PLL having as reference a division of the 27MHz video clock. Due to the synchronism between audio and video data, the PLL-less technique is not applicable because it would change the audio playback cadence relative to the video. This would cause the audio to get misaligned with the video image, causing loss of lip-sync.

Synchronisation with source clock
There are applications where the source of data is remote to the equipment. An example of this would be TV broadcasts (cable, terrestrial or satellite), HDMI cables and web streaming. In these cases, the audio and video clocks must be synchronised with the source clocks.

Figure 4: Block diagram of a solution with a PLL that uses time stamp information from the video decoder to synchronise the audio clock.

To illustrate this situation, let's consider a digital TV transmission (as illustrated in figure 4). The data transmitted by the TV station is synchronised to a reference 27MHz clock at the transmitter site. Due to tolerances on the transmitter crystal oscillator and Doppler effects during propagation, the frequency received by the TV antenna at the receiver site may vary. In order to ensure synchronisation of the data, a coded time stamp (CTS) is included in the transmitter MPEG data signal. The CTS allows synchronisation of the video and audio packets for an accurate lip-sync during playback.

Since the received frequency varies over time, data may be arriving slower or faster, producing clock drifts relative to the receiver's own 27MHz clock. This variation in data flow will result in either too much or too little data arriving at the receiver to be processed. For video data, this drift is not significant and can be corrected by dropping or repeating frames. While the video is decoded, the receiver is constantly comparing the time stamp received from the transmitter with that of the decoded video.

When too much data accumulates in the decoder (i.e., the receiver's 27MHz clock is slower than the transmitter clock), a frame is dropped. When too little data is available for processing, a frame is repeated. Since frames are either dropped or repeated so infrequently, the effect is not noticeable to the viewer.

Audio data must also be synchronised with the transmitter clock. The audio clocks must be derived from the same 27MHz video clock and all standards must be supported. But dropping/repeating samples are unacceptable in audio because it would be highly perceptible to our ear. The solution is to have a PLL to generate the audio clock and use the time stamp information to lock the PLL to the received sampling data.

About the author
Carlos Azeredo-Leme is a senior staff engineer for the DesignWare Analog IP at Synopsys since 2009. Prior to joining Synopsys, he was co-founder and member of the Board of Directors of Chipidea Microelectronics in 1993, where he held the position of Chief Technical Officer. There, he was responsible for complete mixed-signal solutions, analogue front-ends and RF. He worked in the areas of audio, power management, cellular and wireless communications and RF transceivers. Since 1994 he holds a position as Teacher at the Technical University of Lisbon (UTL-IST) in Portugal. His research interests are in analogue and mixed-signal design, focusing on low-power and low-voltage. Carlos holds an MSEE from Technical University of Lisbon (UTL-IST) in Portugal and a Ph.D. from ETH-Zurich in Switzerland.

To download the PDF version of this article, click here.

 First Page Previous Page 1 • 2 • 3

Comment on "Managing different clock frequencies..."
*  You can enter [0] more charecters.
*Verify code:


Visit Asia Webinars to learn about the latest in technology and get practical design tips.


Go to top             Connect on Facebook      Follow us on Twitter      Follow us on Orkut

Back to Top