Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN1798 Datasheet(PDF) 9 Page - STMicroelectronics

Part # AN1798
Description  This application note describes
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1798 Datasheet(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


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