code for using usb for _power_, lpc2148

Status
Not open for further replies.

sknoogleplex

New Member
Hi, I'm using an LPC2148 (this board), and want to use the USB just to power a device (nothing more). There is a lot of demo code available online for using usb mice etc, but I haven't been able to easily disect which parts are necessary for just turning on the power.

Does anyone have any quick pointers to this information?

So far, I'm selecting V_BUS as the function for pin 0.23 (in PINSEL1) and also setting bit 31 of the PCONP (power control for peripherals register) to "enable USB power".

Anyone know what I'm missing? Thanks a lot.

Ryan
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…