Hi,
it is still not working.
But I have placed the code in start and have changed this two lines, cause i am using pin6 (INT0)
sbi(EICRA,ISC01);
sbi(EICRA,ISC00);
sbi(EICRA,ISC00);
Now I do not get the interrupt. But unfortunately i do not get it with hardware,too. And there is an interrupt raised.
Does anyone how much volt the signal should have? I use 3V and I use half a second as duration, which is too long. But I get not a single interupt...
Patrick
patrick kuckertz <[EMAIL PROTECTED]> wrote:
patrick kuckertz <[EMAIL PROTECTED]> wrote:
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
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates._______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
- Re: [Tinyos-help] External interrupt mica2 patrick kuckertz
- Re: [Tinyos-help] External interrupt mica2 Michael Schippling
Reply via email to
