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.

CCS/MSP430FR5969: FRAM power supply disabling issue.

Part Number: MSP430FR5969

Tool/software: Code Composer Studio

Hello,

I am trying to disable power supply for FRAM, Below is my code. In that code the FRLPMPWR is setting or resetting but when I reset the FRPWR it is not getting 0. Also I would like to know if I turn off the FRAM power supply, the data in FRAM will retain or it will clear.

I am using array variables in FRAM.

#pragma NOINIT(array1)
int array1[50];

void FRAM_ctrl()
{
FRCTL0_H = FRCTLPW >> 8;// ;0xA5
//FRCTL0 |= NWAITS_0;
GCCTL0 &= ~(FRPWR | FRLPMPWR);
GCCTL1 &= ~ACCTEIFG;
FRCTL0_H = 0;
}

The FRPWR  is not reset it is always showing as 1.

Kindly help me in this regard.

Thanks & Regards,

Murali.M

  • I have received your question. Let me double check some information.

    -Nima
  • FRPWR Bit

    While the device is in AM (Active mode), the FRAM memory power is controlled by the FRPWR bit and FRAM access. When the FRPWR is set, the FRAM memory is in ACTIVE mode. When the FRPWR is cleared by CPU, the FRAM memory goes into INACTIVE mode so that the FRAM memory does not consumes power.

    The INACTIVE mode can be used if no FRAM access is required for a significant amount of time. Once the FRAM memory is in the INACTIVE mode, wake-up is automatic. An access to FRAM (read or write) will wake up the FRAM memory before performing the access. In this case, the FRPWR bit is set automatically by the FRAM controller.

    When the device enters LPM0/1/2/3/4 modes, the FRAM memory also enters INACTIVE mode regardless of the FRPWR bit status. When the device wakes up from LPM0/1/2/3/4, the FRAM memory will be immediately powered up (ACTIVE mode) if the FRPWR is set, but if the FRPWR bit is cleared, the FRAM memory will remain in INACTIVE mode until the FRAM memory is actually accessed (read or write). The latter case can be used to save the device power consumption in case the device wakes up only for a short amount of time, and the task during the wake-up can be executed from RAM, so no need of FRAM access. 

    Could you verify the section mentioned above is not happening?

  • Dear Murali,

    FRAM is not volatile memory.

    -Nima

**Attention** This is a public forum