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