STMicroelectronics AN1711 Application Note Software Techniques for Compensating ST7 ADC Errors

This application note introduces some software techniques for compensating and minimising ST7 ADC errors. The document also provides some general tips on writing ADC software. For a list of related application notes that contain other useful information about ADCs see section 6 on page 39. This document provides some methods of calibrating the ADC. Some ADC errors like Offset and Gain errors can be cancelled using these simple software techniques. Other errors like Differential Linearity Error and Integral Linearity Error are associated with the ADC design and cannot be compensated easily. The example software provided with this application note is explained in brief in section 5 on page 35.


STMicroelectronics AN1711 Application Note Software Techniques for Compensating ST7 ADC Errors - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
40
File format
PDF
File size
639 KB
Published
07 August, 2012
Updated
30 September, 2023
Model
ST7
MD5 checksum
63B1F5E16E401A83D564EEB38B5B1277

About this manual

The document provides guidelines for programming the ADC, including checking device support for maximum frequency, selecting conversion channels, polling for end of conversion, and reading results. It details specific procedures such as entering HALT mode and using timers for periodic conversions.

Furthermore, it covers advanced software techniques to improve accuracy, such as averaging, histogram analysis, and noise filtering algorithms. The note also discusses methods for reducing system noise by utilizing slow or wait modes and executing code from RAM.

What's inside

  • General Software Considerations
  • Checking for FADC (MAX) Support
  • Selecting Conversion Channel
  • Polling for End of Conversion
  • Reading ADC Conversion Results
  • Entering HALT Mode
  • Using a Timer for Periodic Conversions
  • Averaging Technique
  • Histogram Technique
  • Noise Filtering Algorithm

Frequently asked questions

How do you read the result from a 10-bit ADC?

Read the ADCDRL register first, then read the ADCDRH register. Combine them by left-shifting ADCDRH by 2 bits and OR-ing with the value of ADCDRL.

How can low voltage signals be amplified?

Switch the built-in amplifier ON using a control bit to zoom for lower voltages.

Download PDF (639 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →