in my application I must save some data once the power fails then I must Reset my MCU to avoid MCLK crash because of the under voltage condition.
How can I program the SVS to reset the MCU after executing some commands?
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.
in my application I must save some data once the power fails then I must Reset my MCU to avoid MCLK crash because of the under voltage condition.
How can I program the SVS to reset the MCU after executing some commands?
The SVS will reset the MSP430 based on its Vcc. Please see the code example "fet440_svs_01.c" in the following zip file:
http://www.ti.com/lit/zip/slac019
Please also see chapter 7 of the 4xx user's guide for more details:
http://www.ti.com/litv/pdf/slau056i
Dear Harman,
Setting the SVS with POR will reset the MCU but I will not be able to save my data!
by other words, once the Vcc drops below certain level (lower than normal Vcc) then I save my data then I reset the MCU (I do not want to reset the MCU before saving the data which must be saved as soon as the power fail happen)
Thank you for the clarification. I see two ways to do this:
1. Use the on-chip SD16 with external voltage divider resistor (due to the range of SD16 Analog input range) to monitor Vcc (which should be slightly above the SVS reset voltage) and when Vcc falls below a certain level, save the data. When Vcc falls further, SVS will reset the device at its programmed level
2. Program the SVS to only set the SVSFG (SVS Flag) at a slightly higher voltage than the one you want to reset the device on. Once SVSFG is set, save the data and in that routine, program the SVS to set POR when the voltage falls below a certain level.
Harman said:The SVS will reset the MSP430 based on its Vcc. Please see the code example "fet440_svs_01.c" in the following zip file:
http://www.ti.com/lit/zip/slac019Please also see chapter 7 of the 4xx user's guide for more details:
http://www.ti.com/litv/pdf/slau056i
Do you have any other examples rather than code examples on TI please?
**Attention** This is a public forum