piclist 2001\11\07\152946a >
Thread: LCD panel init problems
www.piclist.com/techref/lcds.htm?key=lcd
flavicon
face BY : Quentin email (remove spam text)



"Wollenberg, Frank" wrote:

> The command "function set" (0x30) is a regular command, which can be send to
> the LCD at anytime in two 4bit chunks, 0x3 followed by 0x0.
> How can the LCD differentiate between this regular command and the command
> as part of an initialisation sequence ?
Think of it this way:
0x030 => b'00110000'
Your 4 bit data line is connected to the 4 MSB data lines of the LCD.
The other 4 LSB of the LCD is tied to gnd.
So, when you put the MSB of b'0011' on the LCD there is already b'0000'
on the 4 LSB of the LCD (connected to gnd)
So in actual fact you are sending 8 bit data.
Sending b'0011' and the LCD thinks you are actually sending b'00110000'
After you did this 3 times, you tell the LCD, OK, now we are going to
use 4 bit comms.

Quentin

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu


<3BE9995D.D967C1B@icon.co.za> 7bit

See also: www.piclist.com/techref/lcds.htm?key=lcd
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) LCD panel init problems

month overview.

new search...