??? 08/13/05 15:51 Read: times |
#99348 - tried but gives error Responding to: ???'s previous message |
Jan Waclawek said:
After you did the "housekeeping" with ports, LCD, whatever; do: clr ea ;disable all interrupt
call RetiSub ;release internal interrupt-in-progress flag jmp 0 ;restart ;restart contains explicit reset of stack pointer, ;so no other stack housekeeping is needed RetiSub: reti Thanks for the suggestion Jan, I have just tried your technique but when I run simulation, my assembler is coming up with following error message. ""A RET/RETI occured. This means your program attemped to return from an interrupt with a RET instruction or attempted to return from a subroutine with a RETI. Verify your subroutine and interrupt returns"" and above error does not come up straight away, infact it comes when i trigger external interrupt. I think it is not accepting when I ask the program to call RETISUB, which inturn contains RETI commmand. any suggestion?? any assistance here would be much appreciated. Regards James |