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

Timer 3 as counter

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



Joined: 05 Dec 2009
Posts: 40

View user's profile Send private message

Timer 3 as counter
PostPosted: Sun Mar 20, 2011 9:10 am     Reply with quote

hey guys

I'm using Timer0 & Timer1 as counter in PIC18F2550, now I wanna ask can I use Timer3 as a counter as well ??

In datasheet its written as "T13Ckl" on a pin.
Ttelmah



Joined: 11 Mar 2010
Posts: 19510

View user's profile Send private message

PostPosted: Sun Mar 20, 2011 3:25 pm     Reply with quote

T3_EXTERNAL

Best Wishes
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Sun Mar 20, 2011 8:31 pm     Reply with quote

I suspect the question is: "I want three independent counters". The answer is "no", because Timer1 and Timer3 use the same pin T13CKI for their external input.

You'll have no choice but to use one of the external interrupt pins and do the counting yourself, either the interrupt-on-change pins (B4-B7) or one of the level-triggered pins B0-B2.
_________________
Andrew
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