English
Language : 

AN3137 Datasheet, PDF (1/42 Pages) STMicroelectronics – Analog-to-digital converter on STM8L and STM8AL devices
AN3137
Application note
Analog-to-digital converter on STM8L and STM8AL devices:
description and precision improvement techniques
Introduction
This application note describes the 12-bit analog-to-digital converter (ADC) embedded in
the STM8L and STM8AL family microcontrollers. It offers a selection of hardware and
software methods for improving the precision of this ADC. It is divided into the following
sections:
■ The first section explains the internal design principle of the STM8L/STM8AL ADC.
■ The second section describes the ADC operation from the programmer’s point of view.
■ The final section lists the main types of errors that occur in ADCs and their sources. It
describes some hardware and software methods for minimizing these errors.
Firmware examples (source codes) are provided with this application note showing how to
implement STM8L/STM8AL ADC routines for minimizing measurement errors.
This document applies to the products listed in Table 1.
Table 1. Applicable products
Product family
Part numbers
– STM8L05xxx
– STM8L151C2/K2/G2/F2, STM8L151C3/K3/G3/F3
– STM8L151x4, STM8L151x6, STM8L151x8
Microcontrollers – STM8L152x4, STM8L152x6, STM8L152x8
– STM8L162R8, STM8L162M8
– STM8AL313x, STM8AL314x, STM8AL316x
– STM8AL3L4x, STM8AL3L6x
November 2012
Doc ID 16983 Rev 3
1/42
www.st.com