AN2834 Application note
|
|
|
- Evelyn Robbins
- 9 years ago
- Views:
Transcription
1 Application note How to get the best ADC accuracy in STM32Fx Series and STM32L1 Series devices Introduction The STM32Fx Series and STM32L1 Series microcontroller families embed up to four advanced 12-bit ADCs (depending on the device). A self-calibration feature is provided to enhance ADC accuracy versus environmental condition changes. In applications involving analog-to-digital conversion, ADC accuracy has an impact on the overall system quality and efficiency. To improve this accuracy, you need to understand the errors associated with the ADC and the parameters affecting them. ADC accuracy does not depend on ADC performance and features alone, it depends on the overall application design around the ADC. This application note aims to help understanding of ADC errors and how to enhance ADC accuracy. It is divided into three main parts: a simplified description of ADC internal structure to aid understanding of ADC operation and related ADC parameters explanations of the different types and sources of ADC errors related to the ADC design and to external ADC parameters such as the external hardware design recommendations on how to minimize these errors, focusing on hardware and software methods This document applies to the products listed in Table 1 which are referred to as STM32x throughout this document. Table 1. Applicable products Product family Part numbers Microcontrollers STM32F0xx STM32F1xx STM32F2xx STM32F3xx STM32F4xx STM32L1xx September 2013 DocID15067 Rev 2 1/45
2 Contents Contents 1 ADC internal principle SAR ADC internal structure ADC errors ADC errors related to the ADC itself Offset error Gain error Differential linearity error Integral linearity error Total unadjusted error ADC errors related to its environment Reference voltage noise Reference voltage / power supply regulation External reference voltage parameters Analog input signal noise ADC dynamic range bad match for maximum input signal amplitude Effect of the analog signal source resistance Effect of source capacitance and parasitic capacitance of the PCB Injection current effect Temperature influence I/O pin crosstalk EMI-induced noise How to get the best ADC accuracy Reduce the effects of ADC-related ADC errors Minimize ADC errors related to external environment of ADC Reference voltage / Power supply noise minimization Reference voltage / Power-supply regulation Analog-input signal noise elimination Adding white noise or triangular sweep to improve resolution Matching the ADC dynamic range to the maximum signal amplitude Analog source resistance calculation Source frequency condition vs. source and parasitic capacitors Temperature-effect compensation /45 DocID15067 Rev 2
3 Contents Minimizing injection current Minimizing I/O pin crosstalk EMI-induced noise reduction PCB layout recommendations Component placement and routing Software methods to improve precision Averaging samples Digital signal filtering FFT for AC measurement ADC calibration Minimizing internal CPU noise High impedance source measurement ADC input stage problem Explanation of the behavior Minimizing added errors Source of described problem - ADC design Conclusion Revision history DocID15067 Rev 2 3/45 3
4 List of figures List of figures Figure 1. Basic schematic of SAR switched-capacitor ADC (example for 10-bit ADC) Figure 2. Sample state Figure 3. Hold state Figure 4. Step 1: Compare with VREF/ Figure 5. Step 2: If MSB = 1, then compare with ¾ VREF Figure 6. Step 2: If MSB = 0, then compare with ¼ VREF Figure 7. Positive offset error representation Figure 8. Negative offset error representation Figure 9. Positive gain error representation Figure 10. Negative gain error representation Figure 11. Differential linearity error representation Figure 12. Integral linearity error representation Figure 13. Total unadjusted error Figure 14. Input signal amplitude vs. ADC dynamic range Figure 15. Analog signal source resistance effect Figure 16. Analog input with R AIN, C AIN and C p Figure 17. Effect of injection current Figure 18. Crosstalk between I/O pins Figure 19. EMI sources Figure 20. Power supply and reference decoupling for 100- and 144-pin packages Figure 21. Power supply decoupling for 36-, 48- and 64-pin packages Figure 22. Simple quasi-triangular source using a microcontroller output Figure 23. Selecting the reference voltage Figure 24. Preamplification Figure 25. Worst case error: V AIN = V REF Figure 26. Recommended values for R AIN and C AIN vs. source frequency F AIN Figure 27. Crosstalk between I/O pins Figure 28. Shielding technique Figure 29. Separating the analog and digital layouts Figure 30. Separating the analog and digital supplies Figure 31. Typical voltage source connection to ADC input Figure 32. Noise observed on ADC input pin during ADC conversions Figure 33. ADC simplified schematic of input stage - sample and hold circuit Figure 34. ADC input pin noise spikes from internal charge during sampling process Figure 35. Effect of sampling time extension Figure 36. Charging the external capacitor with too short time between conversions Figure 37. Implementation of sampling switch Figure 38. Parasitic capacitances of sampling switch Figure 39. Parasitic current example inside ADC structure /45 DocID15067 Rev 2
5 ADC internal principle 1 ADC internal principle 1.1 SAR ADC internal structure The ADC in STM32x microcontrollers uses the SAR (successive approximation register) principle, by which the conversion is performed in several steps. The number of conversion steps is equal to the number of bits in the ADC converter. Each step is driven by the ADC clock. Each ADC clock produces one bit from result to output. ADC internal design is a switched-capacitor type. The following figures (Figure 1 to Figure 6) explain the principle of ADC operation. The example given below shows only the first steps of approximation but the process continues till the LSB is reached. Figure 1. Basic schematic of SAR switched-capacitor ADC (example for 10-bit ADC) V IN Sa V REF S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 C C/2 C/4 C/8 C/16 C/32 C/64 C/128 C/256 C/512 C/512 Sb A D PR Q ADC Data CLK CLR ADC Clk ai Basic ADC schematic with digital output. DocID15067 Rev 2 5/45 44
6 ADC internal principle Figure 2. Sample state V IN Sa V REF S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 C C/2 C/4 C/8 C/16 C/32 C/64 C/128 C/256 C/512 C/512 Sb A D PR Q CLK ADC Data CLR ADC Clk Equivalent circuit: V IN 2C V COMP = 0 A ai Sample state - capacitors are charging to V IN voltage. Sa switch to V IN, Sb switch closed during sampling time. Figure 3. Hold state V IN Sa V REF S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 C C/2 C/4 C/8 C/16 C/32 C/64 C/128 C/256 C/512 C/512 Sb A D PR Q CLK ADC Data CLR ADC Clk 2C V COMP = V IN Equivalent circuit: A 1. Hold state - input is disconnected - capacitors hold input voltage. Sb switch is open, then S1-S11 switched to ground and Sa switched to V REF. ai /45 DocID15067 Rev 2
7 ADC internal principle V IN Figure 4. Step 1: Compare with V REF /2 Sa V REF S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 C C/2 C/4 C/8 C/16 C/32 C/64 C/128 C/256 C/512 C/512 Sb A D PR Q CLK ADC Data CLR ADC Clk C V COMP = V IN + V REF /2 V REF Equivalent circuit: C A ai First approximation step. S1 switched to V REF. Figure 5. Step 2: If MSB = 1, then compare with ¾ V REF V IN Sa V REF S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 C C/2 C/4 C/8 C/16 C/32 C/64 C/128 C/256 C/512 C/512 Sb A D PR Q CLK ADC Data CLR ADC Clk V REF Equivalent circuit: C/2 3C/2 V COMP = V IN + ¾ V REF A ai Compare with ¾V REF ; if MSB =1. S1 switched back to ground. S2 switched to V REF. DocID15067 Rev 2 7/45 44
8 ADC internal principle V IN Figure 6. Step 2: If MSB = 0, then compare with ¼ V REF Sa V REF S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 C C/2 C/4 C/8 C/16 C/32 C/64 C/128 C/256 C/512 C/512 Sb A D PR Q CLK ADC Data CLR ADC Clk V REF Equivalent circuit: 3C/2 C/2 V COMP = V IN + ¼ V REF A ai Compare with ¼ V REF ; if MSB =0. S1 remained switched to ground. S2 switched to V REF. 8/45 DocID15067 Rev 2
9 ADC errors 2 ADC errors This section lists the main errors which have an effect on A/D conversion accuracy. These types of error occur in all A/D converters and conversion quality depends on eliminating them. Values for these errors are specified in the ADC characteristics section of the STM32x device datasheets. Different accuracy error types are specified for the STM32x ADC. Accuracy errors are normally expressed as multiples of 1 LSB for easy reference. The resolution in terms of voltage depends on the reference voltage. The error in terms of voltage is calculated by multiplying the number of LSBs with the voltage corresponding to 1LSB (1LSB = V REF+ /2 12 or V DDA /2 12 ). 2.1 ADC errors related to the ADC itself Offset error It is defined as the deviation between the first actual transition and the first ideal transition. The first transition occurs when the digital output of the ADC changes from 0 to 1. Ideally, when the analog input is between 0.5 LSB and 1.5LSB, the digital output should be 1. Ideally still, the first transition occurs at 0.5 LSB. The offset error is denoted by E O. Offset error can easily be calibrated by the application firmware. Example For the STM32x ADC, the smallest detectable incremental change in voltage is expressed in terms of LSBs: 1 LSB = V REF+ /4096 (on some packages is V REF+ = V DDA ). If V REF+ = 3.3 V, ideally, the input of µv (0.5 LSB = µv) should lead to the generation of a digital output of 1. In practice, however, the ADC may still show the reading as 0. If a digital output of 1 is obtained from an analog input of 550 µv, then: Offset error = Actual transition Ideal transition E O = 550 µv µv = µv E O = µv / µv = 0.17 LSB When an analog input voltage greater than 0.5LSB generates the first transition, the offset error is positive. Figure 7 shows a positive offset error. DocID15067 Rev 2 9/45 44
10 ADC errors Figure 7. Positive offset error representation Digital output E O > 0 Ideal transfer curve LSB Actual transfer curve V AIN ai15475 When an analog input voltage of less than 0.5LSB generates the first transition, the offset error is negative. Figure 8 shows a negative offset error. If the analog input voltage V AIN = V SSA and the ADC generates a nonzero digital output, the offset error is negative. This means that a negative voltage generates the first transition. Figure 8. Negative offset error representation Digital output Ideal transfer curve E O > LSB Actual transfer curve V AIN ai /45 DocID15067 Rev 2
11 ADC errors Gain error Gain error is defined as the deviation between the last actual transition and the last ideal transition. Gain error is represented as E G. The last actual transition is the transition from FFEh to FFFh. Ideally, there should be a transition from FFEh to FFFh, when the analog input is equal to V REF+ 0.5LSB. So for V REF+ = 3.3 V, the last ideal transition should be at V. If the ADC provides the FFFh reading for V AIN < V REF+ 0.5LSB, then we have a negative gain error. Example Gain error E G = Last actual transition ideal transition If V REF+ = 3.3 V and V AIN = V generates a transition from FFE to FFF then, E G = V V E G = 1162 µv E G = ( 1162 µv / µv) LSB = 1.44 LSB If we do not get a full scale reading (FFFh) for V AIN equal to V REF+, the gain error is positive. This means that a voltage greater than V REF+ will cause the last transition. Figure 9 shows a positive gain error and Figure 10, a negative gain error. Figure 9. Positive gain error representation Digital output 4095 E G > 0 Ideal transfer curve Actual transfer curve LSB V AIN ai15477 Figure 10. Negative gain error representation Digital output 4095 E G < 0 Ideal transfer curve Actual transfer curve LSB V AIN ai15478 DocID15067 Rev 2 11/45 44
12 ADC errors Differential linearity error The differential linearity error (DLE) is defined as the maximum deviation between the actual and ideal steps. Here ideal is not used for the ideal transfer curve but for the resolution of the ADC. The DLE is denoted by E D. It is represented in Figure 11. E D = Actual step width 1LSB Ideally, an analog input voltage change of 1LSB should cause a change in the digital code. If an analog input voltage greater than 1LSB is required for a change in digital code, the ADC has a differential linearity error. The DLE therefore corresponds to the maximum additional voltage that is required to change from one digital code to the next. The DLE is also known as the differential non-linearity (DNL) error. Example A given digital output should correspond to an analog input range. Ideally, the step width should be 1LSB. Let us assume that we get the same digital output over an analog input voltage range of V to V, the step width will be V V = 1.6 mv. E D is thus the voltage difference between the higher ( V) and lower ( V) analog voltages less the voltage corresponding to 1LSB. Figure 11. Differential linearity error representation Digital output Actual step width 1LSB E D > 0 1LSB Actual step width E D < 0 Ideal transfer curve Actual transfer curve V AIN ai15479 If V REF+ = 3.3 V, an analog input of V (9B1h) can provide results varying between 9B0h and 9B2h. Similarly, for an input of V (9B3h), the results may vary between 9B2h and 9B4h. Thus, the total voltage variation corresponding to the 9B2h step is: 9B3h 9B1h, that is, V V = 1.6 mv (1660 µv) E D = 1660 µv µv E D = µv E D = (854.4 µv/805.6 µv) LSB E D = 1.06 LSB Let us assume that no voltage greater than V will result in the 9B2h digital code. When the step width is less than 1LSB, E D is negative. 12/45 DocID15067 Rev 2
13 ADC errors Integral linearity error The integral linearity error is the maximum deviation between any actual transition and the endpoint correlation line. The ILE is denoted by E L. It is represented in Figure 12. The endpoint correlation line can be defined as the line on the A/D transfer curve that connects the first actual transition with the last actual transition. E L is the deviation from this line for each transition. The endpoint correlation line thus corresponds to the actual transfer curve and has no relation to the ideal transfer curve. The ILE is also known as the integral non linearity error (INL). The ILE is the integral of the DLE over the whole range. Figure 12. Integral linearity error representation Digital output 4095 E L 2 1 Actual transfer curve μv V V AIN ai15480 Example If the first transition from 0 to 1 occurs at 550 µv and the last transition (FFEh to FFFh) occurs at V (gain error), then the line on the transfer curve connecting the actual digital codes 1h and FFFh will be the endpoint correlation line. DocID15067 Rev 2 13/45 44
14 ADC errors Total unadjusted error The total unadjusted error (TUE) is defined as the maximum deviation between the actual and the ideal transfer curves. It is a parameter that specifies the total errors that may occur, causing maximum deviation between the ideal digital output and the actual digital output. It is the maximum deviation recorded between the ideal expected value and the actual value obtained from the ADC for any input voltage. The TUE is denoted by E T. It is represented in Figure 13. The TUE is not the sum of E O, E G, E L, E D. The offset error affects the digital result at lower voltages whereas the gain error affects the digital output for higher voltages. Example If V REF+ = 3.3 V and V AIN = 2 V, the ideal result is 9B2h. But if, on conversion, we get the result 9B4h, the deviation may result from the offset since the DLE and ILE errors occur simultaneously. TUE = absolute (actual value ideal case value) = 9B4h 9B2h = 2h = 2LSB Digital output Figure 13. Total unadjusted error E T Ideal transfer curve Actual transfer curve V AIN ai /45 DocID15067 Rev 2
15 ADC errors 2.2 ADC errors related to its environment Reference voltage noise As the ADC output is the ratio between the analog signal voltage and the reference voltage, any noise on the analog reference will cause a change in the converted digital value. The V DDA analog power supply is used on some packages as the reference voltage (V REF+ ) so the quality of this power supply has influence to ADC error. For example, with an analog reference of 3.3 V (V REF+ = V DDA ) and a 1 V signal input, the converted result is (1/3.3) 4095 = 4D9h But with a 40 mv peak-to-peak ripple in the analog reference, the converted value becomes (1/3.34) 4095 = 4CAh (with V REF+ at its peak). Error = 4D9 4CA = 15 LSB The SMPS (switch-mode power supply) normally has internal fast-switching power transistors. This introduces high-frequency noise in the output. The switching noise is in the range of 15 khz to 1 MHz Reference voltage / power supply regulation Power supply regulation is very important for ADC accuracy since the conversion result is the ratio of the analog input voltage to the V REF+ value. If the power supply output decreases when connected to V DDA or V REF+ due to the loads on these inputs and to its output impedance, an error will be introduced in the conversion result. Digital code = V AIN 2 N , where N is the resolution of the ADC (in our case N = 12). V REF+ If the reference voltage changes, the digital result changes too. For example: If the supply used is a reference voltage of 3.3 V and V AIN = 1 V, the digital output is: Digital output = = 4D9h 3.3 If the voltage supply provides a voltage equal to V (after its output connection to V REF+ ), then: Digital output = = 4DCh The error introduced by the voltage drop is: 4DC 4D9 = 3LSB. DocID15067 Rev 2 15/45 44
16 ADC errors External reference voltage parameters In case of usage external source for reference voltage (on V REF+ pin) there are important parameters of this external reference source. It is important to look at three reference voltage specifications: temperature drift, voltage noise, long term stability Analog input signal noise Small but high-frequency signal variation can result in big conversion errors during sampling time. This noise is generated by electrical devices, for example, motors, engine ignition, power lines, and so on, and affects the source signal (for example a sensor) by adding an unwanted signal. As a consequence, the conversion results of the ADC are not accurate ADC dynamic range bad match for maximum input signal amplitude It is very important that the ADC dynamic range matches the maximum amplitude of the signal to be converted to have the maximum ADC conversion precision. Let us assume that the signal to be converted varies between 0 V to 2.5 V and that V REF+ is equal to 3.3 V. The maximum signal value converted by the ADC is 3102 (2.5 V) as shown in Figure 14. In this case, there are 993 unused transitions ( = 993). This implies a loss in the converted signal accuracy. See Section 3.2.5: Matching the ADC dynamic range to the maximum signal amplitude on page 23 for details on how to have the ADC dynamic range matching the maximum input signal amplitude. Figure 14. Input signal amplitude vs. ADC dynamic range V V REF+ = 3.3 V (4095h) unused ADC transition range 2.5 V (3102h) t ai Effect of the analog signal source resistance The impedance of the analog signal source, or series resistance (R AIN ), between the source and pin causes a voltage drop across it because of the current flowing into the pin. The charging of the internal sampling capacitor C ADC is controlled by switches with resistance R ADC. With the addition of source resistance (with R ADC ), the time required to fully charge the hold capacitor increases. Figure 15 shows the analog signal source resistance effect. The effective charging of C ADC is governed by R ADC + R AIN, so the charging time constant becomes t c = (R ADC +R AIN ) C ADC. If the sampling time is less than the time required to fully charge the C ADC through R ADC + R AIN (t s < t c ), the digital value converted by the ADC is less than the actual value. 16/45 DocID15067 Rev 2
17 ADC errors Figure 15. Analog signal source resistance effect STM32 V AIN RAIN AINx RADC CADC 12-bit ADC VSSA Vc V AIN Vc t c t ai t c is the time taken by the C ADC capacitor to fully charge: V c = V AIN (with max.1/2 lsb error) V c : capacitor (C ADC ) voltage t c = (R ADC + R AIN ) C ADC Effect of source capacitance and parasitic capacitance of the PCB When converting analog signals, it is necessary to account for the capacitance at the source and the parasitic capacitance seen on the analog input pin (refer to Figure 16). The source resistance and capacitance form an RC network and the ADC conversion results may not be accurate unless the external capacitor (C AIN + C p ) is fully charged to the level of the input voltage. The greater value of (C AIN + C p ), the more limited the source frequency. The external capacitance at the source and the parasitic capacitance are denoted by C AIN and C p, respectively. Figure 16. Analog input with R AIN, C AIN and C p Source STM32 V AIN R AIN AIN x C AIN C P ai15483 DocID15067 Rev 2 17/45 44
18 ADC errors Injection current effect A negative injection current on any analog pin (or a closely positioned digital input pin) may introduce leakage current into the ADC input. The worst case is the adjacent analog channel. A negative injection current is introduced when V AIN < V SS, causing current to flow out from the I/O pin. This is illustrated in Figure 17. Figure 17. Effect of injection current V AIN0 R AIN0 AIN 0 STM32 leakage current AIN 1 V AIN < V SS Injection current V SSA ai Temperature influence The temperature has a major influence on ADC accuracy. Mainly it leads to two major errors: offset error drift and gain error drift. Those errors can be compensated in the microcontroller firmware (refer to Section for the temperature-compensation methods) I/O pin crosstalk Switching the I/Os may induce some noise in the analog input of the ADC due to capacitive coupling between I/Os. Crosstalk may be introduced by PCB tracks that run close to each other or that cross each other. Internally switching digital signals and I/Os introduces high-frequency noise. Switching highsink I/Os may induce some voltage dips in the power supply caused by current surges. A digital track that crosses an analog input track on the PCB may affect the analog signal (see Figure 18). Figure 18. Crosstalk between I/O pins Analog in STM32 Analog in STM32 Digital I/O Digital I/O Case 1 Case 2 ai15485 Case 1: Digital and analog signal tracks that pass close to each other. Case 2: Digital and analog signal tracks that cross each other on a different PCB side. 18/45 DocID15067 Rev 2
19 ADC errors EMI-induced noise Electromagnetic emissions from neighboring circuits may introduce high-frequency noise in an analog signal because the PCB tracks may act like an antenna (See Figure 19.). Figure 19. EMI sources Electromagnetic noise I/O coupled noise STM32 ADC Noise induced from PCB tracks Internal noise ai15486 DocID15067 Rev 2 19/45 44
20 How to get the best ADC accuracy 3 How to get the best ADC accuracy 3.1 Reduce the effects of ADC-related ADC errors The TUE is not the sum of all the errors E O, E G, E L, E D. It is the maximum deviation that can occur between the ideal and actual digital values. It can result from one or more errors occurring simultaneously. As the ILE is the integral of the DLE, it can be considered as the indicator of the maximum error. Do not add the DLE and ILE together to calculate the maximum error that may occur at any digital step. The maximum error values specified in the datasheet are the worst error values measured in laboratory test environment over the given voltage and temperature range (see device datasheet). The ILE and DLE are dependent on the ADC design. It is difficult to calibrate them. They can be calibrated by the measured ADC curve stored in the microcontroller memory but this needs calibration of each individual device in final application. Offset and gain errors can be easily compensated using the STM32x ADC self-calibration feature or by microcontroller firmware. 3.2 Minimize ADC errors related to external environment of ADC Reference voltage / Power supply noise minimization Power supply side Linear regulators have a better output in terms of noise. The mains must be stepped down, rectified and filtered, then fed to linear regulators. It is highly recommended to connect the filter capacitors to the rectifier output. Please refer to the datasheet of the used linear regulator. If you are using a switching power supply, it is recommended to have a linear regulator to supply the analog stage. It is recommended to connect capacitors with good high-frequency characteristics between the power and ground lines. That is, a 0.1 µf and a 1 to 10 µf capacitor should be placed close to the power source. The capacitors allow the AC signals to pass through them. The small-value capacitors filter high-frequency noise and the high-value capacitors filter low-frequency noise. Ceramic capacitors are generally available in small values (1 pf to 0.1 µf) and with small voltage ratings (16 V to 50 V). It is recommended to place them close to the main supply (V DD and V SS ) and analog supply (V DDA and V SSA ) pins. They filter the noise induced in the PCB tracks. Small capacitors can react fast to current surges and discharge quickly for fastcurrent requirements. Tantalum capacitors can also be used along with ceramic capacitors. To filter low-frequency noise, you can use high-value capacitors (10 µf to 100 µf), which are generally electrolytic. It is recommended to put them near the power source. To filter high-frequency noise, you can use a ferrite inductance in series with the power supply. This solution leads to very low (negligible) DC loss unless the current is high 20/45 DocID15067 Rev 2
21 V REF+ not connected to V DDA V REF+ connected to V DDA ai15487 How to get the best ADC accuracy because the series resistance of the wire is very low. At high frequencies, however, the impedance is high. STM32x side In most STM32x microcontrollers the V DD and V SS pins are placed close to each other. So are the V REF+ and V SSA pins. A capacitor can therefore be connected very close to the microcontroller with very short leads. For multiple V DD and V SS pins, use separate decoupling capacitors. The V DDA pin must be connected to two external decoupling capacitors (10 nf Ceramic + 1 µf Tantalum or Ceramic). See Figure 20 and Figure 21 for decoupling examples. For STM32x devices delivered in 100/144-pin packages, it is possible to improve the accuracy on low-voltage inputs by connecting a separate external ADC reference voltage input on V REF+ (refer to Section 3.2.5). The voltage on V REF+ may range from 2.4 V to V DDA. If a separate, external reference voltage is applied on V REF+, two 10 nf and 1 µf capacitors must be connected on this pin. In all cases, V REF+ must be kept between 2.4 V and V DDA. Figure 20. Power supply and reference decoupling for 100- and 144-pin packages V DDA V DDA 1 μf // 10 nf V REF+ 1 μf // 10 nf V REF+ 1 μf // 10 nf V REF V REF V SSA V SSA Figure 21. Power supply decoupling for 36-, 48- and 64-pin packages V DDA 1 μf // 10 nf V SSA ai15488 DocID15067 Rev 2 21/45 44
22 How to get the best ADC accuracy Reference voltage / Power-supply regulation The power supply should have good line and load regulation since the ADC uses V REF+ or V DDA as the analog reference and the digital value is the ratio of the analog input signal to this voltage reference. V REF+ must thus remain stable at different loads. Whenever the load is increased by switching on a part of the circuit, the increase in current must not cause the voltage to decrease. If the voltage remains stable over a wide current range, the power supply has good load regulation. For example: for the LD1086D2M33 voltage regulator, the line regulation is 0.035% typical when V IN varies from 2.8 V to 16.5 V (when I load = 10 ma), and the load regulation is 0.2% when I load varies from 0 to 1.5 A (please refer to the LD1086 series datasheet for details). The lower the line regulation value, the better the regulation. Similarly, the lower the load regulation value, the better the regulation and the stability of the voltage output. It is also possible to use a reference voltage for V REF+, for instance the LM236, which is a voltage reference diode of 2.5 V (refer to LM236 datasheet for more details) Analog-input signal noise elimination Averaging method Averaging is a simple technique where you sample an analog input several times and take the average of the results by software. This technique is helpful to eliminate the effect of noise on the analog input in case of an analog voltage that does not change often. The average has to be made on several readings that all correspond to the same analog input voltage. Make sure that the analog input remains at the same voltage during the time period when the conversions are done, otherwise you will add up digital values corresponding to different analog inputs, and you will introduce errors. Adding an external filter Note: Adding an external RC filter eliminates the high frequency. An expensive filter is not needed to deal with a signal that has frequency components above the frequency range of interest. In this case, a relatively simple lowpass filter with a cutoff frequency f C just above the frequency range of interest will suffice to limit noise and aliasing. A sampling rate consistent with the highest frequency of interest will suffice, typically 2 to 5 times f C. The R and C that form the external filter should have values that match the conditions described in Section and Section Adding white noise or triangular sweep to improve resolution This method combines hardware and software techniques to improve precision. From a software point of view, this method uses averaging (oversampling) and from a hardware point of view, it uses signal modification/spreading/dithering. Averaging can be used in cases where the input signal is noisy (some signal change is necessary in order to be able to calculate an average) and the requirement is to obtain the mean value of a signal. A problem appears when the input signal is a very stable voltage without noise. In this case, when the input signal is measured, each data sample is the same. This is because the input signal level is somewhere between two ADC word levels (e.g. between 0x14A and 0x14B). Therefore it is not possible to determine the input voltage level more precisely (e.g. if the level is near to 0x14A or near to 0x14B level). 22/45 DocID15067 Rev 2
23 How to get the best ADC accuracy The solution is to add noise or some signal change (with uniform signal distribution e.g. triangular sweep) to the input signal which pushes its level across 1-bit ADC level (so that the signal level changes below 0x14A and above 0x14B level). This causes the ADC results to vary. Applying software averaging to the different ADC results, produces the mean value of the original input signal. Example of implementation of this method is done by using a triangular generator with RC coupling to the input signal (white noise generation is more complicated). Care must be taken not to modify the mean value of the original input signal (so, capacitive coupling must be used). A very simple implementation of the quasi-triangular source which is generated directly by the STM32x microcontroller is on Figure 22. Figure 22. Simple quasi-triangular source using a microcontroller output Uout R1 C t OUT VDD Vin Uin R2 Vin Ain MCU t ai Matching the ADC dynamic range to the maximum signal amplitude This method improves accuracy by a proper selection of the reference voltage or by using a preamplifier stage to obtain the maximum possible resolution using the full ADC output range. Selecting a reference voltage (method for devices delivered in 100-/144-pin packages only) The reference voltage is selected in the expected range of the signal to be measured. If the measured signal has an offset, then the reference voltage should also have a similar offset. If the measured signal has a defined maximum amplitude, then the reference voltage should also have a similar maximum value. By matching this reference voltage to the measurement signal range, we obtain the maximum possible resolution using the full ADC output range. In STM32x devices delivered in 100- and 144-pin packages, the ADC reference voltage is connected to the external V REF+ and V REF- pins that should be tied to ground. This makes it possible to match the reference voltage and the measured signal range. For example, if the measured signal varies between 0 V and 2.5 V, it is recommended to choose V REF+ = 2.5 V, possibly using a reference voltage like LM235 (see LM235 datasheet for more details). Figure 23 illustrates these conditions. DocID15067 Rev 2 23/45 44
24 How to get the best ADC accuracy Note: The voltage on V REF+ may range between 2.4 V and V DDA. Figure 23. Selecting the reference voltage V V REF+ = 3.3 V (4095h) 2.5 V (3102h) unused ADC transition range V V REF+ = 2.5 V (4095h) Change V REF+ value from 3.3 V to 2.5 V 4095 Digital Output = V 3.3 in t 4095 Digital Output = V 2.5 in t ai15600 Using a preamplifier If the measured signal is too small (in comparison with the ADC range) then it is good to use an external preamplifier. This method can be implemented with STM32x devices delivered in all packages, and more specifically so in packages that do not have the V REF+ input. For example, if the measured signal varies between 0 V to 1 V and V DDA is 3 V, the signal can be amplified so that its peak-to-peak amplitude is similar to the V DDA value. The gain will then be equal to 3. Figure 24 illustrates this example. This amplifier can adapt the input signal range to the ADC range. It can also insert offsets between the input signal and the ADC input. Care must be taken in the preamplifier design not to generate additional errors (for example additional offset, amplifier gain stability, linearity, frequency response, etc.). Figure 24. Preamplification V V DDA = 3 V (4095h) 1 V (1365h) unused ADC transition range Input signal max value is 3 V (4095h) G = 3 V Before amplification t After amplification t 4095 Digital Output = V 3 in 4095 G Digital Output = 3 V in ai /45 DocID15067 Rev 2
25 How to get the best ADC accuracy Analog source resistance calculation Let us assume that the maximum error allowed is equal to 1/2 LSB. We will calculate the maximum source resistance allowed. V c is the voltage across the internal C ADC capacitor (refer to Figure 15). 1 Then we have: Error = V AIN V c = --LSB 2 Figure 25. Worst case error: V AIN = V REF+ V c V AIN = V REF+ V AIN < V REF+ Error(V AIN = V REF+ ) Error(V AIN < V REF+ ) 0 V t s t Error(V AIN = V REF+ ) > Error(V AIN < V REF+ ) ai15602 Let t s be the sampling time. t s = T S /f ADC, where T s is the sampling time evaluated by cycles (1) For a given t s, the error corresponding to V AIN = V REF+ is greater than the error corresponding to V AIN < V REF+ because the C ADC capacitor takes more time to charge from 0 V to V AIN when V AIN = V REF+ than it takes when V AIN < V REF+ (refer to Figure 25). So V AIN = V REF+ is the worst case to be taken into account in the demonstration of the maximum source resistance. t s R max C ADC Error = V REF+ V REF+ 1 e = V REF N, where: R max = (R AIN + R ADC )max (2) N is the ADC resolution (in our case N = 12) t s R max C t ADC 1 This gives: e = Thus: R 2 N 1 max = s C ADC ln2 N 1 (3) By combining equations (1), (2) and (3), we obtain final formula: T s R AINmax = f ADC C ADC ln2 N + 1 R ADCmax DocID15067 Rev 2 25/45 44
26 How to get the best ADC accuracy Example for STM32F1 parameters: f ADC = 14 MHz, C ADC = 8 pf, R ADC max = 1 k and for T s = 7.5, the maximum source resistance allowed for an error equal to 1/2 LSB is: 7.5 R AINmax = ln k That is: R AINmax = 6.4 k Note: The use of a follower amplifier can reduce the resistance of the source effect because of its high input impedance and its very low output impedance. It isolates R AIN from R ADC. However, the amplifier introduces an offset error that should be taken into account. In case of longer sampling times and reduced number of ADC clocks, better results can be obtained. It is possible to further increase the allowed external resistance by decreasing the ADC clock frequency or selecting a lower resolution. Refer to the datasheet of your device to obtain the exact values of the RC parameters. 26/45 DocID15067 Rev 2
27 How to get the best ADC accuracy Source frequency condition vs. source and parasitic capacitors The external capacitance will not allow the analog input voltage to be exactly the same as V AIN if the capacitor is not fully charged by the analog source. If the analog input signal changes, then the analog signal frequency (F AIN ) should be such that the time period of this analog signal is at least: 10 R AIN (C AIN + C p ). T AIN = analog signal time period = 1/F AIN. We have: T AIN 10 R AIN C AIN + C P Therefore: F AIN R AIN C AIN + C P For example: For R AIN = 25 k, C AIN = 7 pf, C p = 3 pf, this gives: 1 F AINmax = Thus, the maximum frequency of the source will be: F AINmax = 400 khz. So for the above defined source characteristics (capacitance and resistance), the frequency of the source must not exceed 400 khz, otherwise the ADC conversion result will be not accurate. Figure 26. Recommended values for R AIN and C AIN vs. source frequency F AIN 1000 Max. R AIN (k ) C AIN 10 nf C AIN 22 nf C AIN 47 nf F AIN (khz) ai15489 DocID15067 Rev 2 27/45 44
28 How to get the best ADC accuracy Temperature-effect compensation One method would be to fully characterize the offset and gain drift and provide a lookup table in memory to correct measurement according to temperature change. This calibration involves additional cost and takes time. The second method consists in recalibrating the ADC when the temperature change reaches given values, by using the internal temperature sensor and the ADC watchdog Minimizing injection current Check the application to verify whether any digital or analog input voltage can be less than V SS or V SSA. If it is the case, a negative injection current will flow from the pins. The effect on the accuracy will be greater if a digital input is close to the analog input being converted. Negative current injection on any of the standard (non-robust) analog input pins should be avoided as this would significantly reduce the accuracy of the conversion being performed on another analog input. It is recommended to connect a Schottky diode between V SSA and the I/O pin that can give birth to the negative injection current. The ADC accuracy will not be affected by positive injection currents within the limits specified for I INJ(PIN) and ΣI INJ(PIN) (refer to the appropriate STM32x datasheet, I/O port characteristics section) Minimizing I/O pin crosstalk The noise produced by crosstalk can be reduced by shielding the analog signal by placing ground tracks across it. Figure 27 shows the recommended grounding between signals. Figure 27. Crosstalk between I/O pins Analog in STM32 Digital I/O ai /45 DocID15067 Rev 2
29 How to get the best ADC accuracy EMI-induced noise reduction You can reduce EMI noise using proper shielding and layout techniques. The possible sources of emission must be physically separated from the receptors. They can be separated electrically by proper grounding and shielding. Shielding technique Placing ground tracks alongside sensitive analog signals provides shielding on the PCB. The other side of the two-layer PCB should also have a ground plane. This prevents interference and I/O crosstalk affecting the signal. See Figure 28. Signals coming from distant locations (like sensors, etc.) should be connected to the PCB using shielded cable. Care should be taken to minimize the length of the paths of these types of signal on the PCB. The shield should not be used to carry the ground reference from the sensor or analog source to the microcontroller. A separate wire should be used as ground. The shield should be grounded at only one place near the receiver such as the analog ground of the microcontroller. Grounding the shield at both ends (source and receiver) might lead to the creation of ground loops, with the result of current flowing through the shield. In this case, the shield acts like an antenna and the purpose of the shielding is lost. The shielding concept also applies to grounding the chassis of the application if it is metallic. And it also helps remove EMI and EMC interference. In this case the mains earth ground is used to shield the chassis. Similarly DC ground can be used for shielding in case of the earth ground not being available. Figure 28. Shielding technique Not recommended Shielded cable Recommended Sensor ADC Sensor ADC Ground loop Do not ground the shield at both ends Ground the shield at the receiver end only ai15491 DocID15067 Rev 2 29/45 44
30 How to get the best ADC accuracy PCB layout recommendations Separating the analog and digital layouts It is recommended to separate the analog and digital circuitry on the PCB (see Figure 29). This also avoids tracks crossing each other. The tracks carrying digital signals may introduce high-frequency noise in analog signals because of coupling. The digital signals produce high-frequency noise because of fast switching. Coupling of a capacitive nature is formed due to the metal connections (tracks) separated by the dielectric provided by the PCB base (glass, ceramic or plastic). It is recommended to use different planes for analog and digital grounds. If there is a lot of analog circuitry then an analog ground plane is recommended. The analog ground must be placed below the analog circuitry. Figure 29. Separating the analog and digital layouts Power supply Digital circuitry STM32 Analog circuitry Digital ground plane (Noise generator) (Affected by noise) Analog ground plane ai15492 Separating the analog- and digital-circuit power supplies It is desirable to have separate analog and digital power supplies in cases where there is a lot of analog and digital circuits external to the microcontroller (see Figure 30). Depending on the STM32x package, different analog and digital power supply and ground pins are available. The V DDA /V REF+ and V DD pins can be powered from separate power supplies. If you use a switching-type power supply for the digital circuitry, you should use a separate linear supply for the analog circuit. Also, if you expect a lot of noise on the DC power supply due to I/O switching etc., it is preferable to use a separate supply for the analog circuit. Figure 30. Separating the analog and digital supplies Linear regulator Vout1 GND Vout2 SMPS Star Network V SS V DD Analog Circuit V DDA V REF+ V REF- V SSA STM32 ai /45 DocID15067 Rev 2
31 How to get the best ADC accuracy It is also recommended to connect the analog and digital grounds in a star network. This means that you must connect the analog and digital grounds at only one point. This prevents the introduction of noise in the analog power supply circuit due to digital signal switching. This also prevents current surges from affecting the analog circuit. Using separate PCB layers for the supply and ground Two-layer PCBs For two-layer PCBs, it is recommended to provide a maximum ground plane area. The power supply (V DD, V DDA ) should run through thick tracks. The two layers can have their ground shorted together via multiple connections in the overlap region if the two layers feature the same ground signals. The unused PCB area can be used as the ground plane. The other convention is to connect the unused PCB area on one layer to the positive supply (V DD ) and the unused area on the other layer, to ground. The advantage is a reduced inductance for power and ground signals. The maximum ground area provided for ground on the PCB results in a good shielding effect and reduces the electromagnetic induction susceptibility of the circuit. Multilayer PCBs Wherever possible, try to use multilayer PCBs and use separate layers on the PCB for power and ground. The V DD and V SS pins of the various ICs can be directly connected to the power planes, thus reducing the length of track needed to connect the supply and ground. Long tracks have a high inductive effect. The analog ground can be connected at one point to this ground plane. If so, it should be close to the power supply. A full ground plane provides good shielding and reduces the electromagnetic induction susceptibility of the circuit. Single-layer PCBs Single-layer PCBs are used to save cost. They can be used only in simple applications when the number of connections is very limited. It is recommended to fill the unused area with ground. Jumpers can be used to connect different parts of the PCB Component placement and routing Place the components and route the signal traces on the PCB so as to shield analog inputs. Components like resistors and capacitors must be connected with very short leads. You can use surface-mounted device (SMD) resistors and capacitors. You can place SMD capacitors close to the microcontroller for decoupling purposes. Use wide tracks for power, otherwise the series resistance of the tracks would cause a voltage drop. Indeed, narrow power tracks have a non-negligible finite resistance, so that high load currents through them would cause a voltage drop across them. Quartz crystals must be surrounded by ground tracks/plane. The other side of the two-layer PCB below the crystal should preferably be covered by the ground plane. Most crystals have a metallic body that should be grounded. You should also place the crystal close to the microcontroller. You can use a surface-mounted crystal. DocID15067 Rev 2 31/45 44
32 How to get the best ADC accuracy 3.3 Software methods to improve precision Averaging samples: averaging decreases speed but can give improved accuracy Digital filtering (50/60 Hz suppression from DC value) set proper sampling frequency (the trigger from timer is useful in this case) perform software post-processing on sampled data (e.g.: comb filter - for 50 Hz noise and its harmonics suppression) Fast Fourier Transform (FFT) for AC measurements: to show harmonic parts in measured signal slower, due to the use of more computation power Calibration of ADC: offset, gain, bit weight calibration decreases internal ADC errors internal ADC structure must be known Minimizing internal noise generated by CPU design firmware to use minimum disturbance from microcontroller during ADC conversion - digital silence Averaging samples The principle of this method is to increase ADC precision but decrease ADC conversion speed (oversampling). If the measured analog signal produces unstable ADC values, then the mean value of the given input signal can be obtained by averaging a set of values. Variation can be caused by signal noise or noise generated by the microcontroller itself (high speed digital signals capacitively coupled to the analog input signal). Averaging is performed by choosing an appropriate number of samples to be averaged. This number depends on the required precision, minimum conversion speed and the level of other ADC errors (if another error has a greater influence on ADC precision, then increasing the number of averaging values has no effect on total measurement precision). The advantage of this method is improving precision without any hardware changes. The disadvantage is lower conversion speed and therefore also lower frequency response (it is equivalent to decreasing effective sampling frequency) Digital signal filtering This method uses digital signal processing techniques. In principle, averaging is also a simple digital filter with a specific frequency response. But if the noise frequency spectrum is known, a digital filter can be designed which minimizes noise influence and maximizes ADC frequency response. For example, if the noise in the measured signal is coming from the 50Hz power lines, then an appropriate digital filter suppresses only the 50 Hz frequency and delivers data signal without this noise. The disadvantage of this method is that it needs appropriate microcontroller processing power and resources: CPU speed, data/program memory usage. 32/45 DocID15067 Rev 2
33 How to get the best ADC accuracy FFT for AC measurement In some specific cases the application needs to know the amplitude of an AC signal with a given frequency. In this case the effective value of an AC signal can also be obtained by using a relatively slow sampling speed (in comparison to the measured signal frequency). For example, when measuring an AC mains signal (which is near-to-sinusoidal and has relatively low harmonics content), it is sufficient to choose a sampling frequency 32 times greater than the mains frequency (50 Hz). In this case you can obtain harmonics of up to the 15th order. The amplitude of 15th harmonics in the main signal is very small (the next order harmonics can be neglected). The calculated effective value of the mains signal is obtained with high precision because the effective values of harmonics are added to the total AC harmonic value as: U ef = U 1 + U U n So if the 15th harmonics amplitude is only 1% (0.01) from the 1st harmonics (50 Hz) then its contribution to the total effective value will be only 0.01% (because of theabove equation - square addition: = ). The principle of this method is therefore to sample the AC signal with a known frequency and then perform post-processing onthe FFT for each measured period. Because the number of sampling points per measured signal period is small (32 points for example) then the performance needed for FFT processing is not so high (only 32-point FFT for example). Advantages: this method is good for AC measurement of signals with lower distortion. The disadvantage is the requirement for precise signal sampling: The frequency of the measured signal must be known and the ADC sampling frequency must be set exactly as a 2 n multiplier of the measured frequency. The input signal frequency is measured by another method. The ADC sampling frequency is tuned by programming the prescaler and MCU master clock selection (if sampling is performed with an inaccurate clock an interpolation can be used to obtain samples at the required points). DocID15067 Rev 2 33/45 44
34 How to get the best ADC accuracy ADC calibration This method requires knowledge of internal ADC structure and how the ADC converter is implemented inside the microcontroller. This knowledge is necessary in order to design a physical/mathematical model of the ADC implementation. A proper physical model (which is usually a schematic diagram) is used as the base for describing it mathematically. From the mathematical model, each element in the model can be obtained by a set of equations (for example, resistor/capacitor values which represent bit weights). To solve these equations, it is necessary to perform a set of practical measurements and obtain a set of solvable equations. From the measured values and mathematical computation of the model, all known values of model elements (resistors, voltages, capacitors,...) can be put into the schematic diagram. So instead of the ADC schematic with the designed values, you obtain an ADC schematic with the real values for a given microcontroller. Computed model parameters are stored in the microcontroller memory after calibration and used in post-processing to correct ADC values Minimizing internal CPU noise When the CPU operates, it generates a lot of internal and external signal changes which are transferred into the ADC peripheral through capacitive coupling. This disturbance influences ADC precision (unpredictable noise due to different microcontroller operations). To minimize influences of the CPU (and of other peripherals) on ADC, it is necessary to minimize digital signal changes during sampling and conversion time (digital silence). This is done using one of the following methods (applied during sampling and conversion time): minimizing I/O pin changes minimizing internal CPU changes (CPU stop, wait mode) stopping clock for unnecessary peripherals (timers, communications...) 34/45 DocID15067 Rev 2
35 How to get the best ADC accuracy 3.4 High impedance source measurement This section describes the ADC measurement behavior of STM32x ADC when a signal source with high internal impedance is used. It explains how to design an application to reach the requested precision and provides workarounds ADC input stage problem The ADC in STM32x devices is a switched-capacitor ADC type. Switched capacitors work also as sampling capacitors (see Section 1.1 for a detailed explanation). When a signal comes from a voltage source with high internal impedance (for instance, 150 k), an added error can be seen in measurement results. Error signals have also been observed on the ADC input pin, as shown in Figure 33 (if the voltage source has zero voltage: U in = 0 V, R in = 150 k, C ext = 0 pf): Figure 31. Typical voltage source connection to ADC input ADC input Rin Uin STM32 C ext ai17903 Figure 32. Noise observed on ADC input pin during ADC conversions ADC input signal during conversion: an ADC noise is injected to the input. ai17904 DocID15067 Rev 2 35/45 44
36 How to get the best ADC accuracy Explanation of the behavior The explanation of this added pin noise and added measurement error (in case a signal source with high internal impedance is used) comes from the internal ADC structure: its input sampling circuit. Figure 33 shows a simplified schematic of the input stage (sample and hold circuit). Figure 33. ADC simplified schematic of input stage - sample and hold circuit ADC input S 1 Csh ai17905 The spikes (noise) present on ADC input pin during conversions are related to the sampling switch (S1). If the switch is closed, some charge (coming from the sample and hold capacitor C sh or caused by another effect) is transferred to the input pin. Then this charge starts discharging through the source impedance (R in ). The discharge process ends at the end of the sampling time (t S ) when the switch S1 is opened. The remaining undischarged voltage remains on the capacitor C sh and ADC measures this voltage. If the sampling time (t S ) is too short, the remaining voltage does not drop under 0.5 lsb and ADC measurement shows an added error. Figure 34 shows this process. Figure 34. ADC input pin noise spikes from internal charge during sampling process Added error Uinput Sampling time (t S ) = Discharging time t Conversion time (t C ) ai17906 Note that a non-zero external capacitance C ext (parasitic pin capacitance) also exists, so during conversion time the pin capacitance is discharged through source impedance R in. 36/45 DocID15067 Rev 2
37 How to get the best ADC accuracy Minimizing added errors Workaround for high impedance sources To solve the added error problem, you can increase the sampling time (T S ) configuring ADC settings in MCU firmware, so that you discharge the C sh charge through the source impedance R in. The time constant (R in * C sh ) is the reference for choosing the sampling time. To choose the sampling time cycles, use this formula (for max. error of 1/2 lsb, see also Section 3.2.6): T S f ADC R in C sh ln2 N + 1 cycles The clock for ADC (f ADC ) is another important factor; slowing down the ADC clock increases the sampling time. Figure 35. Effect of sampling time extension Original added error Added error < 0.5 lsb U input t Original sampling time (t S ) Extended sampling time (t S ) Conversion time (t C ) ai17907 If the maximum register value of the sampling time (T S ) setting is reached and the problem is still present, you need a more complex solution which is applicable also for measurements of source with extra high internal impedance (see the section Workaround for extra high impedance sources below). Note that for this application you must take into account not only the internal sampling capacitance, but also any external parasitic capacitance (in parallel to C ext ), such as: pin capacitance, PCB path capacitance, etc. Do not add any external capacitor (C ext ) to the input pin when applying this above workaround. Its capacity will increase the timing constant (R in * C sh C ext ) and the problem will remain. DocID15067 Rev 2 37/45 44
38 How to get the best ADC accuracy Workaround for extra high impedance sources This workaround consists of 2 parts: a hardware change and a software change. Hardware change: The hardware change consists of adding a large external capacitor (C ext ) to the input pin. The capacity size connected to the input pin must reach the value that causes the discharging of the internal sampling capacity C sh to the external capacitor C ext without increasing the voltage on C ext to more than 0.5 lsb. Example: If the internal capacitor (C sh = 16 pf) is charged to full scale (U max, which corresponds to 4096 lsb), then the external capacitor C ext must be charged at maximum 0.5 lsb voltage level (U lsb ) after discharging C sh to it. The capacity of C ext will then be: U max C ext C sh = 16pF nF 0.5 U lsb The closest larger standard value chosen here is: C ext = 150 nf. If the internal sampling capacitor C sh is not charged to full voltage range (4096 level) before sampling, you can calculate the C ext value replacing 4096 in the formula above. Calculating with 4096 level gives precise measurement results also in the case of ADC input channels switching (C sh was charged from different ADC input in the previous measurement). A side effect of this hardware workaround is the cyclical charging of C ext which must be taken into account. Each ADC conversion transfers charge from C sh to C ext. One transfer charges the C ext below 0.5 lsb, as described above, but more transfers can charge C ext to larger values if it is not discharged between two conversions. Figure 36 shows an example of this scenario where the ADC measurement is performed faster. Figure 36. Charging the external capacitor with too short time between conversions Uinput Added error < 0.5 lsb Too short t C Added error > 0.5 lsb Recommended t C ai17908 t 38/45 DocID15067 Rev 2
39 How to get the best ADC accuracy Software change: The side effect mentioned above can be solved by software. The objective is to create a delay in order to let C ext discharge through R in (not measure so often) giving enough discharge time between ADC conversions. The discharge time (t C ) is equal to the transferred charge from C sh to C ext (charging) and from C ext to R in (discharging). The assumption is that C ext >> C sh. Q charging = Q sh = C sh U max Q discharging U lsb R in t C 0 = e t R in C ext where: U lsb lsb voltage level U max lsb voltage level (worst case) Q charging = Q discharging C sh U max U lsb R in t C 0 = e t R in C ext dt dt Simplification of the above formula gives the final formula for the required waiting time between conversions: C sh C ext U lsb t C R in C ext In U max = This final formula shows dependency between the external capacitor C ext and the required waiting time between two conversions if the precision U lsb is needed. From the same formula you can see that the argument in logarithm must be positive and therefore there is a condition for the minimal value of C ext : C sh C ext U lsb U max C sh C ext U lsb U max U max C ext C sh U lsb Choosing a larger C ext decreases more the time between conversions (t C ). U An extra large C ext (C ext >> max C sh ) enables sampling more often. U lsb However, increasing C ext limits the frequency bandwidth of measurement signal (increasing the external timing constant R in. C ext ). DocID15067 Rev 2 39/45 44
40 How to get the best ADC accuracy The formulas below show how to choose the optimal C ext value: signal bandwidth in correlation with sample time. Signal bandwidth is characterized by an external timing constant, so optimal solution is to charge C ext during t C : R in C ext = t C R in C ext = R in C ext C sh C ext U lsb In U max C sh C ext U lsb 1 In U max = e 1 1 = C sh C ext U lsb U max After simplification we obtain the final formula for optimal C ext : C ext = U max C sh U lsb e U max C sh U lsb and the corresponding waiting time between conversions: t C R in C ext In R 1 58 in C ext Practically the firmware must not program the ADC in continuous mode but only in single mode and must ensure that there will be a time gap between conversions with duration equal to t C. This adding of waiting time is the software change which must be applied together with the hardware change (adding an external capacitor C ext ). Without implementation of t C waiting time in software (for instance, running a conversion just after the first one) the external capacitor C ext will be cyclically charged from the C sh capacitor. After a lot of cycles the voltage on C ext will reach a quite high error value (as previously shown in Figure 36). A practical example of implementation for STM32L1xx ADC is shown below: C sh = 16 pf R in = 150 k U max = 4096 lsb U lsb = 0.5 lsb... ADC property... signal source property... ADC property... required precision U max C ext = 158 C sh = pF nF 220nF 0.5 U lsb C sh C ext U lsb t C R in C sh In U max pF = = 150k 220nF In s 30ms 220nF /45 DocID15067 Rev 2
41 How to get the best ADC accuracy Source of described problem - ADC design The following sections list some possible causes for the charging of the internal sampling capacitor C sh. This is not an exhaustive list; only the main possible sources of the ADC design are listed. Parasitic switch capacitance effect The sampling switch inside ADC sampling circuit (see Figure 33) is not ideal. In reality the sample and hold switch (S1) is designed as 2 transistors (PMOS and NMOS, see Figure 37): Figure 37. Implementation of sampling switch S1 Uin Csh H = switch on L = switch off ai17909 The switch is controlled by the gate voltages of transistors (inverted signal on PMOS transistor). This design is a standard bidirectional switch (for rail to rail range of input U in voltages). Both transistors have parasitic capacitances between gate and source. If those capacitances are charged (close to the switch), then their charge can be transferred to the sampling capacitor (see Figure 38). Figure 38. Parasitic capacitances of sampling switch i Uin i S1 C sh Cext L --> H switching on ai17910 This charging and discharging currents (PMOS and NMOS asymmetric capacitances) can cause charge transfer to sampling capacitor Csh. DocID15067 Rev 2 41/45 44
42 How to get the best ADC accuracy Internal charging of sampling capacitor It is possible that after the conversion process (successive approximation process in SAR type of ADC) the sample and hold capacitor C sh is charged to some voltage. The reason can be: some leakage current to C sh (parasitic current inside ADC structure, see Figure 39) residual charge transfer from the switches when ADC structure is switched back to default state before next conversion other reasons (related to internal ADC parasitic structures) Figure 39. Parasitic current example inside ADC structure Rparasitic ADC input S1 Csh ai /45 DocID15067 Rev 2
43 Conclusion 4 Conclusion This application notes describes the main ADC errors and then methods and application design rules to minimize STM32x ADC errors and obtain the best ADC accuracy. The choice of method depends on the application requirements and is always a compromise between speed, precision, enough computation power and design topology. The published methods lead to a precision improvement and are optimized for the design of an ADC converter using the SAR (successive approximation register) principle. DocID15067 Rev 2 43/45 44
44 Revision history 5 Revision history Table 2. Document revision history Date Revision Changes 14-Nov Initial release. 16-Sep Extended to STM32Fx Series and STM32L1 Series devices. Added Section 1.1: SAR ADC internal structure. Added Section 3.4: High impedance source measurement. Added Section 3.3: Software methods to improve precision. Text improvements and additions. Changed the Disclaimer on the final page. 44/45 DocID15067 Rev 2
45 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America DocID15067 Rev 2 45/45 45
AN1636 APPLICATION NOTE
AN1636 APPLICATION NOTE UNDERSTANDING AND MINIMISING ADC CONVERSION ERRORS 1 INTRODUCTION By Microcontroller Division Applications The purpose of this document is to explain the different ADC errors and
AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE
Atmel 8-bit and 32-bit Microcontrollers AVR127: Understanding ADC Parameters APPLICATION NOTE Introduction This application note explains the basic concepts of analog-to-digital converter (ADC) and the
AP2428.01. A/D Converter. Analog Aspects. C500 and C166 Microcontroller Families. Microcontrollers. Application Note, V 1.
Application Note, V 1.0, May 2001 AP2428.01 A/D Converter C500 and C166 Microcontroller Families Analog Aspects Microcontrollers Never stop thinking. A/D Converter Revision History: 2001-05 V1.0 Previous
Digital to Analog Converter. Raghu Tumati
Digital to Analog Converter Raghu Tumati May 11, 2006 Contents 1) Introduction............................... 3 2) DAC types................................... 4 3) DAC Presented.............................
Application Note AN:005. FPA Printed Circuit Board Layout Guidelines. Introduction Contents. The Importance of Board Layout
FPA Printed Circuit Board Layout Guidelines By Paul Yeaman Principal Product Line Engineer V I Chip Strategic Accounts Introduction Contents Page Introduction 1 The Importance of 1 Board Layout Low DC
Tire pressure monitoring
Application Note AN601 Tire pressure monitoring 1 Purpose This document is intended to give hints on how to use the Intersema pressure sensors in a low cost tire pressure monitoring system (TPMS). 2 Introduction
Evaluating AC Current Sensor Options for Power Delivery Systems
Evaluating AC Current Sensor Options for Power Delivery Systems State-of-the-art isolated ac current sensors based on CMOS technology can increase efficiency, performance and reliability compared to legacy
Precision Analog Designs Demand Good PCB Layouts. John Wu
Precision Analog Designs Demand Good PCB Layouts John Wu Outline Enemies of Precision: Hidden components Noise Crosstalk Analog-to-Analog Digital-to-Analog EMI/RFI Poor Grounds Thermal Instability Leakage
AVX EMI SOLUTIONS Ron Demcko, Fellow of AVX Corporation Chris Mello, Principal Engineer, AVX Corporation Brian Ward, Business Manager, AVX Corporation
AVX EMI SOLUTIONS Ron Demcko, Fellow of AVX Corporation Chris Mello, Principal Engineer, AVX Corporation Brian Ward, Business Manager, AVX Corporation Abstract EMC compatibility is becoming a key design
" PCB Layout for Switching Regulators "
1 " PCB Layout for Switching Regulators " 2 Introduction Linear series pass regulator I L V IN V OUT GAIN REF R L Series pass device drops the necessary voltage to maintain V OUT at it s programmed value
css Custom Silicon Solutions, Inc.
css Custom Silicon Solutions, Inc. CSS555(C) CSS555/ PART DESCRIPTION The CSS555 is a micro-power version of the popular 555 Timer IC. It is pin-for-pin compatible with the standard 555 timer and features
QUICK START GUIDE FOR DEMONSTRATION CIRCUIT 956 24-BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION
LTC2485 DESCRIPTION Demonstration circuit 956 features the LTC2485, a 24-Bit high performance Σ analog-to-digital converter (ADC). The LTC2485 features 2ppm linearity, 0.5µV offset, and 600nV RMS noise.
PL-277x Series SuperSpeed USB 3.0 SATA Bridge Controllers PCB Layout Guide
Application Note PL-277x Series SuperSpeed USB 3.0 SATA Bridge Controllers PCB Layout Guide Introduction This document explains how to design a PCB with Prolific PL-277x SuperSpeed USB 3.0 SATA Bridge
SELECTION GUIDE. Nominal Input
www.murata-ps.com NKE Series FEATURES RoHS Compliant Sub-Miniature SIP & DIP Styles 3kVDC Isolation UL Recognised Wide Temperature performance at full 1 Watt load, 40 C to 85 C Increased Power Density
ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram
Quad PLL with VCXO Quick Turn Clock Description The ICS379 QTClock TM generates up to 9 high quality, high frequency clock outputs including a reference from a low frequency pullable crystal. It is designed
Application Note, Rev.1.0, September 2008 TLE8366. Application Information. Automotive Power
Application Note, Rev.1.0, September 2008 TLE8366 Automotive Power Table of Contents 1 Abstract...3 2 Introduction...3 3 Dimensioning the Output and Input Filter...4 3.1 Theory...4 3.2 Output Filter Capacitor(s)
Section 3. Sensor to ADC Design Example
Section 3 Sensor to ADC Design Example 3-1 This section describes the design of a sensor to ADC system. The sensor measures temperature, and the measurement is interfaced into an ADC selected by the systems
ICS650-44 SPREAD SPECTRUM CLOCK SYNTHESIZER. Description. Features. Block Diagram DATASHEET
DATASHEET ICS650-44 Description The ICS650-44 is a spread spectrum clock synthesizer intended for video projector and digital TV applications. It generates three copies of an EMI optimized 50 MHz clock
Pressure Transducer to ADC Application
Application Report SLOA05 October 2000 Pressure Transducer to ADC Application John Bishop ABSTRACT Advanced Analog Products/OpAmp Applications A range of bridgetype transducers can measure numerous process
Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies
Soonwook Hong, Ph. D. Michael Zuercher Martinson Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies 1. Introduction PV inverters use semiconductor devices to transform the
ABCs of ADCs. Analog-to-Digital Converter Basics. Nicholas Gray Data Conversion Systems Staff Applications Engineer
ABCs of ADCs Analog-to-Digital Converter Basics Nicholas Gray Data Conversion Systems Staff Applications Engineer November 24, 2003 Corrected August 13, 2004 Additional Corrections June 27, 2006 1 Agenda
Programmable Single-/Dual-/Triple- Tone Gong SAE 800
Programmable Single-/Dual-/Triple- Tone Gong Preliminary Data SAE 800 Bipolar IC Features Supply voltage range 2.8 V to 18 V Few external components (no electrolytic capacitor) 1 tone, 2 tones, 3 tones
Cold-Junction-Compensated K-Thermocoupleto-Digital Converter (0 C to +1024 C)
19-2235; Rev 1; 3/02 Cold-Junction-Compensated K-Thermocoupleto-Digital General Description The performs cold-junction compensation and digitizes the signal from a type-k thermocouple. The data is output
Printed Circuit Boards. Bypassing, Decoupling, Power, Grounding Building Printed Circuit Boards CAD Tools
Printed Circuit Boards (PCB) Printed Circuit Boards Bypassing, Decoupling, Power, Grounding Building Printed Circuit Boards CAD Tools 1 Bypassing, Decoupling, Power, Grounding 2 Here is the circuit we
Design A High Performance Buck or Boost Converter With Si9165
Design A High Performance Buck or Boost Converter With Si9165 AN723 AN723 by Kin Shum INTRODUCTION The Si9165 is a controller IC designed for dc-to-dc conversion applications with 2.7- to 6- input voltage.
ICS514 LOCO PLL CLOCK GENERATOR. Description. Features. Block Diagram DATASHEET
DATASHEET ICS514 Description The ICS514 LOCO TM is the most cost effective way to generate a high-quality, high-frequency clock output from a 14.31818 MHz crystal or clock input. The name LOCO stands for
Application Note AN-1135
Application Note AN-1135 PCB Layout with IR Class D Audio Gate Drivers By Jun Honda, Connie Huang Table of Contents Page Application Note AN-1135... 1 0. Introduction... 2 0-1. PCB and Class D Audio Performance...
White Paper: Electrical Ground Rules
Acromag, Incorporated 30765 S Wixom Rd, Wixom, MI 48393 USA Tel: 248-295-0880 Fax: 248-624-9234 www.acromag.com White Paper: Electrical Ground Rules Best Practices for Grounding Your Electrical Equipment
Conversion Between Analog and Digital Signals
ELET 3156 DL - Laboratory #6 Conversion Between Analog and Digital Signals There is no pre-lab work required for this experiment. However, be sure to read through the assignment completely prior to starting
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION Introduction The outputs from sensors and communications receivers are analogue signals that have continuously varying amplitudes. In many systems
This application note is written for a reader that is familiar with Ethernet hardware design.
AN18.6 SMSC Ethernet Physical Layer Layout Guidelines 1 Introduction 1.1 Audience 1.2 Overview SMSC Ethernet products are highly-integrated devices designed for 10 or 100 Mbps Ethernet systems. They are
ADC12041 ADC12041 12-Bit Plus Sign 216 khz Sampling Analog-to-Digital Converter
ADC12041 ADC12041 12-Bit Plus Sign 216 khz Sampling Analog-to-Digital Converter Literature Number: SNAS106 ADC12041 12-Bit Plus Sign 216 khz Sampling Analog-to-Digital Converter General Description Operating
Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff
Supply voltage Supervisor TL77xx Series Author: Eilhard Haseloff Literature Number: SLVAE04 March 1997 i IMPORTANT NOTICE Texas Instruments (TI) reserves the right to make changes to its products or to
Features. Applications. Transmitter. Receiver. General Description MINIATURE MODULE. QM MODULATION OPTIMAL RANGE 1000m
Features MINIATURE MODULE QM MODULATION OPTIMAL RANGE 1000m 433.05 434.79 ISM BAND 34 CHANNELS AVAILABLE SINGLE SUPPLY VOLTAGE Applications IN VEHICLE TELEMETRY SYSTEMS WIRELESS NETWORKING DOMESTIC AND
Design and Construction of Variable DC Source for Laboratory Using Solar Energy
International Journal of Electronics and Computer Science Engineering 228 Available Online at www.ijecse.org ISSN- 2277-1956 Design and Construction of Variable DC Source for Laboratory Using Solar Energy
Application Note 58 Crystal Considerations with Dallas Real Time Clocks
www.dalsemi.com Application Note 58 Crystal Considerations with Dallas Real Time Clocks Dallas Semiconductor offers a variety of real time clocks (RTCs). The majority of these are available either as integrated
Rail-to-Rail, High Output Current Amplifier AD8397
Rail-to-Rail, High Output Current Amplifier AD8397 FEATURES Dual operational amplifier Voltage feedback Wide supply range from 3 V to 24 V Rail-to-rail output Output swing to within.5 V of supply rails
Op Amp Circuit Collection
Op Amp Circuit Collection Note: National Semiconductor recommends replacing 2N2920 and 2N3728 matched pairs with LM394 in all application circuits. Section 1 Basic Circuits Inverting Amplifier Difference
Series AMLDL-Z Up to 1000mA LED Driver
FEATURES: Click on Series name for product info on aimtec.com Series Up to ma LED Driver Models Single output Model Input Voltage (V) Step Down DC/DC LED driver Operating Temperature range 4ºC to 85ºC
Features. Modulation Frequency (khz) VDD. PLL Clock Synthesizer with Spread Spectrum Circuitry GND
DATASHEET IDT5P50901/2/3/4 Description The IDT5P50901/2/3/4 is a family of 1.8V low power, spread spectrum clock generators capable of reducing EMI radiation from an input clock. Spread spectrum technique
Input and Output Capacitor Selection
Application Report SLTA055 FEBRUARY 2006 Input and Output Capacitor Selection Jason Arrigo... PMP Plug-In Power ABSTRACT When designing with switching regulators, application requirements determine how
2.996/6.971 Biomedical Devices Design Laboratory Lecture 2: Fundamentals and PCB Layout
2.996/6.971 Biomedical Devices Design Laboratory Lecture 2: Fundamentals and PCB Layout Instructor: Hong Ma Sept. 12, 2007 Fundamental Elements Resistor (R) Capacitor (C) Inductor (L) Voltage Source Current
Time to upgrade your current sensing technology!
Your Imagination. Our Innovation. Time to upgrade your current sensing technology! Second Edition Avago Technologies Optocoupler Current and Voltage Sensing Leading edge current sensing solutions for industrial
Module 11: Conducted Emissions
Module 11: Conducted Emissions 11.1 Overview The term conducted emissions refers to the mechanism that enables electromagnetic energy to be created in an electronic device and coupled to its AC power cord.
SPREAD SPECTRUM CLOCK GENERATOR. Features
DATASHEET ICS7152 Description The ICS7152-01, -02, -11, and -12 are clock generators for EMI (Electro Magnetic Interference) reduction (see below for frequency ranges and multiplier ratios). Spectral peaks
LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.
LM 358 Op Amp S k i l l L e v e l : I n t e r m e d i a t e OVERVIEW The LM 358 is a duel single supply operational amplifier. As it is a single supply it eliminates the need for a duel power supply, thus
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter Description: The NTE2053 is a CMOS 8 bit successive approximation Analog to Digital converter in a 20 Lead DIP type package which uses a differential
1.5A Very L.D.O Voltage Regulator LM29150/29151/29152
FEATURES High Current Capability 1.5A Low Dropout Voltage 350mV Low Ground Current Accurate 1% Guaranteed Initial Tolerance Extremely Fast Transient Response Reverse-Battery and "Load Dump" Protection
AP24026. Microcontroller. EMC Design Guidelines for Microcontroller Board Layout. Microcontrollers. Application Note, V 3.
Microcontroller Application Note, V 3.0, April 2005 AP24026 for Microcontroller Board Layout Microcontrollers Never stop thinking. TriCore Revision History: 2005-04 V 3.0 Previous Version: 2001-04 Page
Datasheet. 2A 380KHZ 20V PWM Buck DC/DC Converter. Features
General Description Features The is a 380 KHz fixed frequency monolithic step down switch mode regulator with a built in internal Power MOSFET. It achieves 2A continuous output current over a wide input
Analog Signal Conditioning
Analog Signal Conditioning Analog and Digital Electronics Electronics Digital Electronics Analog Electronics 2 Analog Electronics Analog Electronics Operational Amplifiers Transistors TRIAC 741 LF351 TL084
TRIPLE PLL FIELD PROG. SPREAD SPECTRUM CLOCK SYNTHESIZER. Features
DATASHEET ICS280 Description The ICS280 field programmable spread spectrum clock synthesizer generates up to four high-quality, high-frequency clock outputs including multiple reference clocks from a low-frequency
Grounding Demystified
Grounding Demystified 3-1 Importance Of Grounding Techniques 45 40 35 30 25 20 15 10 5 0 Grounding 42% Case 22% Cable 18% Percent Used Filter 12% PCB 6% Grounding 42% Case Shield 22% Cable Shielding 18%
Understanding Power Impedance Supply for Optimum Decoupling
Introduction Noise in power supplies is not only caused by the power supply itself, but also the load s interaction with the power supply (i.e. dynamic loads, switching, etc.). To lower load induced noise,
FAN5346 Series Boost LED Driver with PWM Dimming Interface
FAN5346 Series Boost LED Driver with PWM Dimming Interface Features Asynchronous Boost Converter Drives LEDs in Series: FAN5346S20X: 20V Output FAN5346S30X: 30V Output 2.5V to 5.5V Input Voltage Range
Output Ripple and Noise Measurement Methods for Ericsson Power Modules
Output Ripple and Noise Measurement Methods for Ericsson Power Modules Design Note 022 Ericsson Power Modules Ripple and Noise Abstract There is no industry-wide standard for measuring output ripple and
DRM compatible RF Tuner Unit DRT1
FEATURES DRM compatible RF Tuner Unit DRT1 High- Performance RF Tuner Frequency Range: 10 KHz to 30 MHz Input ICP3: +13,5dBm, typ. Noise Figure @ full gain: 14dB, typ. Receiver Factor: -0,5dB, typ. Input
NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator
NTE923 & NTE923D Integrated Circuit Precision Voltage Regulator Description: The NTE923 and NTE923D are voltage regulators designed primarily for series regulator applications. By themselves, these devices
Optimised For Audio Analogue PCB design for the digital era.
Optimised For Audio Analogue PCB design for the digital era. David G. Tyas IKON AVS Ltd, 238 Ikon Estate, Hartlebury, Worcs.. DY10 4EU www.ikonavs.com 1. Introduction With increasing emphasis on digital
12-Bit, 4-Channel Parallel Output Sampling ANALOG-TO-DIGITAL CONVERTER
For most current data sheet and other product information, visit www.burr-brown.com 12-Bit, 4-Channel Parallel Output Sampling ANALOG-TO-DIGITAL CONVERTER FEATURES SINGLE SUPPLY: 2.7V to 5V 4-CHANNEL INPUT
Keywords: input noise, output noise, step down converters, buck converters, MAX1653EVKit
Maxim > Design Support > Technical Documents > Tutorials > Power-Supply Circuits > APP 986 Keywords: input noise, output noise, step down converters, buck converters, MAX1653EVKit TUTORIAL 986 Input and
High Speed, Low Cost, Triple Op Amp ADA4861-3
High Speed, Low Cost, Triple Op Amp ADA486-3 FEATURES High speed 73 MHz, 3 db bandwidth 625 V/μs slew rate 3 ns settling time to.5% Wide supply range: 5 V to 2 V Low power: 6 ma/amplifier. db flatness:
UNDERSTANDING AND CONTROLLING COMMON-MODE EMISSIONS IN HIGH-POWER ELECTRONICS
Page 1 UNDERSTANDING AND CONTROLLING COMMON-MODE EMISSIONS IN HIGH-POWER ELECTRONICS By Henry Ott Consultants Livingston, NJ 07039 (973) 992-1793 www.hottconsultants.com [email protected] Page 2 THE BASIC
Description. 5k (10k) - + 5k (10k)
THAT Corporation Low Noise, High Performance Microphone Preamplifier IC FEATURES Excellent noise performance through the entire gain range Exceptionally low THD+N over the full audio bandwidth Low power
AN203: 8-bit MCU Printed Circuit Board Design Notes
AN203: 8-bit MCU Printed Circuit Board Design Notes The tips and techniques included in this application note will help to ensure successful printed circuit board (PCB) design. Problems in design can result
PS323. Precision, Single-Supply SPST Analog Switch. Features. Description. Block Diagram, Pin Configuration, and Truth Table. Applications PS323 PS323
Features ÎÎLow On-Resistance (33-ohm typ.) Minimizes Distortion and Error Voltages ÎÎLow Glitching Reduces Step Errors in Sample-and-Holds. Charge Injection, 2pC typ. ÎÎSingle-Supply Operation (+2.5V to
Spread-Spectrum Crystal Multiplier DS1080L. Features
Rev 1; 3/0 Spread-Spectrum Crystal Multiplier General Description The is a low-jitter, crystal-based clock generator with an integrated phase-locked loop (PLL) to generate spread-spectrum clock outputs
Chapter 6 PLL and Clock Generator
Chapter 6 PLL and Clock Generator The DSP56300 core features a Phase Locked Loop (PLL) clock generator in its central processing module. The PLL allows the processor to operate at a high internal clock
CMR Series Isolated 0.75W Single and Dual Output Isolated DC/DC Converters
www.murata-ps.com CMR Series SELECTION GUIDE FEATURES Single or Dual Isolated Outputs 1kVDC or 3kVDC options Wide temperature performance at full 0.75W load -40 C to 85C Industry Standard Pinouts 5V, 12V
MEASUREMENT UNCERTAINTY IN VECTOR NETWORK ANALYZER
MEASUREMENT UNCERTAINTY IN VECTOR NETWORK ANALYZER W. Li, J. Vandewege Department of Information Technology (INTEC) University of Gent, St.Pietersnieuwstaat 41, B-9000, Gent, Belgium Abstract: Precision
Push-Pull FET Driver with Integrated Oscillator and Clock Output
19-3662; Rev 1; 5/7 Push-Pull FET Driver with Integrated Oscillator General Description The is a +4.5V to +15V push-pull, current-fed topology driver subsystem with an integrated oscillator for use in
AN2658 Application note
Application note Using the analog to digital converter of the STM8S microcontroller Introduction The purpose of this application note is to explain how to use the Analog to Digital Converter implemented
A Collection of Differential to Single-Ended Signal Conditioning Circuits for Use with the LTC2400, a 24-Bit No Latency Σ ADC in an SO-8
Application Note August 999 A Collection of Differential to Single-Ended Signal Conditioning Circuits for Use with the LTC00, a -Bit No Latency Σ ADC in an SO- By Kevin R. Hoskins and Derek V. Redmayne
PCB Design Conference - East Keynote Address EMC ASPECTS OF FUTURE HIGH SPEED DIGITAL DESIGNS
OOOO1 PCB Design Conference - East Keynote Address September 12, 2000 EMC ASPECTS OF FUTURE HIGH SPEED DIGITAL DESIGNS By Henry Ott Consultants Livingston, NJ 07039 (973) 992-1793 www.hottconsultants.com
Application Note, V 2.2, Nov. 2008 AP32091 TC1766. Design Guideline for TC1766 Microcontroller Board Layout. Microcontrollers. Never stop thinking.
Application Note, V 2.2, Nov. 2008 AP32091 TC1766 Design Guideline for TC1766 Microcontroller Board Layout Microcontrollers Never stop thinking. Edition Published by Infineon Technologies AG 81726 München,
FM Radio Transmitter & Receiver Modules
FM Radio Transmitter & Receiver Modules T5 / R5 Features MINIATURE SIL PACKAGE FULLY SHIELDED DATA RATES UP TO 128KBITS/S RANGE UPTO 300 METRES SINGLE SUPPLY VOLTAGE INDUSTRY PIN COMPATIBLE QFMT5-434 TEMP
LM2704 Micropower Step-up DC/DC Converter with 550mA Peak Current Limit
Micropower Step-up DC/DC Converter with 550mA Peak Current Limit General Description The LM2704 is a micropower step-up DC/DC in a small 5-lead SOT-23 package. A current limited, fixed off-time control
Microcontroller to Sensor Interfacing Techniques
to Sensor Interfacing Techniques Document Revision: 1.01 Date: 3rd February, 2006 16301 Blue Ridge Road, Missouri City, Texas 77489 Telephone: 1-713-283-9970 Fax: 1-281-416-2806 E-mail: [email protected]
Application Note: PCB Design By: Wei-Lung Ho
Application Note: PCB Design By: Wei-Lung Ho Introduction: A printed circuit board (PCB) electrically connects circuit components by routing conductive traces to conductive pads designed for specific components
4 OUTPUT PCIE GEN1/2 SYNTHESIZER IDT5V41186
DATASHEET IDT5V41186 Recommended Applications 4 Output synthesizer for PCIe Gen1/2 General Description The IDT5V41186 is a PCIe Gen2 compliant spread-spectrum-capable clock generator. The device has 4
PCB Layout Considerations for Non-Isolated Switching Power Supplies
June 2012 PCB Layout Considerations for Non-Isolated Switching Power Supplies Henry J. Zhang Introduction The best news when you power up a prototype supply board for the very first time is when it not
Application Note TMA Series
1W, SIP, Single & Dual Output DC/DC Converters Features SIP Package with Industry Standard Pinout Package Dimension: 19.5 x 10.2 x 6.1 mm (0.77 x 0.4 x 0.24 ) 5V&12V Models 19.5 x 10.2 x 7.1 mm (0.77 x
Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM
Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES AC averaging technique used to rectify, amplify, and filter 50 Hz to 400 Hz sine-wave signals. Accepts inputs of between 20 mv to 550 V rms to give
Measuring Temperature withthermistors a Tutorial David Potter
NATIONAL INSTRUMENTS The Software is the Instrument Application Note 065 Measuring Temperature withthermistors a Tutorial David Potter Introduction Thermistors are thermally sensitive resistors used in
MP2259 1A, 16V, 1.4MHz Step-Down Converter
MP59 1A, 1V, 1.MHz Step-Down Converter TM The Future of Analog IC Technology DESCRIPTION The MP59 is a monolithic integrated stepdown switch mode converter with an internal power MOSFET. It achieves 1A
Step Response of RC Circuits
Step Response of RC Circuits 1. OBJECTIVES...2 2. REFERENCE...2 3. CIRCUITS...2 4. COMPONENTS AND SPECIFICATIONS...3 QUANTITY...3 DESCRIPTION...3 COMMENTS...3 5. DISCUSSION...3 5.1 SOURCE RESISTANCE...3
Reading: HH Sections 4.11 4.13, 4.19 4.20 (pgs. 189-212, 222 224)
6 OP AMPS II 6 Op Amps II In the previous lab, you explored several applications of op amps. In this exercise, you will look at some of their limitations. You will also examine the op amp integrator and
b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output
CMOS Analog IC Design - Chapter 10 Page 10.0-5 BLOCK DIAGRAM OF A DIGITAL-ANALOG CONVERTER b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output
Pulse Width Modulation Amplifiers EQUIVALENT CIRCUIT DIAGRAM. 200mV + - SMART CONTROLLER .01F OSC Q3. 2200pF
Pulse Width Modulation Amplifiers MSA MSA FEATURES LOW COST HIGH VOLTAGE VOLTS HIGH OUTPUT CURRENT AMPS kw OUTPUT CAPABILITY VARIABLE SWITCHING FREQUEY APPLICATIONS BRUSH MOTOR CONTROL MRI MAGNETIC BEARINGS
A Simple Current-Sense Technique Eliminating a Sense Resistor
INFINITY Application Note AN-7 A Simple Current-Sense Technique Eliminating a Sense Resistor Copyright 998 A SIMPE CURRENT-SENSE TECHNIQUE EIMINATING A SENSE RESISTOR INTRODUCTION A sense resistor R S,
ABB Drives. User s Manual HTL Encoder Interface FEN-31
ABB Drives User s Manual HTL Encoder Interface FEN-31 HTL Encoder Interface FEN-31 User s Manual 3AUA0000031044 Rev B EN EFFECTIVE: 2010-04-06 2010 ABB Oy. All Rights Reserved. 5 Safety instructions
Buffer Op Amp to ADC Circuit Collection
Application Report SLOA098 March 2002 Buffer Op Amp to ADC Circuit Collection Bruce Carter High Performance Linear Products ABSTRACT This document describes various techniques that interface buffer op
Programmable-Gain Transimpedance Amplifiers Maximize Dynamic Range in Spectroscopy Systems
Programmable-Gain Transimpedance Amplifiers Maximize Dynamic Range in Spectroscopy Systems PHOTODIODE VOLTAGE SHORT-CIRCUIT PHOTODIODE SHORT- CIRCUIT VOLTAGE 0mV DARK ark By Luis Orozco Introduction Precision
CONDUCTED EMISSION MEASUREMENT OF A CELL PHONE PROCESSOR MODULE
Progress In Electromagnetics esearch C, Vol. 42, 191 203, 2013 CONDUCTED EMISSION MEASUEMENT OF A CELL PHONE POCESSO MODULE Fayu Wan *, Junxiang Ge, and Mengxiang Qu Nanjing University of Information Science
EMI and t Layout Fundamentals for Switched-Mode Circuits
v sg (t) (t) DT s V pp = n - 1 2 V pp V g n V T s t EE core insulation primary return secondary return Supplementary notes on EMI and t Layout Fundamentals for Switched-Mode Circuits secondary primary
LM117 LM317A LM317 3-Terminal Adjustable Regulator
LM117 LM317A LM317 3-Terminal Adjustable Regulator General Description The LM117 series of adjustable 3-terminal positive voltage regulators is capable of supplying in excess of 1 5A over a 1 2V to 37V
CAPACITIVE SENSING MADE EASY, Part 2 Design Guidelines
CAPACITIVE SENSING MADE EASY, Part 2 Design Guidelines By Pushek Madaan and Priyadeep Kaur, Cypress Semiconductor Corp. When it comes to capacitive sensing design, layout plays a crucial role. Giving importance
2 TO 4 DIFFERENTIAL PCIE GEN1 CLOCK MUX ICS557-06. Features
DATASHEET 2 TO 4 DIFFERENTIAL PCIE GEN1 CLOCK MUX ICS557-06 Description The ICS557-06 is a two to four differential clock mux designed for use in PCI-Express applications. The device selects one of the
US-SPI New generation of High performances Ultrasonic device
US-SPI New generation of High performances Ultrasonic device Lecoeur Electronique - 19, Rue de Courtenay - 45220 CHUELLES - Tel. : +33 ( 0)2 38 94 28 30 - Fax : +33 (0)2 38 94 29 67 US-SPI Ultrasound device
