Motherboard Forums


Reply
Thread Tools Display Modes

USB power to external device

 
 





















martin griffith
Guest
Posts: n/a

 
      02-15-2007, 09:38 PM


Not sure if this is the right place , but:

I need to power some analogue stuff from a USB port, and AFAIU the USB
on the PC/MAC will limit the current available to 100mA on connect. I
think I will need about 200mA, so how do I "simply" inform the source
to let me have it?

This is mainly to power a transformer isolated smps +-12v for opamps,
a (nonPIC) micro could be powered from the USB source.

Clutching at straws again.......


martin
 
Reply With Quote
 
Andy Peters
Guest
Posts: n/a

 
      02-15-2007, 10:20 PM
On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
> Not sure if this is the right place , but:
>
> I need to power some analogue stuff from a USB port, and AFAIU the USB
> on the PC/MAC will limit the current available to 100mA on connect. I
> think I will need about 200mA, so how do I "simply" inform the source
> to let me have it?


You "inform" the bus by properly enumerating your gizmo as a valid USB
device.

-a

 
Reply With Quote
 
martin griffith
Guest
Posts: n/a

 
      02-15-2007, 11:51 PM
On 15 Feb 2007 14:20:40 -0800, in comp.arch.embedded "Andy Peters"
<> wrote:

>On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
>> Not sure if this is the right place , but:
>>
>> I need to power some analogue stuff from a USB port, and AFAIU the USB
>> on the PC/MAC will limit the current available to 100mA on connect. I
>> think I will need about 200mA, so how do I "simply" inform the source
>> to let me have it?

>
>You "inform" the bus by properly enumerating your gizmo as a valid USB
>device.
>
>-a

thanks, really helpful, any suggestions on a micro/usb widget that can
do the enumeration?


martin
 
Reply With Quote
 
Steve Calfee
Guest
Posts: n/a

 
      02-16-2007, 01:46 AM
On Fri, 16 Feb 2007 00:51:00 +0100, martin griffith
<mart_in_medina@ya___.es> wrote:

>On 15 Feb 2007 14:20:40 -0800, in comp.arch.embedded "Andy Peters"
><> wrote:
>
>>On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
>>> Not sure if this is the right place , but:
>>>
>>> I need to power some analogue stuff from a USB port, and AFAIU the USB
>>> on the PC/MAC will limit the current available to 100mA on connect. I
>>> think I will need about 200mA, so how do I "simply" inform the source
>>> to let me have it?

>>
>>You "inform" the bus by properly enumerating your gizmo as a valid USB
>>device.
>>
>>-a

>thanks, really helpful, any suggestions on a micro/usb widget that can
>do the enumeration?
>
>
>martin

I cannot be much more helpful, but your device descriptor includes a
"power required" field in milliamps. Any powered port (including the
root hub in the pc) must be able to provide 500 ma. An unpowered hub
port can only provide 100 ma. So you should be able to do what you
want, but you will restrict the usb topology.

Regards, Steve
 
Reply With Quote
 
galapogos
Guest
Posts: n/a

 
      02-16-2007, 07:30 AM
On Feb 16, 9:46 am, nospamcal...@yahoo.com (Steve Calfee) wrote:
> On Fri, 16 Feb 2007 00:51:00 +0100, martin griffith
>
>
>
> <mart_in_medina@ya___.es> wrote:
> >On 15 Feb 2007 14:20:40 -0800, in comp.arch.embedded "Andy Peters"
> ><goo...@latke.net> wrote:

>
> >>On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
> >>> Not sure if this is the right place , but:

>
> >>> I need to power some analogue stuff from a USB port, and AFAIU the USB
> >>> on the PC/MAC will limit the current available to 100mA on connect. I
> >>> think I will need about 200mA, so how do I "simply" inform the source
> >>> to let me have it?

>
> >>You "inform" the bus by properly enumerating your gizmo as a valid USB
> >>device.

>
> >>-a

> >thanks, really helpful, any suggestions on a micro/usb widget that can
> >do the enumeration?

>
> >martin

>
> I cannot be much more helpful, but your device descriptor includes a
> "power required" field in milliamps. Any powered port (including the
> root hub in the pc) must be able to provide 500 ma. An unpowered hub
> port can only provide 100 ma. So you should be able to do what you
> want, but you will restrict the usb topology.
>
> Regards, Steve


Here's a question. How about those USB enclosures or other USB devices
that use a USB Y-cable? Presumably 1 device can only enumerate once,
so it'll get 500mA on 1 cable, but the other cable will only get
100mA? Or also 500mA? I believe it's 500mA since most drives will need
more that much(or even more) to work? How does it work then?

 
Reply With Quote
 
Andy Peters
Guest
Posts: n/a

 
      02-16-2007, 05:19 PM
On Feb 15, 4:51 pm, martin griffith <mart_in_medina@ya___.es> wrote:
> On 15 Feb 2007 14:20:40 -0800, in comp.arch.embedded "Andy Peters"
>
> <goo...@latke.net> wrote:
> >On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
> >> Not sure if this is the right place , but:

>
> >> I need to power some analogue stuff from a USB port, and AFAIU the USB
> >> on the PC/MAC will limit the current available to 100mA on connect. I
> >> think I will need about 200mA, so how do I "simply" inform the source
> >> to let me have it?

>
> >You "inform" the bus by properly enumerating your gizmo as a valid USB
> >device.

>
> >-a

>
> thanks, really helpful, any suggestions on a micro/usb widget that can
> do the enumeration?


There are various micros from Cypress, Microchip, Silicon Labs, TI,
Atmel, etc, which have USB device interfaces. Choose one. Choose a
device class with which your device will conform (HID is probably
simplest), and be sure to include the desired current draw in the
device/configuration descriptor. Once the device enumerates, which
means it's recognized by the operating system and the device driver is
loaded, then you'll be able to use the 500 mA available to the port.

The point here is that you can't "steal" power from the bus ... you
need to have a proper device connected to the bus before you are able
to use all of the power.

-a

 
Reply With Quote
 
Andy Peters
Guest
Posts: n/a

 
      02-16-2007, 05:21 PM
On Feb 16, 12:30 am, "galapogos" <gois...@gmail.com> wrote:

> Here's a question. How about those USB enclosures or other USB devices
> that use a USB Y-cable? Presumably 1 device can only enumerate once,
> so it'll get 500mA on 1 cable, but the other cable will only get
> 100mA? Or also 500mA? I believe it's 500mA since most drives will need
> more that much(or even more) to work? How does it work then?


There's no such thing as a USB Y cable.

And before you jump my ****: I'm sure somebody's out there making
them, but I wouldn't plug one into my computer or my device and expect
anything to work (or not explode).

They're kinda like those USB turnaround thingies you see ... utterly
pointless.

-a

 
Reply With Quote
 
martin griffith
Guest
Posts: n/a

 
      02-16-2007, 07:42 PM
On 16 Feb 2007 09:19:44 -0800, in comp.arch.embedded "Andy Peters"
<> wrote:

>On Feb 15, 4:51 pm, martin griffith <mart_in_medina@ya___.es> wrote:
>> On 15 Feb 2007 14:20:40 -0800, in comp.arch.embedded "Andy Peters"
>>
>> <goo...@latke.net> wrote:
>> >On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
>> >> Not sure if this is the right place , but:

>>
>> >> I need to power some analogue stuff from a USB port, and AFAIU the USB
>> >> on the PC/MAC will limit the current available to 100mA on connect. I
>> >> think I will need about 200mA, so how do I "simply" inform the source
>> >> to let me have it?

>>
>> >You "inform" the bus by properly enumerating your gizmo as a valid USB
>> >device.

>>
>> >-a

>>
>> thanks, really helpful, any suggestions on a micro/usb widget that can
>> do the enumeration?

>
>There are various micros from Cypress, Microchip, Silicon Labs, TI,
>Atmel, etc, which have USB device interfaces. Choose one. Choose a
>device class with which your device will conform (HID is probably
>simplest), and be sure to include the desired current draw in the
>device/configuration descriptor. Once the device enumerates, which
>means it's recognized by the operating system and the device driver is
>loaded, then you'll be able to use the 500 mA available to the port.
>
>The point here is that you can't "steal" power from the bus ... you
>need to have a proper device connected to the bus before you are able
>to use all of the power.
>
>-a

Thanks for that, especially the last paragraph, something that hadn't
crossed my mind.


martin
 
Reply With Quote
 
martin griffith
Guest
Posts: n/a

 
      02-16-2007, 07:52 PM
On 16 Feb 2007 09:19:44 -0800, in comp.arch.embedded "Andy Peters"
<> wrote:

>On Feb 15, 4:51 pm, martin griffith <mart_in_medina@ya___.es> wrote:
>> On 15 Feb 2007 14:20:40 -0800, in comp.arch.embedded "Andy Peters"
>>
>> <goo...@latke.net> wrote:
>> >On Feb 15, 2:38 pm, martin griffith <mart_in_medina@ya___.es> wrote:
>> >> Not sure if this is the right place , but:

>>
>> >> I need to power some analogue stuff from a USB port, and AFAIU the USB
>> >> on the PC/MAC will limit the current available to 100mA on connect. I
>> >> think I will need about 200mA, so how do I "simply" inform the source
>> >> to let me have it?

>>
>> >You "inform" the bus by properly enumerating your gizmo as a valid USB
>> >device.

>>
>> >-a

>>
>> thanks, really helpful, any suggestions on a micro/usb widget that can
>> do the enumeration?

>
>There are various micros from Cypress, Microchip, Silicon Labs, TI,
>Atmel, etc, which have USB device interfaces. Choose one. Choose a
>device class with which your device will conform (HID is probably
>simplest), and be sure to include the desired current draw in the
>device/configuration descriptor. Once the device enumerates, which
>means it's recognized by the operating system and the device driver is
>loaded, then you'll be able to use the 500 mA available to the port.
>
>The point here is that you can't "steal" power from the bus ... you
>need to have a proper device connected to the bus before you are able
>to use all of the power.
>
>-a

Found this, first hit on TI site, worth a read
http://www.ti.com/litv/pdf/slyt118


martin
 
Reply With Quote
 
Don McKenzie
Guest
Posts: n/a

 
      02-16-2007, 09:15 PM
martin griffith wrote:

> Not sure if this is the right place , but:
>
> I need to power some analogue stuff from a USB port, and AFAIU the USB
> on the PC/MAC will limit the current available to 100mA on connect. I
> think I will need about 200mA, so how do I "simply" inform the source
> to let me have it?


Have a look at:
http://www.dontronics-shop.com/produ...roductid=16456
100ma
and
http://www.dontronics-shop.com/produ...roductid=16141
500ma, 5V, 3.3V, and USB RX and TX at TTL levels if you need them.

May be an overkill for what you want, may not be, but at least an
alternative.

Don...




--
Don McKenzie
E-Mail Contact Page: http://www.dontronics.com/e-mail.html

Crystal clear, super bright OLED LCD (128x128) for your microcontroller.
Simple serial RX/TX interface. Many memory sizes.
http://www.dontronics-shop.com/produ...roductid=16460

No More Damn Spam: http://www.wizard-of-oz.com
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Aspire 1703sc power supply problem diagnosis Ernest Fowler Acer 0 12-09-2008 05:14 AM
P4C800-E MB reboots on Windows Power Down? zeke7 Asus 25 02-08-2008 11:31 AM
what is the purpose of -ve voltage in PC? gchandrujs via HWKB.com Asus 12 05-30-2007 07:17 PM
[LONG] Problems with new ddr400 ô_ô Asus 0 05-07-2007 10:00 PM
Gigabyte GA-K8NSC-939 won't start and no fans spin Daniel Prince Gigabyte 4 12-11-2006 11:19 AM


All times are GMT. The time now is 05:51 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43