by paul on Wed Jun 30, 2010 8:00 pm
Hello,
You are clearly going wrong somewhere, since it is not working.
What you should do at this point is
Step 1: verify that you have not already damaged the RX and TX ports on the 3pi or the dsPIC by trying to use them as digital inputs and outputs. Post a description of your tests and the results.
Step 2: connect RX of one board to TX on the other board through a resistor, like this:
RX - resistor - TX
Note: this is NOT a resistor to ground. Something between 100 and 1000 ohms should prevent you from damaging the IO lines if you accidentally connect, for example, TX to TX, without affecting your signal much. Disconnect as many other things as you can (for example, the corresponding TX-RX connection) and simplify your code to the simplest possible thing that should send a byte from board 2 into board 1 and display some message showing that it was received.
Most likely you will discover your problem in the process of simplifying everything. If not, tell us exactly what connections and circuits you are using, post your entire code, and take a picture if you can. Then we can try to figure out what the problem is.
Good luck!
-Paul