What is difference between RETI and RET? regards, peter.
What is difference between RETI and RET? From the Intel MCS-51 user's manual you would see that RET stands for 'RETurn' (as in from a normal function) and RETI stands for 'RETurn from Interrupt'. It should be clear when to use one or the other from this information. - Mark
Hello, (while in ISR, interrupts of same or lower priority level will be disabled temporarily) 1) Is the EA bit and IE bits affected in any way, while in ISR? 2) If you exit an interrupt using RET, what happens? How do you reenable those interrupts that was disabled temporarily? Regards, KC
1) Is the EA bit and IE bits affected in any way, while in ISR? not unless you manipulate them 2) If you exit an interrupt using RET, what happens? you are hosed How do you reenable those interrupts that was disabled temporarily? push the address you want to continue at on the stack and execute reti Erik
Is the EA bit and IE bits affected in any way, while in ISR? Nope, but v.v : instruction RETI and these which write to IE or IP do block ISR call untill next instruction will be executed.