with 1MHz speed it worked fine, but when I switch to any other freq, it doesn't work
So, right now i'm testing it with 4MHz
This line is used before and after including <xc.h> , in main, and in the lcd driver, it's everywhere.
#define _XTAL_FREQ 4000000
This line to use the internal osc
#pragma config FOSC = INTOSC_EC
This line(kinda) for prescaling the internal clock to reach 4MHz.
IRCF2 = 1; IRCF1 = 1; IRCF0 = 0;
Does this have something to do with Start-up time ? i'm really not sure what i'm missing.