Applied Embedded Electronics study #1

Usually introductions to electronics include Ohm's Law, Kirchhoff's Current & Voltage Laws, and introductions to resistors, capacitors, and inductors. These are typically taught regarding ideal cases, in order to convey the basics, but this can fall short of the needs of real-world applications. The text I'm covering here, Applied Embedded Electronics by Jerry Twomey, works on an understanding that the reader understands most of the theoretical basics of electronics, and seeks to move quickly to the more practical aspects of embedded and high-frequency applications. The first section will skim the basics and draw attention to the less-than-ideal, though fully pragmatic aspects of components in real applications.

When do designers need to pay attention to the limitations of non-ideal devices? To decide this we need to build an awareness of common problems in applied electronics. To solve any problem, we must first accept that nothing is ideal.

Some Notes and a Compendium on the Basics

Many texts want to cover the basics. This is not the central goal here. Rather, the goal of this text is to focus on what is necessary to design a reliable electronic system. If you are familiar with the following concepts, you should have the background to work with the following material.

Short compendium:

Definitions for Current

Definitions for Voltage

Definitions for Charge

Definitions for Resistance & Conductance

Ohm's Law and Ohm's Law for Alternating Current

Power in Watts

Laws of Capacitance

Laws of Induction

Kirchhoff's Laws

Shorter Definitions:

Steady State DC System: A Steady State is when the operating condition of a circuit is constant. This doesn't mean that all current and voltage values are constant, but that their change is consistent, cyclical, and predictable. For example, a battery powered radio receiver can be said to be in a steady state while receiving from a station, since there is no drastic change after it is powered on, and circuit performance is predictable while processing a broadcast.

Steady State AC System: When a circuit is driven by sinusoidal power sources at a single frequency, the steady state voltages and currents are also sinusoidal, though at different phases and amplitudes from the power. Analysis in this kind of system is done with Phasors, which reduce to algebraic relationships rather than differential equations in time. This analysis is often used when planning power systems.

Transient Signals or Transient Response: This is the response or recovery of an electrical system from any disruption of its steady state. A transient disruption can originate internally or exogenously.

Decibels: The decibel is typcally used to describe power ratios, e.g. signal to noise in radio transmission. It also uses a logarithmic scale, where a positive change of 10dB represents a 10x increase in power. Some shorthand approximations include 3dB as a 2x change, and 6dB as a 4x change.

Time Domain vs. Frequency Domain: The most immediate example here is in how spectrograms display the frequency content of their reading. If a spectrogram is displaying in the frequency domain, you will see a graph of amplitudes for only the frequencies present in the spectrum at a given time. However, if it displays data in the time domain, we can observe a detailed history of changes in frequency amplitudes over time.

Fourier Series: The very base of the Fourier series and associated theorems is that a function, like a waveform, can be respresented as a sum of sinewaves or harmonics. An applicable example is a square wave. By taking the partial sum of relevant harmonics, the sum function gradually approaches a square wave. This concept is also used to perform the Fast Fourier Transform and take signals from their transmission domain (time or space) and display them in the frequency domain.

Harmonics: On a spectrogram, harmonics appear as positive integer multiples above the fundamental frequency, if that fundamental function is not a pure sinewave. These would appear as fainter lines or spikes on a graph, but these higher harmonics also produce the 'richness' of a signal, which is more easily demonstrable in the acoustic medium. A pure sinewave at A440 played by a speaker has no harmonics, and would appear as a single spike on a spectrogram, but the same pitch played by a violin would produce many additional harmonics, as the soundbox of the instrument resonates and projects these higher frequencies, and the action of the bow against the string creates more of a saw-tooth function, thus making a rich timbre rather than a pure sinewave.

LC Circuits: Also called Resonant Circuits, Tank Circuits, or Tuned Circuits, these consist only of an inductor and capacitor, and are used either to pick out the resonant frequency of the circuit, or to emit signals at a particular frequency. When picking a specific frequency out of a complex signal, their funcion is as a Bandpass Filter. They can also be configured as broader Low Pass or High Pass filters, only passing signals above or below a specific threshold.

RC Time Constant: This is the time-constant of a Resistor-Capacitor Circuit, and is equal to the product of the circuits resistance and capacitance. It is the time in seconds required to charge the capacitor through the resistor from zero up to roughly 62.3% of the applied voltage, or to discharge the capacitor through the resistor down to about 36.8% of the initial charge voltage. When calculating, the units for Resistance and Capacitance remain in Ohms and Farads respectively.

The Meat of the Chapter

Ideal Simplifications of Academic Theory

Modern electronic systems are primarily digital, but most design problems arise from the analog aspects of the same systems. These problems include noise, signal integrity, power stability, electromagnetic interference (EMI), and connection impedance. These can quickly render a system non-functional.

Digital systems are more tolerant to the listed problems, but they can still be broken by their analog limitations. The version of electronics and accompanying theory regularly taught can be thought of as first order models. They simplify some aspects to aid in understanding, but real 'second-order' effects can still affect real device performance. A more detailed model would aid engineers and result in better and more robust design. The techniques listed here are intended to deal with second order effects and to remedy them.

Interconnections

Even short pieces of wire can have significant intrinsic impedance. For example a 10cm segment of 24 AWG copper wire can have about 100nH (nano-Henrys) of inductance, 10 mili-Ohms (0.01Ω) of resistance, and capacitive coupling to its surroundings. In this example, the impedance and capacitance act as a low-pass filter in the surrounding environment for interference above the 300-400MHz range. This will also be sensitive to motion as capacitance will change as a function of the wire's position relative to the ground. [Tangent 1] A thicker wire can reduce resistance, parallel connections can reduce inductance (see ethernet and phone-line bundling) but overall inductance is not easily eliminated.

The analogous 10cm connection on a printed circuit board (PCB) will show very similar characteristics. Inductance is about the same as the wire, but there is more capacitance because the connection is tightly spaced over a ground plane (in standard fabricated PCBs). In this configuration the connection will start to act as a low pass filter for signals around 80-90MHz due to the increased capacitance. This connection would catch broadcast signals in the right position, and the other characteristics would not change with the positioning of the circuit.

The broad takeaway here is that every connection has some impedance and coupling to an outside environment.

Tangent 1: WHY exactly do these connections behave as low pass filters on ambient signals? The small 'parasitic' traits of the wire block higher-frequency noise above a cutoff frequency related to the combined traits, while lower frequencies can pass through. This is because the properties of the wire form a kind of 'wall' for the higher-frequency waves which stops or impedes their propagation.

When connecting things together in the next example, the impedance of the source, connection, and load influence how much signal loss happens. Signal loss and distortion get progressively more severe with longer connections and higher frequencies. Designs working under 50MHz and in boards smaller than a 10cm*10cm profile can ignore these phnomena and generally survive. High bandwidth, long distances, and non-PCB connections make interconnections a significant part of the design problem.

High frequency signals with lengthy connections are also subject to signal loss and transmission line characteristics. Again in a 10cm connection, current transits the wire in about 0.7 nanoseconds. Depending on the connection length and signal frequency, a poorly terminated line can also affect signal integrity.

Connection Impedance Transmission Line

Designers must consider transmission line effects when the signal wavelength becomes a significant portion of the connection distance. For a 10cm wire, keeping wavelengths under 1/10th the length of the wire would limit signals to 280MHz sinusoid. A digital signal would have several harmonics above the fundamental to be included, which further limits the capability of the connection. Termination impedance (Zterm) should match characteristic input impedance (Zii) of the line to minimize reflection on the line. In practical use, both ends are terminated to minimize both initial and residual incidences of reflection. Impedance matching, striplines, and high-integrity data-paths will be covered in later installments.

Tangent 2: Why do digital signals have harmonics? Any signal that is not a pure sinewave will have harmonics in a medium because that signal can be decomposed into multiple other frequencies. Even a pure sinewave can create harmonics in a medium, provided that related resonators are present.

Planar PCB Connections

A solid copper ground plane in a PCB will exhibit some resistance and inductance between given points. Current at any point will cause a local voltage transition relative to the rest of the ground plane. A surge of current into a ground plane is like a person jumping on a trampoline. The ground 'bounce' can be kept low by minimizing ground impedance and ground-surge magnitudes. It should be noted that there is not a single ideal ground. The voltage of a 'ground' can vary, both with proximity of current passage points and the dynamics of the current passing through the ground medium.

Power and Ground Impedance, Ground Bounce, Power Instability

Power and ground connections have impedance. A switched load in an electronic device causes power voltage to drop, and ground voltage to rise. The magnitude of this variance is affected by the connection impedance and the transient rate-of-change of current. Transient current can change with the resistance-variance of the load, as well as capaitance across the load. A proper design adjusts these variables to provide power/ground stability, enough to keep proper function. In most cases, a power-ground bounce can be made manageable with proper techniques, including power bypass filtering and PCB layout.

Impedance between Circuit Boards

Connections between boards will exhibit signal integrity problems across all connections. Surges on power/ground wires will cause voltage variance between the separated boards. This will cause noise on any ground-referenced signal relative to local ground. External effects like EMI or electrostatic discharge (ESD) can also corrupt signal. Special effort is necessary to 'clean up' noisy raw power entering a board. Data and signals must pass between boards in a way that is not dependent on local ground or power supply.

Sending a communication signal to multiple locations can cause phase errors between reception points. In this connection there can be ditributed connection impedance, lead length, and capacitive receiver load. These will produce 5 different received phases in the given example. This is a common problem in clock-tree distribution, especially given high clock frequencies, many destinations, and long distances.

Tangent 3: Clock-tree distribution is the method by which a clock signal is distributed from a source to sequential components in a system like an integrated circuit (IC). There are several architectures for building and implementing clock-trees, but these will be covered later.

Designers often neglect interconnection issues until problems arise, but by then an expensive redesign will be necessary. With high current, long connections, or high frequencies, interconnection issues must be considered throughout the design process.


Basic Components

Emphasis in this series is on more modern systems that will be mass produced. Axial-lead components and through-hole devices are minimized in this setting. Most components then will be the surface-mount type.

Capacitors

Surface Mount Mulilayer Capacitor

A surface-mount multi-layer capacitor has multple interleaved conducting and insulating layers. Actual capacitance is between adjacent plates. All plates carry some resistance, and interconnections have inductance. The distrubuted element model can be awkward to work with, so an equivalent model is generally sufficient and accurate.

The equivalent or lumped element model includes elements that model observed behavior. The device in the diagram has an Equivalent Series Inductance (ESL), Equivalent Series Resistance (ESR), a capacitor, and a leakage resistance. The main capacitor element can vary, mostly as a function fo temperature and applied voltage. Variability is due to the dielectric material between plates.

Depending on the application, some elements can be ignored, but in others they can limit device performance. Equivalent Series Inductance is important in radio-frequency circuits and high frequency power filters, but does not affect low-frequency performance. ESL with capacitance creates a self-resonant tuned circuit which limits the high-frequency response of the capacitor.

Leakage resistance is an issue when a capacitor is used to store a charge for an extended time. ESR manifests in circuits using high surge currents through a capacitor. The Surface Mount Technology Multi-Layer Ceramic Capacitor is used in the majority of modern PCB capacitors due to high reliability, low cost, and broad selection.

The tradeoffs of modern capacitors include:

  1. Capacitance per unit volume
  2. Max applied voltage (or breakdown voltage)
  3. Min/max operating temperature
  4. Temperature variation from nominal value
  5. Applied voltage variation from nominal value
  6. Aging variation from nominal value
  7. Nominal value accuracy
  8. Functional lifetime

These qualities are not mutually exclusive and there are multivariate interrelations between them.

SMT-MLCCs use several materials as dielectric. C0G, NP0 - capcitors designed for minimal temperature variance, minimal change from voltage bias. These sacrifice capacitance/volume in favor of high accuracy and stability. They are useful in tuned circuits and other applications that demand stability and accuracy.

X5R, X7R, Y5V, etc. - class 2 (see table) sacrifice voltage bias accuracy, thermal stability, in favor of greater capacitance per volume. Characteristics indicate minimum temp, maximum temp, value variance over temperature respectively.

  1. Example: X7R
  2. X: -55C - low temp
  3. Y: 125C - max temp
  4. R: +/- 15% - temp variance

These also have a DC voltage bias effect, or DC voltage charactaristic, which is a change in capacitance as a function of static applied DC voltage. Generally, capacitance decreases as bias voltage increases. Value can change up to 60% from rating. Capacitors with higher breakdown voltage have less DC bias effect for the same voltage change. This is useful if we dant to reduce voltage bias.

Non-MLCCs used in modern designs

Aluminum Electrolytic Capacitors (AEC) are used in DC power supply fiters, and in other needs as large capacitance, small volume, and low cost packages. Poor high-frequency response, due to high ESI, so AECs are not suitable for RF use. AEC high frequency response can be supplemented with MLCCs. Limited function lifetime, fussy about temperature, significant ESR.

Tantalum and Aluminum Polymer Capacitors: High reliability, high function lifetime, can also have short service life.

Important considerations when selecting capacitors:

  1. Nominal compnent value, fabrication tolerance
  2. Breakdown Voltage
  3. Package size
  4. Dieletric type, temp range & variance
  5. DC bias effect & variation due to bias voltage
  6. ESI, Self resonance frequency, high frequency applications
  7. ESR, where series resistance can effect performance
  8. Lifetime aging data

Resistors

High Frequency Resistor Model