+OLD CS1 Posted June 10 Share Posted June 10 5 minutes ago, visrealm said: I think I should do this. How do I find a moderator? 3 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 10 Author Share Posted June 10 15 minutes ago, OLD CS1 said: Thanks! 2 Quote Link to comment Share on other sites More sharing options...
Artoj Posted June 10 Share Posted June 10 Excellent work Troy!! The Pico is a versatile micro-controller, it looks like my Tango project just got gazumped by your PICO9918, so I decided add your design of the PICO9918 it into the same plug in board that I had for the Tang, so when the upgraded versions with the possible V9938/V9958 versions in the works (or new adaptations??), it will be a great and affordable replacement. Thanks, your design is nicely organised and very easy to follow, finally a replacement for the VDP. Regards Arto. 7 1 Quote Link to comment Share on other sites More sharing options...
RickyDean Posted June 10 Share Posted June 10 That'a really about the same thing as the Tang 9k 9918 replacement unit, isn't it? 1 Quote Link to comment Share on other sites More sharing options...
Duewester Posted June 10 Share Posted June 10 1 hour ago, RickyDean said: That'a really about the same thing as the Tang 9k 9918 replacement unit, isn't it? Well yeah but, a Pi pico is $4 a Pi picow is $6 and a Tang about $16 - $35 (depending on where you get it - China or Amazon). The Tang requires some FPGA skills also if you're going to be a developer. Depending on the IDE a Pi can be plugged in like any USB device and programmed. I don't have the skills (it's a hazy idea on the peripheral of brain) but I don't think we're far off from seeing the Pico used for an external keyboard and mouse interface. Just look at what some others are doing with the Pico here already. Will it replace the TiPi? I don't know that it needs to or will. The Pi Zero 2W is already pretty well established and is pretty inexpensive ($15) but perhaps the Pico could pick up some of the load of the other components of the TiPi -whose to say. It's "off topic" but, Raspberry Pi just released an AI module for the Pi5. We might someday see an AiPi. Wouldn't that be something. 3 Quote Link to comment Share on other sites More sharing options...
+chue Posted June 10 Share Posted June 10 1 hour ago, Duewester said: I don't think we're far off from seeing the Pico used for an external keyboard and mouse interface. You mean like this? 4 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 10 Author Share Posted June 10 (edited) 9 hours ago, Artoj said: Excellent work Troy!! The Pico is a versatile micro-controller, it looks like my Tango project just got gazumped by your PICO9918. That's interesting. Sorry, @Artoj I hadn't seen the Tango project before. Fairly new here If you're interested, this is what the current v0.3 (ordered, still untested) pico9918 PCB looks like: So, it's a touch bigger than the DIP40 footprint of the TMS9918A, but not much. I'm just using a pin header for VGA rather than include it at a fixed location. The v0.2 PCB I used in the demos is very similar, but it was lacking the GROMCLK and CPUCLK signals. Since I don't use these in my homebrew HBC-56 which I was initially using as a test bed, I failed to add them to the initial design. In my videos, I have a second Pico providing the GROMCLK signal via that white wire. Edited June 10 by visrealm 4 2 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 11 Author Share Posted June 11 6 hours ago, Duewester said: Well yeah but, a Pi pico is $4 a Pi picow is $6 and a Tang about $16 - $35 (depending on where you get it - China or Amazon). The Tang requires some FPGA skills also if you're going to be a developer. Depending on the IDE a Pi can be plugged in like any USB device and programmed. Agree. I think this is one of the main draws for the PICO9918. Many more people will be able to understand how it works and how to tinker with it (customize it) than would an FPGA. The cost is nice too. 3 Quote Link to comment Share on other sites More sharing options...
RickyDean Posted June 11 Share Posted June 11 Can anyone point to where I can buy pico's for $4, the ones I found on Amazon were 4 for 27. https://www.amazon.com/dp/B092S2KCV2?ref=ppx_yo2ov_dt_b_product_details&th=1 1 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 11 Author Share Posted June 11 2 minutes ago, RickyDean said: Can anyone point to where I can buy pico's for $4, the ones I found on Amazon were 4 for 27. https://www.amazon.com/dp/B092S2KCV2?ref=ppx_yo2ov_dt_b_product_details&th=1 Note: v0.3 of this requires a specific non-genuine Pi Pico board which has two additional GPIOs exposed. I linked to a couple of sources in the GitHub repo. Copied here too: Purchase links: https://www.amazon.com/RP2040-Board-Type-C-Raspberry-Micropython/dp/B0CG9BY48X https://www.aliexpress.com/item/1005007066733934.html In a future revision v0.4 perhaps, I'll do away with the need for an external Pi Pico module and just include the RP2040 and its support hardware directly on the PICO9918. 4 Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted June 11 Share Posted June 11 1 hour ago, RickyDean said: Can anyone point to where I can buy pico's for $4, the ones I found on Amazon were 4 for 27. https://www.amazon.com/dp/B092S2KCV2?ref=ppx_yo2ov_dt_b_product_details&th=1 https://www.adafruit.com/pico?src=raspberrypi https://www.raspberrypi.com/products/raspberry-pi-pico/?variant=raspberry-pi-pico @visrealm COMPOSITE? 3 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 11 Author Share Posted June 11 4 minutes ago, HOME AUTOMATION said: COMPOSITE? There is this project for PAL composite : guruthree/pico-composite-PAL-colour: Trying to get the Raspberry Pi RP2040 chip's PIO to generate a colour PAL composite video signal, using only a resistor ladder digital-to-analogue converter (DAC). (github.com) But that requires overclocking the RP2040 to 312MHz and increasing the VREG voltage to cope with that clock rate. I am overclocking the RP2040 as well to around 250MHz, but that's perfectly stable at the default voltages. You can go to around 270MHz before upping the voltage. 1 1 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 11 Author Share Posted June 11 On 6/8/2024 at 3:50 AM, Gary from OPA said: At least first thing would be nice to add is basic 80 column mode like how the f18a does it. That shouldn't be too hard and still keeps it within the 16kb vram as well and not really any need for added vdp registers either. Ask and you shall receive 6 2 Quote Link to comment Share on other sites More sharing options...
marauder666 Posted June 11 Share Posted June 11 I'll be watching this thread with interest. Got a rough PAL Colecovision with bad VRAM and a bad VDP, and this would be a good candidate to see if I could get it up and working. I assume the Pico VDP is running at 60hz? Good if it is, and not 50hz. 1 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 11 Author Share Posted June 11 Yep. Runs at 60Hz, so swapping a TMS9929A for this will change the framerate (and interrupt frequency) to 60Hz. 2 Quote Link to comment Share on other sites More sharing options...
marauder666 Posted June 11 Share Posted June 11 2 hours ago, visrealm said: Yep. Runs at 60Hz, so swapping a TMS9929A for this will change the framerate (and interrupt frequency) to 60Hz. Done that with real VDP before. Only game I came across which didnt work was Defender, was easy enough to hack. Didn't need a ROM change. 2 Quote Link to comment Share on other sites More sharing options...
Duewester Posted June 11 Share Posted June 11 Hmmm, I should read closer. I thought this was being done with a Raspberry Pi Pico, not a 2040 based board with other "enhancements". Still, the base chip is still at play and as mentioned hear earlier, a custom board (2 chips, built in level shifting, HDMI, dvi, etc.) is a real possibility. 1 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 11 Author Share Posted June 11 5 hours ago, Duewester said: Hmmm, I should read closer. I thought this was being done with a Raspberry Pi Pico, not a 2040 based board with other "enhancements". Still, the base chip is still at play and as mentioned hear earlier, a custom board (2 chips, built in level shifting, HDMI, dvi, etc.) is a real possibility. The videos I've shown so far are using my v0.2 prototype which is using a genuine Raspberry Pi Pico board. The problem is I needed two more GPIOs exposed in order to add GROMCLK and CPUCLK signals for v0.3. I could have reduced the VGA bit depth to free up some GPIOs, but given the end goal is to use a RP2040 directly, decided on the USB-C Pico board for now. 1 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 13 Author Share Posted June 13 Quick update. Thought I'd do some initial real-time benchmarks - just to see how much wiggle room I have to implement more advanced features. It's looking quite good. These images will look bad, but bear with me What's happening here is I'm switching the VGA signal to output BLUE when it's done generating the next scanline. So, if it was at 100% generating scanlines, these images would look perfectly normal since it wouldn't have time to switch to BLUE. If the image was mostly blue, that means it has loads of time left to do more cool stuff. Keep in mind, the VGA is at 640x480, so I'm doubling the scanline vertically for a virtual resolution of 640x240 (used to be 320x240, but switched to 640x240 to support 80 column mode). I generate a scanline once and use it twice. With that in mind, if I was using 50% of my single CPU core capacity to generate scanlines, you would see alternating lines: correct image, BLUE, correct image, BLUE, etc. Ok. that's the gist of it. Now here's the results: Graphics I - No sprites Using around 33% of the available scanline generation time. ie. It finishes around 2/3 of the way through the first pass of a doubled scanline. Multicolor About the same: 33%. Mixed modes Here, you can see MC mode is the fastest. Graphics II lagging a bit at roughly 40% of the available time used. Sprites Adding in sprites gets us a pinch over 50% of a scanline time used (hence the black appearing on the left where sprites appear). Anyway, all-in-all, I'm happy with the results. It means I have some room to move. For the most part, I could render the entire display twice (or more). I also haven't done much work to target my TMS9918A library to the Pico (was originally written for desktop use), so I'm sure there would be performance gains to be had by keeping the RP2040 in mind. Also, the scanline rendering is all taking place on a single CPU core. The second core is mostly twiddling its thumbs waiting for interrupts from the PIOs - I could allocate some work (such as the sprite layer) to that CPU core. 6 1 Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted June 13 Share Posted June 13 Amazing what 4 dollars can do. 4 Quote Link to comment Share on other sites More sharing options...
visrealm Posted June 13 Author Share Posted June 13 (edited) 10 minutes ago, sometimes99er said: Amazing what 4 dollars can do. Or about 6 dollarydoos Edited June 13 by visrealm 2 1 Quote Link to comment Share on other sites More sharing options...
Gary from OPA Posted June 13 Share Posted June 13 (edited) 15 minutes ago, visrealm said: Or about 6 dollarydoos Or about 8 Canadian loonies.. our dollar is getting weaker by the day here.. plus everything comes with China or USA with high shipping costs as well. But still a good deal. The rp2040 clones are bit cheaper but not all of them are the same got to make sure its compatible on how the gpio pins are arranged. Edited June 13 by Gary from OPA 2 1 Quote Link to comment Share on other sites More sharing options...
Artoj Posted June 13 Share Posted June 13 (edited) Wonderful Work Troy!!, I appreciate the gift of technical prowess it takes to accomplish feats such as you have shown! I am in awe, knowing you are also an Aussie, you might even live in striking distance of me, LOL. So much talent I see in this forum, I have no words, knowing so many great ideas are festering are due to our humble Ti99. This is where we move the goal posts and no AI can even come close, human beings are far superior in the CREATIVE aspects of technology that 9900 cpu's running AI could ever be. Regards Arto. Schematic_TMS99PICO-v1_2024-06-14.pdf Edited June 13 by Artoj 2 1 Quote Link to comment Share on other sites More sharing options...
Asmusr Posted June 13 Share Posted June 13 7 hours ago, visrealm said: Anyway, all-in-all, I'm happy with the results. It means I have some room to move. For the most part, I could render the entire display twice (or more). I also haven't done much work to target my TMS9918A library to the Pico (was originally written for desktop use), so I'm sure there would be performance gains to be had by keeping the RP2040 in mind. Also, the scanline rendering is all taking place on a single CPU core. The second core is mostly twiddling its thumbs waiting for interrupts from the PIOs - I could allocate some work (such as the sprite layer) to that CPU core. But still, the F18A has an additional tile layer, a bitmap layer, hardware scrolling, more sprites, and more colors. I guess it would be tight? And do you think the other core would be fast enough to emulate a 100MHz TMS9900 (the F18A GPU)? Quote Link to comment Share on other sites More sharing options...
Duewester Posted June 13 Share Posted June 13 Well you could get the chip for a buck (US) and spend your remaining 3-5 bucks on the other components you need. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.