There's some datasheet with initialisation chart example (http://inst.eecs.berkeley.edu/~cs150...heckpoint3.PDF) . You may try to find some PicBasic LCD routine (not PBP of course)
now it's just a matter of finding the values in the datasheet.
a while back i did something for a 4 bit mode, the initialisation sequence looked like..
Code:
' ---------------------------------------------
' LCD Initialisation for HD44780 and compatible
' 4 BIT MODE
' ---------------------------------------------
asm
; LCD_OUT Mode, Data, DelayUS
LCD_OUT ONCE, 30h, 5000 ; I want to use 4 bit mode !
LCD_OUT ONCE, 30h, 500 ; Did you hear me?
LCD_OUT ONCE, 30h, 500 ; Last chance or... too bad!
LCD_OUT ONCE, 20h, 500 ; Official 4 bit mode start
LCD_OUT SPLIT, 28h, 0 ; Function set [4bit, 2lines,5x7]
LCD_OUT SPLIT, 0Ch, 0 ; turn on the display
LCD_OUT SPLIT, 01h, 0 ; clear it
LCD_OUT SPLIT, 06h, 0 ; entry mode
endasm
if you need the source code, i can post it.
Bookmarks