Hello All,
I have acquired a 40x4 back lit LCD display from a decommissioned piece of equipment. I really don’t need to haul yet another old piece of gear home but for some reason I felt compelled to.
At some point in the very near future I would like to interface it to one of my spare PICAXE 40X2 chips. Looking at the PICAXE chip documentation and the LCD (HD44780?) documentation, I’m trying to figure out what is the best PICAXE pin to LCD pin arrangement.
It appears to me that a hook up scheme might go something like this.
PICAXE pin-----LCD pin
---------------K(BL), pin 16
---------------A(BL), pin 15
Pin 40(b.7)-----DB7, pin 14
Pin 39(b.6)-----DB6, pin 13
Pin 38(b.5)-----DB5, pin 12
Pin 37(b.4)-----DB4, pin 11
Pin 36(b.3)-----DB3, pin 10
Pin 35(b.2)-----DB2, pin 09
Pin 34(b.1)-----DB1, pin 08
Pin 33(b.0)-----DB0, pin 07
Pin 30(d.7)-----E, pin 06
0V-------------R/W, pin 05
Pin 29(d.6)-----RS, pin 04
Potentiometer--Contrast, pin 03
Vdd +5VCD-----pin 2
Vss 0V---------pin 1
The only reason I chose this pin arrangement is I thought it might be easier with all the PICAXE output pins in a row when drawing up the PCB artwork to interface with the panel mounted 40x4 LCD display.
Questions:
Is this the obvious choice??? (for my very manual and tedious artwork program, this will work best for the component layout)
Is there a better choice of PICAXE pins that could be used to make coding easier???
You thoughts and comments appreciated.
"Hammy"
I have acquired a 40x4 back lit LCD display from a decommissioned piece of equipment. I really don’t need to haul yet another old piece of gear home but for some reason I felt compelled to.
At some point in the very near future I would like to interface it to one of my spare PICAXE 40X2 chips. Looking at the PICAXE chip documentation and the LCD (HD44780?) documentation, I’m trying to figure out what is the best PICAXE pin to LCD pin arrangement.
It appears to me that a hook up scheme might go something like this.
PICAXE pin-----LCD pin
---------------K(BL), pin 16
---------------A(BL), pin 15
Pin 40(b.7)-----DB7, pin 14
Pin 39(b.6)-----DB6, pin 13
Pin 38(b.5)-----DB5, pin 12
Pin 37(b.4)-----DB4, pin 11
Pin 36(b.3)-----DB3, pin 10
Pin 35(b.2)-----DB2, pin 09
Pin 34(b.1)-----DB1, pin 08
Pin 33(b.0)-----DB0, pin 07
Pin 30(d.7)-----E, pin 06
0V-------------R/W, pin 05
Pin 29(d.6)-----RS, pin 04
Potentiometer--Contrast, pin 03
Vdd +5VCD-----pin 2
Vss 0V---------pin 1
The only reason I chose this pin arrangement is I thought it might be easier with all the PICAXE output pins in a row when drawing up the PCB artwork to interface with the panel mounted 40x4 LCD display.
Questions:
Is this the obvious choice??? (for my very manual and tedious artwork program, this will work best for the component layout)
Is there a better choice of PICAXE pins that could be used to make coding easier???
You thoughts and comments appreciated.
"Hammy"