共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 跳转至页
我要赚赏金
