Don’t let analog/digital misinterpretations put your design in jeopardy

Abstract


Humans are unusual creatures, sometimes partial knowledge, ego and misplaced confidence are more dangerous in a field than no knowledge. This can lead to circuits that fail to function as expected. Some look like they should work to an inexperienced person--while the experienced engineer cringes, wondering how someone can get themselves in such a fix. Here are three cases where some simple analysis can educate designers so they can avoid similar issues in future designs.

Sometimes designers misunderstand how a part works, so they make strange assumptions that result in misusing the part. Sadly, as a general rule, today’s engineering schools concentrate on digital technology while almost totally ignoring analog design. As a result, inexperienced digital engineers have to learn analog by trial and error. Some of the resulting devices would make Rube Goldberg proud. (Who’s Rube Goldberg? A Pulitzer Prize-winning cartoonist, Rube Goldberg became famous in the early 20th century by inventing outrageously complex contraptions to perform the simplest tasks. Examples of his work can be seen at http://www.rubegoldberg.com/gallery.php
Let’s consider a few horror stories from an analog engineer’s viewpoint. Common digital fallacies include not realizing the importance of clean power and grounds. Impedance DC level matching may be ignored when connecting circuit stages. Ignoring the laws of physics will eventually cause system failure.


It was beautiful on its face but . . .

The datasheet said, “Place the power supply decoupling capacitors as close to the IC’s power pin as possible.” And as one can see in the printed circuit board layout (PCB) of Figure 1, they did! 
 
Figure 1: A printed circuit board (PCB) layout, IC and capacitor
The board functioned as a mixed-signal board in a video application. Other components were around the IC of Figure 1, but these were the most important. It was a four-layer board with signal traces on the outer two layers. An analog engineer would expect power and ground planes on the inner two planes respectively. There were high frequency analog-to-digital converters (ADC) and digital-to-analog converters (DAC) with signal-processing circuits. The component density was just moderate. There were no ball grid array (BGA) packages requiring more layers or to complicate the layout.
When testing the design, we found that the video output was noisy, really noisy. We traced most of the noise to one IC. Figure 1 shows the layout on the top side of the board. There was a huge noise signal on the power pin. When a thin wire was placed through the “ground” side via of the decoupling capacitor and the connection followed to the other side of the board, there was a trace (not an internal ground plane) that disappeared into another via. This was definitely troublesome.
By reviewing the board layout program we highlight the desired node and could view all the connections. Figure 2 is part of what was found.
 
Figure 2: Board layout viewed using the PCB design software
The traces looked like they were done by a digital circuit auto-router. This was the case because the board layout person was inexperienced with analog. There were no internal ground and power planes (see AN4345 “Well Grounded, Digital is Analog for grounding tips and proper use of planes).
To the inexperienced, the circuit is correct because all grounds are connected together. That is true at DC but at operating frequencies the equivalent circuit has many parasitic elements, as shown in Figure 3.
 
Figure 3: A way to visualize “Ground Bounce” in the circuit
Each trace and via of Figure 2 contains resistance and inductance. In Figure 3, those distributed parasitic components are collapsed into the single series inductor near the ground at the lower center of the diagram. Picture the inductor in your mind’s eye as a mechanical coil spring. The IC is drawn here as an op amp to simplify the explanation, but it could be any circuit.
The noise of the digital and other circuits to the left and right above the “ground bounce" symbol are moving the voltage up and down when the currents in the other circuits change state. The analog signal is contaminated at several points:
1.)   The noise is applied to the op amp input through R1.
2.)   The noise is applied the ground pin of the op amp. (Yes, there is a “power supply rejection ratio” specification but that uses ground as the reference. This means the noise is directly added to the output signal.)


3.)   The noise is applied to the op amp input through R2.
4.)   The noise is applied to the op amp input through the decoupling capacitor and the resistor above R1.
Remember: a capacitor is a two-way device. The decoupling capacitor’s job is to homogenize the high frequencies on both sides of the capacitor. If there is noise on the voltage bus and the ground is a clean, low-impedance return path to the power supply, a decoupling capacitor can help reduce the noise. However, if the ground has high impedance and lots of noise, the decoupling capacitor actually adds noise to the voltage bus.
The noise added at various points around the op amp above makes a real mess at the output, because the noise signals are added with phase differences. All the noise tends to add at the output as indicated by the bouncy "plus" symbol.
The output is also plagued by the effect of small non-linearities in the op amp. The noise is multiplied by the various non-linearities of various elements, thus creating sum and difference harmonics which splatters the noise all over the spectrum.
The fix was a simple explanation of how to make good ground and power planes (and you don’t want to see the power traces. They were equally problematic). Once the inexperienced engineer and layout person understood the concepts, the next layout had no noise problems.


An analog radio with an impossible layout
In another example, let’s examine a problem discovered on a radio-transceiver design evaluation board. A designer took the schematic and entered it into a PCB auto router designed for digital logic. The resulting board was unusable as a radio, there was no ground plane and it did qualify as a Rube Goldberg.


The critical signal paths on the board were scattered and stitched through vias (inductors), and power was not decoupled properly. Then the antenna on the board was a strange shape. It is hard enough to design a straight-line antenna. When the designer was asked about the software program used to make such an antenna, instead of discovering a great new antenna design software tool, it was a surprise to hear the designer state “Well that was the space we had left so that’s where we put the antenna.”
Although the designer was a good microprocessor engineer, he had no idea that antenna size is controlled by the signal wavelength. He also had no concept of a ground plane being the other half of the antenna. A knowledgeable radio engineer was available in another group within the company. With his guidance the design was saved.


Does this resonate with you?
Musical instruments and radios utilize resonance to operate. Figure 4 shows pipes of a pipe organ. Each is pipe is tuned to a specific musical note. When we tune a radio from one station (frequency) to another resonance helps us select one station and reject all others.
Figure 4: A pipe organ located in a church in Berne, Indiana, USA
Radio antennas sizes are tuned to resonate at specific frequencies, but therein lies the problem. While working on an automotive project, a designer wanted to have long-distance communication by placing an antenna inside the engine compartment of an automobile. This was an aftermarket product that needed to transmit and receive under the metal hood of the engine compartment of any car.
The designer thought that the engine compartment of the cars would form a resonate cavity at one specific frequency and amplify the signal. Unfortunately, resonate cavities require exacting design and since each car type has different size engine compartment, resonance was hard to achieve. Additionally, the designer didn’t want to pay automotive prices for high-temperature-qualified components.
By not understanding that engine compartments were hot, the designer had expected that consumer-grade parts with maximum temperature ratings of 70°C would survive. By examining the requirements, an experienced radio engineer was called in to straighten out the design.
Parts that combine analog and digital in the same package, such as the MAX541 16-bit DAC, typically have a pin called analog ground and another called digital ground. In the MAX541’s data sheet, pages nine and ten explain how to connect them together and use star points for the ground planes. The terms for ground can be misleading; instead of analog and digital, “clean and dirty” might be better descriptions.
As explained in Application Note 4345, “Well Grounded, Digital Is Analog”, digital circuits can ignore some noise because of the threshold effect, while analog circuits cannot. In the case of data converters care must be used to connect the digital and analog grounds. Especially when systems are made of many ADCs and DACs, skill and experience are required to connect the ground planes in a star configuration.
At the same time, the analog and digital planes need to be cross-connected at each data converter. The objective is for the major currents to return to the power supply with little current in the cross connects. Expert engineers may use resistors, ferrite beads or inductors for cross connects to direct currents as a function of frequency. Experience allows one to minimize the number of board layouts, but the only way to be sure is to empirically and iteratively optimize the circuit layout and reduce the noise issues.
Unfortunately, all parts can be misused and abused. Experience is a wonderful teacher. When we learn things by the school of hard knocks we do remember. Hopefully by sharing those experiences we can spare other engineers the pain of finding out the hard way. Most of the time hindsight allows us to improve on a design as we scratch our heads and wonder why we didn’t see the obvious sooner.
No part can do everything for every designer. No matter how much Rube Goldberg tried, a single contraption couldn’t incorporate every part in every application. That’s a good thing because people have enjoyed Rube’s many cartoons for generations.


About the author
Bill Laumeister is an engineer with the Precision Control Group, Strategic Applications at Maxim Integrated Products, and works with companies using DACs, Digital Potentiometers and Voltage References. He has thirty-eight years experience and holds several patents in the video field. He is the inventor of a video communications method called VEIL (Video Encoded Invisible Light), which is being considered by the U.S. Congress in the "Digital Transition Content Security Act" as a possible patch for the "analog hole".)

2 comments:

  1. Analog is real engineering, and needs to be a lifelong learning experience if one expects to get any good at it. At least with digital one can become of some use in the marketplace in a relatively short time, which has much to do with digital's popularity.

    ReplyDelete

Labels

PROJECTS 8086 PIN CONFIGURATION 80X86 PROCESSORS TRANSDUCERS 8086 – ARCHITECTURE Hall-Effect Transducers INTEL 8085 OPTICAL MATERIALS BIPOLAR TRANSISTORS INTEL 8255 Optoelectronic Devices Thermistors thevenin's theorem MAXIMUM MODE CONFIGURATION OF 8086 SYSTEM ASSEMBLY LANGUAGE PROGRAMME OF 80X86 PROCESSORS POWER PLANT ENGINEERING PRIME MOVERS 8279 with 8085 MINIMUM MODE CONFIGURATION OF 8086 SYSTEM MISCELLANEOUS DEVICES MODERN ENGINEERING MATERIALS 8085 Processor- Q and A-1 BASIC CONCEPTS OF FLUID MECHANICS OSCILLATORS 8085 Processor- Q and A-2 Features of 8086 PUMPS AND TURBINES 8031/8051 MICROCONTROLLER Chemfet Transducers DIODES FIRST LAW OF THERMODYNAMICS METHOD OF STATEMENTS 8279 with 8086 HIGH VOLTAGE ENGINEERING OVERVOLATGES AND INSULATION COORDINATION Thermocouples 8251A to 8086 ARCHITECTURE OF 8031/8051 Angle-Beam Transducers DATA TRANSFER INSTRUCTIONS IN 8051/8031 INSTRUCTION SET FOR 8051/8031 INTEL 8279 KEYBOARD AND DISPLAY INTERFACES USING 8279 LOGICAL INSTRUCTIONS FOR 8051/8031 Photonic Transducers TECHNOLOGICAL TIPS THREE POINT STARTER 8257 with 8085 ARITHMETIC INSTRUCTIONS IN 8051/8031 LIGHTNING PHENOMENA Photoelectric Detectors Physical Strain Gage Transducers 8259 PROCESSOR APPLICATIONS OF HALL EFFECT BRANCHING INSTRUCTIONS FOR 8051/8031 CPU OF 8031/8051 Capacitive Transducers DECODER Electromagnetic Transducer Hall voltage INTEL 8051 MICROCONTROLLER INTEL 8251A Insulation Resistance Test PINS AND SIGNALS OF 8031/8051 Physical Transducers Resistive Transducer STARTERS Thermocouple Vacuum Gages USART-INTEL 8251A APPLICATIONs OF 8085 MICROPROCESSOR CAPACITANCE Data Transfer Instructions In 8086 Processors EARTH FAULT RELAY ELECTRIC MOTORS ELECTRICAL AND ELECTRONIC INSTRUMENTS ELECTRICAL BREAKDOWN IN GASES FIELD EFFECT TRANSISTOR (FET) INTEL 8257 IONIZATION AND DECAY PROCESSES Inductive Transducers Microprocessor and Microcontroller OVER CURRENT RELAY OVER CURRENT RELAY TESTING METHODS PhotoConductive Detectors PhotoVoltaic Detectors Registers Of 8051/8031 Microcontroller Testing Methods ADC INTERFACE AMPLIFIERS APPLICATIONS OF 8259 EARTH ELECTRODE RESISTANCE MEASUREMENT TESTING METHODS EARTH FAULT RELAY TESTING METHODS Electricity Ferrodynamic Wattmeter Fiber-Optic Transducers IC TESTER IC TESTER part-2 INTERRUPTS Intravascular imaging transducer LIGHTNING ARRESTERS MEASUREMENT SYSTEM Mechanical imaging transducers Mesh Current-2 Millman's Theorem NEGATIVE FEEDBACK Norton's Polarity Test Potentiometric transducers Ratio Test SERIAL DATA COMMUNICATION SFR OF 8051/8031 SOLIDS AND LIQUIDS Speed Control System 8085 Stepper Motor Control System Winding Resistance Test 20 MVA 6-digits 6-digits 7-segment LEDs 7-segment A-to-D A/D ADC ADVANTAGES OF CORONA ALTERNATOR BY POTIER & ASA METHOD ANALOG TO DIGITAL CONVERTER AUXILIARY TRANSFORMER AUXILIARY TRANSFORMER TESTING AUXILIARY TRANSFORMER TESTING METHODS Analog Devices A–D BERNOULLI’S PRINCIPLE BUS BAR BUS BAR TESTING Basic measuring circuits Bernoulli's Equation Bit Manipulation Instruction Buchholz relay test CORONA POWER LOSS CURRENT TRANSFORMER CURRENT TRANSFORMER TESTING Contact resistance test Current to voltage converter DAC INTERFACE DESCRIBE MULTIPLY-EXCITED Digital Storage Oscilloscope Display Driver Circuit E PROMER ELPLUS NT-111 EPROM AND STATIC RAM EXCITED MAGNETIC FIELD Electrical Machines II- Exp NO.1 Energy Meters FACTORS AFFECTING CORONA FLIP FLOPS Fluid Dynamics and Bernoulli's Equation Fluorescence Chemical Transducers Foil Strain Gages HALL EFFECT HIGH VOLTAGE ENGG HV test HYSTERESIS MOTOR Hall co-efficient Hall voltage and Hall Co-efficient High Voltage Insulator Coating Hot-wire anemometer How to Read a Capacitor? IC TESTER part-1 INSTRUMENT TRANSFORMERS Importance of Hall Effect Insulation resistance check Insulator Coating Knee point Test LEDs LEDs Display Driver LEDs Display Driver Circuit LM35 LOGIC CONTROLLER LPT LPT PORT LPT PORT EXPANDER LPT PORT LPT PORT EXTENDER Life Gone? MAGNETIC FIELD MAGNETIC FIELD SYSTEMS METHOD OF STATEMENT FOR TRANSFORMER STABILITY TEST METHODS OF REDUCING CORONA EFFECT MULTIPLY-EXCITED MULTIPLY-EXCITED MAGNETIC FIELD SYSTEMS Mesh Current Mesh Current-1 Moving Iron Instruments Multiplexing Network Theorems Node Voltage Method On-No Load And On Load Condition PLC PORT EXTENDER POTIER & ASA METHOD POWER TRANSFORMER POWER TRANSFORMER TESTING POWER TRANSFORMER TESTING METHODS PROGRAMMABLE LOGIC PROGRAMMABLE LOGIC CONTROLLER Parallel Port EXPANDER Paschen's law Piezoelectric Wave-Propagation Transducers Potential Transformer RADIO INTERFERENCE RECTIFIERS REGULATION OF ALTERNATOR REGULATION OF THREE PHASE ALTERNATOR Read a Capacitor SINGLY-EXCITED SOLIDS AND LIQUIDS Classical gas laws Secondary effects Semiconductor strain gages Speaker Driver Strain Gages Streamer theory Superposition Superposition theorem Swinburne’s Test TMOD TRANSFORMER TESTING METHODS Tape Recorder Three-Phase Wattmeter Transformer Tap Changer Transformer Testing Vector group test Virus Activity Voltage Insulator Coating Voltage To Frequency Converter Voltage to current converter What is analog-to-digital conversion Windows work for Nokia capacitor labels excitation current test magnetic balance voltage to frequency converter wiki electronic frequency converter testing voltage with a multimeter 50 hz voltages voltmeter

Search More Posts

Followers