I declared LCDCON at the top of lcd_funcitons.c file as an unsigned char and the LCD cleared.