Is ADC 10 or 12bit???

Post here first, or if you can't find a relevant section!
Post Reply
User avatar
Mangy_Dog
Posts: 123
Joined: Sat May 02, 2020 11:45 pm
Answers: 1

Is ADC 10 or 12bit???

Post by Mangy_Dog »

Having a really strange issue at the moment reading some voltage values.

I've designed my code to read 12bit values (as per mcus spec) but my expected values are a quarter what they should be. Setting my function to run as 10bit mode shows the correct value (though off by 100mV)
Is stm32duino layer truncating the values to something more Arduino like?

if so is there way to stop it and use the full 12bit range?
Just a dogs body developer, mostly making props and stuff...
fpiSTM
Posts: 1819
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 99
Location: Le Mans
Contact:

Re: Is ADC 10 or 12bit???

Post by fpiSTM »

Even of conversion is done 12 bits. It is mapped to default resolution. See https://www.arduino.cc/reference/en/lan ... esolution/ to change the mapping.
Post Reply

Return to “General discussion”