depending of what your pic do. You can use TIMER interrupt to calculate pulses/secondes on this pin. if your PIC only monitor this pin you can use PULSIN,COUNT commands.