AN2669 STM8A Microcontroller Clock Configuration Application Note

This document provides practical examples of how to program the STM8A microcontroller clocks, including four clock sources and how to configure the STM8A CLK registers.


AN2669 STM8A Microcontroller Clock Configuration Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
8
File format
PDF
File size
98 KB
Published
07 August, 2012
Updated
28 September, 2023
Model
STM8A
MD5 checksum
5B32BDF389ED22C181FB2D3AB606F37E

About this manual

The document provides a guide on configuring the flexible clock controller (CLK) of the STM8A microcontroller. It details four available clock sources: the high-speed external crystal (HSE), high-speed user-external clock, high-speed internal RC oscillator (HSI), and low-speed internal RC (LSI). The note includes source code examples from the STM8 firmware library to demonstrate programming these registers.

What's inside

  • Clock security system capability
  • Automatic clock switching
  • Manual clock switching
  • Configuring clocks for maximum speed
  • Hardware description
  • Firmware description

Frequently asked questions

What are the four available clock sources for the STM8A?

The four clock sources are: 1-24 MHz high speed external crystal (HSE), up to 24 MHz high speed user-external clock, 16 MHz high speed internal RC oscillator (HSI), and 128 kHz low speed internal RC (LSI).

How can the STM8A microcontroller clocks be reconfigured?

The clocks can be reconfigured at any time to suit different requirements or functional modes in the application.

Where can I find the source code for the examples?

The source code of the examples is included in the STM8 firmware library.

Download PDF (98 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →