Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button AN1711 Datasheet HTML 32Page - STMicroelectronics AN1711 Datasheet HTML 33Page - STMicroelectronics AN1711 Datasheet HTML 34Page - STMicroelectronics AN1711 Datasheet HTML 35Page - STMicroelectronics AN1711 Datasheet HTML 36Page - STMicroelectronics AN1711 Datasheet HTML 37Page - STMicroelectronics AN1711 Datasheet HTML 38Page - STMicroelectronics AN1711 Datasheet HTML 39Page - STMicroelectronics AN1711 Datasheet HTML 40Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 36 / 40 page
background image
36/40
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
5.1.1 ADC_tech.h
This file contains the Parameters, Constants (#define), and some macros, which are used in
the ADC_tech.c file
It also contains the prototype declarations for the functions contained in the ADC_tech.c file.
5.1.2 ADC_tech.c
This file contains the software for the ADC techniques described in this application note. It
contains the different functions written in C and inline assembly code is used wherever neces-
sary.
5.1.3 Main.c
This file contains the various test routines for demonstrating the ADC techniques. The data re-
ceived from the different routines is transmitted to the PC through the RS232.
5.2 DEPENDENCIES
The software uses the ST7 Software Library, which is freely available on http://mcu.st.com
This library path used is c:\ST7_lib. You are requested to modify the path in default.env file to
specify the path of ST7 software library.
The software was tested using the HIWARE toolchain.
Some parts of the source code directly access the hardware registers which is not normally
recommended when using ST7 Library. This is done to reduce the code size and execution
time so as to demonstrate the ADC technique under discussion. Necessary software modifi-
cations are done to support this direct access to the registers by including peripheral register
files.
5.3 GLOBAL VARIABLES
The software uses global variables depending on the ADC technique. You can select a tech-
nique by enabling the corresponding declaration in adc_tech.h.
Some global variables are used only for demo purposes and they can be enabled by defining
ADC_TEST as 1 in ADC_tech.h
“#define ADC_TEST 1”
All the variables are placed in “default RAM”. Depending on the device, you can place the var-
iables in “short memory” to save code size and execution time.



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