hi.,
can we activate or deactivate an interrupt at any where in the program.?
thanks in advance..!
Do you mean "enable or disable" the interrupt source, or are you talking about setting the flag(s) which cause the ISR to be called?
Assuming its a run-of-the-mill '51, the answer would be the same.
YES.