Author Topic: USB isolator to prevent earth/ground loop when connecting microcontroller to PC  (Read 11654 times)

0 Members and 1 Guest are viewing this topic.

Offline TadaspadasTopic starter

  • Newbie
  • Posts: 9
  • Country: gb
Hello everyone,

I am facing a ground/earth loop problem when connecting my device to the PC through the USB cable. The device has a sensor immersed in conductive water together with other electronics there, some of which are potentially connected to the earth. When I want to log data I connect the microcontroller through the USB cable to a PC workstation and suddenly I create an earth loop through the socket and the grid. The microcontroller is sending data to the computer at 2 Hz frequency with a baud rate of 115200.

In order to prevent this issue, I should use an optocoupler or other type of isolator. The question is whether these cheap 12 Mbps isolators will be quick enough to transfer data to the computer and what potential alternatives do I have?

If any of you have used good USB isolators, please give me your recommendations.

Kind regards,
Tadas
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3036
  • Country: us
There are high-speed optoisolators, e.g. the 6n135/6 rated for 1 megabaud:

https://www.vishay.com/docs/83604/6n135.pdf

Also found this forum thread:

https://www.eevblog.com/forum/reviews/chinese-usb-isolator-test/
« Last Edit: June 17, 2021, 02:18:37 pm by ledtester »
 

Offline TadaspadasTopic starter

  • Newbie
  • Posts: 9
  • Country: gb
Hi ledtester,

Thanks for your contribution. However, I think it is a bit misleading suggestion. I am talking about full microUSB isolation, not only a single line optocoupler, as you identified in the link above.

Also, to add more info to the case, I would prefer a complete device rather than spare components, due to a short time scale as this unexpected problem needs tp be resolved quickly. Thanks
 

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7856
  • Country: us
You can get the Analog Devices eval board:

https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/cn0419

As far as whether a particular cheapo isolator from Aliexpress will work in your application, it's hard to tell and you may just have to try a few.  I would think even the slow ones would be fast enough, but there are always random issues that can come up.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: Tadaspadas

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2603
  • Country: us
What is the device that you are connecting to the PC? Is it a microcontroller in a device you made, or is it a USB to serial adapter or something?  Honestly chances are the answers to those questions don't really matter because the 12Mbps that most of those isolators offer is a hundred times more throughput than the 115kbaud you need to transport, so even with protocol overhead that shouldn't be an issue at all.  I think most of the ones you find on the internet use the same AD4160/3160 parts, so all should perform about the same as the CN0419 eval board you can get directly from Analog Devices.  It may be more a of a question how good their isolated power supplies are, especially if your device is relatively high power, but if necessary you should be able to provide a separate power supply and only use the isolator to carry the data.
 
The following users thanked this post: Tadaspadas

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2300
  • Country: gb
+1 for the ADUM3160

It's used on the USB isolators you can find on eBay, e.g.
https://www.ebay.co.uk/itm/324127452071

 
The following users thanked this post: Tadaspadas

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: gb
  • Recovering Electrical Engineer
I've also used the CN0419 and it worked fine. Not cheap, but probably chepaer than blowing up your kit.
USB over network wired or wirelss is a bit slow but very cheap to implement. USB over wire is by definition isolated. You can upgrade the magnetics if you need to. 4kV is avaialble.
USB to bluetooth ADU2B02P?? Never tried it. Hate bluetooth.
 
The following users thanked this post: Tadaspadas

Offline TadaspadasTopic starter

  • Newbie
  • Posts: 9
  • Country: gb
Thank for all contributions.

To ajb,
What is the device that you are connecting to the PC? Is it a microcontroller in a device you made, or is it a USB to serial adapter or something?
I am using an arduino Due microcontroller board in this prototype. Everything inside the box, including my own made PCB, is powered by isolated power supply, so there is no earth tied connection coming to the main system. Investigations shown that the USB connector causes the main issue. I have read about these ADUM4160 modules and it seems that it is mainly used in all cheap USB isolators, while others rely on a better Silanna ICE09USB chips (which is discontinued already for a couple of years).

Also, it is worth mentioning that I am not powering anything through the USB port, since Arduino Due is supplied from +12V "inside the box" converter. This ground/ earth in this case is just a reference for USB serial data transfer.
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2603
  • Country: us
Yeah, your application isn't terribly demanding so I doubt that any of those isolators would be a problem as long is they're not *complete* garbage.  Alternatively, you could redirect your output to one of the UARTs on the Arduino and connect it to an offboard USB-Serial adapter through a regular digital isolator IC (or even optocouplers).  That would be a good deal cheaper and if you've already got a couple of optos and one of those little FTDI boards (or equivalent) on hand you've got your solution right there.
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6260
  • Country: fi
    • My home page and email address
I regularly use cheap eBay ADuM3160-based isolators with Arduino-compatible microcontrollers.  They are direct implementations of the datasheet, and only the isolated DC-DC converter on them varies (providing isolated 5V from the host computer); they also typically provide less power than they draw from the host (due to losses).  I would not expect more than 350mA (while drawing max. 500mA from the host computer).

In Europe, the Olimex USB-ISO is a viable option too.

The ADuM3160 datasheet is short and the circuit really is very simple, and the CN0373 reference design (lower left corner of figure 1) shows you really only have a couple of resistors (24 Ohm 1% for 12 Mbit/s operation, none for 1 Mbit/s) and a couple of capacitors, and maybe a ferrite bead; plus whatever circuitry you need for the isolated 5V-5V DC-DC conversion.  Which isn't much.

Personally, I just checked the DC-DC converter on my cheapies when I bought them, and verified they are isolated DC-DC converters (and they were), and they seem to work absolutely fine for me.  (Whenever I poke around with the connections on my microcontrollers, I use an isolator as a final safety measure against my own butterfingery.  In theory, USB should be tolerant of even shorting USB 5V to ground, but with my luck, I'd manage to release the Magic Smoke without the isolator somehow.)

Do note that the ADuM3160-based ones typically have a dip switch selecting 1 MBit/s (low-speed USB) and 12 MBit/s (full-speed USB); I always use mine in the 12 MBit/s mode.  These do limit the speed, and high-speed USB (480 MBit/s) wont work – or rather, they work, but will be limited to 12 MBit/s.
Using Teensies and ATmega32u4 Pro Micro clones (with Arduino Leonardo boot loaders), I get the same ~ 1 Mbyte/sec transfer rate over the isolator as I do without.  (These all have native USB, and not an USB-to-serial converter like most Arduinos have.)
« Last Edit: June 17, 2021, 05:03:53 pm by Nominal Animal »
 
The following users thanked this post: perieanuo

Offline fordem

  • Regular Contributor
  • *
  • Posts: 234
  • Country: gy
There's perhaps a much simpler approach - use a laptop and power it off of the battery when isolation is required.

This, I believe, you will find is the norm in the UPS industry, field techs carry laptops which are required to perform diagnostic tests on units that should be properly grounded, but may not be, depending on the fault that particular unit may have developed.  I've seen Dell Latitudes used with dual battery slots, those can be kept running without AC power for as long as you have charged batteries available, I currently use a T-series Thinkpad with one internal & one external battery - this like the Dell units, can be run without AC power for as long as there are charged batteries.
 
The following users thanked this post: EEEnthusiast

Online Miyuki

  • Frequent Contributor
  • **
  • Posts: 905
  • Country: cz
    • Me on youtube
Here is not yet available any high-speed USB isolator?  :-//
 

Online Gyro

  • Super Contributor
  • ***
  • Posts: 9505
  • Country: gb
Here is not yet available any high-speed USB isolator?  :-//

I believe there are a few fully packaged off the shelf commercial products, but at high cost.

You need to check their specs very carefully to make sure you aren't accidentally buying a USB2 full speed rather than USB2 high speed. Some advertisements are quite misleading.
Best Regards, Chris
 
The following users thanked this post: Someone

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 3719
  • Country: us
 

Offline bson

  • Supporter
  • ****
  • Posts: 2270
  • Country: us
You could also modify your board to have a floating VCP serial chip (such as Silabs CP210x) powered off USB.  Then all you need is to isolate RX/TX with a pair of optocouplers between the VCP IC and your microcontroller.  This way you get all the convenience of plugging directly in to USB on a host or hub, without additional isolator boxes and stuff.
« Last Edit: June 17, 2021, 11:32:11 pm by bson »
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Here is not yet available any high-speed USB isolator?  :-//
There is - it's called a Raspberry Pi running USB/IP.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: Gyro

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6260
  • Country: fi
    • My home page and email address
There's perhaps a much simpler approach - use a laptop and power it off of the battery when isolation is required.
I do that too.  I personally don't need the isolator to break ground loops, but to protect my more expensive hardware from my butterfingery when I experiment with microcontrollers.  Technically, USB is supposed to handle even VUSB-GND shorts indefinitely, but spending 8-18€ for an isolator to be certain was a no-brainer to me.

The ones I got off eBay do have nice isolation, BTW, typically 1 kV (due to the cheaper DC-DC converters used).  They really are very simple devices, with just a few passives (resistors and capacitors) in addition to the ADuM3160 and DC-DC isolator parts.  There is nothing to cut out to reduce price, so as long as those two components are legitimate, and the board itself looks okay (not a reject or something), they really are acceptable for the task here.

The Olimex one has one very useful additional feature: you can use an isolated DC supply, 8 - 15 VDC, to supply up to 750mA at 5VDC to the device.  This supply is not isolated from the device, it is directly provided, so you do need to use an isolated AC-DC supply.

If it matters any, putting an ADuM3160 to your own design in externally provided devices, is similarly trivial.  Keep traces short and according to the datasheet, use the recommended passives, and it will Just Work.

(Similar ground loop and noise issues occur with 3D printer and other robotics controller boards, if connected to a PC via USB.  These controllers almost always share motor ground with logic ground, you see.  This is also why most 3D printers are not connected to your PC via USB so you could control them directly from software (and disconnect the USB after "uploading" the files to an SD card), and instead you have to use a physical SD card to transfer the files.)
 

Offline croma641

  • Contributor
  • Posts: 40
  • Country: it

There's a new T.I. USB2 ISOUSB211 High/Full/Low Speed Isolated USB Repeater, now in pre-production :


1 Features
• Compliant to USB 2.0
• Supports low speed (1.5 Mbps), full speed (12
Mbps) and high speed (480 Mbps) signaling
• Automatic speed and connection detection
• Programmable equalization to compensate board
trace loss in high speed mode
• CDP advertising on downstream side
• Supply OK indication on opposite side
• Supports automatic role reversal
• High CMTI: 100 kV/μs
• VBUS voltage range: 4.25 V to 5.5 V
– 3.3 V and 1.8 V internal LDOs
• Meets CISPR32 class B emissions limits
• Ambient temperature range: –40°C to +120°C
• Small footprint 28-SSOP package
• Safety-related certifications:
– 8000-VPK VIOTM and 2121-VPK VIORM
(Reinforced and Basic Options) per DIN VDE
V 0884-11
– 5700-VRMS isolation for 1 minute per UL 1577
– IEC 62368-1, IEC 60601-1 and IEC 61010-1
certifications
– CQC, TUV and CSA certifications
– All certifications planned


https://www.ti.com/store/ti/en/p/product/?p=XISOUSB211DPR


 
The following users thanked this post: Ed.Kloonk, edavid, voltsandjolts, Kalvin, Miyuki, TimCambridge, spostma, Nominal Animal

Offline niconiconi

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: cn
This year I've considered, tested (and am still testing) a few ASIC solutions for 480 Mbps USB galvanic isolation, and I plan to write a detailed article about it, but here's a quick summary. TI's new ISOUSB211 ASIC is going to be the real game-changer, solves the problem completely, and it will also make my entire year's experiments, described below, almost meaningless. If you just want a working 480 Mbps USB 2 solution, don't read this post, just wait for TI's ISOUSB211.

- There are ASICs specifically made for this purpose, for example the Silanna USBB. But they are not available on the open market, so they practically don't exist. On the other hand, I found there are some useful USB ASICs you can actually buy, they're designed for cable length extension. But these chips can be abused for galvanic isolation, with an important caveat: device compatibility and performance is not guaranteed (more on that later).

* WCH CH317 (both CH317Q & CH317L): USB 2.0 extension ASIC via Ethernet. Made by the same company, WCH, known for its CH341 USB serial chips. The CH317 ASIC has a custom USB controller, the USB traffic is converted to Ethernet (but not TCP/IP) traffic in its proprietary protocol and sent to the on-chip Ethernet MAC, then it outputs the data via Gigabit Ethernet's RGMII interface. Just connect a Gigabit Ethernet PHY, and you're good to go. The chip on the far-side converts Ethernet to USB. The Ethernet transformer is for galvanic isolation. If that's not enough, you can also use Ethernet PHY with fiber-optics support for optical galvanic isolation, or - since it's standard Ethernet data in RGMII - even an FPGA for handling it in your own way.

---(USB)---> CH317 ---(RGMII)---> Ethernet PHY ---> Transformer ---> Ethernet cable

Result: Bad performance, no faster than 80-100 Mbps. So while USB 2 HS is technically supported, usefulness is very limited. Basically only usable for flash drives. Don't buy any device based on the CH317.

Why? An educated guess is that USB 2.0 HS is not designed for long-distance communication in mind, but this chip is designed for up-to-kilometer extension, so it possibly uses some underhanded tricks to work around the problem - basically emulating a USB device on the near-side based on the data from the from far side, and vice verse. For example, if the far-side is not ready yet, the near-side may simply fake a NAK to trick the host to wait longer. Obviously such emulation can't be perfect, which limits compatibility, and also with a serious performance penalty.

* Norelsys NS1021: USB 2.0 extension ASIC via CAT-5e/coax/phone line/USB cable. This ASIC has likely a custom USB controller with proprietary protocol, its output is a single-pair of true differential & DC-balanced signal, which then can be sent for transmission over single-pair phone line, CAT-6, or coax. Because it's truly differential, an AC-coupling capacitor or RF transformer can be used for isolation. The variant NS1021E, uses two differential pairs, so a 100 Mbps Ethernet transformer can be used. Full performance is advertised by the company, likely because it's only designed for a 50-meters extension, so it's is much less invasive to the USB logic than CH317.

A potential limitation is that the output uses either full or half-duplex signaling (unsure, not documented), so the signal is bidirectional, not unidirectional, so again, same problem just like USB 2 HS traffic itself - you can't treat it as a standard digital signal output and hook it up to a standard differential transceiver like an FPGA or a SFP+ module, which limits your option. Ethernet or RF transformers cannot be relied upon for isolating serious voltages or high-frequency noises (but at least for the noise, the signal is now truly differential, you can just use common-mode chokes to suppress it).

Result: work in progress.

- USB 3.0 isolation

* VL670/VL671 USB-3 to USB-2 transaction translation ASIC.

There's also a way to solve this problem indirectly, by first creating an isolated pure USB-3 port (USB 3 is a system of its own with its own SSTX/SSRX connections, it's only backward compatible with USB 2 because the USB standard requires all USB 3 port to include the D+/D- connection to a legacy USB 2 controller, so theoretically you can have USB 3 without USB 2 support, which is what we're doing here).

Then, we use the VL670/VL671 USB-3 to USB-2 ASIC to provide USB-2 support. The VL670/VL671 translates the legacy USB 2.0 traffic and transparently upgrades the device to an USB 3.0 SuperSpeed device by emulation. Just like a USB extension controller, this is not a perfect solution, device compatibility is limited due to imperfect emulation. But can be useful.

Why USB 3? Because it's much easier than USB-2.

USB 2 HS (480 Mbps) uses a nonstandard differential signaling scheme that is not truly differential - it also has single-ended signals like Single Ended Zero, essentially making USB 2 HS incompatible with standard differential transceivers, so you must use a USB 2 PHY and work at logic level rather than electrical level. Worse, the signaling has been further bastardized by using half-duplexing, the D+/D- signals are bidirectional, so you actually have to design a USB controller to read the protocol to do bus arbitration. The protocol, due to its synchronous and half-duplex nature, also has timing constricts that can be hard to meet.

On the other hand, USB 3 is much simpler. It uses two pairs of unidirectional, 8b/10b encoded, CML-like differential signals, and operates asynchronously. This type of signal is commonly found in almost all high-speed digital systems. For example, you can literally just run the USB 3 signal into an SFP+ 10 Gigabit Ethernet optical transceiver (an SFP+ 10 Gigabit Ethernet transceiver is protocol-agnostic, it can be used to transmit any differential signal), and bingo, an isolated USB 3 port. Even better, it's fiber-optics, it can easily isolate 10 kV or more, including fast transients. (well, full-spec compliance, with proper support of power management is difficult, but a port that somewhat "works" to a certain degree for many applications is easy to create).

Result: Successful. Almost done by now. VL670/VL671 was a success. Compatibility is good enough for my purposes. the USB 3 to SFP+ transceiver is work in progress, but an early prototype was almost a success. Implementing full-spec compliance, with proper support of power management was originally my long-term goal.

Also attached are two considered but discarded solution.

- The first solution is using a USB 2 PHY, the analog side is D+/D-, and the logic side is the ULPI or UTMI, which is basically a parallel digital data bus, and hook it up to a FPGA. Then use the FPGA to forward its logical status to another FPGA and its USB 2 PHY. Communicate and synchronize the status of both FPGAs with high-speed SERDES, isolate the parallel SERDES interface with high-speed digital isolators. But this is also difficult and it's only an option if you're an USB expert (I'm not), it means you're basically designing a custom USB controller. Also, theoretically, the second FPGA and the SERDES are not necessary, perhaps you can use a single FPGA, two USB PHYs, and put isolation on the ULPI/UTMI interface instead. But this data bus has more serious timing constraints and I'm not sure how practical it is.

Result: idea considered but discarded, difficult and expensive, but can be an option for USB experts. Some industrial products use this solution.

- The second possible solution is Inter-Chip USB or HSIC. It's basically USB but uses LVCMOS logic without analog PHY, avoiding the analog transceiver headache entirely. There are also USB-to-HSIC hub chips to convert USB to HSIC and vice verse. It looked promising and seemed to make things much easier at first glance, I felt like one can just put relatively dumb logic at the HSIC interface without caring too much about the protocol at all. But HSIC is still uses bidirectional, half-duplex signaling, so you still need to create a USB controller to read the protocol, do bus arbitration, with the USB and HSIC-bus latency constraints.

Result: idea considered but discarded.
« Last Edit: November 28, 2021, 07:32:42 am by niconiconi »
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
* WCH CH317 (both CH317Q & CH317L): USB 2.0 extension ASIC via Ethernet. Made by the same company, WCH, known for its CH341 USB serial chips. The CH317 ASIC has a custom USB controller, the USB traffic is converted to Ethernet (but not TCP/IP) traffic in its proprietary protocol and sent to the on-chip Ethernet MAC, then it outputs the data via Gigabit Ethernet's RGMII interface. Just connect a Gigabit Ethernet PHY, and you're good to go. The chip on the far-side converts Ethernet to USB. The Ethernet transformer is for galvanic isolation. If that's not enough, you can also use Ethernet PHY with fiber-optics support for optical galvanic isolation, or - since it's standard Ethernet data in RGMII - even an FPGA for handling it in your own way.

---(USB)---> CH317 ---(RGMII)---> Ethernet PHY ---> Transformer ---> Ethernet cable

Result: Bad performance, no faster than 80-100 Mbps. So while USB 2 HS is technically supported, usefulness is very limited. Basically only usable for flash drives. Don't buy any device based on the CH317.

Why? An educated guess is that USB 2.0 HS is not designed for long-distance communication in mind, but this chip is designed for up-to-kilometer extension, so it possibly uses some underhanded tricks to work around the problem - basically emulating a USB device on the near-side based on the data from the from far side, and vice verse. For example, if the far-side is not ready yet, the near-side may simply fake a NAK to trick the host to wait longer. Obviously such emulation can't be perfect, which limits compatibility, and also with a serious performance penalty.
How does USB/IP using Raspberry Pi compare? Or perhaps the CH317 could perform better with the host side implemented as software communicating via a NIC?

The CH317 could also be interesting to add a USB device port to a PC via a NIC.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Online Miyuki

  • Frequent Contributor
  • **
  • Posts: 905
  • Country: cz
    • Me on youtube
How does USB/IP using Raspberry Pi compare? Or perhaps the CH317 could perform better with the host side implemented as software communicating via a NIC?

The CH317 could also be interesting to add a USB device port to a PC via a NIC.
I expect it to have rather poor performance as you have a slow interrupt response with any user oriented OS. I'm not sure if R Pi or common x64 (it might brute force it at cost of high load) CPU has a fast enough interrupt handler for reaching reasonable speeds even on bare metal levels.
« Last Edit: November 28, 2021, 01:06:37 pm by Miyuki »
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2393
  • Country: gb
  • Recovering Electrical Engineer
 

Online Gyro

  • Super Contributor
  • ***
  • Posts: 9505
  • Country: gb
Save yourself the headache: ADUM3160 from AD

https://www.ebay.co.uk/itm/274596660101?hash=item3fef3c8385:g:gFcAAOSw2Ppfxha-

The ADUM3160 has already been discussed further up the page. The discussions today relater to USB High Speed (480Mbps) isolation -  The ADUM3160 only supports Full Speed (12Mbps).


Edit: The USB hub function on the linked one might be handy in certain situations though, I hadn't seen one of those.
« Last Edit: November 27, 2021, 07:18:33 pm by Gyro »
Best Regards, Chris
 
The following users thanked this post: niconiconi

Offline niconiconi

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: cn
I've just received the XISOUSB211 chip ("X" stands for pre-production preview) I ordered from TI today. I'm still working on the development board design. I'll publish the full design and PCB layout when it's finished.
 

Offline engineer_in_shorts

  • Regular Contributor
  • *
  • Posts: 122
  • Country: gb
Olimex do a USB isolator capable of 12MBit. Stocked in farnell as well. Part number is USB-ISO
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6260
  • Country: fi
    • My home page and email address
Olimex do a USB isolator capable of 12MBit. Stocked in farnell as well. Part number is USB-ISO
Is it really that hard to read the preceding posts for you?  I explicitly mentioned it in post #9, and we moved on to discussing high-speed operation, which is currently not supported by existing cheap isolators, but the TI ISOUSB211 chip as described by niconiconi might change that.

What is with this flood of "I don't have the time to read this thread, so I'll just post more of the same just to make sure even fewer people read the thread" recently?  :rant:

I hope the recent changes Dave made do not encourage that sort of behaviour – but I do fear it really does.  When you cater to the lowest common denominator to get more quantity, you inevitably reduce the overall quality.
 
The following users thanked this post: Ian.M, niconiconi

Offline engineer_in_shorts

  • Regular Contributor
  • *
  • Posts: 122
  • Country: gb
What's wrong with the 12Mbit route?
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6378
  • Country: ca
  • Non-expert
Is it really that hard to read the preceding posts for you?  I explicitly mentioned it in post #9, and we moved on to discussing high-speed operation, which is currently not supported by existing cheap isolators, but the TI ISOUSB211 chip as described by niconiconi might change that.

What is with this flood of "I don't have the time to read this thread, so I'll just post more of the same just to make sure even fewer people read the thread" recently?  :rant:

I hope the recent changes Dave made do not encourage that sort of behaviour – but I do fear it really does.  When you cater to the lowest common denominator to get more quantity, you inevitably reduce the overall quality.

I wouldn't blame it on just new individuals, this happens all the time with older posters who want to get their 2c in, even if its already been said.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 
The following users thanked this post: niconiconi

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
What's wrong with the 12Mbit route?

Perhaps the application requires High Speed USB?
 
The following users thanked this post: niconiconi

Offline niconiconi

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: cn
I've just received the XISOUSB211 chip ("X" stands for pre-production preview) I ordered from TI today. I'm still working on the development board design. I'll publish the full design and PCB layout when it's finished.


Today I'm glad to announce that my first prototype of the TI ISOUSB211 development board is now working. The Texas Instruments chip ISOUSB211 works as advertised, it really is the first USB 2.0 high-speed (480 Mbps, not 12 Mbps) galvanic isolation chip on the open market. All design files are available at https://notabug.org/niconiconi/isousb211

Quote myself.

Quote
Motivation

USB 2.0 is one of the most commonly used data interfaces. Often, implementing galvanic isolation (electrical isolation) is desirable.

* First, galvanic isolation protects the computer from destruction by high voltage transients and faults. It can be used by embedded system developers and hardware hackers to protect their computers from unexpected faults during development or experiments - the most infamous example is the USB Killer, but more practical examples include a short circuit from +12 V to +5 V, or a back-EMF from an electric motor or inductor, which may create a brief transient of several hundreds volts.

* Next, galvanic isolation is useful to stop unwanted conductive electromagnetic interference between the computer, the USB device, and their power supplies. The most common example is a "ground loop" in audio and video systems, but amateur radio operators with cheap, low-EMI-immunity USB software defined radios can potentially find reliefs from noise as well.

* Finally, in hardware development, galvanic isolation allows engineers to make a floating measurement without compromising safety. The signal ground of an oscilloscope input is usually connected to AC mains ground for safety, and the device-under-test (such as a USB gadget) is often also referenced to ground. In this case, one cannot make a measurement between two arbitrary points in the circuit - connecting the "ground" of the oscilloscope probe to a voltage source is effectively a short circuit. To overcome this problem, engineers often "cheat" by disconnecting the protective ground to "float the scope", but it creates a safety hazard and makes the oscilloscope unsafe - a fault within the oscilloscope can energize its entire chassis. The best practice is to "float" the device-under-test instead of the scope itself, which is accomplished by a USB isolator.

Unfortunately, although USB 2.0 isolators for Low Speed (1.5 Mbps) and Full Speed (12 Mbps) are readily available, there are few isolators for High-Speed USB (480 Mbps) interfaces due to the complexity of its protocol. Nevertheless, high-speed USB is required in many applications, such as high-speed data converters, software-defined radios, or logic analyzers.

Previously, the available isolators are either expensive (FPGA-based solutions), difficult to buy (ASIC isolators unavailable on the open market), inconvenient to use (USB over CAT-5 or fiber optics, which requires a receiver and a transmitter), or with many compatibility problems due to technical limitations in the solution, or a combination of these problems. The USB 3.0 fiber optics + VL670 ASIC for 3.0 to 2.0 translation solution, or the CH317 Ethernet extension ASIC solution, which I both described in this thread, are examples of these limitations.

However, the situation has changed. In November 2020, Texas Instruments have released the first 480 Mbps High-Speed USB isolation ASIC to the open market - ISOUSB211. Currently, the chip is in the pro-production preview stage, but the engineering sample chip, XISOUSB211, is already available for purchase.

This project is a development board design for the ISOUSB211 ASIC, to facilitate hardware evaluation and experiments by other developers in the community, hopefully to help solving your USB problems in your systems.

Board Specifications

    Dielectric Withstand Voltage: at least 1000 VDC (likely 3000 VDC, tests needed).
    Creepage & Clearance: 6.4 mm
    Insulation Type: Functional Insulation
    Maximum Operating Voltage: 42.4 VRMS, 60 VDC.
    Output Power: 5 V, 500 mA.

Warning

In industrial and medical applications, galvanic isolation is used to protect equipment and human lives from hazards. It should be clear that this development board, while it indeed has a dielectric withstand voltage of more than 1000 volts, it's not designed, not tested, and should not be used for safety-critical purposes. The operating voltage should stay within the Safety Extra-Low Voltage limit (42.4 VRMS, or 60 VDC). The 1000+ V dielectric withstand voltage represents a measure of immunity to transient voltages, not a voltage for continuous operation.

Theory of Operation

The single-board PCB is physically separated into the primary (host) side and secondary (device) side with an isolation barrier in between. Both sides have independent power and ground planes, and are separated by a 6.4-millimeter gap. Across the gap, there's a ISOUSB211 ASIC for isolated USB signal transmission, an isolated DCDC converter module for power transmission, and two Y-capacitors for EMI suppression.

Signal Transmission

On the primary side, the incoming USB 2.0 high-speed traffic from the USB-C connector is received by ISOUSB211. Then the information is modulated to a suitable form and transmitted to the secondary side of the ISOUSB211 via a tiny 1 pF capacitance across the on-chip SiO2 insulator. The secondary side regenerates this USB 2.0 high-speed traffic using the information from the primary side, and finally, the regenerated electrical signal appears at the USB-A connector at the secondary side.

This process is bidirectional, ISOUSB211 can transmit and receive information at both sides, thus establishing bidirectional High-Speed USB communication. And obviously, ISOUSB211 also contains internal state machines for implementing whatever control logic is required for USB 2.0 protocol and the transmission and regeneration of traffic.

The ISOUSB211 has a dielectric withstand voltage as high as 5700 VRMS, Reinforced Insulation, and a impressive rated working voltage of 1500 VRMS, 2121 VDC. However, this is only a component-level rating, the real-world rating by system-level safety standards can be much lower. For example, according to IEC 60950 and IEC 60664, the 8 mm creepage distance at the chip package already limits the working voltage for Reinforced Insulation to no more than 800 VRMS, 1131 VDC (Material Group 1, Pollution Degree 2) even assuming no additional limitations from the rest of the system. Such limitations indeed exist for this development board - which only has a Functional Insulation rating. See the following sections for more information.

Power Transmission

On the host side, the incoming 5V power is demultiplexed by the TPS2111A power mux chip. When "DC IN" is connected, TPS2111A switches the board to use external DC power, otherwise, the board is powered from the USB port.

Immediately after the TPS2111A, the demultiplexed 5 V power is passed through an LC filter to prevent too much differential-mode noise from entering or leaving the USB port. Then, the filtered 5 V power is first sent to the ISOUSB211 ASIC, which creates 3.3 V local power via its internal LDO. Simultaneously, the 5 V power is also sent to a LMR10510 DC-DC converter to create the 1.8 V core voltage supply for ISOUSB211 (ISOUSB211 does have an internal LDO for 1.8 V as well, but LDO is too inefficient).

Finally, the 5 V power is also sent to an SIP isolated DC-DC converter module to derive an isolated 5 V rail at the secondary side, which then derives 3.3 V and 1.8 V just like how it's done at the primary side. When the 5 V power enters and leaves the DC-DC converter, it's filtered by common-mode chokes to reduce the common-mode noise across the isolation barrier.

The isolated converter module has a Functional Insulation rating, with a dielectric withstand voltage of 3000 VDC for 60 seconds. Note that this dielectric withstand voltage is a measure of immunity to transient voltages, and should not be confused with the rating working voltage. Also, the Functional Insulation means the converter has a low design margin and should be assumed to have no safety guarantees, thus this board design should not be used in safety-critical applications. The continuous operating voltage should stay within the Safety Extra-Low Voltage limit (42.4 VRMS, or 60 VDC).

Better isolated DC-DC converter modules with Reinforced Insulation exist, but those modules have limited suppliers and much more expensive. On the other hand, DC-DC converters in a SIP package are a de-facto standard in the industry with many options. Thus, as a tradeoff, a SIP converter is selected and the development board is designed for Functional Insulation. In addition, even when a DC-DC converter with Reinforced Insulation is used, the board is probably still unable to meet the standard of Reinforced Insulation anyway - Reinforced Insulation involves more than component selection - the whole board must be assumed to contain dangerous voltages and be covered by an insulated enclosure, which obviously is unsuitable for a development board. Thus, this is another reason for this compromise.

EMI Suppression

The primary and secondary side are bridged by two 470 pF, Class-Y capacitors for EMI suppression. These capacitors have a working voltage of 1500 VDC [note: this is not a Class-Y rating, but Vishay's rating for this capacitor] and a dielectric withstand voltage of at least 6000 VDC.

When two separated pieces of metal plates are driven by a potential difference, a dipole antenna is created. Unfortunately, it's exactly what happens in an isolated power supply or signal repeater, and this causes excessive common-mode current and radiated electromagnetic interference. In order to have acceptable EMI/EMC performance, the two isolated power or ground planes must be joined together at high frequency via capacitors to eliminate this potential difference - even though this is undesirable from the perspective of isolation: it reduces the dielectric withstand voltage to the rating of the capacitors, and it also allows more transient energy to flow across the barrier via the capacitance, thus, it represents another design tradeoff.

PCB

A four-layer PCB with controlled impedance is used to route high-speed USB signal. The stackup is Signal, Ground, 1.8 V Power, and Signal. The 4th layer only has a few traces, thus it's filled by a ground pour and joined to the 2nd layer by stitching vias. This provides a bit of interplane capacitance for the 1.8 V core voltage.

This board is fabricated by JLCPCB's JLC7628 stack-up. The dielectric constant of the board is 4.6, the distance between the signal and its reference plane is 0.2 mm.

Ideally, the alternative JLC2313 stack-up offered by the same manufacturer should provide superior performance because the shorter, 0.1 mm distance between the signal and its reference plane - it reduces trace width, crosstalk, EMI, and also increase interconnect density and interplane capacitance. Nevertheless, boards manufactured using the JLC2313 process has a longer lead time and slows down experiments. Be sure to adjust the width of the USB 2.0 traces if JLC2313 is used.


Read more in the link: https://notabug.org/niconiconi/isousb211

FAQ:

Q: Your board sucks!
A: If you don't like my design, you can purchase an official development board from Texas Instruments, which is currently being sold at reasonable price, to be honest. The part number is ISOUSB211DPEVM, available at Mouser and Digikey, and it just costs $50, far below the regular inflated price level for development board.
« Last Edit: January 07, 2022, 08:25:48 am by niconiconi »
 
The following users thanked this post: oPossum, MarkL, thm_w, Miyuki, Nominal Animal, jan28

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
I was searching for a way to isolate I2S for a high power audio amplifier and found this part mentioned as an alternative for isolating USB instead:
https://www.analog.com/en/products/adum4165.html
Less than $7 in quantity.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: spostma, Nominal Animal

Offline moffy

  • Super Contributor
  • ***
  • Posts: 1734
  • Country: au
I was searching for a way to isolate I2S for a high power audio amplifier and found this part mentioned as an alternative for isolating USB instead:
https://www.analog.com/en/products/adum4165.html
Less than $7 in quantity.

Excellent find.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14472
  • Country: fr
For I2S, why not use something like the ADuM251N, which is half the price, instead of isolating USB?
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
For I2S, why not use something like the ADuM251N, which is half the price, instead of isolating USB?
Just a suggestion on a DIY audio forum. In my case, I was looking for something to isolate a surround DSP from an IGBT subwoofer amplifier (which is powered directly from rectified mains) so isolating USB is not relevant to that use case.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf