Hello Esteemed Forum Members,
Posted below is part of the code I am using to make an LCD serial backpack display and while it works, it drops charactors and misspells words in the string.
I am hoping for a better explanation of what each define actually does than the manual gives, as the manual is clearly written for engineers who already know these things. Thank You ,
JS
include "modedefs.bas"
' Define LCD registers and bits<h4> I got these first 7</h4>
Define LCD_DREG PORTB
Define LCD_DBIT 4
Define LCD_RSREG PORTA
Define LCD_RSBIT 0
Define LCD_EREG PORTA
Define LCD_EBIT 1
DEFINE LCD_LINES 4 'Define using a 4 line LCD
<h4>DEFINE LCD_COMMANDUS 2000 'Define delay time between sending LCD commands
DEFINE LCD_DATAUS 50 'Define delay time between data sent.
</h4>DEFINE OSC 20
I believe the problem is there as a VFD I have tried does not do this.
JS
Bookmarks