MKR Interrupts

Thanks again, juraj.

So this something I am doing wrong.

Is there a way that I can switch a value so that an interrupt is raised from my MKR. In other words, how could I raise an interrupt from the code?