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.

msp430f413比较器求助

我想利用比较器把一个变量值在断电的时候保存到flash.

通过bsl给413写入程序之后,我首先遇到的问题是在比较中断中要往flash保存的数据已经保存到flash,可是还没有断电,不知道怎么进入的比较中断.并且,接下来再改变变量值,断电不能保存到flash.

现在的问题是,在比较中断设置一个条件,通过按键来满足条件,满足条件把变量写flash.上电之后再读,这个样子可以正确保存变量值

请问我的比较器是怎么回事?