Which of the following combination is the best to enable the external hardware interrupt 0 of the IE register (assuming initially all bits

Which of the following combination is the best to enable the external hardware interrupt 0 of the IE register (assuming initially all bits of the IE register are zero)?
A. EX0=1
B. EA=1
C. any of the mentioned
D. EX0=1 & EA=1
 
Answer: d
Explanation: For executing the EX0 interrupt, the EX0 and EA bits of the IE register should be set. EA is set to enable all the interrupts and EX0 is set to enable the external hardware interrupt 0 interrupt and mask the other enabled interrupts.
 

Tìm kiếm

Back
Top