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

Counter problem?

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








Counter problem?
PostPosted: Wed Oct 08, 2008 12:24 pm     Reply with quote

Hi

Simple? only if you know.

Is this a task for ccp?

I want to preload a reg. with ex. 100 then I want one pin to be input. If the input toggle 100 times I want an interrupt.

It must not be solved with a interrupt and a counter! It must be served by hardware.
Guest








it all depends on how you definwe 'hardware'
PostPosted: Wed Oct 08, 2008 1:41 pm     Reply with quote

your post is about as clear as a politician's statement - with constraints.
itdepends on how you define hardware ..

so you are NOT OK with:
1) preloading the timer0 register with (256-100)
2) and clocking it externally
3) and then taking an interrupt ( or even polling)
for the overflow ???

that sounds like all hardware to me
on a midrange PIC 16c/f family

too simple a solution ?

for a better answer - ask a clearer question.
Very Happy
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