共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 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 基于ArduinoUNO开发板的AT24C02读写测试被打赏¥16元 | |
| TCS3472S传感器及其色彩检测被打赏¥19元 | |
| 【S32DS】S32K3 RTD7.0.1 HSE 组件配置报错问题解决被打赏¥27元 | |
| 【S32K3XX】MCME 启动 CORE1被打赏¥23元 | |
| AG32VH407下温度大气压传感器及其检测被打赏¥20元 | |
| AG32VH407下光照强度传感器BH1750及其检测被打赏¥22元 | |
| AT32VH407下使用温湿度传感器DHT22进行检测被打赏¥20元 | |
| DIY一个婴儿澡盆温度计被打赏¥34元 | |
| 【FreeRtos】FreeRtos+MPU region 配置规则被打赏¥23元 | |
| 【分享开发笔记,赚取电动螺丝刀】三分钟快速上手驱动墨水屏(ArduinoIDE)被打赏¥28元 | |
我要赚赏金
