ADC Sample Speed #1070
-
Hello there again, in the datasheet of the RP2040 it is stated that the ADC has a sample rate of 500 ksps. The ADC is much slower, though, if we use the standard arduino-pico/cores/rp2040/wiring_analog.cpp Lines 125 to 142 in 895ffce |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Using a simple test
With the current core I get
Not 500k, but not completely atrocious. With the simple optimizations in #1072 I get about 20% speed improvement:
The remaining difference is down to the SDK/manual reading of the ADC inputs which we have no control over. |
Beta Was this translation helpful? Give feedback.
Using a simple test
With the current core I get
Not 500k, but not completely atrocious.
With the simple optimizations in #1072 I get about 20% speed improvement:
The remaining difference is down to the SDK/manual reading of the ADC inputs which we have no control over.