Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Let's make a Pi Pico 2 powered video card.

Let's make a Pi Pico 2 powered video card.

Scheduled Pinned Locked Moved Uncategorized
retrocomputing
144 Posts 30 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

    We have a picture. It isn't perfect - there's some flickery bits - I don't know if dot crawl is the right word. Not sure what's going on there.

    Driving sync signals with a single image buffer was untenable - it's really difficult to have seamless, continuous DMA on the Pico. Every time you restart DMA there's a discontinuity, and if the thing you're DMA'ing represents every single clock cycle in a video field, inserting extra time messes up your picture.

    So separate PIO programs generate hsync and vsync, and we restart our now image-only DMA in vsync, just like the OG Glyphblaster does, which we already know works.

    I think the crawling may be that the color output is not perfectly aligned with the dot clock.

    gloriouscow@oldbytes.spaceG This user is from outside of this forum
    gloriouscow@oldbytes.spaceG This user is from outside of this forum
    gloriouscow@oldbytes.space
    wrote last edited by
    #68

    I'm starting to think a pico is not the appropriate thing to build a video card with.

    all my fun ideas always end up with me concluding i should use an FPGA.

    FPGAs are like the crabs of electronics projects. everything wants to turn into an FPGA if you give it enough time.

    ldcd@social.treehouse.systemsL gloriouscow@oldbytes.spaceG fraggle@social.coopF jordan@sometimes.socialJ arclight@oldbytes.spaceA 6 Replies Last reply
    0
    • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

      I'm starting to think a pico is not the appropriate thing to build a video card with.

      all my fun ideas always end up with me concluding i should use an FPGA.

      FPGAs are like the crabs of electronics projects. everything wants to turn into an FPGA if you give it enough time.

      ldcd@social.treehouse.systemsL This user is from outside of this forum
      ldcd@social.treehouse.systemsL This user is from outside of this forum
      ldcd@social.treehouse.systems
      wrote last edited by
      #69

      @gloriouscow is the pico generating the dot clock? EDIT: the same one generating the pixel data

      gloriouscow@oldbytes.spaceG ldcd@social.treehouse.systemsL 2 Replies Last reply
      0
      • ldcd@social.treehouse.systemsL ldcd@social.treehouse.systems

        @gloriouscow is the pico generating the dot clock? EDIT: the same one generating the pixel data

        gloriouscow@oldbytes.spaceG This user is from outside of this forum
        gloriouscow@oldbytes.spaceG This user is from outside of this forum
        gloriouscow@oldbytes.space
        wrote last edited by
        #70

        @ldcd Yeah. For the moment.

        1 Reply Last reply
        0
        • ldcd@social.treehouse.systemsL ldcd@social.treehouse.systems

          @gloriouscow is the pico generating the dot clock? EDIT: the same one generating the pixel data

          ldcd@social.treehouse.systemsL This user is from outside of this forum
          ldcd@social.treehouse.systemsL This user is from outside of this forum
          ldcd@social.treehouse.systems
          wrote last edited by
          #71

          @gloriouscow oh there's no clock on the CGA port just HSYNC VSYNC and it's an alignment issue?

          gloriouscow@oldbytes.spaceG 1 Reply Last reply
          0
          • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

            I'm starting to think a pico is not the appropriate thing to build a video card with.

            all my fun ideas always end up with me concluding i should use an FPGA.

            FPGAs are like the crabs of electronics projects. everything wants to turn into an FPGA if you give it enough time.

            gloriouscow@oldbytes.spaceG This user is from outside of this forum
            gloriouscow@oldbytes.spaceG This user is from outside of this forum
            gloriouscow@oldbytes.space
            wrote last edited by
            #72

            I do have a de10 nano FPGA board. It's in my MiSTer. Which I never use!

            2ndnaturedev@mastodon.nu2 gloriouscow@oldbytes.spaceG 2 Replies Last reply
            0
            • ldcd@social.treehouse.systemsL ldcd@social.treehouse.systems

              @gloriouscow oh there's no clock on the CGA port just HSYNC VSYNC and it's an alignment issue?

              gloriouscow@oldbytes.spaceG This user is from outside of this forum
              gloriouscow@oldbytes.spaceG This user is from outside of this forum
              gloriouscow@oldbytes.space
              wrote last edited by
              #73

              @ldcd correct there's no clock line on the video connector. The monitor has PLLs to synchronize to vertical and horizontal frequencies within a certain range. A CGA monitor expects a 15.7kHZ hsync, for example. The signal, although digital in color, is put through analog circuit and so the monitor does not have to sample colors.

              The Pi in the rgb2hdmi is sampling the color at a certain period within a dot window. If I am writing colors out of phase with the sampling then we will have various flickering going on. Why only in those specific areas? I am not really sure.

              ldcd@social.treehouse.systemsL 1 Reply Last reply
              0
              • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                I'm starting to think a pico is not the appropriate thing to build a video card with.

                all my fun ideas always end up with me concluding i should use an FPGA.

                FPGAs are like the crabs of electronics projects. everything wants to turn into an FPGA if you give it enough time.

                fraggle@social.coopF This user is from outside of this forum
                fraggle@social.coopF This user is from outside of this forum
                fraggle@social.coop
                wrote last edited by
                #74

                @gloriouscow I think it's easy to just default to implementing solutions in software. There are plenty of good reasons why - the tooling is usually better and more familiar, it requires less specialized knowledge, it's often easier to throw together the first PoC and to extend it later.

                Often the "proper" solution is that you probably should be working at a lower level - whether that's FPGAs or discrete components. The classic example is using an Arduino to make a blinking light. I don't think there should be any shame in it no matter what solution one uses, but good engineering involves knowing when you've outgrown the current approach

                gloriouscow@oldbytes.spaceG 1 Reply Last reply
                0
                • fraggle@social.coopF fraggle@social.coop

                  @gloriouscow I think it's easy to just default to implementing solutions in software. There are plenty of good reasons why - the tooling is usually better and more familiar, it requires less specialized knowledge, it's often easier to throw together the first PoC and to extend it later.

                  Often the "proper" solution is that you probably should be working at a lower level - whether that's FPGAs or discrete components. The classic example is using an Arduino to make a blinking light. I don't think there should be any shame in it no matter what solution one uses, but good engineering involves knowing when you've outgrown the current approach

                  gloriouscow@oldbytes.spaceG This user is from outside of this forum
                  gloriouscow@oldbytes.spaceG This user is from outside of this forum
                  gloriouscow@oldbytes.space
                  wrote last edited by
                  #75

                  @fraggle

                  I didn't know how to program Picos a month ago, now I do. I will bet good money future me will not be afraid of FPGAs, but they scare current me a lot

                  1 Reply Last reply
                  0
                  • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                    @ldcd correct there's no clock line on the video connector. The monitor has PLLs to synchronize to vertical and horizontal frequencies within a certain range. A CGA monitor expects a 15.7kHZ hsync, for example. The signal, although digital in color, is put through analog circuit and so the monitor does not have to sample colors.

                    The Pi in the rgb2hdmi is sampling the color at a certain period within a dot window. If I am writing colors out of phase with the sampling then we will have various flickering going on. Why only in those specific areas? I am not really sure.

                    ldcd@social.treehouse.systemsL This user is from outside of this forum
                    ldcd@social.treehouse.systemsL This user is from outside of this forum
                    ldcd@social.treehouse.systems
                    wrote last edited by
                    #76

                    @gloriouscow hmm I wonder if you're seeing some crosstalk between the different lines? Breadboards tend to have a lot of parasitics

                    ldcd@social.treehouse.systemsL 1 Reply Last reply
                    0
                    • ldcd@social.treehouse.systemsL ldcd@social.treehouse.systems

                      @gloriouscow hmm I wonder if you're seeing some crosstalk between the different lines? Breadboards tend to have a lot of parasitics

                      ldcd@social.treehouse.systemsL This user is from outside of this forum
                      ldcd@social.treehouse.systemsL This user is from outside of this forum
                      ldcd@social.treehouse.systems
                      wrote last edited by
                      #77

                      @gloriouscow hmm actually I don't think that would do it

                      ldcd@social.treehouse.systemsL 1 Reply Last reply
                      0
                      • ldcd@social.treehouse.systemsL ldcd@social.treehouse.systems

                        @gloriouscow hmm actually I don't think that would do it

                        ldcd@social.treehouse.systemsL This user is from outside of this forum
                        ldcd@social.treehouse.systemsL This user is from outside of this forum
                        ldcd@social.treehouse.systems
                        wrote last edited by
                        #78

                        @gloriouscow dumb question but have you checked HSYNC and VSYNC with a scope? I've had some monitors (although HDMI so probably quite different) where I've inverted or neglected one or the other and the PLL still sorta locks and you get an image

                        1 Reply Last reply
                        0
                        • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                          I do have a de10 nano FPGA board. It's in my MiSTer. Which I never use!

                          2ndnaturedev@mastodon.nu2 This user is from outside of this forum
                          2ndnaturedev@mastodon.nu2 This user is from outside of this forum
                          2ndnaturedev@mastodon.nu
                          wrote last edited by
                          #79

                          @gloriouscow A bit more expensive than 2 x $5 though ๐Ÿ˜…

                          gloriouscow@oldbytes.spaceG 1 Reply Last reply
                          0
                          • 2ndnaturedev@mastodon.nu2 2ndnaturedev@mastodon.nu

                            @gloriouscow A bit more expensive than 2 x $5 though ๐Ÿ˜…

                            gloriouscow@oldbytes.spaceG This user is from outside of this forum
                            gloriouscow@oldbytes.spaceG This user is from outside of this forum
                            gloriouscow@oldbytes.space
                            wrote last edited by
                            #80

                            @2ndNatureDev

                            I don't think you need anything near that to make a CGA, but yeah, anything with an FPGA is going to be a bit more expensive.

                            1 Reply Last reply
                            0
                            • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                              I do have a de10 nano FPGA board. It's in my MiSTer. Which I never use!

                              gloriouscow@oldbytes.spaceG This user is from outside of this forum
                              gloriouscow@oldbytes.spaceG This user is from outside of this forum
                              gloriouscow@oldbytes.space
                              wrote last edited by
                              #81

                              Right. This isn't completely baffling or anything

                              gloriouscow@oldbytes.spaceG robdaemon@hachyderm.ioR isabel@chaos.socialI 3 Replies Last reply
                              0
                              • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                                Right. This isn't completely baffling or anything

                                gloriouscow@oldbytes.spaceG This user is from outside of this forum
                                gloriouscow@oldbytes.spaceG This user is from outside of this forum
                                gloriouscow@oldbytes.space
                                wrote last edited by
                                #82

                                Oh, wait, I remember this level from ZZT.

                                gloriouscow@oldbytes.spaceG 1 Reply Last reply
                                0
                                • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                                  Oh, wait, I remember this level from ZZT.

                                  gloriouscow@oldbytes.spaceG This user is from outside of this forum
                                  gloriouscow@oldbytes.spaceG This user is from outside of this forum
                                  gloriouscow@oldbytes.space
                                  wrote last edited by
                                  #83

                                  I think the elf needs food badly

                                  gloriouscow@oldbytes.spaceG 1 Reply Last reply
                                  0
                                  • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                                    I think the elf needs food badly

                                    gloriouscow@oldbytes.spaceG This user is from outside of this forum
                                    gloriouscow@oldbytes.spaceG This user is from outside of this forum
                                    gloriouscow@oldbytes.space
                                    wrote last edited by
                                    #84

                                    okay this isn't that confusing

                                    for example, these are the snake pins. you can choose from left snakes or right snakes

                                    Link Preview Image
                                    gloriouscow@oldbytes.spaceG rotopenguin@mastodon.socialR 2 Replies Last reply
                                    0
                                    • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                                      Right. This isn't completely baffling or anything

                                      robdaemon@hachyderm.ioR This user is from outside of this forum
                                      robdaemon@hachyderm.ioR This user is from outside of this forum
                                      robdaemon@hachyderm.io
                                      wrote last edited by
                                      #85

                                      @gloriouscow this seems like something @paulrickards would generate and send to his plotter

                                      paulrickards@mastodon.socialP 1 Reply Last reply
                                      0
                                      • gloriouscow@oldbytes.spaceG gloriouscow@oldbytes.space

                                        I'm starting to think a pico is not the appropriate thing to build a video card with.

                                        all my fun ideas always end up with me concluding i should use an FPGA.

                                        FPGAs are like the crabs of electronics projects. everything wants to turn into an FPGA if you give it enough time.

                                        jordan@sometimes.socialJ This user is from outside of this forum
                                        jordan@sometimes.socialJ This user is from outside of this forum
                                        jordan@sometimes.social
                                        wrote last edited by
                                        #86

                                        @gloriouscow are DSPs horribly unfashionable now? I remember for a minute in the 90s, everything was a DSP

                                        1 Reply Last reply
                                        0
                                        • robdaemon@hachyderm.ioR robdaemon@hachyderm.io

                                          @gloriouscow this seems like something @paulrickards would generate and send to his plotter

                                          paulrickards@mastodon.socialP This user is from outside of this forum
                                          paulrickards@mastodon.socialP This user is from outside of this forum
                                          paulrickards@mastodon.social
                                          wrote last edited by
                                          #87

                                          @robdaemon @gloriouscow Totally, I'd plot that ๐Ÿ™‚

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups