STM32F10xxx Internal RC Oscillator Calibration Application Note AN2868

This document describes the methods for calibrating the internal RC oscillator (HSI) of the STM32F10xxx microcontrollers. By calibrating, the accuracy of the HSI frequency can be improved, which is crucial for communication peripherals.


STM32F10xxx Internal RC Oscillator Calibration Application Note AN2868 - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
22
File format
PDF
File size
189 KB
Published
07 August, 2012
Updated
29 September, 2023
MD5 checksum
6476AF2C9AEE7DC31EF9A24689A6997B

About this manual

The document explains that the STM32F10xxx series microcontrollers feature an internal 8 MHz RC oscillator (HSI) with typical accuracy of +1% at 25°C, which can drift up to +3% across a temperature range of -40 to 105°C. To compensate for these variations and improve frequency accuracy for communication peripherals, the note details user runtime calibration routines.

What's inside

  • Introduction
  • HSI Clock Description
  • RC Calibration Principle
  • RTC/64 Reference Implementation
  • Mains Frequency Reference Implementation
  • Calibration Library Functions
  • Frequency Measurement Accuracy
  • Calibration Process Duration

Specifications

HSI Nominal Frequency8 MHz
Typical Accuracy at 25°C+1%
Maximum Accuracy Range (-40 to 105°C)+3%
RTC Reference Frequency512 Hz

Frequently asked questions

What are the two methods for calibrating the internal RC oscillator?

The document provides two methods: finding the frequency with the minimum error or finding the maximum allowed frequency error.

Which register bits are used for user calibration?

User calibration is performed by setting the HSITRIM[4:0] bits in the RCC_CR register.

What reference frequencies can be used for calibration?

An accurate reference source such as an RTC/64 signal (512 Hz) or a mains source signal (50 Hz/60 Hz) can be used.

Download PDF (189 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →