MSP430G2313 收到干扰后 看门狗复位后 比较器没有复位成功,定时器复位成功能正常工作。必须硬件复位 比较器才能工作。 如何解决这个问题?
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.
看门狗引起的复位是PUC,不是POR,而比较器的寄存器只会在POR时reset。[Ref F2 User Guide (SLAU144J) Table 21-1]
您可以尝试检查比较器初始化以查看它是否依赖于寄存器的复位值。(通常建议使用“=”而不是“|=”来设置它们。)
您是在Timer的ISR中配置的比较器。
我们的工程师在errata TAB22中发现了一个已知的问题:Timer的寄存器在Watchdog Timer PUC之后被意外修改。
如果Timer没有正常工作,可能会导致比较器不能正常工作。