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

Start Timer on CCP Edge

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



Joined: 26 Feb 2014
Posts: 24

View user's profile Send private message

Start Timer on CCP Edge
PostPosted: Wed May 17, 2017 6:42 am     Reply with quote

Greetings All

I have a PCB prototype I designed some time ago which is a digital AC phase power controller. The current configuration has the AC zero cross pulse appearing on the CCP2 (11) pin of a pic184620.

The idea was that the CCP module will detect the rising edge then interrupt to start a timer and reset a pin and then when the timer elapsed the pin will be set. The device will also support an LCD screen and 6 button keyboard so bit banging is out of the question.

Apart from PWM I've not had much to do with the capture compare module however this application seems closer to do with a port B pin change interrupt. Can the CCP rising edge interrupt help in this scenario?

I'd also be interested in how others would approach this?

Cheers
Al
_________________
I type therefore I press buttons
alyeomans



Joined: 26 Feb 2014
Posts: 24

View user's profile Send private message

PostPosted: Wed May 17, 2017 6:50 am     Reply with quote

...and the CCP2 is on pin B3 so port B pin change available.
_________________
I type therefore I press buttons
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