ST AN2326 Application Note

This application note describes how to use the mains to calibrate the ST7ULTRALITE MCU's RC oscillator.


ST AN2326 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
20
File format
PDF
File size
245 KB
Published
07 August, 2012
Updated
30 September, 2023
MD5 checksum
42CB5CF788A6F80782B340EADADCFAA9

About this manual

The ST7ULTRALITE microcontroller contains an internal RC oscillator that requires software calibration to achieve specific frequency accuracy. This document presents a method to trim the oscillator using the RCCR and SICSR registers, utilizing the European (50Hz) or US (60Hz) mains frequency as a precise timebase reference. The software performs a dichotomous analysis to adjust the oscillator frequency to 1 MHz or 8 MHz depending on the configuration.

What's inside

  • Calibration software
  • Software principle
  • Basic version
  • Average version
  • Power supply circuit
  • Hardware protection
  • Revision history

Specifications

Program memory usage (basic version)less than 128 bytes
RAM usage (basic version)five bytes
Calibration time (average version)less than 800 ms
Program memory usage (average version)136 bytes
RAM usage (average version)11 bytes
Target oscillator frequency1 MHz or 8 MHz

Frequently asked questions

How is the RC oscillator calibrated?

The software uses the mains frequency as a timebase to test if the RC oscillator frequency is above or below the targeted frequency and repeatedly transforms it by dichotomous analysis.

What is the maximum current available with a 220nF capacitor?

With a 220nF capacitor (C2), the available current is limited to 4.9 mA in the case of a European mains.

Download PDF (245 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →