Make sure you're using a higher crystal speed than 4 MHZ or use DEBUG instead
If you're using >4MHZ, make sure you set HS_OSC mode in your config fuses (see the FAQ)
Some serial LCD may need to receive CR AND LF before writing to the LCD. So change
Code:
serout portb.1, 2, ["Hello World"]
to
Code:
serout portb.1, 2, ["Hello World",13,10]
try this too
Code:
TRISB.1=0
DEFINE DEBUG_REG PORTB
DEFINE DEBUG_BIT 1
DEFINE DEBUG_BAUD 9600
DEFINE DEBUG_MODE 0
Start:
debug $FE,1
pause 40
debug "HELLO",13,10
pause 1000
goto start
if it doesn't work, tell us more about your hardware : crystal speed, LCD model... etc etc etc
<img src="http://www.mister-e.org/Pics/CrystalBall_Informations.gif">
Bookmarks