lcd 20x4 in 8bit mode

yurif74

New Member
please help!
i need help to initialize an HD44780 complatible lcd to work in 8 bit mode

i used a picaxe 28 x2 with port b connected to the data bus of lcd and pin C.7 connected to pin E and C.6 connected to RS pin

i give all the standard initializing commands except for the $32 command, the lcd seems to initialize but only line 1 and line 3 and does not accept data...
i use a displaytech 204A series lcd 20x4 and i send theese initialization codes: $33,$38,$0F,$05,$01. cursor should be on and flash but it doesn't..
any help or example code?

thank you
bye
 

hippy

Technical Support
Staff member
I think your initialisation is wrong. Try -

$38, $38 ,$38, $0F, $05, $01
 

yurif74

New Member
thank you hippy, now it seems to work, thats very strange because in all programs i seen the first byte was always $33 (8 bit operation) then $32 (4 bit operation), i removed the $32 but now with the $33 removed it work...

thank you again.
one fast question: do you remeber the command code for editing chars?
thanks
 

hippy

Technical Support
Staff member
The $33, $32 is the initialisation sent in 4-bit mode for 4-bit mode. The display initialises with an 8-bit interface so what gets strobed out as four nibbles get received by the LCD as bytes to start with.

If you mean the code for editing User-Defined Characters, that's %01xxx000 where xxx is 000 to 111 for the eight characters.
 
Top