In this Frequency divider with PIC project, you should give at least 1KHz frequency to the input. The microcontroller uses the CCP module to measure the period. It generates the divided frequency according to the value of divider.
download the project here.
Also, don’t forget to checkout our Ultimate ARM Projects Pack.