Page 2 of 3

Re: XCORE-200 VBUS

Posted: Wed Feb 15, 2017 8:57 am
by henk
Hi Caleb,

That sounds like quite a long time; can you remove a cap to shorten that?
Also - instead of removing the #define SELF_POWERED, you may want to replace it with

Code: Select all

#define SELF_POWERED       0
Cheers,
Henk

Re: XCORE-200 VBUS

Posted: Mon Feb 27, 2017 5:41 pm
by ccrome
Will do, thanks.

BTW, I just got a Beagle USB 480, so now I should have better visibility into what's happening. Plowing through the manual now...

-Caleb

Re: XCORE-200 VBUS

Posted: Tue Mar 14, 2017 6:40 pm
by ccrome
Hi all,
Just to clear up everything for posterity:

The real problem on this one was not to do so much with startup timing, but rather the VBUS damaging the USB port on the MXOS part. It's definitely a good idea (really necessary I'd say) to put the RC filter in there.

We have new boareds with the RC filter, and we can't get them to fail.

Re: XCORE-200 VBUS

Posted: Tue Mar 14, 2017 7:20 pm
by dweeb4
What ripple & Freq was on the Vbus line that damaged the XMOS chip?

Re: XCORE-200 VBUS

Posted: Tue Mar 14, 2017 7:26 pm
by ccrome
dweeb4 wrote:What ripple & Freq was on the Vbus line that damaged the XMOS chip?
I beleive the larger issue is that it was a bus powered device that took a long time to power up. Therefore the xmos part had no power for a while (a bunch of milliseconds), yet a full 5V with no RC filter or anything to limit current. So... reality is probably 5V above VCC, plus whatever inductive kickback happened during plug insertion.

The new boards fix both the startup time and the RC filter. Now that I think of it though, there should be some additional clamp as well after the RC filter to prevent any meaningful amount of current into VBUS before the power is stable.

-Caleb

Re: XCORE-200 VBUS

Posted: Tue Mar 14, 2017 8:18 pm
by mon2
USB load switch with built-in inrush current protection is recommended here to protect downstream devices. Many are available with 0.5A as max limit. ESD protection on top of this to prevent Electro syndrome.

Image

Also, Vbus should have a max of 10 uf capacitance for this reason of inrush currents.

http://www.testusb.com/inrush_issue.htm

Re: XCORE-200 VBUS

Posted: Thu Aug 03, 2017 2:56 am
by RitchRock
Do you know if a single channel USB load switch with soft-start, set to 500mA is OK, or do we need to first limit at 100mA prior to enumeration? Here is an example where the current is first limited to 100mA, however I'm wondering if this is needed: http://ww1.microchip.com/downloads/en/A ... ations.pdf

Re: XCORE-200 VBUS

Posted: Thu Aug 03, 2017 11:42 am
by akp
I don't have a lot of experience with XMOS USB but I have used USB device for years. To conform to the spec you might need something like the dual current limit. However, it really shouldn't affect the performance of the PC or the XMOS chip or cause any USB issues; I've never done it and I've never had a problem.

Re: XCORE-200 VBUS

Posted: Thu Aug 03, 2017 2:31 pm
by mon2
@RichRock, that is an interesting find:

http://ww1.microchip.com/downloads/en/A ... ations.pdf

but the article in our opinion is dated and is now 17 years old. Strongly believe there are single device solutions that will achieve the same support at a lower cost and smaller footprint with the soft start features.

Consider for example,

AP2331 = 200 mA limit with soft start to limit in-rush currents

https://www.diodes.com/assets/Datasheets/AP2331.pdf

http://www.mouser.com/search/refine.asp ... =183556915

or

one of the many other choices (upto 500mA) - select a suitable USB 2.0 compliant load switch with a soft start feature and you should be fine:

https://www.diodes.com/products/power-m ... tab-finder

From a rough cost estimate, the article you cited will amount to around $2 USD + assembly fees for the mix of external parts = too costly for this required protection. A single device can replace all of these discretes. The front of the referenced article is doing just that, performing a delayed (soft start) ramp up and current limit of in-rush currents. Best to wire up a device for testing before moving to PCB layout.

Re: XCORE-200 VBUS

Posted: Thu Aug 03, 2017 5:37 pm
by RitchRock
Thank you very much for the insight - the cost / component count was my main concern with having to conform to the spec in the article I referenced.

One more question in this regard - if the device is to be either be powered from Vbus OR external +5v supply (or for that matter a battery), how should the Vbus pin on the XMOS chip be connected?