interrupt handling in i2c communication