Program not working as intended

Each side of a square wave will give you and interrupt, so TWO per pulse.
Paul