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

CCP1, CCP2 and timer resources

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



Joined: 20 Oct 2005
Posts: 44

View user's profile Send private message

CCP1, CCP2 and timer resources
PostPosted: Thu Nov 17, 2005 8:11 am     Reply with quote

I want to use both CCP modules in compare mode on an 18F4520. From what I can tell from the DS they can use either Timer1 or Timer 3. I'd like to use both at the same time, so I want CCP1 to use Timer1 and CCP2 to use Timer3. However I don't see anything in the compiler manual about specifying which timer is used. When using the CCS wizard it seems to be using Timer1 for both.... Any links to more info on this topic?

Thanks,

Avery
Ttelmah
Guest







PostPosted: Thu Nov 17, 2005 8:29 am     Reply with quote

Look in the include file for the processor. Under the section for 'setup_ccpx', you will find there is a value 'CCP_USE_TIMER3'. Using this in the setup_ccp function for a particular CCP, switches it to use timer3 (it defaults to timer1).

Best Wishes
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