数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STM8S 数据表(PDF) 83 Page - STMicroelectronics

部件名 STM8S
功能描述  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

STM8S 数据表(HTML) 83 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 79Page - STMicroelectronics STM8S Datasheet HTML 80Page - STMicroelectronics STM8S Datasheet HTML 81Page - STMicroelectronics STM8S Datasheet HTML 82Page - STMicroelectronics STM8S Datasheet HTML 83Page - STMicroelectronics STM8S Datasheet HTML 84Page - STMicroelectronics STM8S Datasheet HTML 85Page - STMicroelectronics STM8S Datasheet HTML 86Page - STMicroelectronics STM8S Datasheet HTML 87Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 83 / 467 page
background image
DocID14587 Rev 14
83/467
RM0016
Clock control (CLK)
104
The LSI RC can be switched on and off using the LSIEN bit in the Internal clock register
(CLK_ICKR).
The LSIRDY flag in the Internal clock register (CLK_ICKR) indicates if the low-speed
internal oscillator is stable or not. At startup, the clock is not released until this bit is set by
hardware.
Calibration
Like the HSI RC, the LSI RC device is factory calibrated by ST. However, it is not possible to
perform further trimming.
Note:
When using the independent watchdog with the LSI as clock source, in order to guarantee
that the CPU will never run on the same clock in case of corruption, the LSI clock cannot be
the master clock if LSI_EN option bit is reset. Refer to the option bytes section in the
datasheet.
9.2
Master clock switching
The clock switching feature provides an easy to use, fast and secure way for the application
to switch from one master clock source to another.
9.2.1
System startup
For fast system startup, after a reset the clock controller configures the master clock source
as HSI RC clock output divided by 8 (HSI/8). This is to take advantage of the short
stabilization time of the HSI oscillator. The /8 divider is to ensure safe start-up in case of
poor VDD conditions.
Once the master clock is released, the user program can switch the master clock to another
clock source.
9.2.2
Master clock switching procedures
To switch clock sources, you can proceed in one of two ways:
Automatic switching
Manual switching
Automatic switching
The automatic switching enables, the user to launch a clock switch with a minimum number
of instructions. The software can continue doing other operations without taking care of the
switch event exact time.
To enable automatic switching, follow the sequence below (refer to the flowchart in
Figure 22):
1.
Enable the switching mechanism by setting the SWEN bit in the Switch control register
(CLK_SWCR).
2.
Write the 8-bit value used to select the target clock source in the Clock master switch
register (CLK_SWR). The SWBSY bit in the CLK_SWCR register is set by hardware,
and the target source oscillator starts. The old clock source continues to drive the CPU
and peripherals.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com