//#include <18f14k50.h>
#include <htc.h>
//#include <pic18f1xk50.h>
//insert these lines before main(){} in main.c to set the fuses for programming automatically
__CONFIG(1, HS & PLLDIS & FCMDIS & IESODIS); //for freq>8Mhz and <20Mhz, use XT instead of HS for <8Mhz
__CONFIG(2,BORDIS & WDTDIS & PWRTEN); //BORDIS=brown out reset disabled, WDTDIS=watch dog timer disabled
__CONFIG(3,MCLREN & HFSTABLE);
__CONFIG(4,XINSTDIS & DEBUGDIS & LVPDIS & STVREN); //DEBUGDIS=debug disabled, LVPDIS=low voltage programmin disabled
__CONFIG(5,UNPROTECT & CP0 & CPB & CPD ); //unprotected
__CONFIG(6,WRTEN); //flash write enabled
#define LCD_PORT LATC // ;set constant LEDPORT = 'PORTC'
#define LCD_TRIS TRISC // ;set constant for TRIS register
//volatile bit LCD_RS @ (unsigned)&LATC*8+4;
//;LCD handshake lines
#define LCD_RS LATC4
#define LCD_RW LATC5
#define LCD_E LATC6
// volatile bit LCD_RS @ (unsigned)&LATC*8+4;
void main(void)
{
TRISC = 0x00;// set PortC all outputs
ANSEL=0x00;
ANSELH=0x00;
WPUB=0x00;
LATC=0xFF;
while(1);
}