i want to print the digital output of adc on serial monitor .
so when i read the registers ADCL and ADCH i get the binary form of my digital output ,now i want to convert this binary form into decimal form so that i can read the potientiometer values.
so for that i made the function bindec() which converts my binary into decimal.
now in bindec() i am storing decimal value of myy binary in dec variable which is integer
now when i am printing dec variable on serial monitor wiyh Uart_txchar() , it is printing ASCII value as u can see in giveen pics .
so any suggestion ?????????