 | Discussion Forum |  |
|
|
Diff. between RET & RETINext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author peter john Posted 25-Sep-2000 08:41 GMT Toolset None |  Diff. between RET & RETI peter john What is difference between RETI and
RET?
regards, peter. | | Read-Only Author Michael Podgouzov Posted 25-Sep-2000 13:29 GMT Toolset None |  RE: Diff. between RET & RETI Michael Podgouzov The difference is slight, both take the return address from the stack. What is different is that RETI releases the interrupts of the same level of priority than the interrupt that has caused the branch, and RET doesn't. Sometimes it can be useful to use RET instead of RETI - I did it several times and I also saw it in PHILIPS' Application Notes. Regards, Michael. | | Read-Only Author Radhika Rani Posted 17-Jul-2003 11:24 GMT Toolset C51 |  RE: Diff. between RET & RETI Radhika Rani Can you be more specific about the difference between RET and RETI, with regard to the other interrupts?
Can RET be used in place of RETI? | | Read-Only Author Mark Odell Posted 25-Sep-2000 14:18 GMT Toolset None |  RE: Diff. between RET & RETI Mark Odell 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
| | Read-Only Author Ken Chew Posted 20-Dec-2002 11:02 GMT Toolset C51 |  RE: Diff. between RET & RETI Ken Chew 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 | | Read-Only Author erik malund Posted 20-Dec-2002 11:29 GMT Toolset C51 |  RE: Diff. between RET & RETI erik malund 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 | | Read-Only Author Oleg Sergeev Posted 17-Jul-2003 12:49 GMT Toolset C51 |  RE: Diff. between RET & RETI Oleg Sergeev 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. | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|