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

X  

AN1798 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN1798
功能描述  This application note describes
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1798 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN1798 Datasheet HTML 5Page - STMicroelectronics AN1798 Datasheet HTML 6Page - STMicroelectronics AN1798 Datasheet HTML 7Page - STMicroelectronics AN1798 Datasheet HTML 8Page - STMicroelectronics AN1798 Datasheet HTML 9Page - STMicroelectronics AN1798 Datasheet HTML 10Page - STMicroelectronics AN1798 Datasheet HTML 11Page - STMicroelectronics AN1798 Datasheet HTML 12Page - STMicroelectronics AN1798 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 16 page
background image
AN1798
Calibration and linearization technique
9/16
3.3
Firmware description
The calibration, the linearization and offset compensation are done by software. As
described in Section 3.1, the ADC conversation range, the gain and the quantum are
computed. Figure 6 shows an example flowchart of the software:
Figure 6.
Calibration firmware implementation
Configure ADC inputs to high
impedance analog inputs
Configure the prescaler
Configure the conversion mode:
Single
Start the conversion
Compute the average of the
converted value: 2.5V (ADC_MAX)
Compute the average of the
converted value: 0V (ADC_Min)
Start of calibration
Select Channel 3
Get the conversion:
Calibrated_Result_Data =
End of Calibration
Compute the unsigned value of
Conversion_Result:
Select ADC Channel 1
Select ADC Channel 0
Compute the unsigned value of
2.5V: Unsigned_MAX
Compute the unsigned value of
0V: Unsigned_Min
Compute the sweep of conversion
Compute the quantum q
Start of conversion
polling on Channel 3
Unsigned_Result - Unsigned_Min
q = 2.5V/sweep
sweep = Unsigned_MAX - Unsigned_Min
Calibration section
Get calibrated conversion results
section
Calibrated_Result_Volt =
Calibrated_Result_Data * q
Conversion_Result
Unsigned_Result
Note: The delivered software and
flowcharts are compatible with
the following hardware configuration:
Channel_0 to read the ground value
Channel_1 to read the 2.5 V value
Channel_3 to convert the signal
You can modify the hardware configuration
but then you have to change also
the software to be in line with your hardware.
Please refer to Figure 5.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


数据表 下载

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