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.

  • TI Thinks Resolved

MSP430F5437A: On Waking up from LPM3 it is not returning to the main while(1) loop

Prodigy 130 points

Replies: 1

Views: 109

Part Number: MSP430F5437A

Hi,

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.

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.