Do you send a "Display On/Off Control" command with D=1, C=1 and B=0 (Display: On ; Cursor: On ; Blink: Off) see page 24 of datasheet?
If not, what you see isn't the cursor but some spookie thing because of I don't know what (yet)
A small error, when addressing line two (40h) I wrote:
Code:
MOVLW b'1100000' ; Set DDRAM Address 40h (Line 2)
When it should have been:
Code:
MOVLW b'11000000' ; Set DDRAM Address 40h (Line 2)
It's funny what a difference a zero can make!!!
Thank you everyone for helping me out here, especially Nigel and mcs51mc. Now I can start putting something useful on the display, I just gotta write some sub-routines for if first (Thanks Nigel, for the suggestion)...
hi i am also facing a similar problem with my 20X4 LCD i only able to see the dot matix from the first and the third line so pls can anybody help me with that
in case of 16X2 LCD, the command for initialization is 0x38h.. so,is it the same in case of 20X4 LCD? or is it different?
There are a few different versions of the LCD and how you initialise it. Basically check the datasheet and check you I/O pins. The initialisation command is probably different from a 2x16 and a 4x20. 2x16 can be either a one line or a two line, which depends on the hardware.
Hi, I have a 4X20 Hitachi LCD and there are 14 connector pins on the PCB. Does anybody have pin layout for that 14 pins and can I have them? Thank you!