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.
Part Number: MSP430F5437A
I have put the micro to LPM3 mode by setting SCG0,SCG1,CPUOFF bits and clearing OSCOFF bit ,with RTC counter Event interrupt alone enabled.
It was sure it entered sleep mode because in the main while(1) I just have toggling the led glow for every 5 secs code and it stopped after one toggle of LED and the sleep mode code was executed as I have coded like that.
After some determined time sleep mode was interrupted by the RTC counter Event Interrupt which was set for 30 secs and it was ensured by making the LED glow in the interrupt service routine.
In the interrupt service routine I have changed the mode to Active mode by clearing SCG0, SCG1, CPUOFF and OSCOFF bits at the end of ISR code and expected to run the LED toggling code and then again put the micro to LPM3 sleep mode.
But now LED was glowing continuously which must be enabled by ISR and remains in that state.
It seems the while(1) code was not resumed and if it was resumed it should toggle the LED one time.
Don't know what is the reason.
I am using ACLK for RTC counter and ACLK was assigned to XT1 oscillator which is 32kHz.
I don't have any other peripherals enabled.
Please help on this.
thanks in advance.
It sounds like you are not waking from LPM in your ISR.
Can you share your ISR? How are you waking from LPM in your ISR?
The first 2 or 3 post of this thread discuss how to do this: https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/265652?wake-up-from-LPM0
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.