Confidence Udegbue
According to a study from the U.S. Department of Transportation1, the average American spends the equivalent of just under 2 1/2 weeks behind the wheel every year. The longer drivers and passengers spend in cars, the greater their need for real-time data transmission and in-vehicle entertainment.
Consequently, premium audio is becoming one of the biggest growth areas for automotive infotainment systems such as automotive head units, with audio-video bridging (AVB) a key focus area. This article explains how to optimize eAVB through clocking solutions to enable high-speed data transmission in vehicles.
Six standards from the Institute of Electrical and Electronics Engineers (IEEE) define the implementation of AVB: 802.1AS, 802.1Qat, 802.1Qav, 802.1BA, 802.1Q and 1722. These standards help engineers enable the transmission of audio and video content over Ethernet in real time with reduced latency that other protocols may not be able to assure, and allow Ethernet networks to stream high-bandwidth audio/video data in a time-synchronized manner by:
An AVB implementation in automotive systems should include:
Optimizing media-domain synchronization requires a clocking solution with frequency-margining capability such as the CDCE6214-Q1, which is a compact and ultra-low-power programmable clock generator that supports output frequency tuning and has a step size less than 1 ppm.
A typical AVB network, as shown in Figure 1, consists of three main components:
Media clock sources can be simple, free-running local oscillators because the media clock does not need to lock to any reference, as long as all media clocks in the same domain are frequency-synchronized. The media clock signal goes into a local timestamp generator that generates timestamps every certain number of clock rising edges. These timestamps are generated based off of a local time reference. The wall clock, as shown in Figure 3, then translates the local time-based timestamps to generalized precision time control (gPTP) timestamps. The audio/video transport talker (AVTP) adds a fixed offset and generates presentation timestamps.
The AVTP presentation time represents the gPTP time at which a designated media sample or event transfers to the time-sensitive application within each listener. This enables multiple listeners to present data at the same time, regardless of their location in the network. The AVTP tells a listener when to start processing (that is, playing) the stream’s data, and is also used to recover the stream’s media clock.
Figure 4 depicts how to use presentation time to recover the stream’s media clock.
Figure 4 shows how a listener extracts presentation timestamps and recovers the source media clock from the incoming stream generated by a talker. The time difference between two presentation timestamps divided by the number of samples in between gives you an estimate of the source media clock in the gPTP time base. Continually performing this calculation and applying appropriate filtering techniques yields an accurate measurement of the source’s media clock period.
Similarly, it is possible to timestamp the local media clock generator’s output with a local time base that is then translated to a gPTP time base in order to accurately measure its period. After comparing the two clock periods, the media clock recovery module continually generates commands to incrementally increase or decrease the output frequency of the clock generator, thus synchronizing the local media clock to the source media clock.
Synchronization for common time referencing is important in eAVB implementations in order to avoid packet loss, bunching and latency caused by high network traffic. As drivers and passengers continue to spend more time in their vehicles and demand more high-speed data transmission, reliable clocking solutions with frequency-margining capability can help optimize both media clock generation and synchronization. The CDCE6214-Q1 is an example of a reliable clocking solution with a frequency-adjustable phase-locked loop that can be used for media clock generation and synchronization. To learn more about AVB system architecture and media clock synchronization design with the CDCE6214-Q1, read the application report, “eAVB Media Clock Synchronization Using CDCE6214-Q1.”