How to user timer to trigger ADC in XIAO?

Hi there,

I would like to run Xiao's ADC at two channels, 1000 samples/sec each (and some nice sample rates)

Since ADC's free run mode will only give some "weird" sample rate, I feel timer would be my bet to get some nice sample rates.

Is it possible to trigger/start ADC conversion directly from timer in hardware level to meet the above requirement? If so, any pointer?

If not, I will have to use program to trigger/start ADC in timer isr. To minimize the jitter caused by isr time, I guess i can set timer isr to the highest priority.

Thanks for any pointer/comment!

Searching on the forum for GCLK_CLKCTRL_ID_ADC found ISR Timer Firing for TC3

Thanks for the reply, but the timer didn't trigger ADC conversion directly in the sketch. it is only a ADC read

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.