Electronic Components Datasheet Search
  English  ▼

X  

AN2719 Datasheet(PDF) 20 Page - STMicroelectronics

Part # AN2719
Description  Precision improvement techniques
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2719 Datasheet(HTML) 20 Page - STMicroelectronics

Back Button AN2719 Datasheet HTML 14Page - STMicroelectronics AN2719 Datasheet HTML 15Page - STMicroelectronics AN2719 Datasheet HTML 16Page - STMicroelectronics AN2719 Datasheet HTML 17Page - STMicroelectronics AN2719 Datasheet HTML 18Page - STMicroelectronics AN2719 Datasheet HTML 19Page - STMicroelectronics AN2719 Datasheet HTML 20Page - STMicroelectronics AN2719 Datasheet HTML 21Page - STMicroelectronics AN2719 Datasheet HTML 22Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 20 / 22 page
background image
Appendix - source code examples
AN2719
20/22
6.2.1
Program flow
In the main.c file is the main program loop - in function main(). At the beginning is the basic
MCU initialization: GPIO pins (LED diodes, buttons), CPU clock, interrupts. Then the main
testing loop begins - it consists of the ADC initialization and series of steps (methods).
Each test step contains a write to the LCD display to display information about the running
test and then contains the test routine itself. The test routines are provided in listed files -
each file for each method. To continue from one test to the next, the user must press a
button (joystick select button on evaluation board). After all tests are done, then the ADC is
reconfigured to higher speed and the test loop runs again.
Tests are:
●
TestADCAveraging();
–
ADC in single mode
–
averaging method applied
●
TestADCWhiteNoise();
–
ADC in continuous mode
–
averaging method applied
●
TestADCDigitalFilter50Hz();
–
ADC in single mode
–
external timer trigger
–
simple comb 50 Hz filter applied
●
TestADCFFT();
–
ADC in single mode
–
external timer trigger
–
16-point FFT applied
●
TestADCCalibration();
–
ADC in single mode
–
software start
–
simple linear model applied (offset and gain calibrated)
6.2.2
Hardware and software requirements
To run the project example you must have installed STVD (min. version 3.5.0) and Cosmic
compiler for STM8 family. Both tools are free for download from STMicroelectronics and
Cosmic websites.
The hardware requirement is to have STM8 evaluation board with STM8S - 128K chip
installed. Instead of a real STM8 chip you can use STice emulator.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


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