
Originally Posted by
richard
its also possible that the default config settings in your pic16f887.inc file don't match your setup
can you blink a led at defined rate correctly ?
I added the address for good measure. No luck. I increased the start up wait time. No luck still. I added a blinking LED and that works - on for half a second, off for 1 second. Stuff highlighted in RED is what was added/changed.
Code:
TRISB = %00000000
pause 500
mainloop:
Lcdout $fe, 1 ' Clear screen
Pause 500 ' Wait .5 second
Lcdout $fe, $80, "Hello" ' Display "Hello"
PORTB.7 = 1 'LED on
Pause 500 ' Wait .5 second
Lcdout $fe, $c0, "World" ' Move to line 2 and display "World"
PORTB.7 = 0 'LED off
Pause 500 ' Wait .5 second
Goto mainloop ' Do it forever
End
Bookmarks