Hi all,
I've got my Teensy 3.6 acquiring from 2 channels, using the 2 ADCs, continuously using Pedvide's ADC library. (with the practical settings I've picked, I get adc0 interrupts at a jitter-free 156kHz [12-bit, averaging:4, No USB mode])
What's the ideal way to get continuous acquisition from 4 channels, (2 channels per ADC) at 78kHz?
In an ideal world I'd get an interrupt with the result from all 4 channels, though an interrupt per 2 channel pair wouldn't be an issue.
I've seen mention of the PDB module but no clear example and I suspect it wouldn't use the continuous running bit that makes the ADC run as fast as possible. I have a suspicion that the solution might involve getting the DMA to change the channel assignment bits before the next acquisition starts but I'm not sure this will be possible in continuous acquisition mode.
Any thoughts?
I've got my Teensy 3.6 acquiring from 2 channels, using the 2 ADCs, continuously using Pedvide's ADC library. (with the practical settings I've picked, I get adc0 interrupts at a jitter-free 156kHz [12-bit, averaging:4, No USB mode])
What's the ideal way to get continuous acquisition from 4 channels, (2 channels per ADC) at 78kHz?
In an ideal world I'd get an interrupt with the result from all 4 channels, though an interrupt per 2 channel pair wouldn't be an issue.
I've seen mention of the PDB module but no clear example and I suspect it wouldn't use the continuous running bit that makes the ADC run as fast as possible. I have a suspicion that the solution might involve getting the DMA to change the channel assignment bits before the next acquisition starts but I'm not sure this will be possible in continuous acquisition mode.
Any thoughts?