The arduino due has 12bit ADC's (0-4095). As a default the resolution is set to 10bit (0-1023).
Does the board read the values faster when the ADC's are in 10bit mode? Even faster when in 9 bit mode?
that's all I need to know : )
The arduino due has 12bit ADC's (0-4095). As a default the resolution is set to 10bit (0-1023).
Does the board read the values faster when the ADC's are in 10bit mode? Even faster when in 9 bit mode?
that's all I need to know : )
No.
because it just removes the last bit after calculation?
you may see it yourself in wiring_analog.c :
// Read the value
ulValue = adc_get_latest_value(ADC);
ulValue = mapResolution(ulValue, 10, _readResolution);
after adc return 12-bits value, there is a call to mapresolution, where:
static inline uint32_t mapResolution(uint32_t value, uint32_t from, uint32_t to) {
if (from == to)
return value;
if (from > to)
return value >> (from-to);
else
return value << (to-from);
}
result is truncated down via >> shift operator