You mean you want to show ASCII representation of the ADC result?
This has a floating point in it... You will find it hard to convert float to ascii...
There is a horrible ftoa(); routine in HTC
My advise ( not that you'll take it ) is to use fixed point math.
This yeids 0 to 5000.
Drop in the decimal after the first digit.
Code:
( ADRESH*256+ADRESL)*5.0/1023)*10);
This has a floating point in it... You will find it hard to convert float to ascii...
There is a horrible ftoa(); routine in HTC
My advise ( not that you'll take it ) is to use fixed point math.
Code:
((long)(ADRESH)*256+ADRESL)*5000/1023);
This yeids 0 to 5000.
Drop in the decimal after the first digit.