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

Clocking timer 2 or 3 from timer 0

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



Joined: 01 Nov 2007
Posts: 9

View user's profile Send private message

Clocking timer 2 or 3 from timer 0
PostPosted: Fri Dec 28, 2007 12:47 pm     Reply with quote

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

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

timer0,2,3
PostPosted: Fri Dec 28, 2007 12:58 pm     Reply with quote

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

View user's profile Send private message

Re: timer0,2,3
PostPosted: Fri Dec 28, 2007 1:43 pm     Reply with quote

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

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

timer 2
PostPosted: Fri Dec 28, 2007 2:43 pm     Reply with quote

use the postscaller also if your application OK with
joseph
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