STMicroelectronics AN3300 Application Note

This application note describes how to calibrate the HSI and MSI internal RC oscillators of STM32L1xx MCUs


STMicroelectronics AN3300 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
28
File format
PDF
File size
404 KB
Published
06 August, 2012
Updated
30 September, 2023
MD5 checksum
26E9F75EEA7E9F4F96646312B9D00FDF

About this manual

The STM32L1xx microcontroller family includes two internal RC oscillators, the High-Speed Internal (HSI) and the Multi-Speed Internal (MSI), which can serve as system clock sources. While factory-calibrated for 1% accuracy at 25 °C, their frequency accuracy decreases across the operating temperature range of -40 to 105 °C. This document details methods to compensate for temperature-induced variations by calibrating these oscillators using an accurate reference signal.

What's inside

  • STM32L1xx system clock
  • Internal RC oscillator calibration
  • Calibration principle
  • Hardware implementation
  • Internal oscillator calibration firmware
  • Internal oscillator frequency measurement
  • Calibration process performance
  • Revision history

Specifications

HSI typical frequency16 MHz
Factory accuracy at 25 °C+1% typically
Operating temperature range-40 to 105 °C
HSI trimming step size0.5%
MSI frequency ranges65.5 kHz to 4.2 MHz

Frequently asked questions

What is the factory calibration accuracy of STM32L1xx internal oscillators at 25 °C?

The HSI and MSI oscillators have an accuracy of +1% typically at 25 °C.

How can the accuracy of internal RC oscillators be improved?

Accuracy can be improved by calibrating the HSI and MSI oscillators using an accurate reference signal to compensate for temperature influence.

What reference signals can be used for calibration?

An accurate reference signal such as the LSE frequency (32.768 kHz crystal) or the 50 Hz/60 Hz of the mains can be used.

Download PDF (404 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →