> Assuming you have a separate power supply for your > application then connect > the USB Power pin on the USB socket (which is at 5V) to an > input pin on your > PIC. Pull down with a 10K resistor. Now when connected the > input pin will be > at logic 1, it will drop to logic 0 when disconnected. Since my device is self-powered, it reports to the host that no power is required. If my device is the only device on the bus, the host has no reason to provide power on the 5V supply. Is there any chance that the host will then drop the 5V supply? Maybe the answer is that I should report some power usage. Of course, if I use a pull-down, I will be consuming power from that supply. Thanks, David -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist