Thanks for your reply, am I to understand that if I am using only high priority interrupts that I don't have to save and restore context at all? Only 'retfie fast'.
Should I avoid save/restore altogether. Is there a time when I should save/restore context or only restore? If so what are the predetermined variables to restore?
If you could point me to a datasheet were this is explained I would appreciate it. I have looked through the docs and started to make the transition to the 18F but have seen some times when I am viewing EEProm in the Microcode studio ICD that I get random address writes. It's kind of stange the value is written to zero then back to what it was on the next pass. I'm not sure if it's the ICD or my program as the value never remains changed. It only seems to happen when I have my interrupts enabled so I may be doing something wrong. I have run the program overnight without the ICD and the interrupts enabled and examined the EEProm data the next day and everything looks fine. I just want to make sure I understand what I need to do in interrupt handling with the 18F.
I have two interrupts, serial receive and a timer. I'm still very new to the 18F series and not to sure about the archetecture as yet so I have to check to see if they are considered high priority. In the 16F everything in my asm interrupt routine is in bank0. Is the scheme the same in the 18F?
Thanks again for your help ,Bob
Bookmarks