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.

MSP430F5310操作P1.4端口程序跑飞

在使用中我采用的是5310的P1.4控制MOS管的开关,但总是在执行P1DIR |= BIT4处跑飞,请问各位专家,这是什么情况?谢谢!

  • 你好,

    程序跑飞建议你从软件上查看两点:

    第一

    main函数内有while(1)死循环,保证程序不会退出main函数。

    第二

    确认看门狗是否被关闭。

    // Stop WDT
    WDTCTL = WDTPW + WDTHOLD;