简体   繁体   中英

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM