Login
You're viewing the fosstodon.org public feed.
  • Apr 12, 2026, 7:24 PM

    Look at this gorgeous hsync pulse. Positive polarity, 15.7KHz like God intended video to be.

    A photo of an oscilloscope showing a positive 5v hsync pulse with a frequency reading of 15.7KHz.
    💬 1🔄 1⭐ 2

Replies

  • Apr 12, 2026, 7:45 PM

    This is a pretty basic entry level oscilloscope feature but I still think it's cool. Sync on NTSC video. You can even pick out a specific scanline to look at.

    Here we can see the HSYNC pulse is inverted compared to the RGBI signal, then we have the color burst immediately after.

    a screenshot from a Siglent oscilloscope connected to a composite video output, showing the negative hsync pulse and NSTC color burst.
    💬 1🔄 0⭐ 0
  • Apr 12, 2026, 7:49 PM

    The color burst is an interesting artifact from the transition from black and white television broadcasts to color ones - in NTSC markets at least. I don't know a damn thing about how PAL works.

    If the set detects the color burst immediately after HSYNC in this zone called the back porch, it knows to expect color video on this scanline.

    a diagram of the NTSC video standard showing the front porch, sync, back porch and color burst.
    💬 3🔄 1⭐ 1
  • Apr 12, 2026, 7:52 PM

    In 80 column mode, the CGA does not emit a color burst - whether intentionally or not is somewhat up for debate, but the hsync width programmed by the BIOS for 80 column text mode is not long enough to allow the composite circuit to trigger color burst generation.

    You can see that here, in this capture of 80 column text mode.

    No color burst 4 u

    an oscilloscope screenshot of a CGA card emitting 80 column text mode over composite.  The hsync and front porch is seen but no color burst.
    💬 1🔄 0⭐ 1
  • Apr 12, 2026, 7:55 PM

    this was a bit of an issue for the developers of the PC demo 8088MPH, because some of its effects run in 80 column mode, and they want to display 1024 colors.

    To work around it they employ one of two tricks - either widening the programmed hsync width using an undocumented feature of the MC6845 where an hsync width of 0 becomes 16, or by setting the overscan to a color. If you set the overscan to yellow, it looks exactly like an an actual color burst that just lasts too long.

    It's enough to fool a CRT.

    💬 1🔄 0⭐ 1
  • Apr 12, 2026, 7:58 PM

    Wanna see something cool?

    You can, with practice, read text off a screen with an oscilloscope.

    I'm not kidding.

    Check this out. I bet you might be able to guess what you're looking at here after a minute or so. Alt text has the spoiler.

    An oscilloscope capture of a C:\ prompt with a blinking cursor, represented as a single yellow line indicating the luma signal of a monochrome composite video output.
    💬 1🔄 3⭐ 1
  • Apr 12, 2026, 8:08 PM

    You just have to roll the scanline dial up and down a bit and you can sort of make out the contours of letters. It's pretty wild.

    Of course this is old hat, TEMPEST and all - spy agencies could reconstruct what was on your screen just with a sensitive antenna picking up the EMF from your monitor cable.

    The same principle still works with HDMI cables, but the range is limited.

    💬 1🔄 0⭐ 0
  • Apr 12, 2026, 8:09 PM

    If there are any black vans parked outside my building I hope you all like AlleyCat.

    💬 1🔄 0⭐ 0
  • Apr 12, 2026, 8:13 PM

    The CGA just sort of half-asses a composite signal. It's not really NTSC. It's just sort of good enough.

    Our sync and back porch are only 4.5uS instead of 4.7, and we emit progressive frames of 262 scanlines instead of interlaced fields of 262.5.

    But televisions were designed to handle tons of slop and noise. After all a signal was likely to be received via bunny ears across god knows how many miles of cornfields, so you can basically get away with signal murder and still put a picture on a screen.

    💬 2🔄 1⭐ 1
  • 💬 0🔄 0⭐ 0
  • Apr 12, 2026, 8:33 PM

    Back on topic. Rainbow CGA project - right. So the clock reset works. This pattern is fixed on the screen with only some crawlies on the edges of the stripes. It's rather uncanny to look at, really.

    You can see the clock trying to drift, but being pulled back into alignment every 30 scanlines or so. I haven't wrapped my head around what those numbers mean yet.

    #retrocomputing #circuitbending

    a photo of a Commodore 1084D monitor showing the CGA game Alleycat again - this time with strange, fixed repeating stripes on the screen.
    💬 1🔄 1⭐ 0
  • 💬 2🔄 5⭐ 0
  • Apr 12, 2026, 8:41 PM

    Right, okay. I think I've just proven the theory. Now it's time to get down to the nitty gritty.

    Unlike the free-running clock of the Atari Pong IV console, the color clock is gated against the 14MHz dot clock.

    The effect of this is that the color clock normally can only produce a maximum of 16 possible phases. How many phases we get out of our modified clock just sort of depends where the edges line up, but there will be unavoidable banding like this as a result.

    💬 1🔄 0⭐ 0
  • Apr 12, 2026, 8:42 PM

    Here we can see we're only getting four unique phases, because the bands repeat green, blue, magenta, brown.

    my mind is still blown over ORANGE. have you ever seen a CGA emit ORANGE???

    💬 2🔄 0⭐ 0
  • Apr 12, 2026, 9:37 PM

    Okay, here's my plan.

    We're gonna skip the composite color chain entirely.

    This is a "New Style" CGA - meaning that it mixes some of the RGB colors into the luma signal. This was a redesign IBM made to the CGA in order to improve contrast on monochrome composite displays, but it also means that with a New Style CGA we have a plausible, standalone luma signal.

    If the color clock chain is gated with no fewer than three separate dot clock inputs - let's just skip it entirely.

    We just need to lift one leg of R8 and attach our custom color clock there.

    With our 157 still selecting the clock input based on DEN, this means we will get a yellow overscan (which should fool the CRT into detecting a color burst) and a smooth, out-of-phase spectrum gradient in the display area.

    a marked up section of the CGA schematics showing where gloriouscow plans to inject the custom clock from the Arduino Giga, at R8
    💬 1🔄 0⭐ 0
  • Apr 12, 2026, 10:15 PM

    So yeah, that works pretty well, but it's not exactly what I envisioned. Ideally I want white to stay white, and black to stay black, and everything else to be contrasting rainbows.

    But we're going to have to override three different clock pins in the composite color chain to pull that off. I probably have to put this aside for now and get ready for VCF east.

    #retrocomputing #circuitbending

    AlleyCat again on a Commodore 1084D monitor, in composite mode.  The color carrier has been overridden right at the beginning of the composite output circuit, creating a rainbow across the screen.
    💬 0🔄 2⭐ 3
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Apr 12, 2026, 8:39 PM

    @gloriouscow PAL is VERY similar to NTSC in how it encodes colour information, it has a colour burst just like NTSC. The main differences are that the colour carrier frequency is different (as are HSYNC and VSYNC, for obvious reasons), and in PAL the phase of the colour carrier alternates every line, hence the name Phase Alternating Line. Compared to NTSC, this allows colour phase errors to cancel each other out, either by using electronics to average out the colour between pairs of lines or relying on the human eye to average out the colour to some extent.

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0