Alvin, The second row starts at addres 0x40 (64). So you send the data
memory command or'd with this address, ie 0x80 | 0x40 = 0xc0. Then send
the characters for the 2nd row.
On Sun, 1 Mar 1998, Alvin Tan wrote:
{Quote hidden}> Can someone tell me how to write characters to the second row of
> a 16x2 LCD Display. The LCD uses the HD44780 chip, and I am using 8 bit
> interface. I have followed some codes from Myke Predko's book, and was
> also able to shift the characters around, but all of them showed up only
> on the first row. BTW, I have set the LCD Function set as 2 rows.
>
> Thank You.
>
> Alvin
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ron Kreymborg Computer Systems Manager
Monash University CRC for Southern Hemisphere Meteorology
Wellington Road
Clayton, VIC 3168 Phone : 061-3-9905-9671
Australia Fax : 061-3-9905-9689
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~