When I use analogRead(A9) in my loop(), it seems my sample rate is only 4kHz.
In my sketch, I compare the ADC value to midscale (512), and if so, write a HIGH, then immediately write a LOW.
ADC_v = analogRead(A9);
ADC_i = analogRead(A7);
if (ADC_v > 512)
if (ADC_i > 102)
The scope capture shows samples are spaced at 250usec (4kHz). Is there a way to make this faster?