I'm wondering if anyone knows of a PIC variant that has two CCP modules, each with it's own independent 16 bit timer. Most all of the PICs [I've looked at thus far] that have two CCP's, are all based on a common 16 bit timer (Timer1 in all the 16Fxxx family members).
I've been using microchip's product selector filter tool to see if I can narrow the field, but don't seem to be able to get anywhere. Or maybe it's just because such a thing doesn't exist.
Why, you ask....
- I want to use one CCP module's "capture" mode to capture the cycle time of an input frequency.
- Then, periodically take a snapshot of a "capture", and calculate a percentage of that cycle time. (i.e. 5%). Note: The input frequency is no fixed. It will vary over time. So this sampling will occur on a very frequent basis.
- Based on that calculation, I want to use the other CCP module's "compare" mode to output a modified version of the input frequency. Say a frequency who's cycle time is 105% of the input frequency.
For bonus points.... can you guess what application I'm targeting?
I've been using microchip's product selector filter tool to see if I can narrow the field, but don't seem to be able to get anywhere. Or maybe it's just because such a thing doesn't exist.
Why, you ask....
- I want to use one CCP module's "capture" mode to capture the cycle time of an input frequency.
- Then, periodically take a snapshot of a "capture", and calculate a percentage of that cycle time. (i.e. 5%). Note: The input frequency is no fixed. It will vary over time. So this sampling will occur on a very frequent basis.
- Based on that calculation, I want to use the other CCP module's "compare" mode to output a modified version of the input frequency. Say a frequency who's cycle time is 105% of the input frequency.
For bonus points.... can you guess what application I'm targeting?
Last edited: