I want to attach to external interrupts on is push button other one is a device which gives a high pulse (high time ~1ms and time period is 10ms).