EasyManua.ls Logo

ST STM8S

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
Loading...
Clock control (CLK) RM0016
84/449 Doc ID 14587 Rev 8
Figure 22. Clock switching flowchart (automatic mode example)
Reset
MCU in Run mode with HSI/8
Write target clock source in CLK_SWR
Target clock source ready after
CLK_SWR
CLK_CMSR
SWBSY
0
Set SWEN bit in CLK_SWCR
Target clock source powered on
SWBSY
1
stabilization time
Switch busy
MCU in Run mode
with new master clock source
SOFTWARE ACTIONHARDWARE ACTION
Reset switch busy flag
Update clock master status
Clear SWIF flag
Set SWIEN bit in CLK_SWCR to enable interrupt if suitable
Interrupt if activated
SWIF
1
Switch done

Table of Contents

Other manuals for ST STM8S

Related product manuals