Electronic Components Datasheet Search
  English  ▼

X  

AN1711 Datasheet(PDF) 21 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) 21 Page - STMicroelectronics

Back Button AN1711 Datasheet HTML 17Page - STMicroelectronics AN1711 Datasheet HTML 18Page - STMicroelectronics AN1711 Datasheet HTML 19Page - STMicroelectronics AN1711 Datasheet HTML 20Page - STMicroelectronics AN1711 Datasheet HTML 21Page - STMicroelectronics AN1711 Datasheet HTML 22Page - STMicroelectronics AN1711 Datasheet HTML 23Page - STMicroelectronics AN1711 Datasheet HTML 24Page - STMicroelectronics AN1711 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 40 page
background image
21/40
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
Programming Tips
1. If you use the timer interrupt to exit from WAIT mode, take care that the time period should
not be defined in such a way that half the conversion is done in WAIT mode and rest when
the CPU is running. Otherwise you will not get the benefit of a conversion done in WAIT
mode.
2. You need to consider the execution done prior to entering WAIT mode. For example, the
ADC conversion is restarted and the WFI instruction is executed. This takes 7 cycles which
is approximately 1µs when fCPU=8 MHz.
So, the time programmed in output compare register must be equal to 1us+ADC conversion
time for one ADC conversion.
For 2 ADC conversions, the time will be 1µs+2*ADC conversion time.
3. Please note that the timer reset value is 0xFFFC. This means that it will take 4 timer cycles
to overflow and reset to 0000.
4. On some ST7 devices, the ADC has an End of Conversion interrupt capability, in this case
you can use the ADC interrupt directly to wake up from WAIT mode.
Figure 12. Illustration of Wait mode
In the software example, we take the time to do two ADC conversions while the CPU is in
WAIT mode. For ST72F324, this is around 16µs. (= 1µs+ 2*7.5µs). So, the timer compare
**Rows starting with ‘W’ are results from WAIT mode execution
**Rows starting with ‘A’ are results from execution from flash.
First column
is Maximum
value recorded
Second column
is minimum
value recorded
Average
Result
Difference
(Max - Min)



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