You might try ensuring that you have a solid 0 (gnd) value
on the pin to start with. Just swapping the pin between gnd
and the battery supply should do the trick. If you're the cautious
sort you could use a 1k resistor to do the connections.
MS
patrick kuckertz wrote:
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);
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:
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
<http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
and save big._______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
------------------------------------------------------------------------
Yahoo! Messenger with Voice.
<http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
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
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help