I want to extract RMC RMB and GGA sentences from GPS using PIC16F877.But i am unable to recieve data using serial interrupt.GPS is working properly.
here is the CCS code.
#include <lcd.h>
#include <420_lcdd.c>
#use rs232(baud=4800, xmit=PIN_C6, rcv=PIN_C7, stream=GPS)
unsigned int index=0;
unsigned char c;
unsigned char inStr[80] ;
 #INT_RDA
 void gps_isr(void)
  {
   c =fgetc(GPS);
   c = (char)c;
   if(c=='
)
  index=0;
  inStr[index]=c;
  index++;
  if((c==10)||(c==13))
  {
   inStr[index]='\0';
   index=0;
  }
}
void main()
{
lcd_init();
enable_interrupts(INT_RDA);
enable_interrupts(GLOBAL);
printf(lcd_putc,“%s”,inStr);
WHILE(TRUE)
{
}
}