hi,
the TRM of TRM570 speaks about a ADEVBUFFER to access ADC data but this define is not defined (as many other) due to HalCoGen version change, I suppose.
AFAIK there are 3 ways to access ADC data:
- direct access to the ADC RAM (fast but don't reset the interrupt threshold counter
- FIFO access
- adcGetData function generated by HalCoGen
Do the adcGetData is comparably slower than the other two methods?
Which is exactly the instruction to read a value from FIFO having the side effct of incrementing the threshold counter ? (please post a C example)
Inside the interrupt function, to implement a fast continuous double buffering is better:
- increment the threshold counter by halfFifo size and then access ADC RAM directly (alternating the fist and the second half of the RAM
- use the FIFO access that should (I've not tested it yet) auto increment the threshold count
Which one is better?
Which code does implement the second solution (please post an example compatible with CCSv5 and HalCoGen 03.06.00)
Thank you