Reputation: 1233
How would you configure a pin to wake a device up from sleep by changing its state?
I know how to wake up a device from sleep with the WDT but I also need to wake it up by setting a pin high. I have PIC18F87J11 and I am using MPLAB C18. Thanks!
Upvotes: 1
Views: 5672
Reputation: 316
You can use the "Interrupt on Change" function from your PIC. It is well explained in this MicroChip document : http://ww1.microchip.com/downloads/en/AppNotes/00566b.pdf
Upvotes: 1