I am using a 20X2 LCD, using 4-bit mode. I don't understand all of the command bits used in the initialization.
For instance,
After writing one character in the first position, I would like the cursor to auto-increment to the second position. Does this mean I should set the "I/D" bit in the "entry mode" command?
I would like to hide the cursor so that the user can not see the cursor at all. Does this mean that I should clear the C and B bits in the "Display ON/OFF control" command?
In the "Cursor or Display shift" command, what exactly are the "S/C" and "R/L" bits used for? I don't understand the explanation given in the datasheet.
I'm close to getting the LCD screen to work, but right now, all I get is a bunch of dark blocks in the second row when I power up my unit. Thank you for any help!
-Richard
For instance,
After writing one character in the first position, I would like the cursor to auto-increment to the second position. Does this mean I should set the "I/D" bit in the "entry mode" command?
I would like to hide the cursor so that the user can not see the cursor at all. Does this mean that I should clear the C and B bits in the "Display ON/OFF control" command?
In the "Cursor or Display shift" command, what exactly are the "S/C" and "R/L" bits used for? I don't understand the explanation given in the datasheet.
I'm close to getting the LCD screen to work, but right now, all I get is a bunch of dark blocks in the second row when I power up my unit. Thank you for any help!
-Richard
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.