pardner
Newbie level 6
I bought a 16x2 display off ebay six years ago and I am finally getting around to building something with it. As far as I can tell, its a HD44780U display and it appears to have ROM code A00 (reduced character set).
When I first got the display, I tested it quickly and confirmed that it was a 16x2 display. I tied all data lines high and just clocked it by hand. It displayed 32 black squares: 16 on top, 16 on bottom. Now that I finally got it hooked to a MSP430 and can write meaningful characters, I cannot get the second line to display.
When I power up the display I send the following commands :
If I change the Function set to 2 line, the display contrast dims and the second line is still not displayed.
After I do the initialization, I clock 32 characters to the display. 16 characters are displayed on the top line and none are displayed on the bottom.
Is there something special I need to do to display characters on the bottom line?
Thank you for any help.
ps: As I am writting this, I realize I probably should write the Function set first, then clear display, and then turn on display.
When I first got the display, I tested it quickly and confirmed that it was a 16x2 display. I tied all data lines high and just clocked it by hand. It displayed 32 black squares: 16 on top, 16 on bottom. Now that I finally got it hooked to a MSP430 and can write meaningful characters, I cannot get the second line to display.
When I power up the display I send the following commands :
- Clear Display:
Data: 0x01 - Display on/off control
Data: 0x0C (display on, cursor off, cursor blink off) - Function set
Data: 0x30 (dat format 8bit, 1 line, 5x8dots)
If I change the Function set to 2 line, the display contrast dims and the second line is still not displayed.
After I do the initialization, I clock 32 characters to the display. 16 characters are displayed on the top line and none are displayed on the bottom.
Is there something special I need to do to display characters on the bottom line?
Thank you for any help.
ps: As I am writting this, I realize I probably should write the Function set first, then clear display, and then turn on display.