218C - ANSEL aTOMs

ACV XBee PIC State Machines

The PIC that interfaces with the XBee communicates with the XBee radio and Motor Driver PICs over UART, and with the Security Controller PIC over SPI.  When the Security Controller PIC sends it new scan data, the XBee PIC interprets the scan and sends out team finding or atoll capturing messages as needed.  When the XBee PIC receives data from the radio, it passes along the motor commands to the Motor Driver PICs.

ACV XBee PIC State Machine Hierarchy

Picture
State Machine hierarchy for the ACV XBee PIC.

ACV XBee PIC Main State Machine

Picture
Main State Machine diagram for the PIC that interfaces with the XBee Radio.

ACV XBee PIC Transmit State Machine

Picture
Transmit State Machine diagram for the PIC that interfaces with the XBee Radio.

ACV XBee PIC Receive State Machine

Picture
Receive State Machine diagram for the PIC that interfaces with the XBee Radio.

ACV XBee PIC SPI State Machine

Picture
SPI State Machine diagram for the PIC that interfaces with the XBee Radio.

Security Controller PIC State Machine

The PIC that interfaces with the Security Controller communicates with the RFID PIC and the Xbee PIC over SPI, and with the Security Controller over UART.  When the RFID PIC sets a signal line high to indicate that it has new data, this PIC begins the cycle of extracting the serial number from the RFID PIC, obtaining a security key from the Security Controller (if the serial number belonged to an atoll), and sending the serial number and security key to the Xbee PIC.
Security Controller State Machine
State Machine diagram for the PIC that interfaces with the Security Controller.

RFID PIC State Machine

The PIC that interfaces with the RFID Reader communicates with the Security Controller PIC over SPI.  When a new scan is received, the RFID PIC interprets the ASCII bytes, converts them to hex values, and sends them to the Security Controller PIC.
Picture
State Machine diagram for the PIC that interfaces with the RFID Reader.