共2条
1/1 1 跳转至页
W77E58 关于W77E58的看门狗问题!
问
各位大侠!我在用W77E58时,想加内部看门狗:
#define EnableWatchDog() {CKCON|=0xc0;TA=0xAA;TA=0x55;WDCON=0x03;}//osc is 22.1184mHz the watchdog time is 3.034s
#define feeddog() {TA=0xAA;TA=0x55;WDCON=0x03;}//for every 3.034s must feed the watchdog
但是加了之后程序就死掉了,这是怎么回事呀! 答 1: 大侠帮帮我! 答 2: 我定 答 3: 请问用过此片的大侠,我得看门狗对吗?#define EnableWatchDog() {CKCON|=0xc0;TA=0xAA;TA=0x55;WDCON=0x03;}//osc is 22.1184mHz the watchdog time is 3.034s
此为初始化程序
/////////////////////////////////////////////////////////////////
#define feeddog() {TA=0xAA;TA=0x55;WDCON=0x03;}//for every 3.034s must feed the watchdog
此为喂狗程序
#define EnableWatchDog() {CKCON|=0xc0;TA=0xAA;TA=0x55;WDCON=0x03;}//osc is 22.1184mHz the watchdog time is 3.034s
#define feeddog() {TA=0xAA;TA=0x55;WDCON=0x03;}//for every 3.034s must feed the watchdog
但是加了之后程序就死掉了,这是怎么回事呀! 答 1: 大侠帮帮我! 答 2: 我定 答 3: 请问用过此片的大侠,我得看门狗对吗?#define EnableWatchDog() {CKCON|=0xc0;TA=0xAA;TA=0x55;WDCON=0x03;}//osc is 22.1184mHz the watchdog time is 3.034s
此为初始化程序
/////////////////////////////////////////////////////////////////
#define feeddog() {TA=0xAA;TA=0x55;WDCON=0x03;}//for every 3.034s must feed the watchdog
此为喂狗程序
共2条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 基于MCP23S17的输入输出功能模块控制被打赏¥20元 | |
| 【S32K3XX】SPD 软件包使用Link文件修改被打赏¥22元 | |
| Switch-Case局部变量定义问题被打赏¥23元 | |
| 基于米尔TIAM62L开发板的串口通信及应用被打赏¥20元 | |
| PCF8574功能模块及其使用被打赏¥20元 | |
| 传感器LSM6DSO及LIS3MDL的功能检测被打赏¥18元 | |
| LPS25HB气压传感器及其检测被打赏¥18元 | |
| HTS221温湿度传感器及其检测被打赏¥18元 | |
| 【S32K3XX】HSE FW 版本更新被打赏¥21元 | |
| 基于ArduinoUNO开发板的AT24C02读写测试被打赏¥16元 | |
我要赚赏金
