| Electronic Components Datasheet Search |
|
AN1711 Datasheet(PDF) 36 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1711 Datasheet(HTML) 36 Page - STMicroelectronics |
|
36 / 40 page ![]() 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. |
|
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 |
| 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 |