ISR routine is not properly running

I added some pieces of code.