INTERRUPT PROGRAMMING
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following instruction will enable the TMR0 interrupt?
|
INTCONbits.TMR0IF=1;
|
|
INTCONbits.TMR0IF=0;
|
|
INTCONbits.TMR0IE=1;
|
|
INTCONbits.TMR0IE=0;
|
Explanation:
Detailed explanation-1: -The address of the service routine in vectored interrupt is hard-wired and in non-vectored interrupts, the address of the service routine needs to be supplied extremely by the device. The DI interrupt instruction is used to disable the interrupt and the EI interrupt instruction is used to enable the instruction.
Detailed explanation-2: -Explanation: Different addresses are assigned for Timer0 and Timer1 overflow flags in the interrupt vector table. They are 0016h and 0012h for timer0 and timer1 respectively.
There is 1 question to complete.