View previous topic :: View next topic |
Author |
Message |
Felipe Guest
|
Timer experts, HELP! |
Posted: Thu Mar 22, 2007 7:20 pm |
|
|
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
|
|
Posted: Thu Mar 22, 2007 8:36 pm |
|
|
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
|
|
|
|