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

Timer experts, HELP!

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







Timer experts, HELP!
PostPosted: Thu Mar 22, 2007 7:20 pm     Reply with quote

If you understand my question and if you know the answer, please tell me!

I wanna know what is the clock input of the timers below. Is it the primary clock(div by 4, of course) or the internal clobk(also div by 4)?

timer0
timer1
timer2
timer3


thanks
mskala



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

PostPosted: Thu Mar 22, 2007 8:36 pm     Reply with quote

You have to look at the diagrams in the PIC datasheet for part you're using. In looking at 1 that I use, 18F4520, it shows that all peripherals, which would include the timers, are driven from the same clock as CPU. That can be from all the usual oscillator and PLL modes.

But also, looking at block diagram of each timer module, they can accept 'Fosc/4' CPU clock or various other clocking options.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Mar 22, 2007 9:38 pm     Reply with quote

You should read the linked thread posted by newguy wich is very informative,
you will know how to use the setup options of the internal timers modules.
http://www.ccsinfo.com/forum/viewtopic.php?t=22467

Humberto
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