添加收藏夹  设为首页  深圳服务热线:13692101218  13751165337
51电子网联系电话:13692101218
位置:首页 > IC型号导航 > 首字符H型号页 > 首字符H的型号第571页 > HT66F0172 > HT66F0172 PDF资料 > HT66F0172 PDF资料1第47页
HT66F0172/HT66F0174
增强的A / D闪存的8位MCU
CTRL注册
名字
读/写
POR
7
FSYSON
读/写
0
6
5
4
3
2
LVRF
读/写
×
1
LRF
读/写
0
0
WRF
读/写
0
Bit 7
Bit 6~ 3
Bit 2
Bit 1
Bit 0
FSYSON :F
SYS
控制在空闲模式
其他说明
Unimplemented, read as "0"
LVRF : LVR的功能复位标志
其他说明
LRF : LVR控制寄存器的软件复位标志
其他说明
WRF : WDT控制寄存器中的软件复位标志
0:不发生
1 :发生
This bit is set to 1 by the WDT Control register software reset and cleared by the
application program. Note that this bit can only be cleared to 0 by the application
程序。
看门狗定时器的工作
看门狗定时器工作提供了一个设备时,其复位定时器溢出。这意味着
在应用程序和在正常操作期间,用户必须在战略清晰的
看门狗定时器溢出前,以防止看门狗定时器从执行复位。这是
完成使用清除看门狗指令。如果程序出现故障无论出于何种原因,跳跃
一个未知的地址或进入一个死循环,清除WDT指令不被执行
以正确的方式,在这种情况下,看门狗定时器溢出并复位设备。同
regard to the Watchdog Timer enable/disable function, there are five bits, WE4~WE0, in the WDTC
注册提供额外的启用或禁用和复位看门狗定时器控制。该WDT
function will be disabled when the WE4~WE0 bits are set to a value of 10101B. The WDT function
will be enabled if the WE4~WE0 bits value is equal to 01010B. If the WE4~WE0 bits are set to any
other values by the environmental noise, except 01010B and 10101B, it will reset the device after 2~3
LIRC clock cycles. After power on these bits will have the value of 01010B.
WDT功能控制
应用& frac12 ; ication计划ENAB & frac12 ; ED
WE4 WE0位
10101B
01010B
一个& frac12 ;其他VA & frac12 ;& frac12 ; e
看门狗定时器使能/禁止控制
WDT功能
Disab½e
Enab½e
MCU复位
在正常运行状态下,看门狗定时器超时将导致芯片复位,并置
状态位TO 。但是,如果系统处于休眠或空闲模式,当看门狗定时器
超时发生时,在状态寄存器中的TO位将被置,只有程序计数器和堆栈
指针将被重置。有几种方法可以用来清除看门狗定时器的内容。
The first is a WDT software reset, which means a certain value is written into the WE4~WE0 bit
field except 01010B and 10101B, the second is using the Watchdog Timer software clear instruction
而第三种是通过HALT指令。
还有就是用软件指令清除看门狗定时器只有一个方法。这是使用
单"CLR WDT"指令来清除WDT 。
1.00版
47
& frac12 ;& frac12 ;& frac12 ;& frac12 ; 11 & frac12 ; & frac12 ; 01 & frac12 ;

深圳市碧威特网络技术有限公司