Look in the datasheet for interrupt flag bits.