SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Software can enable and disable individual interrupts by setting and clearing the bits in the interrupt enable register (IER) that correspond to the individual interrupts. An interrupt can trigger interrupt processing only if the corresponding bit in the IER is set.
For example, the following code sequence enables INT4:
MVC IER, R0 ; Get IER into R0
SET 4, 4, R0, R0 ; Set R0[4]
MVC R0, IER ; Copy R0 back to IER (sets IER[4])
Similarly, the following code sequence disables INT5:
MVC IER, R0 ; Get IER into R0
CLR 5, 5, R0, R0 ; Clear R0[5]
MVC R0, IER ; Copy R0 back to IER (clears IER[5])