UM11155 manual defines the below pins available for USB1 HS Device function to indicate USB1 configured LED indicator
Per manual:
I configure PIO4_10 per below before initializing USB1 HS Device function.
Here is the wiring for the LED itself:
My board is communicating fine with the host via USB1 but the USB1_LEDN remains OFF, I can confirm that the LED itself works because if I configure PIO4_10 as a GPIO and set the pin LOW then the LED turns ON.
What am I missing ? How should I configure PIO4_10 with Function 4 to get it to work with USB1 HS ?
I tried switching form MODE_INACT to MODE_PULLDOWN and it did not work.
已解决! 转到解答。
Hi,
I copy the answer from the thread.
https://community.nxp.com/t5/LPC-Microcontrollers/USB-0-1-LEDN-LED-indicator-not-working/td-p/907458
After checking with the design team, they have confirmed that these pins have an optional configuration for USB led indicators, but were not implemented in the LPC54018M. This is the reason why they are not responsive when configuring them as the USB LED indicators.
In this case you will need to manually set the leds using GPIO in order to detech when a USB device is connected or disconnected in your application.
Best Regards,
XiangJun Rong
Hi,
I copy the answer from the thread.
https://community.nxp.com/t5/LPC-Microcontrollers/USB-0-1-LEDN-LED-indicator-not-working/td-p/907458
After checking with the design team, they have confirmed that these pins have an optional configuration for USB led indicators, but were not implemented in the LPC54018M. This is the reason why they are not responsive when configuring them as the USB LED indicators.
In this case you will need to manually set the leds using GPIO in order to detech when a USB device is connected or disconnected in your application.
Best Regards,
XiangJun Rong