Advertisement

Selecting an audio codec for portable apps

Today’s devices integrate many features that affect audio quality, system cost, power requirements, and design complexity

BY LARRY GADDY
AKM Semiconductor
San Jose, CA
http://www.akm.com

Audio codec ICs are at the heart of many different portable devices that feature both record and playback capabilities. While the basic product selection of input and output channels with their respective performance may be simple, today’s devices offer many integrated features that can affect audio quality, as well as system cost, power requirements, and design complexity. Understanding what these features bring to a portable application is needed to make the best choice.

System architecture

The audio system in a portable record and play appliance includes more than the basic converters. These devices almost always include a stereo DAC, a mono or stereo ADC, a microphone amplifier, and outputs that may include a headphone and/or a speaker amplifier, and a line level output.

Additional features can include a programmable gain amplifier (PGA), input and output automatic level controls (ALCs), a PLL, and an analog mixer. Codecs are available that address both the most basic system and the most complex. Once the full list of desired features has been determined, there are secondary considerations, including the control interface, amplifier interface, and clocking requirements (see Fig. 1) .

Fig. 1. Feature-rich audio codecs, such as the AKM AK4643, can address the needs of complex systems,

Microphone inputs and ADC

Placement of the microphone and routing of its signal can be a critical factor. The microphone is mounted near the user’s mouth, but this is often far away from the codec. Most applications employ single-ended microphones, but when the signal is routed over a long distance, it is prone to noise interference. Considering that the fixed-gain for the microphone is 20 to 30 dB, that level of noise can be very strong. By using a differential signal path, the noise is cancelled through common mode rejection, and the signal is boosted by 6 dB. Most codecs provide power for electret microphones, but an important feature to look for is a buffered output.

A buffer prevents power supply noise from coupling into the microphone. There is usually a fixed gain block, offering gain from 15 to 40 dB. It may also be useful to have a programmable gain amplifier, enabling fine-tuning for a particular microphone source or environmental condition. Microphone gain should be done in the analog domain. If the gain is realized in the digital domain after the ADC, the constant quantization noise of the ADC is multiplied during quiet input passages. It is generally not important to have a high-quality ADC, since the microphone element is usually the limiting factor for signal-to-noise performance. For most consumer devices, anything over 80 dB should be adequate.

ALC and input filtering

ALC is applicable to both input and output signals. For the input, ALC is used to maintain a constant recording level, as the user’s voice level changes either through inflection or distance. ALC can be realized in either the analog or digital domain. For portable applications, digital ALC is often used, saving cost and providing more flexibility in determining ALC parameters such as attack, threshold, and release.

Output ALC is used to normalize the output volume, as well as provide some pre-amplification to the signal. When a user creates a mix of songs from multiple sources, the recording levels can vary widely. A typical level may be at –12 dB. If this signal is sent through the DAC with no normalization, the power amp must provide extra amplification, burning excess power. By normalizing the signal in the digital domain, the power amp is much more efficient, producing more sound level for less power (see Fig. 2) .

Some specific applications can benefit from special digital filtering. For camera and phone applications where the user may be in a windy area, a high pass filter can be employed to remove the wind noise. Notch filters may be used to eliminate motor noise in camera applications, or GSM noise in mobile phone applications.

Fig. 2. For the input, ALC is used to maintain a constant recording level, as the user’s voice level changes either through inflection or distance. ALC can be realized. Shown above: (a) The signal before input ALC. (b) The signal after input ALC. .

Audio and control interface

Most portable audio codec’s operate with I2 S audio data, and either an SPI or I2 C control interface. Some legacy codec’s use an AC-Link interface, used for AC-97 codecs. The speed of the control interface is not critical, since no audio sample data is passed over the control bus. For the digital audio interface, I2 S is the most common format, and most codecs will support MSB- or LSB justified as well. If I2 S is selected, virtually every codec will support it. For resolution, the majority of codecs support 16 bits, although there are some higher resolution parts, up to 24-bits. In reality, there is no need to go beyond 16 bits, since the audio performance will not need to be better than 90 dB.

Clocking

A standard digital audio clock interface includes a master clock (controls the modulator), a bit clock, a left-right (frame or word) clock and a data in/out line. Providing high-accuracy low-jitter clocks may be difficult, so consider a codec with an integrated PLL. High-performance analog PLLs are available that operate off of a wide variety of clock sources, including audio, video, USB, and DSP clocks. A codec with an integrated PLL eliminates concerns about accuracy and coupling from high-speed clocks.

DAC performance and features

As previously mentioned, it is a waste to use high-performance DACs for portable applications. Audio sources such as MP-3 have limited dynamic range depending on the compression ratio, so a rule of thumb for the DAC performance is 90 dB. Some codecs include audio enhancement algorithms, such as 3-D stereo enhancement, bass boost, EQ, and ALC.

The 3-D stereo enhancement algorithms are usually simple sum-and-difference types, which creates a wider soundfield. A bass-boost filter can be used to boost low frequencies, either programmable or with a pre-determined response.

The signal amplitude provided to these digital filters is always below full scale, since it is not possible to boost digital signals beyond full scale. A typical bass-boost filter can provide 15 dB of gain for frequencies below 80 Hz, rolling off to zero boost around 1 kHz.

The bass boost filter also compensates for the high-pass characteristic of the output ac-coupling cap, allowing for a smaller dc-blocking capacitor. After the bass boost and EQ filters, the signal may be normalized with an ALC algorithm. All of these filter features are important to enhance playback quality for the user experience.

Playing the music

Most portable appliances offer several types of output: line level, headphones, and speakers. The line output is usually designed to drive a high-impedance load (about 10 kΩ) through an ac-coupling capacitor.

The headphone driver can also be configured for the line output. For the headphone amplifier, the output power runs anywhere from 15 mW to 50 mW, although 30 mW is usually more than adequate for driving the most inexpensive headphones.

The important parameter is speaker power level (SPL), not necessarily the raw output power. These outputs have been typically ac-coupled, although the trend toward very small appliances is driving capless outputs to eliminate large and expensive dc-blocking capacitors. This kind of output can be accomplished by having differential BTL drive, a charge pump that generates a negative rail with a ground reference, or by creating a virtual ground at Vcc/2.

The virtual ground method can work for a closed-loop system (operating under battery power only), but when connected to an ac supply (as in a docking station), ground must be ground, not biased up, or the device may have catastrophic failure. Also, biasing up the headphone ground prevents the wire from being used as an FM antenna, if a radio is included in the appliance.

Advertisement



Learn more about AKM Semiconductor

Leave a Reply