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
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
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.