look in the datasheet about Interrupts on change... on some PORTB i/o