Hi,
 
I want to create an interrupt with an own circuit for mica2.
 
In my program I do this in init():
 
  // -- Triger on rising edge
  sbi(EICRB,ISC01);
  sbi(EICRB,ISC00); 
  //-- Enable Interrupt
  sbi(EIMSK , INT0);
 
and I have added this:
 
//Interrupt routine
 TOSH_SIGNAL(SIG_INTERRUPT0){
  call Leds.yellowOn();
  if (busy != 0){
   call CountTime.Start();
   atomic
    {
     busy = 1;
    }
   call Timer.start(TIMER_ONE_SHOT, delaytime * 8);
   }
    }
 
However, when I switch on the mote i get directly this interrupt. But somehow it does not start the timer... I have added an LED to check in timer.fired.
I have not even attached the hardware.
 
 
Best Regards,
 
 
Patrick Kuckertz 
 
 



New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to