Page 1 of 1

XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Fri Apr 15, 2016 7:39 pm
by DHembree
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

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Wed Apr 20, 2016 1:25 pm
by Ross
Wire it directly to USB vbus (add protection if you desire)

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Wed Apr 20, 2016 1:25 pm
by expertsleepers
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?

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Thu Apr 21, 2016 10:25 pm
by DHembree
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

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Fri Apr 22, 2016 12:42 am
by Ross
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.

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Fri Apr 22, 2016 4:46 pm
by DHembree
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

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Fri Apr 22, 2016 10:01 pm
by Ross
It would fail a USB compliance test, in practise its likely to work most of the time, but you might get some issues.

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Fri Apr 22, 2016 10:04 pm
by Ross
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.

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Sat Apr 23, 2016 12:00 am
by DHembree
Thank you, Ross. I greatly appreciate the help!

Dan

Re: XHRA-2HPA USB_VBUS Pin for External Power Solutions

Posted: Sat Apr 23, 2016 12:47 am
by Ross
np