input change interrupt

A function to interrupt the CPU when the input bit is changed.