Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

AN2979 Datasheet(PDF) 10 Page - STMicroelectronics

Part # AN2979
Description  Implementing a simple ADC using the STM8L101xx comparator
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2979 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button AN2979 Datasheet HTML 4Page - STMicroelectronics AN2979 Datasheet HTML 5Page - STMicroelectronics AN2979 Datasheet HTML 6Page - STMicroelectronics AN2979 Datasheet HTML 7Page - STMicroelectronics AN2979 Datasheet HTML 8Page - STMicroelectronics AN2979 Datasheet HTML 9Page - STMicroelectronics AN2979 Datasheet HTML 10Page - STMicroelectronics AN2979 Datasheet HTML 11Page - STMicroelectronics AN2979 Datasheet HTML 12Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 10 / 12 page
background image
Measurements and calibration
AN2979
10/12
Doc ID 15651 Rev 1
The calibration is then performed by firware and the RC constant is updated. This constant
is used in the charge equation.
On the STM8L101-EVAL evaluation board, the COMP2 channel 4 (PD3) is connected to
VDD via a resistor bridge.
Figure 8.
Evaluation board calibration schematic
As VDD=3.3 V, PD3 is a fixed value equal to 0.4 V
In the file “param.h” you need to define the “expected_value” equal to 0.4 ( this value needs
to be updated if a different resistor bridge is used).
The specific function “Calibration()” configures the COMP2 Channel 4 and compares the
value measured on this channel with the expected value. This function then updates the RC
constant that will be used afterwards.
When the calibration is performed, the COMP2 configuration changes to use the Channel 3
(PD2).
The following table lists a few measurement examples with a calibration performed at
VDD=3.3 V, R=10 kΩ and C=100 nF.
Table 2.
Accuracy measurement when the calibration is performed
Value to be measured (V)
Measured value after conversion (V)
Error (%)
0.25
0.233
6.8%
0.5
0.475
5%
0.8
0.792
1.25%
10.99
1%
1.2
1.211
0.92%
1.5
1.512
0.8%
1.75
1.784
1.9%



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12


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