Hi,
I'm trying to get the most of a teensy LC ADC, and reading the datasheet :
31.6.2.3 Noise-induced errors : Operate the MCU in Wait or Normal Stop mode [...] immediately after initiating (hardware- or software-triggered
conversions) the ADC conversion
I had a look at pepvide's ADC library (which I'm using now), and I think it has no provision to do that.
I can only see it looping like this : while( isConverting() ) yield();
Did I miss something ?
If not : what would you think of some method tailored for maximum accuracy that would put the mcu in stop mode while the conversion is being done ?
Looking at both ADC and Snooze libraries, I tend to think I could get by mixing a bit of ADC::analogRead and Snooze::enter_stop to come up with ADC::highAccuracyanalogRead ...
Do you think (a) this would be worth the pain ; (b) this would work ?
David
I'm trying to get the most of a teensy LC ADC, and reading the datasheet :
31.6.2.3 Noise-induced errors : Operate the MCU in Wait or Normal Stop mode [...] immediately after initiating (hardware- or software-triggered
conversions) the ADC conversion
I had a look at pepvide's ADC library (which I'm using now), and I think it has no provision to do that.
I can only see it looping like this : while( isConverting() ) yield();
Did I miss something ?
If not : what would you think of some method tailored for maximum accuracy that would put the mcu in stop mode while the conversion is being done ?
Looking at both ADC and Snooze libraries, I tend to think I could get by mixing a bit of ADC::analogRead and Snooze::enter_stop to come up with ADC::highAccuracyanalogRead ...
Do you think (a) this would be worth the pain ; (b) this would work ?
David