EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

ADC12 calibration for MSP430F149

Started by barion79 February 20, 2008
Hello All,

I have run into an unexpected issue with getting exact value from ADC.

According to data sheets the internal VREF+ can fluctuate between
2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
fluctuates between 3.234V to 3.366V. Thus, different devices provide
me with different conversion data. This data often do not reach the
required limit and the device does not work properly.

Now the easiest solution would be to add external reference voltage
to VeREF+. However the hardware design has been done before and there
are many device sent out. Thus, I need to provide a FW solution to
such problem.

Did anyone encountered this problem before and maybe has a quick
solution.

Thank you,
Leon.

Beginning Microcontrollers with the MSP430

You could calibrate the internal reference voltage and store that in
the Info-FLASH of each unit. I think TI has done something like that
in some of the F2xxx chips. They also have a standard format for such
calibration constants in InfoA. F149 is too old.

You may need to correct for temperature and Vcc effects too. But those
corrections probably do not differ from unit to unit significantly.

--- In m..., "barion79" wrote:
>
> Hello All,
>
> I have run into an unexpected issue with getting exact value from ADC.
>
> According to data sheets the internal VREF+ can fluctuate between
> 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
> fluctuates between 3.234V to 3.366V. Thus, different devices provide
> me with different conversion data. This data often do not reach the
> required limit and the device does not work properly.
>
> Now the easiest solution would be to add external reference voltage
> to VeREF+. However the hardware design has been done before and there
> are many device sent out. Thus, I need to provide a FW solution to
> such problem.
>
> Did anyone encountered this problem before and maybe has a quick
> solution.
>
> Thank you,
> Leon.
>
P.S. to my previous msg.

The standard format for InfoA to store calibration constants is called
Tag-Length-Value (TLV). Currently supported tag are Empty, DCO, and
ADC12. See slau144d.pdf Chapter 22.

F23x, F24x, and F26x have both DCO and ADC12 calibrations. See
respective data sheets.

It is too late for you to switch to F2xx, but I suggest that you use
TLV to store your calibrations. This will make migration from F14x to
F24x easier. (BTW, TI has an application note about F14x to F24x
migration.)

--- In m..., "old_cow_yellow"
wrote:
>
> You could calibrate the internal reference voltage and store that in
> the Info-FLASH of each unit. I think TI has done something like that
> in some of the F2xxx chips. They also have a standard format for such
> calibration constants in InfoA. F149 is too old.
>
> You may need to correct for temperature and Vcc effects too. But those
> corrections probably do not differ from unit to unit significantly.
>
> --- In m..., "barion79" wrote:
> >
> > Hello All,
> >
> > I have run into an unexpected issue with getting exact value from ADC.
> >
> > According to data sheets the internal VREF+ can fluctuate between
> > 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
> > fluctuates between 3.234V to 3.366V. Thus, different devices provide
> > me with different conversion data. This data often do not reach the
> > required limit and the device does not work properly.
> >
> > Now the easiest solution would be to add external reference voltage
> > to VeREF+. However the hardware design has been done before and there
> > are many device sent out. Thus, I need to provide a FW solution to
> > such problem.
> >
> > Did anyone encountered this problem before and maybe has a quick
> > solution.
> >
> > Thank you,
> > Leon.
>
Thank you all for replying.

The solutions that you suggested I have already thought about.
However, the problem is that these solutions will work only with new
devices.

Unfortunately, at this moment I have many units outside. The only way
I can update those is by sending an updated FW. Thus, I need to find
a way to get a proper reading from ADC without having access to the
HW.

Maybe someone have an idea how accurate reading can be done without
having measured reference voltage?

Thank you,
Leon.

> I have run into an unexpected issue with getting exact value from
ADC.
>
> According to data sheets the internal VREF+ can fluctuate between
> 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
> fluctuates between 3.234V to 3.366V. Thus, different devices
provide
> me with different conversion data. This data often do not reach the
> required limit and the device does not work properly.
>
> Now the easiest solution would be to add external reference voltage
> to VeREF+. However the hardware design has been done before and
there
> are many device sent out. Thus, I need to provide a FW solution to
> such problem.
>
> Did anyone encountered this problem before and maybe has a quick
> solution.
>
> Thank you,
> Leon.
>
> Maybe someone have an idea how accurate reading can be done without
> having measured reference voltage?

Just plain impossible (at least for my simple mind). Like inverting
gravity just because you will it.

JJS
Unfortunately they cannot. The owner will not open the device and
most likely will not have a multimeter for this purpose.

Thank you,
Leon.
--- In m..., "Redd, Emmett R"
wrote:
>
> Can the outside owner give any information to help you?
>
> Emmett Redd Ph.D. mailto:EmmettRedd@...
> Professor (417)836-5221
> Department of Physics, Astronomy, and Materials Science
> Missouri State University Fax (417)836-6226
> 901 SOUTH NATIONAL Dept (417)836-5131
> SPRINGFIELD, MO 65897 USA
>
> How much wood would a woodchuck chuck if a woodchuck could chuck
wood?
> How much ground would a groundhog hog if a groundhog could hog
ground?
> How much pig would a whistlepig whistle if a whistlepig could
whistle
> pig? :-\ :-/ :-)
> ________________________________
>
> From: m... on behalf of barion79
> Sent: Wed 2/20/2008 12:45 PM
> To: m...
> Subject: [msp430] Re: ADC12 calibration for MSP430F149
>
> Thank you all for replying.
>
> The solutions that you suggested I have already thought about.
> However, the problem is that these solutions will work only with new
> devices.
>
> Unfortunately, at this moment I have many units outside. The only
way
> I can update those is by sending an updated FW. Thus, I need to find
> a way to get a proper reading from ADC without having access to the
> HW.
>
> Maybe someone have an idea how accurate reading can be done without
> having measured reference voltage?
>
> Thank you,
> Leon.
>
> > I have run into an unexpected issue with getting exact value from
> ADC.
> >
> > According to data sheets the internal VREF+ can fluctuate between
> > 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
> > fluctuates between 3.234V to 3.366V. Thus, different devices
> provide
> > me with different conversion data. This data often do not reach
the
> > required limit and the device does not work properly.
> >
> > Now the easiest solution would be to add external reference
voltage
> > to VeREF+. However the hardware design has been done before and
> there
> > are many device sent out. Thus, I need to provide a FW solution to
> > such problem.
> >
> > Did anyone encountered this problem before and maybe has a quick
> > solution.
> >
> > Thank you,
> > Leon.
> >
And if this project was outsourced, you get what you pay for.

Steve
Kipton Moravec wrote:
> You are screwed.
>
> You should fire the engineer for not thinking about calibration. And the
> test engineer for not catching it was out of specifications. Probably
> the manager for not overseeing the project and costing the company a lot
> of money.
>
> Time to make a product recall.
>
> Kip
>
> On Wed, 2008-02-20 at 19:41 +0000, barion79 wrote:
>
>> Unfortunately they cannot. The owner will not open the device and
>> most likely will not have a multimeter for this purpose.
>>
>> Thank you,
>> Leon.
>> --- In m..., "Redd, Emmett R"
>> wrote:
>>
>>> Can the outside owner give any information to help you?
>>>
>>> Emmett Redd Ph.D. mailto:EmmettRedd@...
>>> Professor (417)836-5221
>>> Department of Physics, Astronomy, and Materials Science
>>> Missouri State University Fax (417)836-6226
>>> 901 SOUTH NATIONAL Dept (417)836-5131
>>> SPRINGFIELD, MO 65897 USA
>>>
>>> How much wood would a woodchuck chuck if a woodchuck could chuck
>>>
>> wood?
>>
>>> How much ground would a groundhog hog if a groundhog could hog
>>>
>> ground?
>>
>>> How much pig would a whistlepig whistle if a whistlepig could
>>>
>> whistle
>>
>>> pig? :-\ :-/ :-)
>>>
>>>
>>> ________________________________
>>>
>>> From: m... on behalf of barion79
>>> Sent: Wed 2/20/2008 12:45 PM
>>> To: m...
>>> Subject: [msp430] Re: ADC12 calibration for MSP430F149
>>>
>>>
>>>
>>> Thank you all for replying.
>>>
>>> The solutions that you suggested I have already thought about.
>>> However, the problem is that these solutions will work only with new
>>> devices.
>>>
>>> Unfortunately, at this moment I have many units outside. The only
>>>
>> way
>>
>>> I can update those is by sending an updated FW. Thus, I need to find
>>> a way to get a proper reading from ADC without having access to the
>>> HW.
>>>
>>> Maybe someone have an idea how accurate reading can be done without
>>> having measured reference voltage?
>>>
>>> Thank you,
>>> Leon.
>>>
>>>
>>>
>>>
>>>> I have run into an unexpected issue with getting exact value from
>>>>
>>> ADC.
>>>
>>>> According to data sheets the internal VREF+ can fluctuate between
>>>> 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
>>>> fluctuates between 3.234V to 3.366V. Thus, different devices
>>>>
>>> provide
>>>
>>>> me with different conversion data. This data often do not reach
>>>>
>> the
>>
>>>> required limit and the device does not work properly.
>>>>
>>>> Now the easiest solution would be to add external reference
>>>>
>> voltage
>>
>>>> to VeREF+. However the hardware design has been done before and
>>>>
>>> there
>>>
>>>> are many device sent out. Thus, I need to provide a FW solution to
>>>> such problem.
>>>>
>>>> Did anyone encountered this problem before and maybe has a quick
>>>> solution.
>>>>
>>>> Thank you,
>>>> Leon.
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
You are screwed.

You should fire the engineer for not thinking about calibration. And the
test engineer for not catching it was out of specifications. Probably
the manager for not overseeing the project and costing the company a lot
of money.

Time to make a product recall.

Kip

On Wed, 2008-02-20 at 19:41 +0000, barion79 wrote:
> Unfortunately they cannot. The owner will not open the device and
> most likely will not have a multimeter for this purpose.
>
> Thank you,
> Leon.
> --- In m..., "Redd, Emmett R"
> wrote:
> >
> > Can the outside owner give any information to help you?
> >
> > Emmett Redd Ph.D. mailto:EmmettRedd@...
> > Professor (417)836-5221
> > Department of Physics, Astronomy, and Materials Science
> > Missouri State University Fax (417)836-6226
> > 901 SOUTH NATIONAL Dept (417)836-5131
> > SPRINGFIELD, MO 65897 USA
> >
> > How much wood would a woodchuck chuck if a woodchuck could chuck
> wood?
> > How much ground would a groundhog hog if a groundhog could hog
> ground?
> > How much pig would a whistlepig whistle if a whistlepig could
> whistle
> > pig? :-\ :-/ :-)
> >
> >
> > ________________________________
> >
> > From: m... on behalf of barion79
> > Sent: Wed 2/20/2008 12:45 PM
> > To: m...
> > Subject: [msp430] Re: ADC12 calibration for MSP430F149
> >
> >
> >
> > Thank you all for replying.
> >
> > The solutions that you suggested I have already thought about.
> > However, the problem is that these solutions will work only with new
> > devices.
> >
> > Unfortunately, at this moment I have many units outside. The only
> way
> > I can update those is by sending an updated FW. Thus, I need to find
> > a way to get a proper reading from ADC without having access to the
> > HW.
> >
> > Maybe someone have an idea how accurate reading can be done without
> > having measured reference voltage?
> >
> > Thank you,
> > Leon.
> >
> >
> >
> > > I have run into an unexpected issue with getting exact value from
> > ADC.
> > >
> > > According to data sheets the internal VREF+ can fluctuate between
> > > 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
> > > fluctuates between 3.234V to 3.366V. Thus, different devices
> > provide
> > > me with different conversion data. This data often do not reach
> the
> > > required limit and the device does not work properly.
> > >
> > > Now the easiest solution would be to add external reference
> voltage
> > > to VeREF+. However the hardware design has been done before and
> > there
> > > are many device sent out. Thus, I need to provide a FW solution to
> > > such problem.
> > >
> > > Did anyone encountered this problem before and maybe has a quick
> > > solution.
> > >
> > > Thank you,
> > > Leon.
> > >
> >
> >
> >
> >
> >
> >
> >
> >
And stop the whale killing :-)

Best Regards,
Kris

-----Original Message-----
From: m... [mailto:m...] On Behalf Of Steve Sabram
Sent: Thursday, 21 February 2008 9:49 AM
To: m...
Subject: Re: [msp430] Re: ADC12 calibration for MSP430F149

And if this project was outsourced, you get what you pay for.

Steve
Kipton Moravec wrote:
> You are screwed.
>
> You should fire the engineer for not thinking about calibration. And the
> test engineer for not catching it was out of specifications. Probably
> the manager for not overseeing the project and costing the company a lot
> of money.
>
> Time to make a product recall.
>
> Kip
>
> On Wed, 2008-02-20 at 19:41 +0000, barion79 wrote:
>
>> Unfortunately they cannot. The owner will not open the device and
>> most likely will not have a multimeter for this purpose.
>>
>> Thank you,
>> Leon.
>> --- In m..., "Redd, Emmett R"
>> wrote:
>>
>>> Can the outside owner give any information to help you?
>>>
>>> Emmett Redd Ph.D. mailto:EmmettRedd@...
>>> Professor (417)836-5221
>>> Department of Physics, Astronomy, and Materials Science
>>> Missouri State University Fax (417)836-6226
>>> 901 SOUTH NATIONAL Dept (417)836-5131
>>> SPRINGFIELD, MO 65897 USA
>>>
>>> How much wood would a woodchuck chuck if a woodchuck could chuck
>>>
>> wood?
>>
>>> How much ground would a groundhog hog if a groundhog could hog
>>>
>> ground?
>>
>>> How much pig would a whistlepig whistle if a whistlepig could
>>>
>> whistle
>>
>>> pig? :-\ :-/ :-)
>>>
>>>
>>> ________________________________
>>>
>>> From: m... on behalf of barion79
>>> Sent: Wed 2/20/2008 12:45 PM
>>> To: m...
>>> Subject: [msp430] Re: ADC12 calibration for MSP430F149
>>>
>>>
>>>
>>> Thank you all for replying.
>>>
>>> The solutions that you suggested I have already thought about.
>>> However, the problem is that these solutions will work only with new
>>> devices.
>>>
>>> Unfortunately, at this moment I have many units outside. The only
>>>
>> way
>>
>>> I can update those is by sending an updated FW. Thus, I need to find
>>> a way to get a proper reading from ADC without having access to the
>>> HW.
>>>
>>> Maybe someone have an idea how accurate reading can be done without
>>> having measured reference voltage?
>>>
>>> Thank you,
>>> Leon.
>>>
>>>
>>>
>>>
>>>> I have run into an unexpected issue with getting exact value from
>>>>
>>> ADC.
>>>
>>>> According to data sheets the internal VREF+ can fluctuate between
>>>> 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
>>>> fluctuates between 3.234V to 3.366V. Thus, different devices
>>>>
>>> provide
>>>
>>>> me with different conversion data. This data often do not reach
>>>>
>> the
>>
>>>> required limit and the device does not work properly.
>>>>
>>>> Now the easiest solution would be to add external reference
>>>>
>> voltage
>>
>>>> to VeREF+. However the hardware design has been done before and
>>>>
>>> there
>>>
>>>> are many device sent out. Thus, I need to provide a FW solution to
>>>> such problem.
>>>>
>>>> Did anyone encountered this problem before and maybe has a quick
>>>> solution.
>>>>
>>>> Thank you,
>>>> Leon.
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
You forgot the baby seals and dolphin sushi.

;)

microbit wrote:
> And stop the whale killing :-)
>
> Best Regards,
> Kris
>
> -----Original Message-----
> From: m... [mailto:m...] On Behalf Of Steve Sabram
> Sent: Thursday, 21 February 2008 9:49 AM
> To: m...
> Subject: Re: [msp430] Re: ADC12 calibration for MSP430F149
>
> And if this project was outsourced, you get what you pay for.
>
> Steve
> Kipton Moravec wrote:
>
>> You are screwed.
>>
>> You should fire the engineer for not thinking about calibration. And the
>> test engineer for not catching it was out of specifications. Probably
>> the manager for not overseeing the project and costing the company a lot
>> of money.
>>
>> Time to make a product recall.
>>
>> Kip
>>
>> On Wed, 2008-02-20 at 19:41 +0000, barion79 wrote:
>>
>>
>>> Unfortunately they cannot. The owner will not open the device and
>>> most likely will not have a multimeter for this purpose.
>>>
>>> Thank you,
>>> Leon.
>>>
>>>
>>> --- In m..., "Redd, Emmett R"
>>> wrote:
>>>
>>>
>>>> Can the outside owner give any information to help you?
>>>>
>>>> Emmett Redd Ph.D. mailto:EmmettRedd@...
>>>> Professor (417)836-5221
>>>> Department of Physics, Astronomy, and Materials Science
>>>> Missouri State University Fax (417)836-6226
>>>> 901 SOUTH NATIONAL Dept (417)836-5131
>>>> SPRINGFIELD, MO 65897 USA
>>>>
>>>> How much wood would a woodchuck chuck if a woodchuck could chuck
>>>>
>>>>
>>> wood?
>>>
>>>
>>>> How much ground would a groundhog hog if a groundhog could hog
>>>>
>>>>
>>> ground?
>>>
>>>
>>>> How much pig would a whistlepig whistle if a whistlepig could
>>>>
>>>>
>>> whistle
>>>
>>>
>>>> pig? :-\ :-/ :-)
>>>>
>>>>
>>>> ________________________________
>>>>
>>>> From: m... on behalf of barion79
>>>> Sent: Wed 2/20/2008 12:45 PM
>>>> To: m...
>>>> Subject: [msp430] Re: ADC12 calibration for MSP430F149
>>>>
>>>>
>>>>
>>>> Thank you all for replying.
>>>>
>>>> The solutions that you suggested I have already thought about.
>>>> However, the problem is that these solutions will work only with new
>>>> devices.
>>>>
>>>> Unfortunately, at this moment I have many units outside. The only
>>>>
>>>>
>>> way
>>>
>>>
>>>> I can update those is by sending an updated FW. Thus, I need to find
>>>> a way to get a proper reading from ADC without having access to the
>>>> HW.
>>>>
>>>> Maybe someone have an idea how accurate reading can be done without
>>>> having measured reference voltage?
>>>>
>>>> Thank you,
>>>> Leon.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> I have run into an unexpected issue with getting exact value from
>>>>>
>>>>>
>>>> ADC.
>>>>
>>>>
>>>>> According to data sheets the internal VREF+ can fluctuate between
>>>>> 2.4V to 2.5V. In addition, the voltage regulator (3.3V) also
>>>>> fluctuates between 3.234V to 3.366V. Thus, different devices
>>>>>
>>>>>
>>>> provide
>>>>
>>>>
>>>>> me with different conversion data. This data often do not reach
>>>>>
>>>>>
>>> the
>>>
>>>
>>>>> required limit and the device does not work properly.
>>>>>
>>>>> Now the easiest solution would be to add external reference
>>>>>
>>>>>
>>> voltage
>>>
>>>
>>>>> to VeREF+. However the hardware design has been done before and
>>>>>
>>>>>
>>>> there
>>>>
>>>>
>>>>> are many device sent out. Thus, I need to provide a FW solution to
>>>>> such problem.
>>>>>
>>>>> Did anyone encountered this problem before and maybe has a quick
>>>>> solution.
>>>>>
>>>>> Thank you,
>>>>> Leon.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>

The 2024 Embedded Online Conference