How DisableInterrupt

In NETMF I used DisableInterrupt() in the OnInterrupt event. But now I cant find it. How I can disable interrupt in ValueChanged event?
I need to receive interrupts every 20 milliseconds. But I can’t. Not all interrupts are processed in time - ValueChanged events appear late

Hi, we will doc this later, but it is ready to use

Need document Interrupt · Issue #702 · ghi-electronics/Documentation (github.com)

1 Like

how do i properly handle each interrupt after 20ms?

Hi, we have never tried your situation.

But I guess you can set the time and wait for 20ms (poll DateTime.Now);

when poll time, it will call some native api that read / update timer register directly, no need timer interrupt. But I don’t think it will be exactly 20ms.

Try it and see.