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

How can I set timer to decrementing mode???

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



Joined: 20 Jul 2011
Posts: 375

View user's profile Send private message

How can I set timer to decrementing mode???
PostPosted: Wed Feb 15, 2012 4:43 am     Reply with quote

Usually the timers in PIC microcontroller are in incrementing mode (they add 1 to the actual value). I need to make timer counting in opposite direction.
Could it be done and how???
Thanks!
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Wed Feb 15, 2012 5:12 am     Reply with quote

No.
They are up counters.
Generally, no counter like this would be an up/down unit. Costs a lot more gates to implement than a simple up counter, and given that you can always ones complement the result in software, not worth the chip real-estate.

Best Wishes
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