When I first started on writing the code for lcd16x2, I do face some on and off problems .
Luckily there are numerous of examples and source codes on the web, I manage to display something on hd44780 .
The main problem of all is modifying other source code to cater your needs as some readings are required .
After I was able to compile and display custom character on SK40C board, I was so happy and have the urge to share the joy with other people.
that why I wrote these tutorials.
First tutorial shows the initialisation of lcd using c18,
http://electronictoofree.blogspot.com/2015/07/hd44780-lcd16x2-and-c18.html
second tutorial shows how to create custom character in hd44780.
http://electronictoofree.blogspot.com/2015/07/hd44780-lcd16x2-custom-character.html
Cheer