I have a piece of memory that I share with an interrupt function.
When My functions read that part of memory I need to block the interrupt so the interrupt doesn't interrupt my read action (atomic read)
I only need to block the interrupt for a really short time and no interrupt may be lost in this process.
What is the best way to to this?
Can I block it, by disabling the PIE IER bit?
Of is the only more drastic way INTM=1?
Thanks.