Hi all, I am a first time poster to this list. I am currently working on my first PIC project, an intelligent motor controller. It will control two modified hobby servos (to power my robot) and read two shaft encoders. I am hoping to build PID control based on the feedback from the shaft encoders. I am using a PIC16F84 and programming it in Hi-tec C. The PIC will be slaved to a BASIC Stamp II, which will tell the PIC what to do, i.e. drive forward, turn left/right...etc I think one byte should be more than enough, splitting bits out to represent direction ( 01 might mean turn left ) and speed.... My question is about the messaging from the BSII to the PIC. If I send a message from the Stamp how do I read it in on the PIC? I am thinking about using two lines one connected to an interrupt pin on the PIC that will say "get ready for a message", then the second line that will receive the message. The bit I am stuck on it how to write the code (in C) to read in a byte on any of the PIC pins. Thanks for any suggestions and advice, best regards, James Fitzsimons -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics