Hi,
I'm working on a project where I'd like to sample 6 ADC channels continuously and store all samples in a buffer. Then, after X samples have been collected, trigger an interrupt and process the samples (basically do averaging and pass the data on).
I saw some code snippets on the forum, but only for one channel.
My question - How can I tell the source-address to increment, but then after 3x32 bit (which are 6 ADCRESULTs) burst, tell it to reset to the initial address ?
The logic is as follows. Start from source address of ADCRESULT0, each tranfer is 32 bit, so we need to increment by 2 each time. Then, after transferring channels 5 and 6, reset the source address to ADCRESULT0 ?
The destination address increments all the time until some point...
Second question - which is better to use as trigger - ADCINT1, or the special interface SEQ1INT (as mentioned in http://www.ti.com/lit/ug/sprufb8d/sprufb8d.pdf) ?
It would be great to see a working example for the above application (continuous sampling, store in buffer etc)
Thanks a lot