hi i am reading a 16bit adc and i am reading a value for example 0f 28766 but the last bit is not stable so i want to ignore or strip of the last digit so my reading is 2876 any suggestions please
many thanks Andrew
Guest
Re: number conversion
Posted: Fri Jun 27, 2008 5:31 pm
morebudwiser wrote:
hi i am reading a 16bit adc and i am reading a value for example 0f 28766 but the last bit is not stable so i want to ignore or strip of the last digit so my reading is 2876 any suggestions please...
Even if you strip off the last digit or round off, you still could get an unstable value. 28769..28770 becomes 2876..2877. And if you round off, 28764..28766 becomes 2876..2877. It is inherent in reading analog values that there will always be the chance for some change in a supposedly rock-solid voltage.
Robert Scott
Real-Time Specialties
Guest
Posted: Sat Jun 28, 2008 4:42 am
hi what i want to do is take a 5 digit number say for example 23456 and change it to a four digit number 2345
many thanks andrew
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum