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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/14/03 15:14
Read: times


 
#43387 - external interrupts and timers
Hi all,
I've browsed the previous posts on interrupts and timers, couldn't find an answer though.
Problem:

On external interrupt, read P1.4 4 times, consequenlty, at 1000Hz.

Approach:

void ext1_isr (void) interrupt 2 using 1 <span style="color:green">// interrupt 2 handler, using bank 1</span>
{
   timer0_initialize();
<span style="color:green">   // started timer and on every overflow (hence, interrupt) read P1.4</span>
}
void timer0_isr(void) interrupt 1 using 1
{
<span style="color:green">   // reinitialize TH0 and TL0 so that it overflows in 1 millisecond, read P1.4</span>
<span style="color:red">   // However, it doesn't seem to reach this code!!</span>
}


So this is my problem. What am i doing wrong?

List of 10 messages in thread
TopicAuthorDate
external interrupts and timers            01/01/70 00:00      
   RE: external interrupts and timers            01/01/70 00:00      
      RE: external interrupts and timers            01/01/70 00:00      
         RE: external interrupts and timers            01/01/70 00:00      
         RE: external interrupts and timers            01/01/70 00:00      
         RE: external interrupts and timers            01/01/70 00:00      
            RE: external interrupts and timers            01/01/70 00:00      
         RE: external interrupts and timers            01/01/70 00:00      
   RE: external interrupts and timers            01/01/70 00:00      
   RE: external interrupts and timers            01/01/70 00:00      

Back to Subject List