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 CCS Technical Support

CCP

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



Joined: 27 Dec 2006
Posts: 8

View user's profile Send private message Send e-mail

CCP
PostPosted: Sun Sep 09, 2007 3:11 pm     Reply with quote

I am developing with PIC18F6527.

I must generate a precise variable frequency signal without jitter.
I thought to use timer1 and CCP1 with the compare function.

If the special event timer1 automatic reset is used i cannot automatically modify the state of pin the CCP1.

If i use the toggle, set or reset mode i cannot automatically reset timer1.

In both case i must interact with the program, that it involves the insertion of delays, especially if other interruptions are overlapped, this involves a phase modulation on the generated signal.

There is another system?
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: CCP
PostPosted: Wed Sep 12, 2007 5:53 pm     Reply with quote

You say you need a signal with no jitter. But then you talk about insertion of occasional delays. This will produce jitter. So really, how much jitter can you tolerate? What is the frequency range? What is the adjustment resolution?

As for special event mode, that is only useful if you intend to let the CCP generate lots of pulses with no software intervention. If you can afford some intervention, then you can use normal compare mode and let timer 1 run free. Recalculate a revised compare value in software after each interrupt (if the interrupts are slow enough).

Robert Scott
Real-Time Specialties
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