共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 跳转至页
回复
有奖活动 | |
---|---|
硬核工程师专属补给计划——填盲盒 | |
“我踩过的那些坑”主题活动——第002期 | |
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! |