Hi All,
I did take a look at the forum in order to resolve the following, but can't easily find a definative thread!
I have a standard voltage devider set up and can reliably get an 8/10 bit resolution over the 0-5v range using readadc and readadc10
I understand how the readadc10 provides 10 bit resolution in the two byte blocks that make up the word (W0) etc.
What I can't figure is how to get and display the result to one or more decimal places.
So far.... I can only display a whole number with rounding up or down. i.e. 15v, 16v, 17v etc.
What I am after is a reading with at least 1 decimal places i.e. 15.1, 15.2, 15.3 etc. 2 decimal places would be good!!
I'm sure it's been done.... and I'm probably the only person in the picaxe world that doesn't know )
can anyone point me in the right direction??
Kind regards
Maarten
VK6MP
I did take a look at the forum in order to resolve the following, but can't easily find a definative thread!
I have a standard voltage devider set up and can reliably get an 8/10 bit resolution over the 0-5v range using readadc and readadc10
I understand how the readadc10 provides 10 bit resolution in the two byte blocks that make up the word (W0) etc.
What I can't figure is how to get and display the result to one or more decimal places.
So far.... I can only display a whole number with rounding up or down. i.e. 15v, 16v, 17v etc.
What I am after is a reading with at least 1 decimal places i.e. 15.1, 15.2, 15.3 etc. 2 decimal places would be good!!
I'm sure it's been done.... and I'm probably the only person in the picaxe world that doesn't know )
can anyone point me in the right direction??
Kind regards
Maarten
VK6MP