Application Note. 8051 Microcontrollers. Guidelines to Keep ADC Resolution within Specification. Introduction. ADC Resolution



Similar documents
Tag Tuning/RFID. Application Note. Tag Tuning. Introduction. Antenna Equivalent Circuit

8-bit RISC Microcontroller. Application Note. AVR182: Zero Cross Detector

How to Calculate the Capacitor of the Reset Input of a C51 Microcontroller 80C51. Application Note. Microcontrollers. Introduction

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

8-bit Microcontroller. Application Note. AVR222: 8-point Moving Average Filter

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

Quick Start Guide. CAN Microcontrollers. ATADAPCAN01 - STK501 CAN Extension. Requirements

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8-bit RISC Microcontroller. Application Note. AVR236: CRC Check of Program Memory

AT91 ARM Thumb Microcontrollers. Application Note. Interfacing a PC Card to an AT91RM9200-DK. Introduction. Hardware Interface

8-bit Microcontroller. Application Note. AVR314: DTMF Generator

8-bit Microcontroller. Application Note. AVR201: Using the AVR Hardware Multiplier

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary

Application Note. C51 Bootloaders. C51 General Information about Bootloader and In System Programming. Overview. Abreviations

AVR106: C functions for reading and writing to Flash memory. 8-bit Microcontrollers. Application Note. Features. Introduction

General Porting Considerations. Memory EEPROM XRAM

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

AT89C5131A Starter Kit... Software User Guide

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR245: Code Lock with 4x4 Keypad and I2C LCD. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

AVR120: Characterization and Calibration of the ADC on an AVR. 8-bit Microcontrollers. Application Note. Features. Introduction

8-bit Microcontroller. Application Note. AVR105: Power Efficient High Endurance Parameter Storage in Flash Memory

8-bit Microcontroller. Application. Note. AVR204: BCD Arithmetics. Features. Introduction. 16-bit Binary to 5-digit BCD Conversion bin2bcd16

AVR241: Direct driving of LCD display using general IO. 8-bit Microcontrollers. Application Note. Features. Introduction AVR

AVR442: PC Fan Control using ATtiny13. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR034: Mixing C and Assembly Code with IAR Embedded Workbench for AVR. 8-bit Microcontroller. Application Note. Features.

AT91 ARM Thumb Microcontrollers. AT91SAM CAN Bootloader. AT91SAM CAN Bootloader User Notes. 1. Description. 2. Key Features

AVR32110: Using the AVR32 Timer/Counter. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

How To Prevent Power Supply Corruption On An 8Bit Microcontroller From Overheating

AVR32100: Using the AVR32 USART. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.

Application Note. USB Mass Storage Device Implementation. USB Microcontrollers. References. Abbreviations. Supported Controllers

USB 2.0 Full-Speed Host/Function Processor AT43USB370. Summary. Features. Overview

8-bit RISC Microcontroller. Application Note. AVR155: Accessing an I 2 C LCD Display using the AVR 2-wire Serial Interface

ATF15xx Product Family Conversion. Application Note. ATF15xx Product Family Conversion. Introduction

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

AVR2004: LC-Balun for AT86RF230. Application Note. Features. 1 Introduction

Application Note. Migrating from RS-232 to USB Bridge Specification USB Microcontrollers. Doc Control. References. Abbreviations

Two-wire Automotive Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 (1) AT24C16 (2)

AVR040: EMC Design Considerations. 8-bit Microcontrollers. Application Note PRELIMINARY. Scope. 1 Introduction

USB Test Environment ATUSBTEST- SS7400. Summary

All-band AM/FM Receiver and Audio Amplifier IC U2510B

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary. Features. Applications. 1. Description

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

8-bit Microcontroller. Application Note. AVR461: Quick Start Guide for the Embedded Internet Toolkit. Introduction. System Requirements

AVR444: Sensorless control of 3-phase brushless DC motors. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

2-wire Serial EEPROM AT24C1024. Advance Information

2-Wire Serial EEPROM AT24C32 AT24C64. 2-Wire, 32K Serial E 2 PROM. Features. Description. Pin Configurations. 32K (4096 x 8) 64K (8192 x 8)

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Impedance Matching and Matching Networks. Valentin Todorow, December, 2009

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

UNDERSTANDING AND CONTROLLING COMMON-MODE EMISSIONS IN HIGH-POWER ELECTRONICS

Two-wire Serial EEPROM AT24C1024 (1)

PL-277x Series SuperSpeed USB 3.0 SATA Bridge Controllers PCB Layout Guide

DIP Top View VCC A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 I/O0 I/O1 I/O2 GND A17 A14 A13 A8 A9 A11 A10 I/O7 I/O6 I/O5 I/O4 I/O3. PLCC Top View VCC A17

80C51 MCU s. Application Note. Analyzing the Behavior of an Oscillator and Ensuring Good Start-up. Oscillator Fundamentals

Application Note, Rev.1.0, September 2008 TLE8366. Application Information. Automotive Power

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Tire pressure monitoring

Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.

Application Note. 8-bit Microcontrollers. AVR091: Replacing AT90S2313 by ATtiny2313. Features. Introduction

AN2834 Application note

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note AN:005. FPA Printed Circuit Board Layout Guidelines. Introduction Contents. The Importance of Board Layout

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

256K (32K x 8) OTP EPROM AT27C256R 256K EPROM. Features. Description. Pin Configurations

AVX EMI SOLUTIONS Ron Demcko, Fellow of AVX Corporation Chris Mello, Principal Engineer, AVX Corporation Brian Ward, Business Manager, AVX Corporation

This application note is written for a reader that is familiar with Ethernet hardware design.

Printed-Circuit-Board Layout for Improved Electromagnetic Compatibility

AN2866 Application note

IC-EMC Simulation of Electromagnetic Compatibility of Integrated Circuits

EM Noise Mitigation in Circuit Boards and Cavities

AND8326/D. PCB Design Guidelines for Dual Power Supply Voltage Translators

8-bit Microcontroller. Application Note. AVR410: RC5 IR Remote Control Receiver

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note, V 2.2, Nov AP32091 TC1766. Design Guideline for TC1766 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

Application Note 58 Crystal Considerations with Dallas Real Time Clocks

PCB Design Conference - East Keynote Address EMC ASPECTS OF FUTURE HIGH SPEED DIGITAL DESIGNS

AN1636 APPLICATION NOTE

Precision Analog Designs Demand Good PCB Layouts. John Wu

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

A NEAR FIELD INJECTION MODEL FOR SUSCEPTIBILITY PREDICTION IN INTEGRATED CIRCUITS

AP Microcontroller. EMC Design Guidelines for Microcontroller Board Layout. Microcontrollers. Application Note, V 3.

How To Design An Ism Band Antenna For 915Mhz/2.4Ghz Ism Bands On A Pbbb (Bcm) Board

Push-Pull FET Driver with Integrated Oscillator and Clock Output

Application Note. 8-bit Microcontrollers. AVR280: USB Host CDC Demonstration. 1. Introduction

Figure 1. Core Voltage Reduction Due to Process Scaling

AT86RF230 (2450 MHz band) Radio Transceiver... User Guide

Table of Contents. Section 1 Introduction Section 2 Getting Started Section 3 Hardware Description

ATE-A1 Testing Without Relays - Using Inductors to Compensate for Parasitic Capacitance

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

Understanding Power Impedance Supply for Optimum Decoupling

8-bit RISC Microcontroller. Application Note. AVR335: Digital Sound Recorder with AVR and DataFlash

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

Application Note. 8-bit Microcontrollers. AVR307: Half Duplex UART Using the USI Module

Signal Integrity: Tips and Tricks

" PCB Layout for Switching Regulators "

Step Motor Controller. Application Note. AVR360: Step Motor Controller. Theory of Operation. Features. Introduction

Transcription:

Guidelines to Keep ADC Resolution within Specification Introduction This application note describes how to optimize the ADC hardware environment in order not to alter the intrinsic ADC resolution and to provide the best overall performance. Indeed, the resolution depends on both the ADC intrinsic noise and noise transmitted by an external environment such as package impedances, power-supply networks, de-coupling networks, loops and antennas. Some electromagnetic mechanisms have to be known in order to improve immunity against radiated and conducted emissions. The environment noise level of a digital product is typically equal to ± 50 mv. The resolution of 10-bit ADC is 4.88 mv for a 5V voltage reference. Without any precaution up to four bits can be lost, thus degrading the ADC from 10-bit to 6-bit. 8051 Microcontrollers Application Note ADC Resolution Two classes of noise can be defined in the ADC. The first is due to the conversion process called quantization and the second one is due the noise coming from the external environment of the electronic system. Rev.

Quantization Noise The ADC operation is an analog to digital conversion which translates an analog signal into a number called a digital sample as shown in Figure 1. Figure 1. Analog to Digital Process vain(t) E Analog to Digital Converter vaind(t) N Q = ----------- N Digital samples 0 0 t Continuous Signal Discret Signal t This process is needed each time a continuous signal (analog) has to be handle by a digital system such as a computer. It can compute only discrete signals (digital). A continuous signal has an infinity of values. A discrete signal has only a finite number of values. A digital sample is an approximation of the continuous value. This approximation depends on the number of digital values that vain can take per sample. In other words it depends on the bit number used to code vain in digital format. The higher the number of bits, the better the approximation. Table 1. Coding Format Number of bit 6 8 10 12 Number of digital value 64 256 1024 4096 Q(mV), = 5V 78.12 19.53 4.88 1.22 The quality of this approximation is defined as the ADC resolution. The higher the number of bits, the better the resolution. The resolution can be expressed in voltage and it corresponds to the smaller voltage which can be translated by the ADC. This minimum voltage is called voltage step or quantum (Q). It depends on the converter voltage reference () and the combination number (N): Q = ----------- N Q which characterizes the conversion accuracy and is equal to ± 1/2 LSB. This conversion process is the first source of noise called RMS quantization noise vn. It is shown in Figure 2 and is equal to: vn( V) q = ---------- 12 2

Figure 2. The ADC Operation Adds Noise Quantization vin(f) vind(f) Q = N ADC vn = q ---------- 12 f f Table 2 shows the quantum value and the quantization noise level according to the number of bits. Table 2. Quantum and Quantization Noise Levels According to the Bit Number Number of bit 12 10 8 6 Q (mv) 1.22 4.88 19.53 7812 vn (mv RMS) 0.35 1.4 5.66 22.55 All values less than vn cannot be converted because they are in the ADC noise floor. External Noise Sources All the radiated and conducted emissions coupled to the vain and vref inputs can degrade the ADC resolution. Figure 3 shows three kinds of potential noise sources: the noise transmitted by the power-supply is totally rejected and a part of it is coupled to the ADC inputs, IO pins close to the ADC inputs are coupled through the package and a part of the switching current is transmitted to these ADC pins, radiated emissions are coupled to the ADC pins by the PCB tracks, loops and antennas. Figure 3. System Noise Floor Affects the Resolution Electromagnetic sources Power-supply Vain/ ADC I/O pin crosstalk 3

Figure 4 illustrates the ADC resolution degradation when the external noise is not rejected enough. In this example the ADC has 12 bits and the RMS quantization noise level is 0.35 mv. Figure 4. External Noise Degrades the 12-bit Converter Down to 9-bits vain(f) External noise 10 mv 0.35 mv Quantization noise f The overall external noise level is evaluated at 10 mv and the number of bits lost is: 10mV 2 N ---------------------- log--------------------- 10mV 1, 22mV 122mV, = 2, N = ------------------------------ = 3 log2 The ADC resolution is degraded and the new resolution is 9-bits instead of 12-bit. This example shows it is important to lower all the noise sources and to reduce all the coupling mechanisms in the electronic system in order to keep the ADC resolution in the specification. This application note describes how to locate and to lower all these disturbances. Basic Checklist For ADC Resolution Optimization Some items have to be checked in order to keep the ADC resolution within specification: Analyze and locate noise sources and coupling mechanisms, Select the appropriate power-supply networks, Use the de-coupling Strategy described inside, Use the smaller package, Use a package with separate power-supply Pins, Use separate analog and digital ground planes. Noise Sources and Coupling Mechanisms Typical ADC Application Description Figure 5 shows a typical ADC application. The IC0 is an Atmel microcontroller including an ADC with an analog input (Ain) and a voltage reference input (). 4

Figure 5. Typical ADC Application VDD Cap1 Cap0 IC4 IC1 Sensor C1 C0 IO Ain IC0 C2 IC2 C3 IC3 A sensor is connected to Ain and an external voltage reference to. The IC1 is controlled by the IC0 IO pin. The IC2 and the IC3 are two external devices and one of the PCB connections is routed close to the connection. The IC4 shares the common VDD. Noise Source and Coupling Mechanism Analysis Conducted Mode Analysis Figure 6 describes the main noise sources and the main coupling mechanisms in conducted mode and how they can influence the ADC resolution. These are detailed below: vn4: this noise is generated by all IC activities and is transmitted to the powersupply rails, vn3,vn2: this noise is generated by the internal logic activities and through the packaging impedances, vn1: a current flowing through the PCB connection from the IC2 to the IC3, induces a current and then the voltage drop vn1 which is transmitted to the input of the ADC comparator by magnetic coupling with the C2 connection, vn0: The IC0 generates a signal on the IO pin. There is a magnetic coupling of the package between the IO and the Ain pin. The current flowing into the IO pin induces a current due to the magnetic coupling into the Ain pin and causes the voltage drop vn0 on this pin. The combination of all these noise sources can affect the overall ADC resolution. An ADC operation is based on a voltage comparison between an analog signal and a programmable voltage reference. This comparison process is done until both comparator inputs are equal. The result is an integer value which reflects the analog value. If a noise is injected in one of both inputs the comparator result is affected and the digital value is corrupted by this noise. If the same noise is injected in both inputs, in differential, the noise contribution will be cancelled and the digital result will not be affected (common mode). 5

Figure 6. Noise Sources and Coupling Mechanisms Power-Supply & De-coupling Networks VDD vn4 IC4 IC0 PCB connections IC1 C0 Sensor C1 IO Ain k0 vn0 + ADC vn2 I.C Logic Block C2 - k1 k vn1 vn3 C3 Die IC2 ilogic Package Printed Circuit Board IC3 Radiated Mode Analysis In this mode the PCB layout has to be checked in order to find the loops and wires that can act like antennas. In Figure 7 a PCB lay-out is given around the Ain input. Figure 7. Loops and Wires Have to be Analyzed to Protect Them Against Electromagnetic Fields E / H E / H IO Ain IC0 Rg IC0 Zin This topology can be: a loop, if RG+Zin is low compared to the loop impedance (typically 100Ω), an antenna, if RG+Zin is high compared to the loop impedance. 6

The PCB connection impedance varies according to the frequency as shown in Figure 8. In some bands the topology acts like an antenna and in other bands the topology acts like a loop. The topology impedance depends on: nature and thickness of the dielectric (epoxy, glass, ceramic,...), the PCB track size (width, length,...), the PCB structure (ground plane or not, power plane or not,...). Conclusions Noise Optimization Power-Supply and Decoupling Networks Power-Supply Network PCB Tracks The general concept to have the best ADC resolution is to lower the amplitude of all the noise sources. The power-supply network is the major contributor and its impedance has to be lowered to the minimum in the frequency band of the component. The coupling mechanisms have to be reduced and the connection impedance has to be lowered too. To reduce the noise level of the overall system and obtain the best ADC resolution, each contributor has to be optimized. This chapter discusses how to optimize the noise sources (power-supply network and de-coupling network) and the coupling mechanisms (package). The power-supply network is a major contributor for the noise generation and it is important to maintain its impedance low especially in the frequency bands where the system operates. The de-coupling network helps to reduce this impedance in the frequency band where the IC operates (see application note ANM85). Several topologies can be used to implement the power-supply. The impedance across power pins can vary from a few ohms to a hundred ohms: PCB tracks, One layer for ground and PCB tracks for the power, Double layers for ground and power. The choice of the topology is led by the price, the operation frequency and the protection against the internal and external disturbances. When there is no constraint in terms of emission and/or immunity, simple PCB tracks can be used to power the application. A double layer connection is advised when the system operates in high frequency and when the system is in a disturbed environment. To analyze the influence of the topology on the connection inductance, the path of the return current has to be taken into account to calculate the global inductance of the PCB connection. A connection can be modelized by a RL model as it is shown in Figure 8. In low frequency the connection is a pure resistor and in high frequency it is an inductance. The wider the PCB trace width, the lower the inductance. 7

Figure 8. A PCB Connection is an RL Model d Z(f) Ω PCB Trace width, L = 10cm Resistance(ohm) Inductance(nH) 0.1mm 1mm 1cm 0.944 0.094 0.009 340 258 168 L d = 0.1mm e: PCB trace thickness in mm, d: PCB trace width mm, L: PCB length in m. e = 36µm for typical PCB LT RT d = 1mm d = 1cm One layer for Ground and PCB Tracks for the Power If the PCB connection is too inductive, a ground layer allows to lower the inductance value of the return current. A PCB connection is typically 5nH/cm and 0.8nH/cm for a ground plane layer. Figure 9. A Ground Layer Lowers the Inductance Value of the PCB Connection w i L(nh/cm) w = 10cm, wt = 1mm l LTrace LPlane wt LT = LTrace + LPlane h h(mm) Figure 9 gives both inductance values for the PCB connection implemented above a ground plane and the inductance of the ground plane. Double Layers for Ground and Power If the inductance is still too large, a double plane has to be used. The inductance for both Vss and Vdd plane is around 2.5 ph/cm. 8

Figure 10. A Double Copper Plane is the Lowest Inductance Topology VCC plane LVss(nH/cm) LVcc(nH/cm) l = 10cmw = 10cm l w VSS plane h LPCB = LVcc+LVss h(mm) Figure 10 plots the inductance value of the VCC and VSS ground planes according to the PCB thickness. It is the best topology to reduce the emission levels and to improve the immunity. Comparison Between the Three Cases Described Above Table 3 gives a comparison between all the three configurations analyzed above. Table 3. Comparison of the PCB inductance for w=1mm, wt=10cm, l=10cm, h=1.6mm Vcc PCB trace Vss PCB trace Vcc PCB trace Vss plane Vcc Plane Vss Plane Inductance (nh) 115 + 115 = 230 51 + 0.8 = 51.8 0.025 + 0.025 = 0.05 Capacitance (pf) 5 pf 20 pf 271 pf The global inductance of a PCB connection with its return current connection is 406 higher than its equivalent double plane topology. De-coupling Network The role of the de-coupling network is to stabilize a power-supply network and to lower the power impedance in the operation frequency bands of the system by: maintaining a low impedance across the power-supply pins of ICs in the frequency range of operation, stabilizing the connections on the wiring connected between the power-supply equipment and the electronic system equipment. Figure 11. Capacitor Impedance According to the Frequency ESL Capacitor Resistance Inductor C C = 100nH ESL = 10nH ESR ESR = 0.2oHm 9

The de-coupling network uses some de-coupling capacitors. The impedance of a pure capacitor decreases when the frequency increases. But a capacitor is not a pure one. It consists of some parasitic elements such as an inductor (ESL) and a resistor (ESR). So the capacitor model is a RLC circuit. The behavior of such a model according to the frequency is shown in Figure 11. The equivalent inductance is the sum of the intrinsic inductance of the capacitor and the inductance of the connection. Table 4 shows the RLC model for different capacitor technologies. Table 4. Capacitor Characteristics Comparison 1µF Tantale 100nF Ceramic 10nF Ceramic R 0.08 0.1 0.15 L(nH) 1.5 1.5 1.5 Fr(MHz) 2 7.1 29 Figure 12 plots the capacitor impedance according to the frequency and the capacitor values. Figure 12. The Capacitor Impedance is According to the Capacitor Values 1. 10 4 10 3 1. 10 3 100nF Ceramic Z1 ( f ) Z2Z(f) ( f ) Ω Z3 ( f ) 100 10 1 10nF Ceramic 0.08 0.1 1µF tantale 0.01 1. 10 4 1. 10 5 1. 10 6 1. 10 7 1. 10 8 Figure 13 plots the capacitor impedance according to the connection length between the capacitor and the power pins. The longer the connection, the higher the inductance. The resonance varies from 7 MHz to 30 MHz when the connection length varies from 0 to 5cm. 10

Figure 13. The Capacitor Impedance According to the Connection Length Z(f) Ω No connection 1cm 5cm Vias are often used to connect capacitors to the ground are to the power planes. A via has a typical inductance value of 1 nh. Figure 14 shows a way to reduce the impedance by putting several identical capacitors in parallel. Figure 14. Several Identical Capacitors Helps to Lower the Impedance Value 1 x 10nF 2 x 10nF 4 x 10nF De-coupling Strategy The role of de-coupling capacitors is to maintain a low impedance across ICs. A digital IC works synchronously to a clock and therefore most of the dynamic currents are synchronized to that one. A de-coupling capacitor has to be tuned around that clock frequency in order to short-circuit the disturbance synchronous to the clock. To do this, the RLC model of the connection taken between the VDD and the VSS pins has to evaluated. The equivalent inductance is the sum of LC, LP2 and LP1. 11

Figure 15. Electrical Model of the Basic de-coupling Network VDD IC0 IO Ain VSS LP1 LP2 C VDD VSS PCB LP1 LP2 C LC If the clock frequency is F0, then the de-coupling capacitor can be evaluated by the formula shown below: C 1 = ---------------------------------------------------------------------------------------- ( 2 π F0) 2 ( LP1 + LP2 + LC) The parasitic inductances depend on the de-coupling capacitor types and the PCB topology chosen. For example, the capacitor is a SMD type and the intrinsic inductance is 6 nh. The PCB has no power planes, the PCB connection inductances are 10 nh/cm and the total connection length is 5cm, therefore LP1+LP2 = 50 nh. The clock is 12 MHz and C is equal to 3.3 nf. Figure 16 plots the impedance for a 3.3nF capacitor and the 56nH parasitic inductance. This capacitor value ensures a minimum of impedance around the 12 MHz clock frequency. The fast digital currents are frequently a broad band signal and it is necessary to maintain a low impedance until the 100 MHz band. To do this, some de-coupling capacitors are added and if the double power plane topology is chosen a pure HF capacitor should be added. The values are evaluated on the third overtones of the clock frequency but should be adapted to the shape of the VDD current. Figure 16. Frequency Response of the Power-supply Network 1. 10 4 1.10 3 Z( f) 100 10 VDD 25nH 6nH 3.3nF 1 0.6 25nH VSS 0.1 1. 10 6 1. 10 7 1. 10 8 1. 10 9 1. 10 10 f F(Hz) 12

PCB Track Topology Figure 17 plots the network impedance based on the rule mentioned above. The decoupling capacitors are connected to the VDD and the VSS pins by two PCB tracks. The de-coupling capacitor values are given in Table 5. vdd = Zp VDD ----------------------------- ZP + Zpow Table 5. De-coupling Capacitor Values 100 khz 12 MHz 36 MHz 60 MHz C0 = 47 µf C1 = 3.3 nf C2 = 330 pf C3 = 120 pf Figure 17. Power-supply Network Impedance for PCB Connections Without Ground Plane 87.783 100 VDD 25nH 6nH x 4 ZT ( f ) 10 1 VSS 25nH 47mF 3.3nF 330pF120pF 0.6 x 4 0.581 0.1 1.10 5 1.10 6 1.10 7 1.10 8 1.10 9 1 10 5 F(Hz) f 9.997 10 8 The impedance is maintained below 30Ω from 100 khz to 100 MHz. With such a topology, it will be impossible to lower the impedance more above 200 MHz because the inductance connection causes a high impedance in the VHF/UHF band. At 1 GHz the impedance is below 80Ω. One Ground Plane Layer and PCB Tracks Figure 18 plots the impedance network for ground plane topology and for the de-coupling capacitors given in Table 6. Table 6. De-coupling Capacitor Values 100 KHz 12 MHz 36 MHz 60 MHz C0 = 100 µf C1 = 6.8 nf C2 = 820 pf C3 = 270 pf 13

Figure 18. Power-supply Network Impedance for a Ground Plane Topology 40.756 100 VDD 25nH 6nH x 4 ZT ( f ) 10 VSS 50pH 100µF 6.8nF 820pF 270pF 1 0.6 x 4 0.536 0.1 1. 10 5 1. 10 6 1. 10 7 1. 10 8 1. 10 9 1 10 5 F(Hz) f 9.997 10 8 The impedance is maintained below 6Ω from 100 khz to 100 MHz. Compared to the first topology, this ground plane divides the network impedance by five. As the first topology it will be impossible to reduce the impedance more in the VHF/UHF band. At 1 GHZ the impedance is below 40Ω. Double Layers for VDD and VSS Figure 19 plots the impedance network for ground plane topology and for the de-coupling capacitors given in Table 7. The PCB capacitor is efficient in high frequency and not in low frequency because in this range the impedance is too high. It is necessary to have additional de-coupling capacitors. Table 7. De-coupling Capacitor Values 100 KHz 12 MHz 36 MHz 60 MHz PCB capacitor C0 = 470 µf C1 = 33 nf C2 = 3.3 nf C3 = 1.2 nf 270 pf Figure 19. Power-supply Network Impedance for a Double Plane Topology 11.061 100 VDD 50pH 6nH x 4 10 470mF33nF 3.3nF 1.2nF 270pF ZT ( f ) 1 50pH VSS 0.6 x 4 0.357 0.1 1.10 5 1.10 6 1.10 7 1.10 8 1.10 9 1 10 5 F(Hz) f 9.997 10 8 The impedance is maintained below 1 ohm between 100 khz to 100 MHz. Thanks to the capacitor built with the double plane of the PCB, the impedance in the VHF/UHF band in reduced down to 10Ω. This topology lowers the resistance and the inductance to the minimum. 14

Package Type The package is the second major contributor and contributes to increasing the noise level. The package is similar to an impedance and is a load to the power-supply network as it is shown in Figure 20. The voltage variation across the package depends on Zpow(f) and Zp(f): The lower the package impedance, the lower the vdd variation. Figure 20. The Package Impedance Increases the Noise Level vdd Zpow vdd Power-Supply Power-supply Network & De-coupling Network Zp(f) vss Zp vss The package connection consists of a lead-frame (package lay-out) and bond-wires. The power-supply pins act as a magnetic loop or as an antenna. The bigger the package, the higher the Q factor thus the impedance Figure 21. Package Impedance According to the Package Type and Frequency LP LP Z(f) Ω DIL LP DIL LP PLCC PLCC COB Package PLCC DIL LP 6nH 20nH COB 2nH F(Hz) Figure 21 plots the impedance and the Q factor for three package types. Therefore it is recommended to use the smallest package in order to reduce the impedance and the topology antenna in the frequency band where the electronic system works. 15

Power-Supply Pin Configurations Two kinds of configuration for the ground pin can be found and are shown in Figure 22. The first one has two separate pins (Figure 22.a), one for the analog and one for the digital. The second one has only one ground pin (Figure 22.b). Figure 22. Power-Supply Pin Configurations Vcca Vdd Ain Ainx ADC Logic ADC Vcca Logic Vdd a) Vssa Vss b) Vss To evaluate the performance of these configurations, the voltage difference between the Ain and inputs has to be evaluated. Indeed, the conversion process translates this voltage difference. The noise affects the conversion result only if both inputs don t receive the same noise level value. Common Ground pin In this configuration shown in Figure 23, there is a common ground pin for both analog and digital ground pins. Zp is the package impedance of the VSS pin. The package impedance of the Ain and inputs is shown in the electrical schematic. Zain and Zref are the input impedances of the ADC. Logic activities create large digital currents, idigital, which generate a noise level across the package impedance. The analog current, iadc, is negligible compared to idigital. Figure 23. Equivalent Electrical Schematic for a Common Ground Pin Rg Rref Ain Zain Zref Dvadc Vdd Logic Zain vain Dvadc vref Zref iadc idigital eg Zp vnoise Rg Rreg vnoise Vss Vss 16

The input voltage, vain and vref, can be expressed according to the noise source with vain = rg Rref vnoise -----------------------, vref = vnoise rg + Zain ----------------------------- Rref + Zref the formula shown below: The next formula is used to evaluate the voltage difference between vain et vref: Rg Rref vadc = vain vref = vnoise -------------------------- ----------------------------- Rg + Zain Rref + Zref Finally, to improve the ADC immunity, both terms shown below have to be equal: Rg -------------------------- Rg + Zain = Rref ----------------------------- Rref + Zref Typically, both sensor and voltage reference impedances as well as both vref and ain inputs have to be equal. In this case the noise generated by the digital activities does not affect the ADC resolution. Dedicated Analog and Digital Ground Pins In this configuration, the analog and digital grounds are separated. Zp is the package impedance of the Vss pin. The package impedance of the Ain and inputs as well as Vssa are not taken into account. Figure 24. Equivalent Electrical Schematic for Analog and Digital Ground Pins eg Rg Rref Ainx Zain Zref Dvadc Vdd Logic Rg Rreg vain Dvadc vref Vssa iadc idigital Vssa Zain Zref Shottky diode Zp Vss vnoise vnoise Vss With such a configuration, the switching noise is not transmitted to the ADC inputs and gives the best immunity. Two Shottcky diodes are inserted to prevent accidental voltage (DC, ESD,..) from developing between the two ground systems. 17

Conclusions The environment noise level of a digital product is typically equal to +/-50 mv. The resolution of a 10-bit ADC is 4.88 mv for a 5V voltage reference. Without any precaution, typically up to 4 bits can be lost, thus degrading the ADC from 10-bits to 6-bits. In other hand, keeping both the network and the IO interface impedance low allows to maintain a 9 to 10-bit resolution. This is why it is important to analyze and to optimize the powersupply and de-coupling networks as well as the IOs interfaces. References Controlling Radiated emissions by design, Michel Mardiguian, Chapman&Hall, Printed Circuit Board Design Techniques for EMC Compliance, Mark I.Montrose, IEEE Press, Noise Reduction Techniques In Electronics Systems, Henry W. Ott, Wiley Interscience. High-Speed Digital Design, Johson / Graham, PTRPH. High-Speed Signal Propagation, Johson / Graham, PTRPH. Application Note, ANM085, EMC Improvement Guidelines, Atmel-wm, Jean-Luc Levant 18

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Regional Headquarters Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel: (41) 26-426-5555 Fax: (41) 26-426-5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369 Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581 Atmel Operations Memory 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 Microcontrollers 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18 Fax: (33) 2-40-18-19-60 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00 Fax: (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000 Fax: (44) 1355-242-743 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel: (49) 71-31-67-0 Fax: (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00 Fax: (33) 4-76-58-34-80 Literature Requests www.atmel.com/literature Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel s products are not authorized for use as critical components in life support devices or systems. Atmel Corporation 2003. All rights reserved. Atmel is a registered trademark of Atmel Corporation or its subsidiaries. Other terms and product names may be the trademarks of others. Printed on recycled paper.