Hi,
Firstly 10 bit data = 1023 max (0-1023, that's 1024 numbers)
5v = 1023
In your code, you use the function ByteToStr, but temp_res is not a byte.
So, have another variable as "temp_res_byte" and convert "temp_res" to byte.
Try this:
it doesn't work. Infact, that the character doesn't change when i give different voltages for the adc. this is what i got from the usart terminal of the microC