An unofficial, read-only Hacker News reader.

Splitting USB-C: USB 3 and USB 2 on one port (opens external site)

158 points by fcjr 5 days ago | www.frankchiarulli.com | 112 comments on HN

View full thread · View on Hacker News

Comment thread (15)

  1. > Learning the details of USB-C connectors makes me really appreciate the simplicity of USB-A: just 4 pins/wires achieves up to 480Mbps of half duplex speed, which is more than enough for many use cases.

    You're welcome to do that with USB-C, it has the VCC/GND/D+/D- wires and USB 2.0 support as a minimum requirement.

    > edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.

    USB-C is not the same as USB the protocol, it's a connector standard that supports many different transmission methods. It supports USB 2, USB 3, Thunderbolt, DisplayPort, etc.

    PCIe is generally considered a serial bus too, yet has many parallel lanes, each of which is hooked up behind a SerDes (serializer/deserializer).

    Having multiple serial lanes generally doesn't make something a parallel bus.

    Replies (1)
    1. > Having multiple serial lanes generally doesn't make something a parallel bus.

      What does make it a parallel bus?

      Replies (4)
      1. At a guess… that the meaning of a high/low level on one of the pins is not independent of the high/low level of the other pins?

        I.e. you have 8 wires which together give a single number between 0-256 per clock cycle, rather than 8 independent channels each with its own independent stream of 1’s and 0’s on it

      2. Generally a parallel bus transmits an entire N-bit message at once, as N separate wires, with a single shared clock.

        PCI has 32 address/data wires, and a whole 32 bit message is output at once on the bus and a clock is toggled when the data is valid along with some contextual information.

        PCIe for example has many lanes, each lane has a shift register that turns an N-bit message into N 1-bit messages, which are shifted back in on the other end and turned back into an N-bit message. There's no shared clock, each lane operates essentially independently, and the clock is recovered from the signals on the differential pair. The controller then turns each part of the message each serial lane transmits into one word.

      3. A parallel bus has a single clock and fixed timings between all signals (ideally sampled at the same time, but in practice there's skew compensation nowadays). For multiple serial lanes they each have their own clock, and they're combined together at a higher level.
        Replies (1)
        1. Thanks!
      4. > What does make it a parallel bus?

        The basic difference between a parallel and a serial communication channel is the number of electrical conductors used at the physical layer to convey bits. [1]

        In usb, each differential pair (dp/dm) is driven by a serial interface engine (sie); and even though it is a pair, it is effectively half duplex and serial. Multiple dp/dm pairs does not make it parallel.

        [1] https://en.wikipedia.org/wiki/Parallel_communication

        Replies (1)
        1. So you mean "Quad Serial Peripheral Interface" is parallel bus ?
          Replies (2)
          1. > So you mean "Quad Serial Peripheral Interface" is parallel bus ?

            It's not clear what your question is trying to imply or query. What does SPI got to do with USB?

            https://onlinedocs.microchip.com/oxy/GUID-450989FA-38E4-4D68...

            Replies (1)
            1. I mean how do define which bus is "serial" or "parallel".

              Continue this thread (1 replies) →

          2. Yes. Silly name, but so it goes. PCIe and USB are different because there isn't a shared clock, which in practice means that there are not super strict requirements on the relative timing of signals across each lane (which is the main reason high-speed interconnects have generally moved to a 'multiple serial lanes' approach).