• 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 » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » Launchpad: Using Sequence of Channels w/ Automatic Data Transfer Controller. How to read the values from memory?
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Launchpad: Using Sequence of Channels w/ Automatic Data Transfer Controller. How to read the values from memory?

    Launchpad: Using Sequence of Channels w/ Automatic Data Transfer Controller. How to read the values from memory?

    This question is not answered
    Dylan Williams
    Posted by Dylan Williams
    on Apr 28 2012 20:19 PM
    Prodigy80 points

    Hello,

    I am using the ADC10 Sequence of Channels mode with ADC0,1,2. I have Automatic Data Trasnfer Controller Enabled starting at memory address 512 (Using Grace). Memory Block Size is set to 3 (for 3 channels). I have it setup as in the grace example for this mode. I am wondering how I read these values from memory after the conversions are complete?

    Thanks,

    Dylan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • BrandonAzbell
      Posted by BrandonAzbell
      on Apr 29 2012 20:11 PM
      Guru54850 points

      Did the Grace framework generate variables for the memory locations the DTC output?  Assuming, yes, you can access the values of the ADC conversion results via these variables.

      Brandon

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Greg Whitmore
      Posted by Greg Whitmore
      on Apr 30 2012 05:33 AM
      Expert1185 points

      Grace does not generate a variable for the memory location. It only gives you the starting address in memory. You can assign a variable name as a pointer in Grace such as ADCdata, but your main code will need to declare it like volatile unsigned int ADCdata[x] where x == number of samples you're taking.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Dylan Williams
      Posted by Dylan Williams
      on Apr 30 2012 07:24 AM
      Prodigy80 points
      Do the values get stored at consecutive memory locations? Like 512, 513, 514? What is the correct way to point to these specific address?
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Greg Whitmore
      Posted by Greg Whitmore
      on Apr 30 2012 20:52 PM
      Expert1185 points

      Yes, but they will rewrite after the specified number of blocks.

      You can take a look at this example. http://www.43oh.com/forum/viewtopic.php?f=9&t=1701&p=11692&hilit=gwdeveloper+dtc#p11692 My daughter and I are building a line-follower for a 3rd grade project so the code should be really easy to follow.

      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