Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1711 Datasheet(PDF) 8 Page - STMicroelectronics

Part # AN1711
Description  SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1711 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button AN1711 Datasheet HTML 4Page - STMicroelectronics AN1711 Datasheet HTML 5Page - STMicroelectronics AN1711 Datasheet HTML 6Page - STMicroelectronics AN1711 Datasheet HTML 7Page - STMicroelectronics AN1711 Datasheet HTML 8Page - STMicroelectronics AN1711 Datasheet HTML 9Page - STMicroelectronics AN1711 Datasheet HTML 10Page - STMicroelectronics AN1711 Datasheet HTML 11Page - STMicroelectronics AN1711 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 40 page
background image
8/40
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
2 SOFTWARE TECHNIQUES
2.1 AVERAGING TECHNIQUE
Averaging is a simple technique where you sample an analog input several times and take the
average of the results. This technique is helpful in eliminating the effect of noise on the analog
input or wrong conversion.
As we take the average of several readings, these readings must correspond to the same an-
alog input voltage. You should take care that the analog input remains at the same voltage
during the time period when the conversions are done. Otherwise you will add digital values
corresponding to different analog inputs and introduce errors.
In other words the analog input should not change in-between the different readings consid-
ered for the averaging.
It is better to collect the samples in multiples of 2. This makes it more efficient to compute the
average because you can do the division by right-shifting the sum of the converted values.
This saves CPU time and code memory needed to execute a division algorithm.
For example take 8,16, 32 samples etc., and then take the average.
Figure 1. Graphical representation of Averaging technique
Practical measurement
To obtain the results, this averaging technique is used to measure the voltage on one of the
microcontroller’s analog input pins. A total of 16 conversions is taken and the average is cal-
culated. This is done in a loop in the firmware.
Digital
Output
Number of Conversions
Average
Value



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com