English
Language : 

AN2822 Datasheet, PDF (1/19 Pages) STMicroelectronics – STM8S and STM8A high speed internal oscillator calibration
AN2822
Application note
STM8S and STM8A high speed internal oscillator calibration
Introduction
This application note describes how to take advantage of the 16 MHz internal RC oscillator
trimming feature on the STM8S and STM8A microcontroller to improve the frequency
accuracy of the system compensating voltage and temperature frequency drift. The
calibration technique, using the mains frequency as a timebase, is presented with an
example of both hardware and software solutions. The example source code can be
downloaded from the www.st.com.
To benefit fully from the information in this application note, the user should be familiar with
the STM8S and STM8A microcontroller architecture and with the basics of C language.
For further information on the STM8S and STM8A family features, pinout, electrical
characteristics, mechanical data and ordering information, please refer to the STM8S and
STM8A datasheets.
This document and its associated firmware, are written to accompany the STM8S and
STM8A firmware library. Please contact STMicroelectronics for information on the STM8S
and STM8A firmware library.
August 2011
Doc ID 14983 Rev 2
1/19
www.st.com