View previous topic :: View next topic |
Author |
Message |
ntype
Joined: 01 Nov 2007 Posts: 9
|
Clocking timer 2 or 3 from timer 0 |
Posted: Fri Dec 28, 2007 12:47 pm |
|
|
Is it possible to clock hardware timers 2 & 3 at the relatively infrequent rate "timer0 on an 18F2520? In other words, "increment timer 2 at the same instant as timer0".
I will elaborate if necessary. |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
timer0,2,3 |
Posted: Fri Dec 28, 2007 12:58 pm |
|
|
if the timers clock is the PC, and prescalers/postscalers make them same they will increment together
joseph |
|
|
ntype
Joined: 01 Nov 2007 Posts: 9
|
Re: timer0,2,3 |
Posted: Fri Dec 28, 2007 1:43 pm |
|
|
gjs_rsdi wrote: | if the timers clock is the PC, and prescalers/postscalers make them same they will increment together
joseph |
yes i agree. the difficulty is timer 2 has a maximum prescale of 16. i need to set timer 2 to a prescaler value of 32. hence why i need to clock from another source. I don't think its possible in strainght hardware, but i'm looking into 'exernal clocking'. |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
timer 2 |
Posted: Fri Dec 28, 2007 2:43 pm |
|
|
use the postscaller also if your application OK with
joseph |
|
|
|