PIC MCU firmware to time pulses from photogates and interface to a Computer.