Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button 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 AN1711 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 40 page
background image
22/40
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
value is taken equivalent to 18µs which is 2µs greater than the required time. This is chosen
precisely so that the 3rd conversion is not finished before we read the ADC data registers.
With a timer frequency programmed as 1MHz, the time for comparison is taken as 14. (4
values for 0xFFFC to 0x0000)
Comment
The results obtained from executing the ADC conversion in WAIT mode are more accurate.
This can be seen from the difference between the maximum value and minimum value re-
corded for an analog input (see Figure 12). However these results can still be affected by ex-
ternal noise.
3.4 EXECUTING CODE FROM RAM
The technique of executing the code from RAM can also be used to reduce noise. This is be-
cause the CPU does not access the Flash memory to fetch the op-codes but accesses RAM
instead.
The disadvantage of this technique is that you need spare RAM to act as program memory.
You have to load the ADC conversion function into RAM from the Flash or ROM program
memory at some known free RAM locations and then use the in-line assembly code to exe-
cute this function.
In the software example provided, we have used the STACK top memory to execute the ADC
conversion. The ADC conversion function is loaded in the STACK area at address 100h. The
size of the function is 8Bytes. We used these locations because stack-pointer never reaches
these locations in the application. Take care not to use lot of RAM, otherwise the STACK area
will be corrupted by the function and there could be un-predictable results.



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