I am new to the particle platform and I am attempting to implement an FFT on the Argon to process some sensor data. To do this I need to have uniformly and accurately spaced samples from the ADC (preferably up towards 20 kS/s).
I know that I can use software timers and interrupts to get samples spaced at 1 ms, unfortunately this is clearly not fast enough for my purposes. A while back a library was developed for the particle photon/core called SparkIntervalTimer. It took advantage of the hardware timers (the ones responsible for managing PWM output) to get higher precision interrupts.
I was wondering if there was any way to implement something like this on the Argon, or if I could somehow port this library.