Hi,
I have a kind of basic question to which I couldn't find a satisfactory answer in the user guides. When a peripheral interrupt is acknowledged by the CPU I understand that the corresponding IER bit is cleared as soon as the ISR begins to execute. When is it set again? Is it done by the user inside the ISR or is it done by the CPU or PIE automatically upon the completion of the ISR?
Similarly, at the time of the occurrence of the peripheral interrupt I understand that the PIEIER bit is set. Is it ever cleared by the PIE or the CPU? If so, how is it set again?
I understand how the IFR and PIEIFR register bits work in that they are automatically set and cleared by the hardware and the user should never have to worry about that.
Thanks,
Ganga