ZCD -> Timer Gate -> Greater Than Comparison
I have a gated timer configured to pulse count using the ZCD. Currently I'm using the timer pulse gate interrupt to calculate the frequency (I haven't tested the calc yet so ignore that part if wrong).
Ultimately a greater than comparison is made and the output fed (or set in software) into a CLC.
My question is whether it's possible to use the CCP in compare mode and/or some wizardry to perform this operation in hardware. Key is the frequency being measured, it's only between 10 and 20Hz, therefore it's unlikely the CCP will capture in +/- 1 steps.
Chip is a PIC1615323 (no SMT).