I want to use a timer module of the PIC to do this.