carlos_elt
Newbie level 5

Hi,
I've just began to work with microcontrollers and i've built a simple HD44780 LCD driver with a PIC microcontroller but i have some trouble in the module initialization. I've used a library a found on the net and that is like the one that come with the CCS PCW compiler but u can choose the pins u want to use.
It works but only when the timing is really accurate like when i turn it on it just initializes and the cursor stays blinking in a aleatory place of the display. I have to reset the PIC in order to get the characters to show up in the display correctly.
The library is attached.
P.S: I've already added delay routines before and after i call the lcd_init().
The commentaries on the library are in portuguese.
It uses the 4 bit mode.
I've just began to work with microcontrollers and i've built a simple HD44780 LCD driver with a PIC microcontroller but i have some trouble in the module initialization. I've used a library a found on the net and that is like the one that come with the CCS PCW compiler but u can choose the pins u want to use.
It works but only when the timing is really accurate like when i turn it on it just initializes and the cursor stays blinking in a aleatory place of the display. I have to reset the PIC in order to get the characters to show up in the display correctly.
The library is attached.
P.S: I've already added delay routines before and after i call the lcd_init().
The commentaries on the library are in portuguese.
It uses the 4 bit mode.