Content originally posted in LPCWare by Tsuneo on Mon Mar 17 18:01:34 MST 2014
On bus-powered device, VBUS pin of LPC family is not needed to be connected to VBUS (5V) pin of the USB connector. When VBUS function is not mapped to any pin, internal VBUS input is connected to VDD.
For self-powered device, like your case,
1) input protection resistor
VBUS pin of the MCU is connected to connector VBUS (5V) across a protection resistor, as suggested by serge. The value of this resistor is around 100 - 4k7 ohm.
2) on-chip port pull-down
pull-down is enabled at the VBUS pin by PINMODE3 register.
3) capacitor at connector VBUS (5V) pin
According to the USB spec, a capacitor is required across connector VBUS (5V) pin and GND. The spec specifies the value in this range, 1 - 10 uF, for ADP (Attach Detection Protocol).
(Device Capacitance ECN.pdf)
Tsuneo