STM8s external clock crystal failure clock safety system CSS startup demonstration

Publisher:DreamySerenityLatest update time:2020-03-09 Source: eefocusKeywords:STM8s Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

insert image description here
insert image description here
insert image description here
insert image description here

The minimum system crystal used is 8m.

Here is the configuration process:


Automatic clock switching, enable switching interrupt

Clear the interrupt flag in the interrupt, enable CSS and turn on CSS interrupt

When a CSS interrupt occurs, clear the CSS interrupt flag and divide the HSI frequency by two, that is, 16M/2=8M, which is the same as the external crystal oscillator. This will not affect the serial port baud rate.

The window outputs configuration information:

insert image description here

Touching the PA1 and PA2 pins with your hands will cause the external crystal oscillator to fail.

insert image description here

Serial port output CSS interrupt

Keywords:STM8s Reference address:STM8s external clock crystal failure clock safety system CSS startup demonstration

Previous article:STM8S103 clock setting
Next article:NRF51822 using external 32Mhz crystal

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号