ADC Interrupt on conversion complete


I’m intending to use a particle to replace a system developed for Arduino Yun.
The arduino program acquires analog readings into a buffer and transmits the buffer when it’s full. I used the function of the ATMega IC where you can start an analog conversion and it will generate an interrupt when it’s complete and in the interrrupt routine I insert the value into the buffer and start the next acquisition. This is not part of arduino but rather involves setting registers in the micro in atmel C (explained here)
This means the analog conversion runs reliably in the background while the communication is handled in the main loop, so no acquisitions are missed while transmission is being done with a blocking function.

Is this possible on the particle? I’ve only seen reference to interrupts fired directly from pins.


For Gen2 devices this should provide what you are looking for

For Gen3 this might be suitable