Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] LCD 4 bit interfacing doubts .

Status
Not open for further replies.

gravity123

Newbie level 6
Joined
Mar 30, 2011
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,363
I am trying to interface lcd in 4 bit mode ..
I stucked in where the initialization
According to data sheet ,what hex value give for 4bit mode after power on the LCD.
I googled and searched in edaboard most of the people give it value 0x38 three times with delay
i think it is 0x28 for 4 bit mode (2line)
please guide me ?
see the algorithm
lcd.JPG
Thanks


i am initialising

LCD ON
delay(); 15ms
command instruction giving 0x28 //4 bit mode
delay(); 4.1ms
command(0x28);
delay(); 100mirco secod
command (0x28)

is it correct ?
why gives 3 times this ?
 
Last edited:

As the lcd module power up it should be initialized in 8 bit mode (i.e. 0x38). After initializing in 8 bit mode then it can be changed to 4 bit mode (i.e. 0x28).

Here is the sequence

Wait for 15ms.
command 0x38
wait for 4.1ms
command 0x38
wait for 100 us
command 0x38
wait for 100 us
command 0x28 //4 bit mode

Hope it is clear now.
 
thanks cleared
why does, this is necessary ?
above image shows 000011 what is that ?
please explain with algorithm ..
 

That is 0x30 to the command register.. that is the initialization in the Hitachi driver.....
 

That is 0x30 to the command register.. that is the initialization in the Hitachi driver.....

Confusing ?
000011 is 0x30 ? :sad:

30 hex is equal to 00110000

then how
help me ?

bit order in reverse order ? How ?
 

you are correct
it is
Code:
  0  0  1  1  0  0  0  0
 D7 D6 D5 D4 D3 D2 D1 D0
lcd.JPG
look at the top of the table as well...
But You are not going to use the D3 to D0...
In 4 bit mode you are going to use higher 4 bits only the remaining nibble will be send as second instruction...
look at the table after sending 0x20 it is initialized 4 bit mode........
blog.vinu.co.in/2011/06/4-bit-interfacing-of-16x2-lcd-display.html‎
 
Last edited:
oh thanks its my fault
i mistaken ,considered, taking RS and RW as digit 0 and digit 1 respectively
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top