16x4 display

Status
Not open for further replies.

chandu13

New Member
Hi

Aim interfaced JHD164A 16CHARx4ROW LCD display with 89C51 controller and displaying the characters on the first line only.
In data sheet he gave 0x38 control word for 2 display lines.
How to display the characters in the 2nd, 3rd and 4th lines.
What is the control word for display the characters in these lines.

Regards

Chandu
 
16x4

Thanks for reply

In 16x2 LCD they are using control word 0x38 for 2-line display
In 16x4 LCD also they are using 0x38.
But I need 4-line display .so what is the control word for 4 line LCD.
How to initialize the 2nd 3rd and 4th lines.

Regards

Chandu
 
There are no such thing as 4 line displays. They are all 2 lines and should be initialised as such. 4 line displays are 2 line displays that are split in half and the right hand half is stuck below.

So,
If you write to location 0x00 - 0x0F it appears on line 1.
If you write to location 0x40 - 0x4F it appears on line 2.
If you write to location 0x10 - 0x1F it appears on line 3.
If you write to location 0x50 - 0x5F it appears on line 4.

If you had a 4*20 display then 0x10 becomes 0x14 etc.

Some displays pretend they are 32 characters wide and so line 3 is always at 0x20 and line 4 at 0x60.

HTH

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…