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

#10827
sandeep
Participant

sorry sir, my mistake… finally i got what required… no conversion was needed to display data from gsm on lcd. i got what exactly i got on hyperterminal now…
but as per the code below… loop is not getting repeated continuosly. i just mentioning last three bits for reference..

while(1)
{
  UART_Write_Text("AT+CMGR=1");
  UART_Write(0x0D);
  UART_Write(0x0A);

  for(i=0;i<67;i++)
  {
    x[i]=UART_Read();
  }

  Lcd4_Clear();
  Lcd4_Set_Cursor(1,1);
  lcd4_putch(x[63]);  // data corresponding bit
  lcd4_putch(x[64]);
  lcd4_putch(x[65]);
}
>