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
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.
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
**Attention** This is a public forum