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
Posted: Thu Nov 17, 2005 8:29 am
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).
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