Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top