Have not studied your code yet but two things I have noticed so far.
1- Serial communications are VERY time sensitive, I did not see at the beginning.
Code:
DEFINE OSC 8 'or what ever you are using
This tells the speed that the PIC is running at.
2 - A PortA pin is used for the serial. If the PIC has an ADC you will need to make that pin a digital I/O
Another thing to do. Instead of making the whole code at once (the problem could be any where) start off by making a test code that will say blink an LED to see that the PIC is running while sending something out by serial. Same on receive. In other words, get one thing working at a time. Then start adding to the code.
Bookmarks