为什么关闭了看门狗(WDTCTL=WDTPW+WDTHOLD),在使用Timer_A定时中断时,会导致IFG1的WDTIFG置1,并导致程序复位
Jacky Xu:
好多TIMER A中断的历程,随便从MSPWARE中找一个照着改
我们也不知道你怎么写代码的,所以没法建议
Butterfly:
回复 Jacky Xu:
The WDT module can be configured as either a watchdog or interval timer with the WDTCTL register. The WDTCTL register also contains control bits to configure the RST/NMI pin. WDTCTL is a 16-bit, password-protected, read/write register. Any read or write access must use word instructions and write accesses must include the write password 05Ah in the upper byte. Any write to WDTCTL with any value other than 05Ah in the upper byte is a security key violation and triggers a PUC system reset regardless of timer mode. Any read of WDTCTL reads 069h in the upper byte.
WDTCTL 操作不对也会触发PUC, 同样会Reset