gautam023
gautam023

Reputation: 1

MSP430FR5969 not going to sleep

I am using MSP430FR5969 and trying to put it into LMP4 mode. I cannot enter the LPM4 mode with global interrupts enabled. The code I am using is as below. Is there something I am missing or doing wrong?

The entire code can be seen in this link

int main(void) {

    Init_Clock();
    Init_GPIO();
    Init_UART();

    printf("test \n");
    __delay_cycles(1000);

    EUSCI_A_UART_disable(EUSCI_A0_BASE);


    reset_gpio();

    PMMCTL0_H = PMMPW_H;                // Open PMM Registers for write
    PMMCTL0_L &= ~(SVSHE);              // Disable high-side SVS
    PMMCTL0_L |= PMMREGOFF;             // and set PMMREGOFF
    PMMCTL0_H = 0;                      // Lock PMM Registers


    __bic_SR_register(GIE);
    __bis_SR_register(LPM4_bits);
    __no_operation();
}

Upvotes: 0

Views: 67

Answers (1)

Handmade Results
Handmade Results

Reputation: 1

i'm not reading your code. but i will remind you that certain peripherals and clock contrasts can interfere with low power modes, even a pending interrupt. review the low power modes section of the specific data sheet and family guide. yeah, you'll get to know your target soc much better. the 5969 can really kick butt but it is one the most complex msp430's.

Upvotes: 0

Related Questions