Set port status in start up code to " your safe off status" set interrupts off until pic is stable then enable interrupts. Whatever status toggle switch is in initally is irrelevant as changing it triggers the interrupt.