Ammar
Ammar

Reputation: 1233

How to wake up a device from sleep by pin?

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

Answers (1)

Jean-francois
Jean-francois

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

Related Questions