This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why USB_UP_LED is always on

Hi

I am using keil's LPC1700 demo board, testing the usb device MSC function, after usbd_init() and usbd_connect(__TRUE), windows display a disk, the USB_UP_LED is on, this is expected, however, when I press a button which calls the usb_connect(__FALSE), the USB_UP_LED is still on, should it be off now??

PS: if I continue press another button which calls usb_connect(__TRUE), USB_UP_LED first off, then change to on, this is ok.

The issue in my PCB is: my PCB has an external 24v power supply, it initially works without usb function, if then connected to pc, it calls usbd_connect(__TRUE) to work as a disk, an led indicator should be on, if then disconnected, it calls usbd_connect(__FALSE) and should turn off the led indicator, currently I use USB_UP_LED as the indicator. Maybe I should use USB_CONNECT as the indicator??

Thanks.

0