Hi,
Shawn said what I was going to regarding setting the pins to digital, however....
I took a quick look in the BIGPIC5 manual and in the 2*16LCD section it says[quote]
The character LCD communicates with the microcontroller via 4-bit data bus[quote]
What's also noticable when you look in the manual is that the LCD is connected to PortD while you have your code setup as if the LCD was connected to PortA and PortB. So, I'm not surprised it doesn't work.... And, since it's on PortD you don't need to worry about the analog stuff.
Also, make sure that MCU-card with the 18F8720 on it have a 4Mhz x-tal. If it have something else that needs to be reflected in the code or the timing will wrong.
So, read the manual for the development board and set the code up accordingly.
Finally, it's been a while since I used LCDOUT but I don't think the part about the $fe that Shawn wrote is 100% correct. You need $fe if the next byte you send is to be interpreted as a command by the LCD, for example LCDOUT $fe,1 to clear the screen. But when writing actual data to it you should not have the $fe in there as it will then try to interpret the first character after $fe as a command and strange things will occur. LCDOUT $fe,"Hello" will interpret the H as a command (whatever that might be) and then try to print ello.
/Henrik.
Bookmarks