2camjohn
Member
I read something in the datasheet and I realised I may not be understanding the way the PIC wakes from sleep properly.
Accoring to my interpretation of the datasheet if you wake the PIC with INTCON.GIE disabled the program continues from where it was (ie the next instruction after the sleep instruction.
If you wake the PIC from sleep with the INTCON.GIE enabled it runs the interrupt routine.
Is that correct?
Thanks guys, sorry I know I suck at reading datasheets.
John
Accoring to my interpretation of the datasheet if you wake the PIC with INTCON.GIE disabled the program continues from where it was (ie the next instruction after the sleep instruction.
If you wake the PIC from sleep with the INTCON.GIE enabled it runs the interrupt routine.
Is that correct?
Thanks guys, sorry I know I suck at reading datasheets.
John