AD1938 and AD1939 Audio Codecs: Sourcing Notes
An audio codec is a decision about the whole audio path
An audio codec is bought as a chip, but used as one link in an audio path. Sound enters as an analogue signal, the codec turns it into digital data for a processor, and the codec turns digital data back into an analogue signal that can be heard. If any link in that path was never stated, the chip that arrives can be right on its own and wrong in the application, found only when the finished product is switched on.
The AD1938 and AD1939 names belong to one family of audio codecs, and this guide uses one part number from that family, AD1939YSTZRL, as its anchor example for how to read a part number. It gives no cross-reference between one part and another, and it states no parameter value for any part. It explains the codec idea, what multichannel means, how sampling and interfaces work, and what to check on power, clock, package, and temperature grade.
What an audio codec does
A codec is a part that converts in both directions: it listens to analogue sound and turns it into digital data, and it takes digital data and turns it back into an analogue signal. A buyer who checks only one direction has checked only half the part.
- The analogue-to-digital side listens. It takes the analogue signal from a microphone, a line input, or another sound source, and turns it into digital data that a processor can work with. The quality of that conversion sets what the processor has to work with.
- The digital-to-analogue side speaks. It takes digital data from the processor and turns it back into an analogue signal that can drive an amplifier, a speaker, or a headphone output. The conversion back must match the conversion in, or the sound that comes out will not match the sound that went in.
- The codec sits between two worlds. On one side is the analogue world of microphones, amplifiers, and speakers. On the other side is the digital world of the processor. The codec is the bridge, and the bridge must match both ends.
For how to read that technical document before sending an inquiry, see How to Read a Datasheet Before You Request a Quote.
Multichannel: what more than one channel means
A multichannel codec handles several audio paths at once, in one chip, kept together in step instead of by separate parts that can drift apart.
- Each channel is one audio path. A channel carries one stream of sound, such as one microphone, one speaker feed, or one side of a stereo pair. The application decides how many audio paths it has, and that count is written down before the codec is chosen.
- Channels must stay in step. When several channels belong to one sound, they must be converted at the same moment, or the sound falls out of step. A multichannel codec is built to keep its channels together, and that togetherness is part of what is being bought.
- The channel plan is a design decision. How many channels the system needs, and what each one carries, should be stated first. A codec with fewer channels than the system needs cannot grow more, and a codec with more channels than the system needs leaves paths unused.
- The channel count is stated in the technical document. How many channels the exact part offers, and how they are arranged, is stated in its technical document. It should be read there and checked against the channel plan, never assumed from the family name.
Sampling: how often the sound is measured
Sampling is the rate at which the codec measures the analogue sound and turns each measurement into a digital value. It decides how much of the sound the digital side ever sees, and it is set by the design, so it cannot be fixed after the part is ordered.
- Sampling turns a wave into steps. The analogue sound is a wave that changes all the time. Sampling measures that wave at regular moments, and the digital side only ever sees those measurements. What happens between measurements is not recorded.
- A higher rate captures finer detail. Measuring more often captures faster changes in the sound. Measuring less often misses them, and what is missed at sampling cannot be recovered later by the processor.
- The rate is stated in the technical document. Which rates the exact part supports, and how the rate is chosen, is stated in its technical document. It should be read there and confirmed against the system, rather than assumed from the family name.
Interfaces: how audio data moves in and out
The digital audio data has to move between the codec and the processor, and the interface is its path. It must match what the processor can send and receive, at the rate and in the shape the system uses.
- The interface is the connection to the processor. The codec sends its converted digital data to the processor over its interface, and receives digital data back over the same kind of path. If the interface does not match, the audio never arrives.
- Serial interfaces carry data one bit at a time. Many audio interfaces send the data as a serial stream, one bit after another, timed by a clock. The shape of that stream, and how the channels are arranged inside it, must be the shape the processor expects.
- Timing belongs in the check. How the data is timed, when each channel appears in the stream, and how quickly the processor must read it, should be stated first. A processor that reads too slowly misses data, and a stream that arrives out of time puts the channels out of step.
- The interface is stated in the technical document. Which interfaces the exact part offers, and how they are timed, is stated in its technical document, and should be confirmed there and against the processor before the order is placed.
Power and clock: what the codec needs to run
A codec needs power and a clock before it can convert anything. Both are part of the purchase decision, because a codec that arrives without a matching power plan and a matching clock has nowhere to run.
- Power is the first requirement. The codec needs power to run, and the board must provide it in the form the codec expects. The power plan should be stated before the part is ordered, not discovered when the board is built.
- Analogue and digital power are different needs. The analogue side of the codec works with sound signals, and the digital side works with data, and the two sides can have different power needs. Clean power matters most on the analogue side, where noise on the power can become noise in the sound.
- The clock sets the pace. The codec measures sound and moves data to a clock, and that clock must match the sampling the system uses. A clock that does not match the sampling leaves the sound out of step with the rest of the system.
- The clock source must be stated. Whether the clock comes from the processor, from a separate clock part, or from the codec itself should be written down first. A clock source assumed but never stated is a clock source that may not exist on the board.
Reading the part number: AD1939YSTZRL
A part number is a full address, not a family name. The part number AD1939YSTZRL is the anchor example for this guide: AD1939 is the family, and the characters after it carry the detail. That detail is read from the technical document, never guessed, and never dropped.
- Write the part number in full, every time. The order, the inquiry, and the receiving check should all carry the complete part number, suffix included. A part number copied without its suffix is an order for a family.
- The suffix carries meaning. The letters and digits after the family name can carry the temperature grade, the package, the packing form, or another ordering option. Which character means what is stated in the ordering guide of that exact family.
- Read the suffix in the ordering guide, not from memory. Two families from the same maker can use the same letter to mean different things, so a suffix read from memory is a suffix misread. Open the ordering guide, find the exact part number, and confirm each character against it.
- The packing form is part of the part number. Where the suffix carries the packing form, it decides how the parts arrive. A reel suffix means the parts arrive wound on a reel for machine assembly. The packing form should match how the parts will be handled and assembled, and it should be confirmed in the inquiry.
- A suffix that cannot be explained is a stop, not a detail. If any character cannot be matched to the ordering guide, the order should wait until it can. An almost-right part number may arrive in the wrong package, grade, or packing form.
Temperature grade and receiving checks
Temperature grade states the temperatures a part is built to work across, checked against the temperatures the application will actually see, not the temperature of the room where the part was chosen. When the parts arrive, their markings are the first check that the right parts arrived.
- State the temperatures the part will see. The highest and lowest temperatures where the part will work, including heat from nearby equipment, should be written down first. A grade chosen from the usual temperature, rather than the worst, is a grade chosen on hope.
- The grade must cover the whole range. The part will see its coldest and hottest temperature, and the grade must cover both ends. A grade that covers the usual day but not the worst day fails on the worst day.
- The grade is carried in the part number. The grade is often carried by a character in the part number, so the part number must be copied in full. A part number with the grade character dropped leaves the grade to chance.
- Read the markings against the order. The part number, batch or lot code, and date code on the parts should be compared with the order, character for character. Any difference is a question to raise before the parts are used.
- The date code states when the parts were made. It is read from the marking on the part or its packing, and recorded when the parts arrive.
For the difference between commercial, industrial, and automotive grades, see Temperature Grades: Commercial, Industrial, Automotive.
Checklist before you send the inquiry
- Audio path known — The sound sources, the processor, the outputs, and what each channel carries.
- Channel plan checked — Enough channels for every audio path, kept in step, with the interface and board planned for the full count.
- Sampling checked — A rate the whole system can keep up with, confirmed in the technical document.
- Interface checked — Matches what the processor can send and receive, with timing it can keep up with, for both audio data and control.
- Power and clock checked — Power in the form the codec expects, and a clock source stated that matches the sampling.
- Part number written in full — The complete number, suffix included, read against the ordering guide in the technical document.
- Package and packing form stated — The package matches the board and assembly line, and the packing form is written plainly, so the reply can be checked against it.
- Temperature grade checked — Covers the highest and lowest temperatures the part will see, with margin.
- Receiving check planned — Part number, batch code, and date code to be read and recorded when the parts arrive.
When the list is complete, the inquiry can be written in one pass. That inquiry goes to the inquiry page — written in full, so the answer can be checked line by line.
FAQ
What does an audio codec actually do?
It converts in both directions: analogue sound into digital data a processor can work with, and digital data back into an analogue signal that can be heard. It sits between the analogue world and the digital world, and it must match both ends.
How many channels do I need?
Count the audio paths the system has, one channel per path, and write down what each channel carries. Then read the channel count in the technical document of the exact part and confirm it covers the full plan. Settle the count before the order, not after.
I have the part number AD1939YSTZRL. Can I just copy it into the order?
Only after the suffix has been read against the ordering guide. The characters after the family name carry the detail, and a part number copied without its suffix is an order for a family rather than a part. Confirm each character, then copy the full number into the order.
What should I ask the supplier before I commit to this part for a multichannel build?
Ask for the temperature grade in writing against the temperatures the part will see, confirm the interface, the sampling, the package, and the packing form against the processor and the assembly line, and state the quantity and packing form plainly. Any point left unanswered should be asked again before the order is placed.
