PDA

View Full Version : Wake from sleep with USB Interrupt



kduck63
- 13th January 2013, 00:59
I am trying to build a simple circuit using a 18F2455. This thing will sleep most of the time and once in a while plug into a computer thru a USB interface and transfer some data. I can get it to sleep, I can get it to communicate via USB, i just can't get it to wake from sleep when the USB is plugged in. The data sheet says there is a USB interrupt, UIE.2, that will wake it, but I am having no luck. I have looked thru the forum, but I have not found anything that shows me how to use this particular interrupt.