Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN3137 Datasheet(PDF) 37 Page - STMicroelectronics

Part # AN3137
Description  Analog-to-digital converter on STM8L and STM8AL devices
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3137 Datasheet(HTML) 37 Page - STMicroelectronics

Back Button AN3137 Datasheet HTML 33Page - STMicroelectronics AN3137 Datasheet HTML 34Page - STMicroelectronics AN3137 Datasheet HTML 35Page - STMicroelectronics AN3137 Datasheet HTML 36Page - STMicroelectronics AN3137 Datasheet HTML 37Page - STMicroelectronics AN3137 Datasheet HTML 38Page - STMicroelectronics AN3137 Datasheet HTML 39Page - STMicroelectronics AN3137 Datasheet HTML 40Page - STMicroelectronics AN3137 Datasheet HTML 41Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 37 / 42 page
background image
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)



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 41 42


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