LCD data buses

Status
Not open for further replies.

ttbuddy

New Member
If RB4 and RB5 are pins to control the LCD.
RA4, RB1, RB2, and RB3 are the LCD data buses.
May I know how these 4 pins send data to the LCD?
If the data is already in digital form with

Code:
radix dec		; default number format is DECIMAL!!!

is like if the data is lets say "4":
then 0100 is transfer with each of the bits by each pin?
 
What type of LCD are you using ? Character ? HD44780 based ?

For the HD44780 based character LCDs, you can configure then in 8bit or 4bit mode. In your case, it seems to be 4 bit mode. However, the HD44780 still needs full 8bit data, so what ends up happening is that you need to break up your data byte into nibbles. You send one nibble, and after a certain time duration (can't remember), you then send the second nibble.

Specifically to your question about transfering 4, you would actually send 00000100. But you break it up into 0000 0100. You have send them in a specific order, can't remember if its higher nibble first, or lower nibble. Anyways, thats what happens.

Been a while since I used a character, and I dont have my files with me, so this is just all off memory.
 

Oh yes, it is 4 bits nibble. I am using HD44780 compatible character LCD. If not mistaken, DB 7 for the LCD had binary code 'xxxx1000' displayed. So my concept correct?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…