I am trying to interface a standard type hd44780 lcd screen to my micro in 4 bit mode. I found the following link for a different micro but after modification I can't seem to get it to work.
http://ghmicro.com/index.php?option...9:dspic-30f4013-lcd&catid=11:30f4013&Itemid=2
I changed the three RS RW and E pins to other pins on my micro and changed the 4 bit lines from port b (9-12) to my port b (5-8). I then changed the bit shifting to accompany this pin change as seen in the lcd_cmd and lcd_char functions.
Considering that the R/W pin is used, I don't have to worry about delays because the lcd uses a busy signal. But, since I'm running my dspic at 7.5MHz with a 16X multiplier I'm thinking that timing has something to do with it anyway. When you toggle the E pin from 1 back to 0 I had to put a delay in between for anything to show up. But all I get to show up is garbage characters.
Sorry for such a long post, but any help with these timing issues or anything would be greatly appreciated. Thanks!
http://ghmicro.com/index.php?option...9:dspic-30f4013-lcd&catid=11:30f4013&Itemid=2
I changed the three RS RW and E pins to other pins on my micro and changed the 4 bit lines from port b (9-12) to my port b (5-8). I then changed the bit shifting to accompany this pin change as seen in the lcd_cmd and lcd_char functions.
Considering that the R/W pin is used, I don't have to worry about delays because the lcd uses a busy signal. But, since I'm running my dspic at 7.5MHz with a 16X multiplier I'm thinking that timing has something to do with it anyway. When you toggle the E pin from 1 back to 0 I had to put a delay in between for anything to show up. But all I get to show up is garbage characters.
Sorry for such a long post, but any help with these timing issues or anything would be greatly appreciated. Thanks!