CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

CCP module on PIC16F877

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Wayne Siebrecht
Guest







CCP module on PIC16F877
PostPosted: Mon Mar 31, 2003 7:23 pm     Reply with quote

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

View user's profile Send private message

Re: CCP module on PIC16F877
PostPosted: Tue Apr 01, 2003 2:07 pm     Reply with quote

:=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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group