• 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 » Data Converters » Precision Data Converters » Precision Data Converters Forum » ADS7813 resolution problem
Share
Precision Data Converters
  • Forum
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS
Check out
The Signal blog
  • $core_v2_blog.Current.Name

    Grounding Principles

    Posted 3 days ago
    by Bruce Trump
    In a previous blog on supply bypassing , I cautioned that poor...
  • $core_v2_blog.Current.Name

    Handy Gadgets and Resistor Divider Calculations

    Posted 11 days ago
    by Bruce Trump
    Handy gadgets make our engineering life easier—the little...
  • $core_v2_blog.Current.Name

    Chopper Op Amps—are they really noisy?

    Posted 18 days ago
    by Bruce Trump
    Chopper op amps offer very low offset voltage and dramatically...

Forums

ADS7813 resolution problem

This question is answered
Robert Katona
Posted by Robert Katona
on Mar 22 2012 14:59 PM
Prodigy35 points

Hi there!

 I had ordered a sample of ADS7813 and tried to get work with an Arduino board. And my problem is i cant get out a better resolution than two decimal place. The first 10 bit seems ok, from MSB, but the last 6 bit is bouncing pell-mell. Here are some conversion results:

3.2569353 10100110101110
3.2569353 10100110110101
3.2584612 10100110110110
3.2599871 10100110111001
3.2609026 10100110110101
3.2609026 10100110111000
3.2609026 10100110110001
3.2657856 10100110110100
3.2599871 10100110110100
3.2566301 10100110110001
3.2526626 10100110110100
3.2566301 10100110110101
3.2593767 10100110101100
3.2609026 10100110110110

The first column values is in voltage the second columns values is the conversion result.

I bulid the circuit in a bread-board i used the same capacitors as in the datasheet i tried another input values and i got the same results.


here is my code in Arduino (same as C):


  digitalWrite(CLOCK,LOW);
 
  digitalWrite(CONV,LOW);       

         //this start the conversation

  delayMicroseconds(1);

  digitalWrite(CONV,HIGH);

 
 
 while(busy==0){                               // while BUSY is high still wait
   
  busy=digitalRead(BUSY);
 
 }
  
 
  for(int i=0;i<16;i++){                  //here start the read of the 16 bit
 
  digitalWrite(CLOCK,HIGH);
 
  x[i]=digitalRead(DATA);
 
  delayMicroseconds(20);
 
  digitalWrite(CLOCK,LOW);
 
  }
   

 
 
 for(int j=1, c=16384j<16;j++,c=c/2){                   //this is how i piece together the 16 bit data in decimal, 15bit because the firs is the sign bit
    
  val+=x[j]*c;
 
  }
 
 

  val=5*val*(double)1/32767;           //this is how i convert the number to voltage with +-5V input range
What did i mess up?
Cheers
Robert
A/D converters adc ADC problem ADS7813 ADS7812 ADS7813P
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Tom Hendrick
    Posted by Tom Hendrick
    on Mar 24 2012 13:41 PM
    Guru86220 points

    Hi Robert,

    Could you possibly post a schematic showing your connections to the ADS7813?  The 'C' code is really not going to impact the last 6 LSBs toggling, that would be caused by you power, reference and/or the actual analog input circuitry.

     

    Regards,

    Tom

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Robert Katona
    Posted by Robert Katona
    on Mar 24 2012 15:39 PM
    Prodigy35 points

    Here is the wiring diagram:

    I used the USB power i dont use any adapter. I tried a battery in place of the potentiometer and i got a same result.

    Best regards

    Robert 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Robert Katona
    Posted by Robert Katona
    on Apr 02 2012 13:59 PM
    Prodigy35 points

    Hi again,

    So no one can help me?

    Robert

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tom Hendrick
    Posted by Tom Hendrick
    on Apr 04 2012 14:15 PM
    Verified Answer
    Verified by Tom Hendrick
    Guru86220 points

    Hi Robert,

    Take a look over these articles:

    Designing SAR ADC drive circuitry, Part I: A detailed look at SAR ADC operation. Analog Zone. Download at: http://www.analogzone.com/acqt0221.pdf

    Designing SAR ADC drive circuitry, Part II: Input behavior of SAR ADCs. Analog Zone. Download at: http://www.analogzone.com/acqt1003.pdf

    Designing SAR ADC drive circuitry, Part III: Designing the optimal input drive circuit for SAR ADCs. Analog Zone. Download at: http://www.analogzone.com/acqt0312.pdf

     

    Regards,

    Tom

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ism aaa
    Posted by ism aaa
    on May 28 2012 05:32 AM
    Prodigy125 points

    Hi Robert, can you please help me about using ADS7813 with arduino?

    I try to use these codes but it dont work, i need immediately help.

    thanks. 

    ADS7813
    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