请问HCS12看门狗怎么启用?(最好是能提供代码)

- UID
- 143705
- 性别
- 男
|
请问HCS12看门狗怎么启用?(最好是能提供代码)
请问HCS12看门狗怎么启用?怎么清看门狗的标志位?COPCTL各位的功能是什么,该如何设置?谢谢! |
|
|
|
|
|

- UID
- 115025
- 性别
- 男
|
COPCTL用来设置看门狗的方式和看门狗产生作用的时间
如:COPCTL=0x44;
清看门狗如下:
在主程序中加入如下代码:
ARMCOP=0x55; //reset COP
ARMCOP=0xaa;
|
|
|
|
|
|

- UID
- 115025
- 性别
- 男
|
COPCTL用来设置看门狗的方式和看门狗产生作用的时间
如:COPCTL=0x44;
清看门狗如下:
在主程序中加入如下代码:
ARMCOP=0x55;
ARMCOP=0xaa;
|
|
|
|
|
|

- UID
- 143705
- 性别
- 男
|
非常感谢!我试试看。只是对COPCTL的WCOP、RSBCK位是怎么设置方式和CR2、CR1、CR0位是怎么设置时间,以及
ARMCOP=0x55;
ARMCOP=0xaa;
清看门狗时为何需要写两句,ARMCOP每位对应的意义是什么? |
|
|
|
|
|