共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 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动——B站互动赢积分】活动开启啦! | |
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |