Electronic Components Datasheet Search
  English  ▼

X  

AN3137 Datasheet(PDF) 38 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) 38 Page - STMicroelectronics

Back Button 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 AN3137 Datasheet HTML 42Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 38 / 42 page
background image
Source code examples
AN3137
38/42
Doc ID 16983 Rev 3
A.2.1
Program flow
The main.c file contains the main program loop - in function main(). At the beginning, the
basic MCU initialization is performed: clock, interrupts, display... Then the main testing loop
begins - it consists of series of steps.
Each test step contains a write to the LCD display to display information about the running
test and then contains the call to test routine itself. The test routines are provided in the
corresponding file. To continue from one test to the next, the user must press a “Key” button
on evaluation board. After all tests are done, then the test loop runs again.
Tests are:
●
TestADCAveraging();
–
ADC in single mode - channel 24
–
averaging method applied
●
TestADCWhiteNoise();
–
ADC in single mode - channel 24
–
averaging method applied
●
TestADCDigitalFilter50Hz();
–
ADC in single mode - channel 24
–
external timer trigger
–
simple digital comb 50 Hz filter applied
●
TestADCCalibration();
–
ADC in single mode
–
simple linear model applied (offset and gain calibrated)
●
TestADCFFT();
–
ADC in single mode
–
external timer trigger
–
16-point FFT applied
A.2.2
User interface description
A user interface is available to test the described example. It consists of an LCD display and
buttons on the evaluation board. These are the steps to follow:
1.
Load the example firmware onto the evaluation board
2.
Run the program (resetting the evaluation board); the invitation screen appears.
3.
Connect the signal to the BNC connector
4.
Press the joystick
The main program loop begins, with the following methods shown:
Averaging method:
●
the first line on LCD shows the difference (maximum-minimum) from raw samples
(buffer is 200 samples)
●
the second line on LCD shows the difference (maximum-minimum) from averaged
samples (floating average of 10 samples)
●
to stop the method press the “Key” button



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