XHRA-2HPA USB_VBUS Pin for External Power Solutions Topic is solved

Technical discussions around xCORE processors (e.g. General Purpose (L/G), xCORE-USB, xCORE-Analog, xCORE-XA).
DHembree
Experienced Member
Posts: 75
Joined: Fri Apr 15, 2016 6:46 pm

XHRA-2HPA USB_VBUS Pin for External Power Solutions

Postby DHembree » Fri Apr 15, 2016 7:39 pm

First post here. I am very new to this device. There does not seem to be a wealth of information in the data sheet regarding this, so I thought I would ask here. My system is to be powered from an external source - not USB powered. It is unclear what must be done with the USB_VBUS pin in this situation.

Thanks in advance,
Dan
View Solution
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Wed Apr 20, 2016 1:25 pm

Wire it directly to USB vbus (add protection if you desire)
expertsleepers
Member
Posts: 12
Joined: Thu Mar 03, 2016 4:28 pm

Postby expertsleepers » Wed Apr 20, 2016 1:25 pm

Ross wrote:Wire it directly to USB vbus (add protection if you desire)
What protection would you suggest in this case?

Also, do we need to worry about VBUS being present when the board is powered off? E.g. when the host PC is turned on with the USB cable connected, but the XMOS board powered off?
DHembree
Experienced Member
Posts: 75
Joined: Fri Apr 15, 2016 6:46 pm

Postby DHembree » Thu Apr 21, 2016 10:25 pm

Ross,
Thanks for the reply. I do not intend on powering the part via the USB connector, so I am wondering if I still need to make this connection at all, and if I don't, what do I do with the pin? Vcc? Gnd?

Thanks again
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Fri Apr 22, 2016 12:42 am

The current incarnation of the device requires it to be wired up I'm afraid. An internal VBUS comparator enables some of the phy logic when VBUS is present.
DHembree
Experienced Member
Posts: 75
Joined: Fri Apr 15, 2016 6:46 pm

Postby DHembree » Fri Apr 22, 2016 4:46 pm

What would keep me from connecting the pin to my external power supply? How would the pin know the difference between being sourced by the USB connector vs another source?

Thanks again for the reply!

Dan
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Fri Apr 22, 2016 10:01 pm

It would fail a USB compliance test, in practise its likely to work most of the time, but you might get some issues.
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Fri Apr 22, 2016 10:04 pm

From USB spec:
The voltage source on the pull-up resistor must be derived from or controlled by the power supplied on the USB cable such that when VBUS is removed, the pull-up resistor does not supply current on the data line to which it is attached.
The xcore, in a self powered device, therefore needs a VBUS connection in order to know when the pull-up can should be enabled.
DHembree
Experienced Member
Posts: 75
Joined: Fri Apr 15, 2016 6:46 pm

Postby DHembree » Sat Apr 23, 2016 12:00 am

Thank you, Ross. I greatly appreciate the help!

Dan
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Sat Apr 23, 2016 12:47 am

np

Who is online

Users browsing this forum: No registered users and 3 guests