interrupt starts at different times depending on upload time of program

(which rises from 2,2 to 3,2 V, so logical 0 to 1)

2.2v is not logical 0. logical 0 is a voltage below 0.6v for a 5v Atmel chip.

Mark