Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Logic behiand sending 4bit data to a 16X2 LCD.

Status
Not open for further replies.
HI All;

can you please explain me the Logic /Idea behiand sending 4 bit data to 16X2 LCD module as it is operated with 8bit data pins? i am confused how will the LCD respond when it detects the missed nibble? or it will display wrong values or get wrong commands as it is getting 4 bit data instead of 8bit data?

Thank you
 
HI All;

can you please explain me the Logic /Idea behiand sending 4 bit data to 16X2 LCD module as it is operated with 8bit data pins? i am confused how will the LCD respond when it detects the missed nibble? or it will display wrong values or get wrong commands as it is getting 4 bit data instead of 8bit data?

Thank you

hi,
During the LCD initialization sequence, you send a FUNCTION set Command Instruction to the LCD controller which prepares it for 4Bit operation.
[refer HD44780 LCD datasheet]

After that command you send Commands and Data as 4 Bit Nibbles. Each nibble is sent using the Enable pulse sequence.
If BUSY is used, the program waits until the LCD is not Busy and then sends the next nibble.

The High 4 bit lines of the LCD are used, D4 thru D7, High nibble first, then Low nibble.
 
Last edited:
The idea behind sending 4-bit data is to enable micros with only 4 available output pins to be used, or to free up pins for other uses.
 
CAN you please tell me about command that is sent to instruct the LCD that it should use only four bit data? and should only upper nibble of LCD is used for that purpose?
i am using JHD 164A LCD Module.
 
Last edited:
CAN you please tell me about command that is sent to instruct the LCD that it should use only four bit data? and should only upper nibble of LCD is used for that purpose?

Why don't you just read the datasheet?.

Or consult my PIC tutorial on LCD's for that matter?.

The command is 'Function set' with a specific bit cleared.
 
CAN you please tell me about command that is sent to instruct the LCD that it should use only four bit data? and should only upper nibble of LCD is used for that purpose?
i am using JHD 164A LCD Module.

hi,
Look at this clip from the data manual.
 

Attachments

  • AAesp10.gif
    AAesp10.gif
    250.3 KB · Views: 167
Status
Not open for further replies.

Latest threads

Back
Top