I remember when I was working with assembly whole day I was messing with interrupt routines or how to handle other things in pic finally I got that fixed as soon as more codes added suddenly surprises happened timing off etc " I am not saying knowing assembly is bad" but knowing C or any high level programming language will speed up your programming time and compiler makers will take care of lots of things for you then your question will be about programming only. After I worked on electronic ignition project for harley Davidson I realized that assembly is good for small projects only or it is even more power full to combine with C. To my opinion we all should fallow what datasheet requires. Andre -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Jason Graham Sent: Sunday, March 06, 2005 4:23 PM To: piclist@mit.edu Subject: RE: [PIC]-Interrupt Return To Jan-Erik >GOTO some label at the start of main (and re-set GIE). >You have POP'ed the interrupt "level" away anyway, so there >is realy no need to RETFIE anymore. > >Make sure that all interrupts (both levels) are disabled >during the POP'ing of the stack, or else "interesting" things >might happen. Sounds good. I'll definetely have to add that in before i do any popping. Thanks Jason -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist