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.

EZ430-F2013 LPM3 current

Hi expert,

I have tried the "MSP430F20xx Demo - Basic Clock, LPM3 Using WDT ISR, VLO ACLK". Why the current is ~7uA when LED is Off? The data sheet shows ~0.6uA.

Please help! Thanks!

Best regards,

Wang

  • Hello Wang,

    try to check if your program keeps LPM3 all the time you measure the current (not jumping out of LPM3).

    What is your clock configuration ? (frequency...)

     

    Best regards,

    Gyro76

  • Hello Gyro,

    Thank you very much for your help. The hardware is standard EZ430-F2013. My code is as below.

    #include <msp430x20x3.h>

    void main(void)
    {
      BCSCTL1 |= DIVA_1;                        // ACLK/2
      BCSCTL3 |= LFXT1S_2;                      // ACLK = VLO
      WDTCTL = WDT_ADLY_1000;                   // Interval timer
      IE1 |= WDTIE;                             // Enable WDT interrupt
      P1DIR = 0xFF;                             // All P1.x outputs
      P1OUT = 0;                                // All P1.x reset
      P2DIR = 0xFF;                             // All P2.x outputs
      P2OUT = 0;                                // All P2.x reset

      while(1)
      {
        P1OUT ^= 0x01;                          // P1.0 LED on/off
        _BIS_SR(LPM3_bits + GIE);               // Enter LPM3
      }
    }

    #pragma vector=WDT_VECTOR
    __interrupt void watchdog_timer (void)
    {
      _BIC_SR_IRQ(LPM3_bits);                   // Clear LPM3 bits from 0(SR)
    }

    Best regards,

    Wang

  • Hello Gyro,

    I have solved the problem that one of pins has a leakage current. Thank you very much for your time.

    Best regards,

    Wang

**Attention** This is a public forum