Part # Application Notes General Purpose Products STM8S208RB STM8S208MB STM8S207R8 STM8S207CB STM8S207C8 STM8S205S6 STM8S205K6 STM8S205 datasheet

Part Manufacturer: ST Microelectronics

ST Microelectronics

Part Description: Precision improvement techniques for the A D converter of the STM8 microcontroller


Part Details:

AN2719 Application note Precision improvement techniques for the A/D converter of the STM8 microcontroller Introduction This application note describes a selection of hardware and software methods for improving the precision of the on-chip A/D converter of the STM8 microcontroller (STM8 ADC). It is divided into three sections: The first section explains the internal design principle of the STM8 ADC. The next section lists the main types of error that occur in A/D converters and their sources. The last section describes some hardware and software methods for minimizing these errors. Firmware examples (source codes) are provided with this application note showing how to implement STM8 ADC routines for minimizing measurement errors. May 2008 Rev 1 1/22 www.st.com Content AN2719 Content 1 STM8 ADC internal hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 SAR principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 ADC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.3 Reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4 Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 ADC errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 Linearity errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.1 Differential nonlinearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2.2 Integral nonlinearity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 Offset error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 Gain error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.5 Hardware design errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.5.1 External resistance design error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.5.2 Reference voltage source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5.3 Temperature influence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5.4 AC performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3


Please click the following link to download the datasheet:

Application Notes General Purpose Products STM8S208RB STM8S208MB STM8S207R8 STM8S207CB STM8S207C8 STM8S205S6 STM8S205K6 STM8S205.pdf Datasheet