hexreader
Advanced Member level 2
- Joined
- Apr 7, 2011
- Messages
- 550
- Helped
- 196
- Reputation
- 396
- Reaction score
- 197
- Trophy points
- 1,323
- Location
- England
- Activity points
- 6,038
Code:
#pragma config OSC = HS //Use external oscillator
Code:
#pragma config DEBUG = OFF //Turn off debug mode
I see you are using XLCD functions to drive your LCD. I hated these routines so much that I ended up re-writing the LCD code to be simpler.
I cannot see where PORTD.7 is set high to turn on the LCD power. I wonder if this is messing things up?
I cannot get your code to compile, but I suspect that my set-up is wrong. I have made little use of MPLAB for the last few years, so I may be of limited further help to you.
Last edited: