Hi Cora, First I would suggest reading Section 2 of the MSP430x5xx and MSP430x6xx Family User's Guide . This section describes in detail how the Supply Voltage Supervisor and Supply Voltage Monitor operate. A subsection you may want to focus on is Section 2.2.2. You should also check out section 5.22 --> 5.25 in the MSP430F5529 Datasheet for specific register values that correspond to a particular DVCC voltage. For your purposes it seems you want to reset the device if DVCC gets below a certain value. To do this you would want to use the SVS instead of SVM. The SVM only monitors the supply voltage and can signal when the voltage gets below a desired level but not turn off the part. Also, in the previous E2E post I linked to, the user was able to successfully get things working on the post they made that was dated May 30, 2011 7:46 AM, so I would use that code as a base. Finally, there is no way to universally set all interrupt flags to zero. You can disable all interrupts in your system with a call to __disable_interrupt();. Remember though that if you want to use interrupts after disabling them, you need to re-enable them with a call to __enable_interrupt();. Best regards, Caleb Overbay
↧