The ISR will be triggered by the Z.C. detector and set a flag. I do not see what else should be there.

The other stuff is not critical for being in the ISR

Ioannis