• 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 » ADS1256: RDATAC: Read Data Continuous
Share
Precision Data Converters
  • Forum
  • Files
  • 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...

ADS1256: RDATAC: Read Data Continuous

ADS1256: RDATAC: Read Data Continuous

This question is answered
Hans Wurst
Posted by Hans Wurst
on May 16 2012 08:09 AM
Prodigy70 points

Hi!

I would like to connect an ADS1256 to a C6713 DSK. For this purpose i use the McBSP0.

Im now not shure how i need to configure the McBSP.

How is the Read Data Continuous Mode of the ADS1256 exactly working? The description on Page 35 of the datasheet are not very detailled.

My understanding of this mode is the following:

When i have sent the RDATAC command, the adc wil go into Read Data Continuous mode. It will start to convert, when its finished the DRDY Signal will go low. Now I need to set CS low und clock 24 Bits out of the adc.

If this is the correct, it's not that easy to interface this adc with the 6713 DSK.

I would need to connect the DRDY Signal to an external Interrupt pin and make alle the recieving manually in the external ISR. This can't be the right way.

Can anyone advise me how to set all these things up? At the end i just want an interrupt in the C6713, when there is a new sample to process.

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 May 16 2012 08:22 AM
    Verified Answer
    Verified by Bob Benjamin
    Guru86375 points

    Hi Hans,

    You've got the basic flow for this correct.  There is a code example for the ADS1256 using the TMS320C6713 here:

    http://e2e.ti.com/support/data_converters/precision_data_converters/w/design_notes/1227.aspx

    The program uses mapping of an external interrupt through the EDMA.  See if that helps you get your project going and let us know how you make out.

     

    Regards,

    Tom

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Hans Wurst
    Posted by Hans Wurst
    on May 16 2012 09:54 AM
    Prodigy70 points

    Hi Tom!

    Thanks for posting this example! Verry interessting, though, I dont see clearly through how it works.

    As I dont need to process whole blocks of samples, EDMA has no advantage in my case.

    So I think I'll use the EXT_IN6 Pin on the Peripheral Expansion Connector und trigger this Interrupt with the DRDY Signal of the ADC. In the ISR of this Interrupt, I process the last sample, read in the new one, and leave the isr. So, the adc triggers all the processing on the dsp.

    Thanks for your help, I will let you know if if was successfull.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Hans Wurst
    Posted by Hans Wurst
    on Jun 05 2012 08:18 AM
    Prodigy70 points

    Hi!

    So now I have tried out really to communicate with my ADS1256.

    For this purpose I studied the provided example.


    What I dont unterstand ist the way which an McBSP can be used to communicate in real SPI style.


    Clock Stop, and FrameSync concepts are clear.

    In my understanding, for example if I want to have one single conversion result, I do the following steps:

    1.bring CS down

    2.Clock out the Command to obtain one sample to the adc

    3. wait a short time

    4.clock the converted data out of the ADC

    5.bring CS up

    This is one communication frame as described in the ADS datasheet and is normally an SPI Com works.

    How is this behaviour possible with the McBSP  and the CSL ?

    I have succesfully written out data with the   MCBSP_write(adcSPIHandle, ADS1256_CMD_RDATA); command. So far so good.

    But how does this work together with the described communication pattern? This command only clocks out 8 bits then brings CS high again.

    In this way, there is no possiblity to clock out the wanted 24 bits.

    If we lock at the example code:

       (void)SetWordLength(adcSPIHandle,ADS1256_WORDLENGTH_8BIT);


        /* send read data command to the converter                  */
        while (MCBSP_FGETH(adcSPIHandle, SPCR, XRDY) != 1) ;
        MCBSP_write(adcSPIHandle, ADS1256_CMD_RDATA);

        /* receive the dummy word from the converter            */
        while (MCBSP_FGETH(adcSPIHandle, SPCR, RRDY) != 1) ;
        (void)MCBSP_read(adcSPIHandle);

        (void)SetWordLength(adcSPIHandle,ADS1256_WORDLENGTH_24BIT);

     
        DSK6713_waitusec(50);


        /* send "no command" to read conversion result              */
        while (MCBSP_FGETH(adcSPIHandle, SPCR, XRDY) != 1) ;
        MCBSP_write(adcSPIHandle, 0x00000000u);

        /* retrieve the conversion result from the converter        */
        while (MCBSP_FGETH(adcSPIHandle, SPCR, RRDY) != 1) ;
        data = (long)MCBSP_read(adcSPIHandle);

    It looks like a silly workaround to get the McBSP to funtction in a real SPI way.

    I dont see why this even works, because the writing und reading back functions are separated.

    It would really appreciate if someone could explain this to me. Thanks a lot!

    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