Hello,
I was recently writing some code for ADCs, and wanted a section of my code to be interrupt protected.
I initially tried to write my code with DINT/EINT around that section, but it wasn't working correctly.
When I swapped those statements with IER &= ~(M_INT10) and IER |= (M_INT10) respectively, things worked as intended.
I would like to know the precise difference between these two types of "interrupt guards". I thought they were equivalent, but clearly they are not.
Please help me understand when to use which method. I can share more details about the code if needed.
Regards,
Vishnu