Hi.
I’m trying to program a pic18f4550 microcontroller, which receives data from the virtual terminal and display it on a 16x4 LCD display in Proteus. But it displays something like α α α α for all the keys I have passed via the virtual terminal.
My Compiler:: CCS C Compiler 5.015
HERE is my prgm:
#include <18f4550.h>
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN,NOPBADEN
#use delay(clock=48000000)
#use rs232(baud=56000, xmit=PIN_C6,parity=N,rcv=PIN_C7,ERRORS,bits=8)
#include <flex_lcd416.c>
void main()
{
for(;;)
{
lcd_init();
lcd_setcursor_vb(1,1);
lcd_putc("Receving Data\n");
delay_ms(1000);
if(kbhit())
{
lcd_putc(getc());
output_high(PIN_A0);
delay_ms(500);
}
else
{
output_low(PIN_A0);
delay_ms(100);
}
}
}
Here is my lcd output:
Need some help!!