Setup a hardware peripheral like capture, hardware PWM, counter, UART, etc and enable
it. They will all run simultaneously in the background while you're sampling the A/D input.