Hello everyone,
I currently have this code running on my 16F737 and all I am getting is a blinking cursor in character position 1. Any thoughts? I have the chip wired up as discribed in the PBP manual in the LCDOUT subsection. My only changes are the LCD bit locations as shown by the modified DEFINEs.
thanks
TRISB = %00000000
define OSC 4
DEFINE LCD_DREG PORTB ' Set LCD Data port
DEFINE LCD_DBIT 0 ' Set starting Data bit (0)
DEFINE LCD_RSREG PORTB ' Set LCD Register Select port
DEFINE LCD_RSBIT 4 ' Set LCD Register Select bit
DEFINE LCD_EREG PORTB ' Set LCD Enable port
DEFINE LCD_EBIT 5 ' Set LCD Enable bit
DEFINE LCD_BITS 4 ' Set LCD bus size (4 or 8 bits)
DEFINE LCD_LINES 1 ' Set number of lines on LCD
DEFINE LCD_COMMANDUS 2000 ' Set command delay time in us
DEFINE LCD_DATAUS 50 ' Set data delay time in us
main:
High portc.4 'power indicator
pause 1000 '1 second delay
LCDOUT $FE, 1, "Hello" 'lcd readout
end
Bookmarks