| Moteur de recherche de fiches techniques de composants électroniques |
|
AN3137 Fiches technique(PDF) 37 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3137 Fiches technique(HTML) 37 Page - STMicroelectronics |
|
37 / 42 page ![]() AN3137 Source code examples Doc ID 16983 Rev 3 37/42 Appendix A Source code examples A.1 Project code example A firmware package is linked with this document. It contains source codes in C-language which gives examples of some of the precision improvement methods described in this application note. This complete project is designed for the ST Visual Develop (STVD) development environment and Cosmic/Raisonance compiler and using the STM8L1526 evaluation board. With these examples you can see how the methods are implemented in practice and you can test them by comparing ADC precision with improvement methods and without them. Package name: STM8L_ADC_improvement.zip Project name: STM8L_ADCPrecisionImprovement.stw A.2 Source code description The example consists of a complete STVD project. This project contains source codes in files: main.c main program file (MCU initialization, main program loop) ADCAveraging.c ADCCalibration.c ADCWhiteNoise.c Filter50Hz.c FFT.c testing - each file for given ADC precision improvement method (uses STM8L library) mono_lcd.c basic driver for writing to LCD display (on the STM8L evaluation board) mallocR.c malloc implementation for Raisonance compiler ADCdriverFFT.c ADCfncFFT.c auxiliary functions for FFT implementation (hardware access and general functions) stm8_interrupt_vector.c contains interrupt table address definition for Cosmic compiler “*.h” files corresponding header files for used C - files and definitions /Library subdirectory which contains complete STM8L15x library (stm8l15x_adc.c, stm8l15x_beep.c, stm8l15x_clk.c, stm8l15x_comp.c, stm8l15x_dac.c, stm8l15x_dma.c, stm8l15x_exti.c, stm8l15x_flash.c, stm8l15x_gpio.c, stm8l15x_i2c.c, stm8l15x_irtim.c, stm8l15x_itc.c, stm8l15x_iwdg.c, stm8l15x_lcd.c, stm8l15x_pwr.c, stm8l15x_rst.c, stm8l15x_rtc.c, stm8l15x_spi.c, stm8l15x_syscfg.c, stm8l15x_tim1.c, stm8l15x_tim2.c, stm8l15x_tim3.c, stm8l15x_tim4.c, stm8l15x_usart.c, stm8l15x_wfe.c, stm8l15x_wwdg.c) |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |