Hi there,
I am a little confused about the CCP modules on Microchip's PIC MCUs. I get that the capture records the state of a timer on an event such as a rising/falling edge and can therefore be used to measure frequency? PWM I know about too.
But the 'Compare' function is confusing me. I can't find a simple explanation of what it does. I thought it might be a comparator, but it uses timers, so I'm doubting that now Can someone explain it please, or give an example of how it's used?
Thanks a lot,
Barnaby
I am a little confused about the CCP modules on Microchip's PIC MCUs. I get that the capture records the state of a timer on an event such as a rising/falling edge and can therefore be used to measure frequency? PWM I know about too.
But the 'Compare' function is confusing me. I can't find a simple explanation of what it does. I thought it might be a comparator, but it uses timers, so I'm doubting that now Can someone explain it please, or give an example of how it's used?
Thanks a lot,
Barnaby