This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430I2021: 程序开始时初始化 看门狗, 在while循环中喂狗, 为什么程序还是重启

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;

   }

}