I've been working on a little robot project in PIC Pro Basic.

I'm trying to establish some sort of communication between two PIC Microprocessors. 1 being a PIC16F84A with a keypad, the other a PIC16F877A controling the robot.

The PIC16F84A scans the kaypad and stores the key pressed into a variable. The PIC16F877A needs to recieve this value and store it in its own variable.

I've experimented with RS232 (SERIN, SEROUT) but I jus can't seem to get it working. There is 1 meter of cable between the two pics so could that be the reason?

Any suggestions as to what I can do to achieve communication between these two pics?