Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/15/06 16:32
Read: times


 
#128032 - Use INT0 or INT1 ???
Responding to: ???'s previous message
Dave said:
Simple question that escapes me. I currently have timer0 setup as a counter (external counts on T0 pin) and also setup so that when the counter overflows it jumps to vector 000Bh to increment an upper word register to make a 32bit counter. All of this works perfectly ! Now what I would like to do is every time the T0 is activated, I would like to check the status of a bit and turn it on if it is off. The only problem I am having is I cannot find the vector address for Timer0 so that I can add the code to check that bit every time the T0 pin is activated on the processor.

It sounds to me like you should connect your input signal to one of the external interrupt pins, and not to the Timer 0 input pin. That way, you can have a single interrupt handler that both increments your 32 bit counter (all 32 bits in RAM now) AND clears the bit. Maybe you don't need Timer 0 at all???

-- Russ


List of 10 messages in thread
TopicAuthorDate
Timer0 Interupt question....            01/01/70 00:00      
   Use INT0 or INT1 ???            01/01/70 00:00      
      or still T0            01/01/70 00:00      
   in some places 0x0b is called the vector for the t            01/01/70 00:00      
      Overflow only?            01/01/70 00:00      
         no, just on overflow            01/01/70 00:00      
            Reading between the lines ...            01/01/70 00:00      
            Okay, I feel better            01/01/70 00:00      
               if the OP had clarified and one case had been            01/01/70 00:00      
   cutting through            01/01/70 00:00      

Back to Subject List