匿名
未登录
登录
丢石头百科
搜索
查看“STM8 主时钟状态寄存器”的源代码
来自丢石头百科
名字空间
页面
讨论
更多
更多
页面选项
查看
查看源代码
历史
←
STM8 主时钟状态寄存器
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<table border="0" cellpadding="0" cellspacing="0" style="color: rgb(72, 61, 139); font-family: Arial, 新宋体, 微软雅黑; font-size: 12px;" width="780"><tbody><tr><th class="type_483D8B" scope="col" style="line-height: 20px; font-weight: normal; border-top-style: none;" valign="top"> STM8主时钟状态寄存器(CLK_CMSR) 地址偏移值:0x03 复位值:0xE1 [[File:STM8_P54_1.jpg]] <table border="1" height="105" width="541"><tbody><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;" width="49">位7:0</th><td align="left" style="padding-left: 10px; padding-right: 5px;" width="476">CKM[7:0]:主时钟状态位 由硬件置位或清除。用以指示当前所选的主时钟源。如果该寄存器中的值为无效值,则产生MCU复位 0xE1:HSI为主时钟源(复位值) 0xD2:LSI为主时钟源(仅当LSI_EN选项位为1时) 0xB4:HSE为主时钟源</td></tr></tbody></table> STM8主时钟切换寄存器(CLK_SWR) 地址偏移值:0x04 复位值:0xE1 [[File:STM8_P55_1.jpg]] <table border="1" height="105" width="541"><tbody><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;" width="49">位7:0</th><td align="left" style="padding-left: 10px; padding-right: 5px;" width="476">SWI[7:0]:主时钟选择位 由软件写入。用以选择主时钟源。当时钟切换正在进行(SWBSY=1)时,该寄存器的内容将被写保护。如果寄存器CLK_CSSR的位AUX=1,则该寄存器将被置位复位值(HSI)。如果选择了快速Halt唤醒模式(寄存器CLK_ICKR的位FHW=1),从停机(Halt)/活跃停机(Active Halt)唤醒时,该寄存器将被硬件设置为E1h(选择HSI) 0xE1:HSI为主时钟源(复位值) 0xD2:LSI为主时钟源(仅当LSI_EN选项位为1时) 0xB4:HSE为主时钟源</td></tr></tbody></table> STM8切换控制寄存器(CLK_SWCR) 地址偏移值:0x05 复位值:未定义 [[File:STM8_P56_1.jpg]] <table border="1" height="105" width="541"><tbody><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;" width="49">位7:4</th><td align="left" style="padding-left: 10px; padding-right: 5px;" width="476">保留。始终为0。</td></tr><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;">位3</th><td align="left" style="padding-left: 10px; padding-right: 5px;">SWIF:时钟切换中断标志位 由硬件置位或软件写0清除。该位的含义取决于SWEN位的状态。参见图15和图16。 手动切换模式下(SWEN=0): 0:目标时钟源未准备就绪 1:目标时钟源准备就绪 自动切换模式下(SWEN=0): 0:无时钟切换事件发生 1:有时钟切换事件发生</td></tr><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;">位2</th><td align="left" style="padding-left: 10px; padding-right: 5px;">SWIEN:时钟切换中断使能 由软件置位或清除 0:时钟切换中断禁用 1:时钟切换中断使能</td></tr><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;">位1</th><td align="left" style="padding-left: 10px; padding-right: 5px;">SWEN:切换启动/停止 由软件置位或清除。向该位写1将切换主时钟至寄存器CLK_SWR指定的时钟源。 0:禁止时钟切换的执行 1:使能时钟切换的执行</td></tr><tr bgcolor="#FFFFFF" class="type_483D8B" style="font-size: 12px; line-height: 20px; border-top-style: none; color: rgb(72, 61, 139);"><th class="type_483D8B_12px_b" style="font-family: Arial, Helvetica, sans-serif;">位0</th><td align="left" style="padding-left: 10px; padding-right: 5px;">SWBSY:切换忙 由硬件置位或清除。可由软件清除以复位时钟切换过程。 0:无时钟切换在进行。 1:时钟切换正在进行。</td></tr></tbody></table></th></tr></tbody></table>
返回至
STM8 主时钟状态寄存器
。
导航
导航
首页
最近更改
随机页面
MediaWiki帮助
首页
首页
树莓派
主机
配件包
外壳
键鼠
电源
扩展板
显示屏
墨水屏
摄像模块
通信模块
继电器
电机驱动板
游戏机
产品分类
树莓派
Arduino
micro:bit
STM32
Espressif
WiFi模块
蓝牙模块
无线模块
LoRa模块
4G模块
GSM
GPRS
以太网
导航模块
北斗卫星
GPS
LCD
墨水屏
OLED
摄像头
USB模块
串口模块
RS232
RS485
CAN
传感器
温度模块
湿度模块
气压模块
继电器
电机模块
指纹模块
电平转换
音频模块
编程器
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志