Here is a simple "hello world" fprogram for the pic 16f877A
#include <16f877a.h> //Must be included
#use delay(clock=16000000) //for specifying the clock frequency in Hz
#include
void main()
{
lcd_init();
/*******************************************************************************/
//PRINTING "HELLO WORLD" IN LCD
/*******************************************************************************/
lcd_putc("\f HELLO WORLD \n");
// \f Clear display
// \n Go to start of second line
// \b Move back one position
}