Home › Forums › Microcontrollers › PIC Microcontroller › Displaying UART data on LCD – PIC 16F877A › Reply To: Displaying UART data on LCD – PIC 16F877A
December 15, 2014 at 7:17 pm
#10236
Keymaster
It is not a good practice to use goto statements in your programs.
Try like this to display UART data on LCD :
void main()
{
Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
UART1_Init(9600);
while(1)
{
if(UART1_Data_Ready())
{
gps = UART1_Read();
Lcd_Chr_Cp(gps);
}
}
