What pins go to what ports on the pic? Is there a reference available?
See the ifi_aliases.h file for a mapping of the Vex Controller pins to the micro-processor pins. The file is in the “Vex Starter Code” zip file located on our Downloads page at http://www.vexlabs.com/vex-robotics-downloads.shtml