Angry Badger
Member
Hi,
You're running your PIC at 48Mhz? Try at 4Mhz to get your LCD routines working then step up the speed. Get rid of those delays in the LCD enable routine.
The busy flag isn't really that important if you're code isn't timing critical but it's there and not much bother to use once you figure it out. Get your code working with delays so you know the rest of your code is good then have another stab at the busy routine.
Code:
}
void LCD_Delay(){
Delay10KTCYx(6); // Equal to about 5 milliseconds with a 48MHz clock
}
The busy flag isn't really that important if you're code isn't timing critical but it's there and not much bother to use once you figure it out. Get your code working with delays so you know the rest of your code is good then have another stab at the busy routine.