MSP430I2041上电BORIFG 和RSTIFG 置位,程序无法执行
Susan Yang:
请问您现在RST/NMI是如何设置的?电压是否正常?
BORIFG Brown out reset flag. This bit is set after VCC power up and can be cleared by software.
RSTIFG External reset interrupt flag. Set on a reset condition at RST/NMI pin in reset mode. Reset on VCC power up
请您看一下用户指南内的说明
At power-up, the RST/NMI pin is configured in the reset mode. The function of the RST/NMI pin is selected in the watchdog control register WDTCTL. If the RST/NMI pin is set to the reset function, the CPU is held in the reset state as long as the RST/NMI pin is held low. After the input changes to a high
state, the CPU starts program execution at the word address stored in the reset vector, 0FFFEh, and the RSTIFG flag is set.上电时,RST / NMI引脚配置为复位模式。 RST / NMI引脚的功能是在看门狗控制寄存器WDTCTL中选择。如果RST / NMI引脚设置为复位功能,则只要RST / NMI引脚保持低电平,CPU就保持在复位状态。输入变为高电平后状态,CPU在存储在复位向量0FFFEh中的字地址开始执行程序
RSTIFG标志已设置。
zhouxi wang:
回复 Susan Yang:
WDTCTL = WDTPW | WDTCNTCL;
the VOLTAGE OF RST IS 3.3V, but the BORIFG is not cleared.
灰小子:
方便的话建议楼主上传下电路图和代码。
个人怀疑没有正确复位。
gaoyang9992006:
这个系列提供有丰富例子和库函数。可以跑个例子看看是不是仍然置位无法执行。
另外你开启了看门狗,如果发生了复位还要操作清理复位标志位,不知道你有没有做这种操作。
参考该芯片主页提供的例子。