Hi,
working on Teensy 3.2
I use ADC library in order to sample A2 pin analog input.
I now use a function readADC() in loop() in order to read a single input. Every time the sample count reaches SAMPLES (2048), i process my samples.
This is not efficient and I have no control on the sample speed, because the loop() makes other things.
I'd like to use ADC library with interrupts in order to read the samples in background and process them when ready (2048 reads done).
Is it possible?
Does exists any example?
Thanks a lot in advance
Best regards
pmartin
working on Teensy 3.2
I use ADC library in order to sample A2 pin analog input.
I now use a function readADC() in loop() in order to read a single input. Every time the sample count reaches SAMPLES (2048), i process my samples.
This is not efficient and I have no control on the sample speed, because the loop() makes other things.
I'd like to use ADC library with interrupts in order to read the samples in background and process them when ready (2048 reads done).
Is it possible?
Does exists any example?
Thanks a lot in advance
Best regards
pmartin