JHD162A LCD Initialization
Hi everyone!
I'm using parallax propeller P8X3A-D40 with propeller tool software 1.3.2 to initialize the JHD162A LCD. I'm a beginner to SPIN language. I'm unable to write a SPIN code to initialize the lcd. Here are my pin connections from lcd to propeller:
LCD
P8X32A-D40
Vss
GND
Vcc
+5V
Vee (CONTRAST)
to middle pin of potentiometer (10k)
RS
P24
R/W
P25
E
P26
DB0
P16
DB1
P17
DB2
P18
DB3
P19
DB4
P20
DB5
P21
DB6
P22
DB7
P23
I know that for 8-bit mode (5x10 font style) Function Set is 0x3C
Display Switch is 0x0F (which issues Display,Cursor, and Blink as ON)
Input Set is 0x06
Screen Clear is 0x01
DDRAM AD set to reposition the cursor at Home at anytime is 0x80.
I'm really in urge to make my project work.... Can somebody please help me out on how to SPIN code the lcd.
Your help is greatly appreciated!!!
Thanks in advance
I'm using parallax propeller P8X3A-D40 with propeller tool software 1.3.2 to initialize the JHD162A LCD. I'm a beginner to SPIN language. I'm unable to write a SPIN code to initialize the lcd. Here are my pin connections from lcd to propeller:
LCD
P8X32A-D40
Vss
GND
Vcc
+5V
Vee (CONTRAST)
to middle pin of potentiometer (10k)
RS
P24
R/W
P25
E
P26
DB0
P16
DB1
P17
DB2
P18
DB3
P19
DB4
P20
DB5
P21
DB6
P22
DB7
P23
I know that for 8-bit mode (5x10 font style) Function Set is 0x3C
Display Switch is 0x0F (which issues Display,Cursor, and Blink as ON)
Input Set is 0x06
Screen Clear is 0x01
DDRAM AD set to reposition the cursor at Home at anytime is 0x80.
I'm really in urge to make my project work.... Can somebody please help me out on how to SPIN code the lcd.
Your help is greatly appreciated!!!
Thanks in advance
Comments
In any case, look here: http://obex.parallax.com/objects/search/?&q=44780
There are already several drivers to talk to Hitachi HD44780 compatible LCD displays.
thank you
Thanks for the link!!! i got the lcd to work!!