Reply To: Retrieving UART data on LCD using PIC16F877A

Home Forums Microcontrollers PIC Microcontroller Retrieving UART data on LCD using PIC16F877A Reply To: Retrieving UART data on LCD using PIC16F877A

#10671

Ligo George
Keymaster

Just try like this :

for(i=0;i<=5;)
{
  if(RCIF)
  {
    RD0=1;// RD0 LED ON
    if(OERR)
    {
      RD1=1;// RD1 LED ON
      CREN = 0;
      CREN = 1;
    }
    x[i]=RCREG;
    i++;
  }
}
x[i] = '\0';
Lcd4_Set_Cursor(1,1);
lcd4_puts(x);
Lcd4_Clear();
delay(500);
string(7) "9898001"