I think i have replied to this topic before. I wonder why its not showing up
anyway, i think the code is written for Mikro c, not c18.
if you’re using c18, there is a header file called “lcd.h”. this is where you set the required lcd pins.
use correct pragma directives for the configuration bits, oscillator,prescaler,wdt etc…
if you’re using MikroC, set the configuration bits in “project-> edit project”. the configuration bits are in the given code(commented). i’ve tested this code in MikroC and it works fine displaying on the lcd except for some glitches at the beginning.I use a 20Mhz crystal so i have to change the config bits. I add a 100ms delay at the beginning of my main() to overcome this.
pls correct me if i’m wrong and have a nice day