what is the difference between the two method of disabling interrupt.
as you know, there are two ways to disable the interrupt.IMASK=0 and IPEND=0;
but,what is the difference?
sorry, I don't know nothing about the second method you mentioned ;-)
IPEND register is a read-only register showing you a pending interrupt. This is the case when executing the corresponding Interrupt Service Routine (ISR). It gets cleared when RTI instruction (RTX for exception) is executed.
ILAT register shows any latched register and gets cleared as soon as the ISR gets called (-> status moving to IPEND, ILAT is cleared).
IMASK is the only one of the three register the user application should access for writing, where a 1 enables the corresponding interrupt level (IVG).
Retrieving data ...