Content originally posted in LPCWare by Daniel Widyanto on Thu Sep 27 01:18:26 MST 2012
Hi Mike,
USB Host mode needs:
- USB D+ pin
- USD D- pin
- USB_UP_LED1 pin
- USB_PWRD1 pin
- nUSBCR1 pin
- nUSB_PPWR1 pin
I don't know whether you want to follow USB spec or not, because the USB host should detect overcurrent condition and able to turn off the bus (hence nUSBCR1 and USB_PWRD1 is configured to detect overcurrent and USB VBus). Otherwise, it seems like connecting USB_PWRD1 to permanent 5V source is ok.
Btw, the internal pull up resistor is not able to pull USB_PWRD1 to 5V. So, you will still need to pull USB_PWRD1 to 5V VBus source.
For software part, yes, the USB host will detect device connection, and raise interrupt. From USB host ISR, user should generate linked list to the data that will be sent to start the enumeration.
Regards,
-daniel