• josefo@leminal.space
    link
    fedilink
    arrow-up
    24
    ·
    1 day ago

    Don’t forget the serial input for gamepads and joysticks in the dedicated sound board for some reason

    • BigDanishGuy@sh.itjust.works
      link
      fedilink
      arrow-up
      24
      ·
      1 day ago

      Except that wasn’t a serial port, it was midi, and the reason it was on the sound card was because the input was analog.

      Your joystick was just two fancy potentiometers, and your soundcard decoded the voltage on the middle legs into a position.

      Soundcards handled joysticks because they had the fastest ADCs.

      • cmnybo@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 day ago

        They didn’t even use an ADC. They used 555 timers to produce a pulse. They measured the length of the pulse to determine the potentiometer position. Since there are 4 analog inputs, they typically used the 558 timer which is the quad version of the 555.

        • BigDanishGuy@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          I here I thought I had it all figured out. But it does make sense. Doing it wirh an analog signal introduces noise and measuring pulse widths is going to be simpler.

    • mercano@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      Early PC only had 5 card slots, and the only jack on the motherboard was the keyboard. One slot is going to be used by a video card, one’s probably being used by a hard drive controller, one’s probably used by a parallel + serial card. Soundcards also included controller ports to try to save a slot.

      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

        I thought sometimes they called them game ports (for the joystick.)

        I reasoned if you are installing a sound card, you are probably doing some gaming, so it made sense to sort of bundle those together.

    • Daemon Silverstein@calckey.world
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      @josefo@leminal.space @JoMiran@lemmy.ml

      Technically speaking, the joystick involved analog voltages to be converted to digital signals… And what else have ADC (analog-to-digital converters) chips? Soundcards, because ADCs are used to convert mic input, alongside the “line in”, both of which are analog voltages, into PCM signals, which are discrete (as in “non-continuous”) streams of bits. Something inverse happens for “headphone”, “speakers” and “line out” pins: a PCM stream coming from the sound driver is converted to analog voltages using a DAC.

      While other ports also happened to deal with analog<->digital conversion, a soundcard was particularly specialized at this job, alongside graphic (VGA) cards (VGA has lots of analog signals), but graphic cards were already too busy with thousands/millions of pixels and, well, with computation of graphics.

      Other boards aren’t so fitting for analog-digital job. For example: a NIC (Network Interface Card) already deals with digital signal so, theoretically, no conversion is necessary from/to analog. Parallel ports (those for printers) also natively deals with digital signals. Expansion cards with USB ports, same thing. And so on…

      (Apologies for my blank reply if my deletion didn’t federate due to insufficient Sharkey-Lemmy federation, I mistyped enter as I was getting ready to write my message)