With those configs ... the PIC is running at 48mhz, not 20.
So change the DEFINE OSC 20 to DEFINE OSC 48.
And like Dave mentioned ... add ADCON1 = $0F before the LCD pins/include.
With those configs ... the PIC is running at 48mhz, not 20.
So change the DEFINE OSC 20 to DEFINE OSC 48.
And like Dave mentioned ... add ADCON1 = $0F before the LCD pins/include.
DT
Bookmarks