Go Down

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

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);

Given that you want an INT2 interrupt, it looks like attachInterrupt (4, foo) is what you want. Try it anyway, and see what happens.

Nick Gammon


Your the best! That solved the problem!

Go Up