Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430



Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | MSP430 | RAM variable getting garbage while power on to lpm4

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

RAM variable getting garbage while power on to lpm4 - arunangshu Chandra - Oct 12 4:01:58 2009

Dear All,
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I have declared in a variable (unsi=
gned int power_on_count=3D0;) and then incremented it once in program (not =
in timer function) power_on_count++, and displaying it on LCD. the variable=
increment till 0 to 30 while i switch on and off the device. during that p=
eriod, the microcontroller switch from normal to=A0 lpm4 mode during this p=
eriod. after that a variable reaches 30 either device gets reset or variabl=
e change to garbage.
=A0=A0=A0=A0=A0=A0=A0=A0=A0
Arun
=20=20=20=20=20=20

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


Re: RAM variable getting garbage while power on to lpm4 - micr...@virginbroadband.com.au - Oct 12 4:55:22 2009

Ok, so what's your actual question ?

-- Kris

On Mon, 12 Oct 2009 01:01:38 -0700 (PDT), arunangshu Chandra
wrote:
> Dear All,
>               I have declared in a variable (unsigned int
> power_on_count=0;) and then incremented it once in program (not in timer
> function) power_on_count++, and displaying it on LCD. the variable
> increment till 0 to 30 while i switch on and off the device. during that
> period, the microcontroller switch from normal to  lpm4 mode during this
> period. after that a variable reaches 30 either device gets reset or
> variable change to garbage.
>          
> Arun
>
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: RAM variable getting garbage while power on to lpm4 - Michael - Oct 13 11:09:49 2009

Your description is very confusing. You don't clearly specify which changes=
are done by you on purpose and which are unwanted events.

What Do you mean you switch off the device? Do you mean you suspend the dev=
ice like one would suspend a laptop instead of turning it off?

You need to take a step back, read what you wrote, and then write it all ov=
er again so that anybody that isn't sitting next to you may understand what=
you're doing and what you are having trouble with.

Regards,
Michael K.
--- In m...@yahoogroups.com, arunangshu Chandra w=
rote:
>
> Dear All,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I have declared in a variable (un=
signed int power_on_count=3D0;) and then incremented it once in program (no=
t in timer function) power_on_count++, and displaying it on LCD. the variab=
le increment till 0 to 30 while i switch on and off the device. during that=
period, the microcontroller switch from normal to=A0 lpm4 mode during this=
period. after that a variable reaches 30 either device gets reset or varia=
ble change to garbage.
> =A0=A0=A0=A0=A0=A0=A0=A0=A0
> Arun
>=20
>=20
>=20=20=20=20=20=20=20
>=20
> [Non-text portions of this message have been removed]
>

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

How to compensate the adc value when temperature change? Help me!! - =?iso-8859-1?Q?FabWar=AE?= - Oct 14 5:04:04 2009



Dear all,

I want to compensate the adc value with chnaging of temperature ? any idea?
Regards,

Muhammad Firdaus B. Abu Bakar

________________________________
From: Michael
To: m...@yahoogroups.com
Sent: Tue, October 13, 2009 11:08:56 PM
Subject: [msp430] Re: RAM variable getting garbage while power on to lpm4

Your description is very confusing. You don't clearly specify which changes are done by you on purpose and which are unwanted events.

What Do you mean you switch off the device? Do you mean you suspend the device like one would suspend a laptop instead of turning it off?

You need to take a step back, read what you wrote, and then write it all over again so that anybody that isn't sitting next to you may understand what you're doing and what you are having trouble with.

Regards,
Michael K.

--- In msp430@yahoogroups. com, arunangshu Chandra wrote:
>
> Dear All,
> I have declared in a variable (unsigned int power_on_count= 0;) and then incremented it once in program (not in timer function) power_on_count+ +, and displaying it on LCD. the variable increment till 0 to 30 while i switch on and off the device. during that period, the microcontroller switch from normal to lpm4 mode during this period. after that a variable reaches 30 either device gets reset or variable change to garbage.
>
> Arun
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

RE: How to compensate the adc value when temperature change? Help me!! - "Jitendra Chauhan, Noida" - Oct 15 3:00:54 2009

You need to Calibrate the ADC for entire temperature range, you can maintain the table of offset if single point calibration works, if error is still more then go for 2 point calibration.

Table will look like : -

{Temp, zero delta, gain delta)
{-20 M1 , C1}
{-10 M2 , C2}
......

Temp will be constant whether zero and gain delta to be updated during ADC calibration..

Best regards,
Jitendra

From: m...@yahoogroups.com [mailto:m...@yahoogroups.com] On Behalf Of FabWar(r)
Sent: Wednesday, October 14, 2009 2:34 PM
To: m...@yahoogroups.com
Subject: [msp430] How to compensate the adc value when temperature change? Help me!!

Dear all,

I want to compensate the adc value with chnaging of temperature ? any idea?
Regards,

Muhammad Firdaus B. Abu Bakar

________________________________
From: Michael >
To: m...@yahoogroups.com
Sent: Tue, October 13, 2009 11:08:56 PM
Subject: [msp430] Re: RAM variable getting garbage while power on to lpm4

Your description is very confusing. You don't clearly specify which changes are done by you on purpose and which are unwanted events.

What Do you mean you switch off the device? Do you mean you suspend the device like one would suspend a laptop instead of turning it off?

You need to take a step back, read what you wrote, and then write it all over again so that anybody that isn't sitting next to you may understand what you're doing and what you are having trouble with.

Regards,
Michael K.

--- In msp430@yahoogroups. com, arunangshu Chandra wrote:
>
> Dear All,
> I have declared in a variable (unsigned int power_on_count= 0;) and then incremented it once in program (not in timer function) power_on_count+ +, and displaying it on LCD. the variable increment till 0 to 30 while i switch on and off the device. during that period, the microcontroller switch from normal to lpm4 mode during this period. after that a variable reaches 30 either device gets reset or variable change to garbage.
>
> Arun
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
[Non-text portions of this message have been removed]

------------------------------------

______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: How to compensate the adc value when temperature change? Help me!! - =?iso-8859-1?Q?FabWar=AE?= - Oct 15 5:28:00 2009

Waht you mean 2 point calibration? How to get zero delta and gain delta?

Regards,

Muhammad Firdaus B. Abu Bakar

________________________________
From: "Jitendra Chauhan, Noida"
To: "m...@yahoogroups.com"
Sent: Thu, October 1the s5, 2009 3:00:31 PM
Subject: RE: [msp430] How to compensate the adc value when temperature change? Help me!!

You need to Calibrate the ADC for entire temperature range, you can maintain the table of offset if single point calibration works, if error is still more then go for 2 point calibration.

Table will look like : -

{Temp, zero delta, gain delta)
{-20 M1 , C1}
{-10 M2 , C2}
......

Temp will be constant whether zero and gain delta to be updated during ADC calibration. .

Best regards,
Jitendra

From: msp430@yahoogroups. com [mailto:msp430@yahoogroups. com] On Behalf Of FabWar(r)
Sent: Wednesday, October 14, 2009 2:34 PM
To: msp430@yahoogroups. com
Subject: [msp430] How to compensate the adc value when temperature change? Help me!!

Dear all,

I want to compensate the adc value with chnaging of temperature ? any idea?
Regards,

Muhammad Firdaus B. Abu Bakar

____________ _________ _________ __
From: Michael >
To: msp430@yahoogroups. com
Sent: Tue, October 13, 2009 11:08:56 PM
Subject: [msp430] Re: RAM variable getting garbage while power on to lpm4

Your description is very confusing. You don't clearly specify which changes are done by you on purpose and which are unwanted events.

What Do you mean you switch off the device? Do you mean you suspend the device like one would suspend a laptop instead of turning it off?

You need to take a step back, read what you wrote, and then write it all over again so that anybody that isn't sitting next to you may understand what you're doing and what you are having trouble with.

Regards,
Michael K.

--- In msp430@yahoogroups. com, arunangshu Chandra wrote:
>
> Dear All,
> I have declared in a variable (unsigned int power_on_count= 0;) and then incremented it once in program (not in timer function) power_on_count+ +, and displaying it on LCD. the variable increment till 0 to 30 while i switch on and off the device. during that period, the microcontroller switch from normal to lpm4 mode during this period. after that a variable reaches 30 either device gets reset or variable change to garbage.
>
> Arun
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

DISCLAIMER:
------------ --------- --------- --------- --------- --------- -

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

------------ --------- --------- --------- --------- --------- -

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: How to compensate the adc value when temperature change? Help me!! - Franco Bucafusco - Oct 19 19:50:18 2009

Hi.

I am going to explain you how I did the compensation in a metrological
device. We used a sd16 of a MSP430F427. Also we used the sd16A from a
MSP430F2013. Results were almost the same. We compensanted ( for both adCs)
from -30 to +60 =BAC (we included within the compensation the transducer
nonlinearities).

We had a matrix with coeficients. One row of a the matrix, were for one
specific temp. So, we sample temperature then we calculate the index within
the matrix for that temp and then linear interpolate the coeficients for th=
e
2 vectors near the measured temperature. example:
c0 c1 c2
-20 1 2 3
-10 1.1 2.2 3.3

the coecifiecnts, for any temp were the 2 orden polinomial coefficients
using the adc code (for the measured variable) as x.

if the temp code gave me -15 we calculate, c0=3D 1.05 c1=3D 2.1 c2=3D 3.15=
(-15
falls in the middle of the 2 vectors)

this method worked very well. We got errors (%fsr) better than 0.1%fsr .

When the product was in streets, i tried a different aproach (I have notice=
d
that coefficients variations with temp were very predictable, and they
follow a cuatratic shape). I have tried using a 3x3 matrix, that contains
the coefficients (2orden poly) of the coefficients.

so: C0=3D C00 + C01.temp + C02.temp^2 and so on.. then outpu_value=3D
C0+C1*adc_code+C2*adc_code^2

This explanation maybe goes beyond your needs, but maybe helps.

Bye

On Wed, Oct 14, 2009 at 6:03 AM, FabWar=AE wrote:

> Dear all,
>
> I want to compensate the adc value with chnaging of temperature ? any ide=
a?
> Regards,
>
> Muhammad Firdaus B. Abu Bakar
>
> ________________________________
> From: Michael >
> To: m...@yahoogroups.com
> Sent: Tue, October 13, 2009 11:08:56 PM
> Subject: [msp430] Re: RAM variable getting garbage while power on to lpm4
>
> Your description is very confusing. You don't clearly specify which chang=
es
> are done by you on purpose and which are unwanted events.
>
> What Do you mean you switch off the device? Do you mean you suspend the
> device like one would suspend a laptop instead of turning it off?
>
> You need to take a step back, read what you wrote, and then write it all
> over again so that anybody that isn't sitting next to you may understand
> what you're doing and what you are having trouble with.
>
> Regards,
> Michael K.
>
> --- In msp430@yahoogroups. com, arunangshu Chandra > wrote:
> >
> > Dear All,
> > I have declared in a variable (unsigned int power_on_count=3D 0;) and t=
hen
> incremented it once in program (not in timer function) power_on_count+ +,
> and displaying it on LCD. the variable increment till 0 to 30 while i swi=
tch
> on and off the device. during that period, the microcontroller switch fro=
m
> normal to lpm4 mode during this period. after that a variable reaches 30
> either device gets reset or variable change to garbage.
> >
> > Arun
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> > [Non-text portions of this message have been removed]
>
>=20
>
[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: How to compensate the adc value when temperature change? Help me!! - Stuart_Rubin - Oct 20 8:20:43 2009

I'm not exactly sure what your application is, but if you're collecting dat=
a samples (as opposed to displaying or otherwise using the temperature in r=
eal time), you can just sample the raw ADC values, and then worry about com=
pensating "off line" with a PC. It takes the pressure off in terms of sche=
dule, risk, etc., and you have all the horsepower you need. And programmin=
g math with Excel is a lot easier than the on the MSP430!

Stuart

--- In m...@yahoogroups.com, Franco Bucafusco wrote:
>
> Hi.
>=20
> I am going to explain you how I did the compensation in a metrological
> device. We used a sd16 of a MSP430F427. Also we used the sd16A from a
> MSP430F2013. Results were almost the same. We compensanted ( for both adC=
s)
> from -30 to +60 =BAC (we included within the compensation the transducer
> nonlinearities).
>=20
> We had a matrix with coeficients. One row of a the matrix, were for one
> specific temp. So, we sample temperature then we calculate the index with=
in
> the matrix for that temp and then linear interpolate the coeficients for =
the
> 2 vectors near the measured temperature. example:
> c0 c1 c2
> -20 1 2 3
> -10 1.1 2.2 3.3
>=20
> the coecifiecnts, for any temp were the 2 orden polinomial coefficients
> using the adc code (for the measured variable) as x.
>=20
> if the temp code gave me -15 we calculate, c0=3D 1.05 c1=3D 2.1 c2=3D 3.=
15 (-15
> falls in the middle of the 2 vectors)
>=20
> this method worked very well. We got errors (%fsr) better than 0.1%fsr .
>=20
> When the product was in streets, i tried a different aproach (I have noti=
ced
> that coefficients variations with temp were very predictable, and they
> follow a cuatratic shape). I have tried using a 3x3 matrix, that contains
> the coefficients (2orden poly) of the coefficients.
>=20
> so: C0=3D C00 + C01.temp + C02.temp^2 and so on.. then outpu_value=3D
> C0+C1*adc_code+C2*adc_code^2
>=20
> This explanation maybe goes beyond your needs, but maybe helps.
>=20
> Bye
>=20
>=20
>=20
> On Wed, Oct 14, 2009 at 6:03 AM, FabWar=AE wrote:
>=20
> >
> >
> >
> >
> > Dear all,
> >
> > I want to compensate the adc value with chnaging of temperature ? any i=
dea?
> > Regards,
> >
> > Muhammad Firdaus B. Abu Bakar
> >
> > ________________________________
> > From: Michael >
> > To: m...@yahoogroups.com
> > Sent: Tue, October 13, 2009 11:08:56 PM
> > Subject: [msp430] Re: RAM variable getting garbage while power on to lp=
m4
> >
> > Your description is very confusing. You don't clearly specify which cha=
nges
> > are done by you on purpose and which are unwanted events.
> >
> > What Do you mean you switch off the device? Do you mean you suspend the
> > device like one would suspend a laptop instead of turning it off?
> >
> > You need to take a step back, read what you wrote, and then write it al=
l
> > over again so that anybody that isn't sitting next to you may understan=
d
> > what you're doing and what you are having trouble with.
> >
> > Regards,
> > Michael K.
> >
> > --- In msp430@yahoogroups. com, arunangshu Chandra =
wrote:
> > >
> > > Dear All,
> > > I have declared in a variable (unsigned int power_on_count=3D 0;) and=
then
> > incremented it once in program (not in timer function) power_on_count+ =
+,
> > and displaying it on LCD. the variable increment till 0 to 30 while i s=
witch
> > on and off the device. during that period, the microcontroller switch f=
rom
> > normal to lpm4 mode during this period. after that a variable reaches 3=
0
> > either device gets reset or variable change to garbage.
> > >
> > > Arun
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> > [Non-text portions of this message have been removed]
> >
> >=20
> >
>=20
>=20
> [Non-text portions of this message have been removed]
>

------------------------------------

______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )