This was initially supposed to be a minor part of my project, but has become a major part! The serial section of the code is the most worrying - in theory the code I have written should work as follows:

Interrupt on serial arrival
Receive 6 bytes or timeout trying
If first byte is not equal to PIC ID, ignore
If first byte is equal to PIC ID, change behaviour of PIC accordingly


Does the code make ny sense at all? Speifically the serial reception section?

Yours desperately,

Ben
Meng Student
Cambridge Engineering Dept.