EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #81 background imageLoading...
Page #81 background image
RM0016 Clock control (CLK)
Doc ID 14587 Rev 8 81/449
Fast wakeup feature
If the FHWU bit in the Internal clock register (CLK_ICKR) is set, this automatically selects
the HSI clock as master clock after MCU wakeup from Halt or Active-halt (see Low power
chapter).
Calibration
Each device is factory calibrated by ST.
After reset, the factory calibration value is automatically loaded in an internal calibration
register.
If the application is subject to voltage or temperature variations this may affect the RC
oscillator speed. You can trim the HSI frequency in the application using the HSI clock
calibration trimming register (CLK_HSITRIMR). In this register there are 3 or 4 bits providing
an additional trimming value that is added to the internal HSI calibration register value.
The width of the trimming steps with 4 bits is half the trimming step width with 3 bits.
As the trimming step width depends on the absolute frequency of the RC oscillator, a
successive approximation method needs to be applied for the trimming. This method is
described in a separate technical document.
9.1.3 LSI
The 128 kHz LSI RC acts as a low power, low cost alternative master clock source as well
as a low power clock source that can be kept running in Halt mode for the independent
watchdog (IWDG) and auto-wakeup unit (AWU).
The LSI RC can be switched on and off using the LSIEN bit in the Internal clock register
(CLK_ICKR).
Table 14. Devices with 4 trimming bits
Trimming bits value Trimming steps Trimming bits value Trimming steps
0111b +6 1111b -1
0101b +5 1110b -2
0100b +4 1101b -3
0011b +3 1100b -4
0010b +2 1011b -5
0001b +1 1010b -6
0000b 0 1001b -7
Table 15. Devices with 3 trimming bits
Trimming bits value Trimming steps Trimming bits value Trimming steps
011b +3 111b -1
010b +2 110b -2
001b +1 101b -3
000b 0 100b -4

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM8S and is the answer not in the manual?

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals