You need to insure that the serial port is working properly on both machines.
On my PC, I simply connect pins 2&3 together on the serial cable and hit a key. If the character echoes, then the PC end is working.
On the PIC side - Write a very simple program, such as:
DEFINE OSC 20 (or whatever it is)
DEFINE HSER_RCSTA 90H
DEFINE HSER_TXSTA 20H
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
DEFINE LOADER_USED 1
Dummy VAR BYTE
Begin:
HSEROUT ["Press Any Key "]
HSERIN [Dummy]
HSEROUT ["You Pressed ",Dummy,13,10]
GOTO Begin
END
The program above will prove that the PIC is sending and receiving characters - something it must do before any bootloader can work.
Bookmarks