EmbeddedRelated.com
Forums

i'm going into LPM4 :)

Started by les_kamil August 30, 2006
Hi! it's my first project with MSP430 (MSP430f149) till now i worked
only with '51 family :) I designed that on and off of my device is
made by interrupt from pins (keyboard). when device is off, MSP sets
all pins into input state, off ADC12, off internal ref etc. then i'm
going into LPM4 in interrupt.when i press 'on ' key, i'm simply make
POR by watchdog and my device starts:) all work fine and its great,
but..... but current is rising to 37mA when MSP is in LPM4!!! what am
i doing wrong? power is connected only to MSP, no other devices are
connected to powersupply, neither AVCC! any shortcuts are impossible
because of pins are in the input state! hmmm, i'm stacked:(

Beginning Microcontrollers with the MSP430

On Wed, Aug 30, 2006 at 11:43:58AM -0000, les_kamil wrote:
> all pins into input state, off ADC12, off internal ref etc. then i'm
> going into LPM4 in interrupt.when i press 'on ' key, i'm simply make
> POR by watchdog and my device starts:) all work fine and its great,
> but..... but current is rising to 37mA when MSP is in LPM4!!! what am
> i doing wrong?

Unused I/O pins should not be set to inputs when in sleep mode. You need to
set any unused pins as outputs and set them either high or low. Otherwise,
you may get some oscillations on floating inputs of unused pins.

Take care,
-Chris

--
| Christopher Cole, Cole Design and Development c...@coledd.com |
| Embedded Electronics and Software Design http://coledd.com |
--- In m..., Christopher Cole wrote:
> Unused I/O pins should not be set to inputs when in sleep mode.
You need to
> set any unused pins as outputs and set them either high or low.
Otherwise,
> you may get some oscillations on floating inputs of unused pins.
>
> Take care,
> -Chris

Thanx, all work fine! I found that even AVCC must be powered. If i
don't power the AVCC my MSP is getting additional 3mA. But now my
system is getting 56uA(msp <1uA and LP2980IM5-3.3 the rest)!and it
satisfies me, it makes over 7 years of working on my accumulators:)

p.s. why my posts hanging over 1 day before are shown on the group? :(