I am having two problems with an NHD-026BZ-FL-YBW 2x16 LCD display. I have attached it to an 18F4525. The first problem is that the text is displaying as double spaced (Print "Hello" results in "H e l l o"). The second problem is that I can't get anything to appear on the second line. If I use "Locate 2,1" and then do a print, the output just goes into the bit bucket. Anyone our there have any suggestions? Thanks a bunch!
'Chip model
#chip 18f4525,20
#config OSC=HS
'LCD connection settings
On the LCDs I've used the lines are labeled 0 amd 1.
So use locate 0,1 for the first line and locate 1,1 for the second.
Not sure what is causing the double spacing though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am having two problems with an NHD-026BZ-FL-YBW 2x16 LCD display. I have attached it to an 18F4525. The first problem is that the text is displaying as double spaced (Print "Hello" results in "H e l l o"). The second problem is that I can't get anything to appear on the second line. If I use "Locate 2,1" and then do a print, the output just goes into the bit bucket. Anyone our there have any suggestions? Thanks a bunch!
'Chip model
#chip 18f4525,20
#config OSC=HS
'LCD connection settings
#define LCD_IO 8
#define LCD_DATA_PORT PORTD
#define LCD_RS PORTC.0
#define LCD_RW PORTC.1
#define LCD_Enable PORTC.2
CLS
PRINT "Hello World"
On the LCDs I've used the lines are labeled 0 amd 1.
So use locate 0,1 for the first line and locate 1,1 for the second.
Not sure what is causing the double spacing though.