Hi,
I need to measure the Voltage for MSP430G2553 in LPM0 to LPM4.
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.
Hi,
I need to measure the Voltage for MSP430G2553 in LPM0 to LPM4.
I think you want measure the current when the device is in low power mode. Just hook a multimeter in series with the supply of the micro and the micro's Vcc pin. But make sure you do not measure any other currents that do not belong to the current consumption of the MSP. And the MSP does not drive anything when in low power mode - a LED that is switched on with a pin of the MSP before low power mode will remain on in it. Of course this LED-current has nothing to do with the power sonsumption of the micro, although it runs through it.
Dennis
The current just that the mcu is using or the whole board including the lcd?
Unless you are using the mcu pins to source current to anything like a LED or MHz switching of a mosfet it will be in the uA
If you construct your software to use lpm3 90% of the time the current will be to small to worry about
Measuring in the 1-4uA range requiring a 1K resistor shunt, the problem with that is if the device needs short burst of more power the 1K is causing brownout.
Putting a 100uF cap between the shunt and mcu should work for short burst of power requirement and the reading you get from shunt will still be in long term correct.
Just get one of the below gain amp and connect to one of G2454's analog pin.
50x and 100x from TI
http://www.mouser.com/Texas-Instruments/Semiconductors/Amplifier-ICs/Current-Sense-Amplifiers/_/N-6o48gZscv7?P=1yzxnagZ1z0zls6
200x Shunt Amp from SiLabs
http://www.mouser.com/ProductDetail/Silicon-Labs/TS1102-200EG5/?qs=sGAEpiMZZMvEn2pkGav3bLZ4YKjqCinR%252bvxYw%2f4eEQ0sB0tDWuybBw%3d%3d
Expected Tony's reply here, but it isn't visible...
Look:
In LPM4 the device draws less than 1uA (@ 2.2V supply). The ADC of the MSP430G2452 has 10bits of resolution and an internal reference voltage of 1.5V - this gives you a resolution of about 1.5mV. To get any signal from a current that is as small as 1uA you would need a shunt resistor of 1.5k - and that gives you one! digit (expecting no noise to be there and an ideal ADC, which it isn't). Now do some math and calculate which resolution you want to have - your shunt resistance will grow with that. And the bigger it gets the more voltage drop it produces when measuring current in LPM0 for example. Imagine we would set the full-scale value to 60uA, you would need a resistor of 25k, resulting in a voltage drop of 1.5V. So this is no option!
You will definitely have to amplify your signal. But keep in mind that you only have 10 bits of resolution. With a current span from 0uA to 100uA (to have some overhead) your resolution is about 0.1uA (still thinking ideal). Sourcing an external reference into your micro doesn't make sense, too because it has to be 1.4V minimum, as well.
Maybe you think measuring the current is quite simple, but with those small values it isn't. Of course it is possible, but not by only hooking two MSPs together. Sourcing the G2553 from the G2452 doesn't mean the G2452 can measure it's current through an output pin. Furthermore there is a voltage drop in the output pin that has a dependency on the current it has to source. This will lead to different supply voltages for the G2553 when in different power modes. OK, you're in the uA-range so the drop will be minimal, but keep that in mind anyway and remember that you want to measure sub uAs.
I don't want to allure you from your idea, but think about it again - you have to invest a little bit more effort to it. Search in the web for how to measure those small currents.
Dennis
Jens-Michael Gross said:While the CPU is in LPM, it cannot do anything. Not measure a current, nor changing an LCD display content.
You don't need to measure, do ADC conversion and display at the same time. While sleeping - you just measure and store measurement in some storage (capacitor). When wake-up - do ADC conversion & display. Solution (including circuit) of getting answer to question "what you are dreaming" is in 32L152CDISCOVERY user's manual.
Jens-Michael Gross said:most OpAmps would draw much more current than the MSP takes.
What's the problem to power OpAmp directly from power supply such a way that it does not affect current on the shunt? :)
Haresh G said:... I want to make the msp430g2553 in low power mode and Vcc of msp430g2553 is connected to analog i/p of msp430g2452....
Measuring Vcc of the target alone is useless. You need a shunt resistor and measure the voltage drop across the shunt. If the Vss of the target is not connected to anything else, use a "low side" shunt (as oppose to a "high side" shunt) is easier to handle by the ADC.
**Attention** This is a public forum