STMicroelectronics AN1324 ST7FLITEO MCU RC Oscillator Calibration Application Note

This application note presents a software solution using the frequency of the European standard mains (220V/50Hz) as a timebase to adjust the internal RC oscillator of the ST7FLITE0 microcontroller.


STMicroelectronics AN1324 ST7FLITEO MCU RC Oscillator Calibration Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
15
File format
PDF
File size
117 KB
Published
07 August, 2012
Updated
29 September, 2023
MD5 checksum
6D2F976B125315B7E3BADB9C71A78E73

About this manual

The document details a method to trim the RC oscillator of the ST7FLITEO microcontroller to a specific frequency with 1% accuracy. It presents a software algorithm that uses the European (220V/50Hz) or US (110V/60Hz) mains frequency as a timebase to adjust the oscillator via the RCCR register. The note provides two software versions: a basic version requiring less than 90 bytes of program memory and an average version for noisy mains environments.

What's inside

  • Introduction
  • Calibration Software
  • Basic Version
  • Average Version
  • Power Supply Circuit
  • Hardware Protection
  • Conclusion

Specifications

Oscillator Accuracy1%
Basic Version Memoryless than 90 bytes of program memory
Basic Version RAMfive bytes of RAM
Basic Version Calibration Timeless than 160 ms
Average Version Memory136 bytes of program memory
Average Version RAM11 bytes of RAM
Average Version Calibration Timeless than 560 ms

Frequently asked questions

What is the purpose of this application note?

The purpose is to present a software solution using the frequency of the European standard mains (220V/50Hz) as a timebase to adjust the internal RC oscillator of the ST7FLITEO to 1 MHz (1%).

How does the calibration software work?

The software uses the mains frequency as a timebase to test if the RC oscillator frequency is above or below 1 MHz and repeatedly transforms it by dichotomous analysis so that in 7 iterations the RCCR is set to the optimum value.

Download PDF (117 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →