- This topic has 2 replies, 2 voices, and was last updated 8 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › capture and compare mode
hai friends,
why we are going for capture and compare mode in pic controller and where we will use this capture and compare in real time.
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.
Thanks for your valuable comment. where we use this capture and compare mode in real time appplication.