Go Down

Topic: <SOLVED> ATmega644 does not catch the interupt (Read 3055 times) previous topic - next topic

corprius

PB2, ATmega644 pin 3

Nick Gammon

WInterrupts.c is confusing with all the defines, but this looks relevant:

Code: [Select]
    case 4:
      EICRA = (EICRA & ~((1 << ISC20) | (1 << ISC21))) | (mode << ISC20);
      EIMSK |= (1 << INT2);
      break;


Given that you want an INT2 interrupt, it looks like attachInterrupt (4, foo) is what you want. Try it anyway, and see what happens.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon

Also see this thread:

http://arduino.cc/forum/index.php?topic=147080
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

corprius

Your the best! That solved the problem!

Go Up