Microcontroller › PIC › capture and compare mode › Hye karthick,You can use
Hye karthick,
You can use capture and compare module in waveform generation and modulation application.Module is work in three different mode:
1) Comapare
2) Capture
3) PWM
1. Capture Mode:
In this mode, you can trigger the event based on timer. Capture mode has two 8 bit register in combine form of 16 bit register which is records the timer value when event occurs on CCP pin. Capture event can also trigger the interrupt.
2. Compare Mode
In this mode,Compare register continuously compare with value of timer and when a match occurs, CCP pin is high, low based on configuration of CCP control register.
3. PWM mode
CCP pin is define as output for operate in PWM mode. It is generate digital waveform output with programmable period and duty cycle.