Arm Mbed OS support forum

Analog to Digital convertion with IRQ

Hello.
Making an Analog to Digital convertion is made via the read method witch initiate a convertion, wait for its completion and then return a value. But convertion process is slow therefore making a convertion is not tolerated in an ISR context (with a MUTEX).

For signal processing (ie Z transform), sampling time managment is a key, but with asynchronous convertions, it’s almost impossible to be done in Mbed environment even if new microcontrolers integrate a FPU to allow it.

An IRQ managed convertion would be a really good tool that allows to start a convertion from a µs Ticker and remove time drifting.

Thank for reading.