A timer subsystem was created for the PIC. It activates Timers 0 and 1, with interrupts occurring on overflows on both. The timer module contains a function, using timer 1, which can retrieve the current system time in milliseconds. Timer 0 is used with a PWM module. Overflows on this timer increment a count inside the PWM module every 200 microseconds. This count is used to raise lines high and low, depending on the value of the count and the desired frequency and duty cycle of the PWM output. This PWM output is used to drive a servo, which will be used to display the crab count on the boat.