• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Amplifiers » Precision Amplifiers » Precision Amplifiers Forum » INA219: Register handling and conversion
Share
Precision Amplifiers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
The Signal blog
  • $core_v2_blog.Current.Name

    Pop Quiz!

    Posted 2 days ago
    by Bruce Trump
    Put away your books and take out a sheet of paper. Each question...
  • $core_v2_blog.Current.Name

    Settling Time

    Posted 8 days ago
    by Bruce Trump
    Settling time is the time required for an op amp to respond to...
  • $core_v2_blog.Current.Name

    Slew Rate—the op amp speed limit

    Posted 16 days ago
    by Bruce Trump
    Slewing behavior of op amps is often misunderstood. It’s...

INA219: Register handling and conversion

INA219: Register handling and conversion

This question has suggested answer(s)
Florian Stassen
Posted by Florian Stassen
on Jan 24 2012 14:00 PM
Prodigy40 points

Hi TI,

I have some questions about the INA219 registers:

1)

On datasheet page 15 the Conversion Ready bit is explained. There are 3 conditions when it is cleared.

On page 30 is the register description and also the Conversion Ready bit. But here are other conditions about clearing.

What's correct?

BTW: On page 15, condition 2: Where can I find the Status Register? Condition 3: where is the Convert pin?

2)

When does a conversion start in Trigger mode?

After the writing of the Configuration register?

3)

Again datsheet page 15: "...INA219 can be read at any time, and the data from the last conversion remain available..."

Shunt voltage and bus voltage are converted at different times.

Are the shunt voltage register and the bus voltage register (and the depending registers)  updated at the same time? Or is the shunt voltage register updated (and current register and power register) updated after the shunt voltage conversion is finished?

If the conversions and calculations are finished (and the conversion ready bit is set) may I start a new conversion without overwrite the actual register values?

Thanks a lot for your help.

Best regards

Florian

INA219
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Pete Semig
    Posted by Pete Semig
    on Jan 25 2012 11:42 AM
    Genius13325 points

    Hello Florian,

    Thank you for considering the INA219 for your design.  I am looking into your questions and will get back with you.

    Regards,

    Pete Semig

    Precision Analog Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pete Semig
    Posted by Pete Semig
    on Jan 27 2012 17:29 PM
    Suggested Answer
    Genius13325 points

    Hello Florian,

    Thank you for your patience.  The answers to your questions took a bit of digging, but the answers to your questions are highlighted below:

    *************

    I have some questions about the INA219 registers:

    1) On datasheet page 15 the Conversion Ready bit is explained. There are 3 conditions when it is cleared. On page 30 is the register description and also the Conversion Ready bit. But here are other conditions about clearing.

    What's correct?

    The description on page 15 is incorrect.  It originated from the INA209 datasheet and its removal was overlooked.  The description on page 30 is mostly correct.  Condition #2, however, should be “Reading the Bus Voltage Register”.

    BTW: On page 15, condition 2: Where can I find the Status Register? Condition 3: where is the Convert pin?

    There is neither a Status Register nor a Convert pin on the INA219.  Please disregard.

    2)  When does a conversion start in Trigger mode?

    After the writing of the Configuration register?

    Yes, but only with one of the triggered mode settings (001, 010, or 011).

    3)  Again datsheet page 15: "...INA219 can be read at any time, and the data from the last conversion remain available..."

    Shunt voltage and bus voltage are converted at different times.

    Are the shunt voltage register and the bus voltage register (and the depending registers)  updated at the same time?

    Or is the shunt voltage register updated (and current register and power register) updated after the shunt voltage conversion is finished?

    The output registers (shunt voltage, bus voltage, current, and power) will retain their values until the ongoing conversion is complete.  As soon as the ongoing conversion is complete the new values for the output registers will be loaded and CNVR will go high.

    If the conversions and calculations are finished (and the conversion ready bit is set) may I start a new conversion without overwrite the actual register values?

    Yes you may start a new conversion.  The data in the output registers will not be overwritten until the new (or ongoing) conversion is completed.

    *************

    Regards,

    Pete Semig

    Precision Analog Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Florian Stassen
    Posted by Florian Stassen
    on Jan 31 2012 07:52 AM
    Prodigy40 points

    Hi Pete,

    thanks for your extensive answers.

    Pete Semig

    3)  Again datsheet page 15: "...INA219 can be read at any time, and the data from the last conversion remain available..."

    Shunt voltage and bus voltage are converted at different times.

    Are the shunt voltage register and the bus voltage register (and the depending registers)  updated at the same time?

    Or is the shunt voltage register updated (and current register and power register) updated after the shunt voltage conversion is finished?

    The output registers (shunt voltage, bus voltage, current, and power) will retain their values until the ongoing conversion is complete.  As soon as the ongoing conversion is complete the new values for the output registers will be loaded and CNVR will go high.

    If the conversions and calculations are finished (and the conversion ready bit is set) may I start a new conversion without overwrite the actual register values?

    Yes you may start a new conversion.  The data in the output registers will not be overwritten until the new (or ongoing) conversion is completed.

    I think the INA219 needs 2 conversions, the shunt voltage and the bus voltage.

    Are the output registers stable until both conversions are completed? Or is the shunt voltage register updated after the shunt voltage conversion si finished?

    The power register depends on the shunt voltage (via the current register) and the bus voltage register. Is it updated twice?

    Thanks a lot for your help

    Florian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pete Semig
    Posted by Pete Semig
    on Jan 31 2012 11:29 AM
    Suggested Answer
    Genius13325 points

    Hello Florian,

    I believe the confusion stems from the term 'conversion'.

    Perhaps a better way to think of this is in terms of a 'cycle'.  Let's use the term 'cycle' to represent the total time it take for shunt conversion, bus conversion, calculations, and register loading.  With the term 'cycle' defined we can state the following:  the output registers will retain their values until the cycle is completed. The INA219 datasheet uses the term 'conversion' to represent a complete measurement and calculation cycle.

    The answers to your questions are highlighted:

    ****

    Are the output registers stable until both conversions are completed? Yes.  The output registers are stable until the cycle is complete.  Or is the shunt voltage register updated after the shunt voltage conversion si finished?  No.

    The power register depends on the shunt voltage (via the current register) and the bus voltage register. Is it updated twice?  No.  All output registers are only updated after a complete cycle.

    ****

    Please let me know if you have any further questions.

    Regards,

    Pete Semig

    Precision Analog Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Florian Stassen
    Posted by Florian Stassen
    on Feb 01 2012 04:27 AM
    Prodigy40 points

    Hi Pete,

    Pete Semig

    Hello Florian,

    I believe the confusion stems from the term 'conversion'.

    Perhaps a better way to think of this is in terms of a 'cycle'.  Let's use the term 'cycle' to represent the total time it take for shunt conversion, bus conversion, calculations, and register loading.  With the term 'cycle' defined we can state the following:  the output registers will retain their values until the cycle is completed. The INA219 datasheet uses the term 'conversion' to represent a complete measurement and calculation cycle.

    The cycle term is a very good idea.

    In chapter Basic ADC Functions the datasheet decribe a shunt voltage conversion and a bus voltage conversion. That is the reason for the confusion.

    Ok, but now another question about conversion:

    Is the converion time in Tabe 6 (ADC Settings) for every ADC conversion?

    I assume if I use the Configuration Register default settings I need 1064 us (internal, without communication) for one cycle. Correct?

    Thanks a lot.

    Best regards

    Florian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pete Semig
    Posted by Pete Semig
    on Feb 01 2012 13:04 PM
    Suggested Answer
    Genius13325 points

    Hello Florian,

    The time in Table 6 is the time it takes to complete a cycle, which includes all conversions and calculations. For your example it takes 532us (typical) for one complete cycle (586us maximum according to Electrical Characteristics table).

    Regards,

    Pete Semig

    Precision Analog Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Florian Stassen
    Posted by Florian Stassen
    on Feb 02 2012 05:12 AM
    Prodigy40 points

    Hi Pete,

    thanks a lot for your help and your patience.

    Best regards

    Florian

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rong Lin
    Posted by Rong Lin
    on Jul 27 2012 01:48 AM
    Prodigy30 points

    Hi Sir,

        Why such lower the conversion time? It's around just 2kHz BW (1/532us). This INA219 front end ADC sampling rate is 500kHz, but conversion time drives BW down to just 2KHz. it's 250 times lower than sampling rate. if so, it seems it's hard to be used on current monitor purpose where current to be measured contains frequency components higher than 1kHz.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Collin Wells
    Posted by Collin Wells
    on Jul 27 2012 11:29 AM
    Genius15580 points

    Hi Rong,

    You're correct, the INA219 is not the correct choice for applications interested in current measurements at frequencies greater than 1kHz.  The ADC in the INA219 is a delta-sigma converter which is an over-sampling type of data converter.  A one-bit ADC produces a high-speed data stream at 500kHz that is then low-pass filtered and averaged to get the final conversion value.  Increasing the conversion time increases the resolution because you basically average more data points together for the final answer. 

    Since all of our digital-output current-shunt devices use a similar converter architecture you will have to look into another type of output to perform this higher bandwidth measurement.  My recommendation would be to consider an analog output type of device such as the INA21X or INA27X family of devices which have bandwidths up to 130kHz and then use one of TI's SAR converters to accurately digitize the analog signal.  

    Regards,
    Collin Wells

    Regards,
    Collin Wells
    Precision Linear Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rong Lin
    Posted by Rong Lin
    on Jul 29 2012 22:46 PM
    Prodigy30 points

    Thank you ver much Collin, very clear. Here I have another question to consult.

    As you TI's saying in previouse replying, "the output registers will retain their values until the cycle is completed". It sounds to me that the sampling rate will be down to 1/532us, so that, a 1kHz antialiasing filter must be designed in front of ADC input. This would result in breaking the intrinsic advantage of sigma-delta ADC nature, oversampling so as input antialiasing filter free (or smaller). Is it correct?

    Regards,

    Rong Lin

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Collin Wells
    Posted by Collin Wells
    on Jul 30 2012 18:00 PM
    Genius15580 points

    Hi Rong,

    The anti-aliasing filter for lower frequency signals such as 1kHz is handled by the SINC filter built into the sigma-delta, you can see it's effects in the frequency response graph (Figure 1).  So you're correct, sigma-delta converters should not need a low-frequncy anit-aliasing filter.  However, as mentioned in the "Filtering and Input Considerations" section if you have any higher frequency signals in your system then an external anti-aliasing filter is suggested and should be implemented as shown in Figure 20.

    Regards,
    Collin Wells
    Precision Linear Applications 

    Regards,
    Collin Wells
    Precision Linear Applications

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rong Lin
    Posted by Rong Lin
    on Jul 31 2012 01:51 AM
    Prodigy30 points

    Hi Collin,

        Thank you! So, the 532us conversion time (cycle time or output register reflash time) doesn't affect sampling rate. The sampling rate is still at 500KHz speed, but output register reflash rate is just 1/532us (it's not equal to sampling rate down to 1/532us). No aliasing issue happened. ^___^!

    Regards,

    Rong Lin

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use