Part Number:MSP430I2021
int main()
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
//初始化看门狗
WDTCTL = WDT_ARST_1000; // Set Watchdog Timer timeout 1s
while(1)
{
//喂狗
WDTCTL = WDTPW | WDTCNTCL;
}
}
Green Deng:
有没有观察过看门狗计数器的计数值有没有达到设定值?