So I'm not missing a label then, the code just isn't terminated "properly".
I kept going through it thinking I was missing something obvious.
Robert
So I'm not missing a label then, the code just isn't terminated "properly".
I kept going through it thinking I was missing something obvious.
Robert
Not that I can see but then I always wonder if I am missing something whether it is obvious or not.
I have been trying to work out what the $44 do because they are not printed on the screen.Code:LCD_CMD = $44 GOSUB LCDWRITE LCD_CMD = $48 GOSUB LCDWRITE LCD_CMD = $44 GOSUB LCDWRITE LCD_CMD = $45 GOSUB LCDWRITE LCD_CMD = $44 GOSUB LCDWRITE LCD_CMD = $4C GOSUB LCDWRITE
Steve Earl www.datageo.co.uk
Can't find info on $44, and can't see what's in this zip on my phone:
https://bitbucket.org/fmalpartida/ne...stal/downloads
I'd be curious to see all the stuff in version 1.2.1.
Robert
Compare this code with Darrel's the one obvious issue is that the LCD is in 4 bit mode which requires the upper nibble and lower nibble to be sent separately. One other concern is that of setting the RS bit for data mode which is done once after initialisation. Does this not need doing every time a data nibble is sent?
Steve Earl www.datageo.co.uk
Is it pure coincidence that all the upper nibbles are $4?
Steve Earl www.datageo.co.uk
I believe this may be my first post to this forum...
Has anyone figured more of this out? I finally got my I2C serial adapter for the 1602 LCD to do something at least.
It was indeed very helpful to see the original code posted. Somehow my default address is $40.
When I use the code provided, I do get the display to light up and display "HELLO RCG! but when I try to change the initials to DHD, using the hex codes for D = $44, H=$48, and D=$44, I get THD in the display.
I am also looking for a bit more help with the control characters, and why the LCDWRITE routine needs 3 i2cwrite commands.
Thanks from noob Dave
There is information here.
http://www.picbasic.co.uk/forum/showthread.php?t=19222
Steve Earl www.datageo.co.uk
Bookmarks