electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

MSP43O - Strange Behaviour in LPM's after modifing SELS bit


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> MSP43O - Strange Behaviour in LPM's after modifing SELS bit
Author Message
electro



Joined: 12 Apr 2001
Posts: 27
Location: Turkey


Post18 Dec 2003 15:19   

MSP43O - Strange Behaviour in LPM's after modifing SELS bit


Hi,

I use MSP430F148 or MSP430F149.

Circuit connections are as follows:

DVCC, AVCC are connected to 3V
DVSS, AVSS, VeREF+ (pin10), VREF- (pin11) are connected to GND
RST/NMI pin is tied to VCC over 100K resistor.
Only JTAG interface pins are connected to 14-pin JTAG-Connector
All other pins are floating. (I/O, XT1, XT2, Vref+)

F148 datasheet says LPM3 consumes approximately 2uA at 3V.

When i try this in my code (IAR KickStart):

// --- Start of Code
#include <msp430x14x.h>
#include "defs.h"

void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // WATCHDOG TIMER OFF

LPM3; // Enter LPM3 (SCG1=1,SCG0=1,OSCOFF=0,CPUOFF=1)
}
// --- End of Code

Current consumption is 2uA at 3V. So everything is OK.



Now, consider this lines of code:

// --- Start of Code
#include <msp430x14x.h>
#include "defs.h"

void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // WATCHDOG TIMER OFF

// Initial value of BCSCTL2 is 0x00,
// Know set and than reset SELS bit, so return to initial state
BCSCTL2=0x08; // Set SELS bit, Use XT2CLK for generating SMCLK
BCSCTL2=0x00; // Reset SELS bit, Use DCOCLK for generating SMCLK

LPM3; // Enter LPM3 (SCG1=1,SCG0=1,OSCOFF=0,CPUOFF=1)
}
// --- End of Code

This time current consumption increases to approximately 250uA at 3V.

There is a huge difference in current ratings between these 2 codes.
I do not understand why this happens.
I have tried many ways but can not get rid of this problem. (Other LPM modes caused the same problem)
Please, try running these codes on your MSP430. You will notice the strange current raise.


Any comments/ideas are welcome.

Best regards
Alper YILDIRIM
Back to top
Google
AdSense
Google Adsense




Post18 Dec 2003 15:19   

Ads




Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> MSP43O - Strange Behaviour in LPM's after modifing SELS bit
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Specctr@ strange behaviour (8)
strange behaviour of Graphic LCD (5)
Transmission Gate Output strange behaviour (8)
A strange error after drc in cadence, need your help! (3)
Behaviour Model for 8-bit Ideal DAC (2)
Strange behavior of char lcd 4-bit (6)
what can i do after tmax after gen ATPG - test it with VCS? (8)
simulate after layout-most used after layout modelsim or vcs (1)
Difference in Writing Code between 8-bit/16-bit/32-bit Micro (1)
a/r/m7 behaviour model ? (8)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS