数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN2979 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN2979
功能描述  Implementing a simple ADC using the STM8L101xx comparator
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2979 数据表(HTML) 9 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
 9 / 12 page
background image
AN2979
Measurements and calibration
Doc ID 15651 Rev 1
9/12
The following figure shows the impact of the capacitor and resistor accuracy.
Figure 7.
Charge equation depending on RC accuracy
1.
In blue: Vmeasacc1 ---- In red: Vmeas ---- In green: Vmeasacc2
2.
Condition: VDD=3.3 V
Note:
The results are not only impacted by the marging error due to hardware components but
also by the accuracy of the MCU clock. In this example, the device works at a HSI frequency
of 16 MHz at 25 °C, that is, with a clock accuracy of 1% (refer to the datasheet).
The temperature variation also impacts the accuracy of the measured value as the
microcontroller, resistors and capacitors are temperature dependent.
4.3
How to get a better accuracy
4.3.1
Hardware solution
The first solution is to choose components with a high accuracy value (this may imply a
higher cost).
4.3.2
Software solution
The second solution is to calibrate the RC constant in the software using VDD as a
reference.
Implementation description
In order to perform the calibration, you need to uncomment the “#define calibration” in the
“param.h” file.
y = 3.3(1-exp(-x/0.882))
y = 3.3(1-exp(-x))
y = 3.3(1-exp(-x/1.122))
0.5
1
1.5
2
2.5
3
0.5
1
1.5
2
2.5
V
ms
Vmeas_max = 2.05
tmax
tacc1max
tacc2max
tacc2max = 1.09 ms
tacc1max = 0.856ms
tmax = 0.970ms



Html Pages

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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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