Or the config fuses are not set correctly, or the OSC speed is not the right one OR the MAX232 circuit is bad OR there's a little hardware problem, OR the serial communicator is not set properly OR all DEFINEs are not written in UPPERCASE.
Bellow is tested and work on a 16f877.. but it shouldn't make any difference whatever PIC you're using...
Code:
define OSC 12
DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 20h
DEFINE HSER_SPBRG 77 ' 2400 Bauds
DEFINE HSER_CLROERR 1
START:
hSEROUT ["HELLO, THIS IS A TEST",13,10]
PAUSE 100
GOTO START
Bookmarks