grandpa jay wrote:If I set IOCIE, is this going to cause an interrupt that has not been handled? I have the GIE & PEIE bits set
I don't know what you mean by "has not been handled", but if GIE, IOCIE, and IOCxF are all set, the PIC will branch to the reset vector. There aren't any other conditions required or any special cases; it doesn't matter what order those bits get set. They're simply ANDed together.
Does the 13.5 Operation in sleep say that the IOCIE does not need to be set if the edge detect is set?
No. It says that IOCxF will already be set when your first instruction after the SLEEP instruction executes, meaning you can safely test its state without having to wait. No peripheral's interrupt will wake the PIC from sleep unless the associated IE and IF bits are both set (and PEIE if applicable). The GIE bit is not required for wake from sleep.