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.

MSP430G2955: Please tell me the setting to minimize current consumption in active mode using crystal

Part Number: MSP430G2955
Other Parts Discussed in Thread: MSP-TS430DA38

Hello.

I have a question.

Is there a way to reduce the current consumption of my code while observing the following conditions?

 MCLK = 500KHz

 MCLK sourced from 4MHz crystal

 VCC = 3.0V

My code is as follows.

Measurement result while my code running was 1428 uA when the DVcc was 3.0 V in the MSP-TS430DA38 on which 4 MHz crystal and MSP430G2955 were mounted(Debugger is disconnected).

This current consumption seems to be very high compared to the value described in the datasheet.

#include <msp430.h>

volatile unsigned int i;

int main(void)
{
WDTCTL = WDTPW | WDTHOLD;

P1DIR |= 0xFF;
P1OUT = 0;
P2DIR |= 0xBF;
P2OUT = 0;
P2SEL |= BIT6 + BIT7;
P3DIR |= 0xFF;
P3OUT = 0;
P4DIR |= 0xFF;
P4OUT = 0;

BCSCTL1 |= XTS;
BCSCTL2 |= SELM_3 +DIVM_3 + SELS + DIVS_3;
BCSCTL3 |= LFXT1S_2;

do
{
IFG1 &= ~OFIFG;
for (i = 0xFF; i > 0; i--);
}
while (IFG1 & OFIFG);
while(1);
}

For example, if the crystal is lowered to 1 MHz, can the current consumption be reduced?
In addition, please tell me if there is a way to reduce the current consumption.

Regards,

uchida-k

  • Hi Uchida,

    do you really require the external crystal to get teh 500 kHz?

    Why you don't use the internal DCO by using the DCO calibration data described in datasheet on page #13.
    By this you would safe the current for the crystal.

    Alternativly you can use a 1 MHz crystal and reduce drive strengh by reducing bits LFXT1S settings.

    By the way the datasheet refers to MCLK=DCOCLK not XT1. Hope this helps.

  • Hi Dietmar Walther,

    Thank you for your reply.

    >Why you don't use the internal DCO by using the DCO calibration data described in datasheet on page #13.
    >By this you would safe the current for the crystal.
    -->In my application, it is necessary to operate MCLK frequency error less than 1% at 500 kHz or more.

    Is there a way to lower the frequency of the connected crystal, in addition to reducing the current consumption?

    Regards,

    uchida-k
  • Hi,

    no dividing it is the only possibility (but not suffcient enough) or using a lower frequency crystal like a 1 MHz. Acutal I never used a 500 kHz crystal but here recommend to ask common crysal manufactures if they can provide it to you.

    Best regards,
    Dietmar

**Attention** This is a public forum