Professional Documents
Culture Documents
Purpose:: Lab 8 Protocol
Purpose:: Lab 8 Protocol
Purpose:
This protocol is defined to enable the communication between a leader PIC32 and two follower
PIC32. There are two goals of this communication. The first is for the master to be able to
communicate target RPMs to the motor pic. The second goal is to be able to communicate the
current status of the robot to the IR as well as receiving sensor events from the IR pic.
Connection Interface
Pinout:
SCK1 RB14 (Pin 25) RB14 (Pin 25) RB14 (Pin 25)
SDO1 RB8 (Pin 17) RB8 (Pin 17) RB8 (Pin 17)
SDI1 RB11 (Pin 22) RB11 (Pin 22) RB11 (Pin 22)
1
Schematic:
0 STATE STATE 0 0 0 0 0
3
bits 0-4 Unused
bit 5-6 STATE: Pin State
Low = 01
High = 11
bit 7 Unused
Example Interaction:
Example 1 is the following 3-byte interaction where the Leader asks the Drive Follower to set both
speeds to full throttle forward
Command Byte Acknowledgement Byte Pin Status Byte
Command Timing:
The interval between two successive transfers from the Leader to the Followers should be at least
5 ms. The SS line must remain high for a minimum of 5 ms between successive transfers, and
de-asserted during the entirety of a single command transfer.