# Connecting signalling lines of the multiple devices with different power sources

I started to develop a simple device and this question arose. I need to make some uC device that will be connected to the PCI-E bus via M.2 socket. And I need this device to be working even during computer sleep. Since computer (as probably mostly any other) has only 5v standby power, I decided to power it using 5v standby power. To to that, I've put some 5v to 3v3 converter to my device. Then I started to worry, is it safe at all? Of course, all ground planes are connected to the single ground circuit.

To make my question more common: assume, there are 2 devices powered by the same voltage but different power sources, each with its own power source. These devices have some data lane to exchange data. Is it safe to connect data lanes, as long as they have common ground? It's unlikely that both power sources will be completely identical, for example, for 3v3 one could be 3v20 and second 3v33, so logical "1" levels will differ. What is the solution for such a case - for both particular PCI-E case, and for common case with multiple uCs, powered from different sources with common ground exchanging data? Is it safe to connect them directly?

Update: for example, XIO1100 chip defines levels tolerance as "+0.5v" Is it standard? Cannot find any references to that.

• I don't see any problem. As long as the ground is common and you don't backfeed power. PCI-E will have very complicated rules, but I guess you're not actually connecting to the PCI-E bus, just using it for power. – user253751 Jul 24 '20 at 18:24
• I use pcie bus, definitely. And want to power my pcie device from different power supply, that was my question. Ok, to rephrase my question - what is allowed difference in level voltages? I use level shifters to connect 3v3 and 5v uCs, it’s reasonable. But what is a threshold when level shifter must be used? Especially for pcie? – BbIKTOP Jul 24 '20 at 18:28
• Well that depends on where the signal is coming from, and where it's going to. If the voltage is going to break the chip it's connected to, then you need to convert the voltage. – user253751 Jul 24 '20 at 18:36
• Also I don't believe you're using the PCIe data bus with a microcontroller, because the data bus runs at a minimum speed of 2.5GHz – user253751 Jul 24 '20 at 18:37
• Yes, what voltage difference could break the chip? Especially for PCIE device? Is the 0.5v difference dangerous, for example? – BbIKTOP Jul 24 '20 at 18:38

I'm going to assume you have a common reference voltage (a.k.a. ground/GND), which is pretty much a given for PCIe.

As a general rule, small differences in supply voltage will have little effect. For example you could have everything powered off a single supply, but voltage drop across a board may result in one device running of a marginally lower voltage. There is no such thing as two parts of a design having the exact same voltage, even if they are powered from the same regulator.

If you look at datasheets for most devices, they will give you a range for there output voltages - the logic 0 wont be quite 0V, and the logic 1 wont be quite VCC. The inputs again will have an acceptable range, which usually extends above VCC and below GND - this margin is typically on the order of 0.3V or 0.5V, but read the datasheet for your device, only that can tell you what the margins are.

Now, that being said, apart from the reset signal (PERSTn) and some other sideband signals which can be omitted (WAKE, etc.), the signals in PCIe are not CMOS logic levels. The device may run at 3.3V, but the high speed serial lines do not.

The serial lines use CML, or current mode logic - the signals are represented by a positive differential current for a 1, and a negative differential current for a 0. The voltage is typically around 0.9V at the receiver, which is set by a the amount of current flowing through a fixed termination resistor.

For CML standards, the power supplies are completely irrelevant. In fact because the lines must be AC coupled using series capacitors, small differences in the ground levels will actually have little impact as well.

For the clock line, HCSL is used, which again is a differential voltage standard, with an eye of about 0.7V with a 0.35V DC offset. Again, completely different from your 3.3V power supplies.

The PERSTn signal is CMOS logic levels, but this is low speed, so a simple wide-input buffer (SN74LV1T34 for example) could be used to level shift the signal and cope with the supply of the host being slightly higher or lower than the device. But this would only be needed if your supplies were out of range - again, you did check the data sheet, didn't you?

I have to be honest and say that you need to do some careful research before you attempt to design such a board - PCIe is very high speed (2.5Gbps/5Gbps/8Gbps/+), and is not very forgiving. Routing of such designs is not trivial, requiring careful consideration to differential routing, impedance matching, length matching, phase matching, ground plane layout, power supply decoupling, etc.

• I added a link to the datasheet. I understand in common how it works, and not going to implement phy myself. I just was not sure, is 0.1-0.2v supply voltage difference is ok. For example, it is stated in the XIO1100 datasheet, that 3v3 +0.5v is ok. Does it mean that it is ok even in case devices are powered separately, and one device has 3v3 but another, like XIO1100, has 3v5? – BbIKTOP Jul 24 '20 at 19:26
• @BbIKTOP $3.5 << (3.3+0.5)$, so yes, that would be in range. – Tom Carpenter Jul 24 '20 at 19:30
• Even in case different power supplies used. Got it, thank you! I was not sure is it applicable to the case with different power sources. – BbIKTOP Jul 24 '20 at 19:31

As long as the signal voltage is the correct voltage that the receiving device expects, and the ground is connected, it doesn't matter how you got that voltage.

• What is "the correct voltage" especially for PCIE? I have an example in my question. If it is specified that logical 1 level is 3v3, and one device uses 3v2, and another 3v4, would it harm any of the devices? What is the tolerance? – BbIKTOP Jul 24 '20 at 19:01
• @BbIKTOP The PCIe protocol specification will tell you. – user253751 Jul 24 '20 at 19:03
• Nice answer lol ))) – BbIKTOP Jul 24 '20 at 19:03