I would like to capture two separate variable duty cycle singals and I was wonding if there was a simple way to do it with the CCP module on the PIC16F877. Flipping the interrupts back an forth from rising to falling edge seams to be the way, but I can't seam get it right and it is very confusing. Is there a more elegent method. I haven't found a good example or anything even close for a guide using the CCP. Any ideas?
___________________________
This message was ported from CCS's old forum
Original Post ID: 13270
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Re: CCP module on PIC16F877
Posted: Tue Apr 01, 2003 2:07 pm
:=I would like to capture two separate variable duty cycle singals and I was wonding if there was a simple way to do it with the CCP module on the PIC16F877. Flipping the interrupts back an forth from rising to falling edge seams to be the way, but I can't seam get it right and it is very confusing. Is there a more elegent method. I haven't found a good example or anything even close for a guide using the CCP. Any ideas?
----------------------------------------------------------
Have you looked at the CCS example file, EX_CCPMP.C ?
Also, see these links:
AN594 -- Using the CCP modules:
<a href="http://www.microchip.com/download/appnote/devspec/16cxx/00594b.pdf" TARGET="_blank">http://www.microchip.com/download/appnote/devspec/16cxx/00594b.pdf</a>
Reference manual on the CCP:
<a href="http://www.microchip.com/download/lit/suppdoc/refernce/midrange/midsect/31014a.pdf" TARGET="_blank">http://www.microchip.com/download/lit/suppdoc/refernce/midrange/midsect/31014a.pdf</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13292
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum