Did you configure your 18f458 correctly? Especially LVP_OFF! This was the mistake, i made.
Here is my code, check for the LCDPUTCHAR routine.
Did you configure your 18f458 correctly? Especially LVP_OFF! This was the mistake, i made.
Here is my code, check for the LCDPUTCHAR routine.
I'm sorry, I know that this is a PIC Basic forum thats why I hadn't posted my code In the first thread. Yes, I have a pullup on MCLR, and LVP is off. Here I have a picture of what my screen shows when my program tries to write "Hello world!!!"
May-be your clock speed is too high? PLL ON perhaps?
Try simulating your code in MPLAB. If this works OK, it's something in hardware. If not, you'll find the bug quickly.
I was just looking at your picture an couldn't help but notice the leads coming for the crystal. Shouldn't there be a empty space in between the pins. It looks like the pins are spaced at 0.100". It might be just the picture but I think the crystal is actually 0.200" pin spacing.
My 2 cents... the crystal is really to far of the PIC, and try to remove both capacitor... breadboard capacitance
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I actually found running 22pF with our PIC's caused us loads of troubles. Things would reset all the time, corrupt displays and sensors. Removed the capacitors and everything works fantastic now. Scope the ocsillator output and noticed the capacitors were actually causing a lot of noise.
100ms delay before you initialize your display could be too short. Many displays needs alot more. Try a couple of seconds and see if that makes it work.
Bookmarks