Hi there, need some help in my code here. My program suppose to display a number(decimal) on the screen via uart when I send a number but it is displaying in ascii form. I tried debugging it but there is no solution for it. When I send 88 it can only display X. I have attached the code. Please help me. I`m using MikroC compiler and i`m using a PIC.
UART1_Write_Text("Ready to know your heartbeat ?? ");
pulserate = 88;
Temp = (pulserate - '0');
newline();
UART1_Write_Text("Your Heartbeat rate is : ");
newline();
UART1_Write(Temp);
newline();