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?
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.
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.
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.
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.