As christoph says, at no point in the code you start the ADC!
At the end of the setupADC(pin) you have to set the flag for continuous operation (I don't remember now in which register it is) and...
Type: Posts; User: Pedvide
As christoph says, at no point in the code you start the ADC!
At the end of the setupADC(pin) you have to set the flag for continuous operation (I don't remember now in which register it is) and...
For the Teensy 3.0, using continuous mode I get:
ADC resolution Measurement frequency Num. averages
16 bits 325.500 kHz 1
12 bits 345.620 kHz 1
10 bits 364.230 kHz 1
8 bits 772.274 kHz 1
but...