SX Game System
This page describes a SX28-based color video game system I made during year 2002. Now, beginning of 2007, almost five years after I made the first design I’ve updated the layout of the PCB and added a version of the PCB that has built-in gamepads and I also have made it possible to buy PCBs, preprogrammed chips, color carrier oscillators and of course complete kits from me in my web shop.
Since all games use the same hardware I have chosen to describe the game system hardware here on a separate page, and describe game specific stuff on the games pages. So far I’ve only made two games, Pong and Tetris, but some day there might be more games for the system.
The main hardware.
The power supply is standard, a 7805 regulates the voltage to 5v, there is a rectifier at the input to be able to run the system on both AC or DC, the voltage can be 8..15v something. Then there is a bunch of caps on the board to get rid of noice etc.
The video generation is quite simple; it is just a five bit R-2R resistor ladder. It might seem a little bit strange that I connected it to bit 1…5 instead on 0..4, but that is because when I first made the prototype it hade six bits for video and four for audio. I chose six bits first as it is the largest number of bits you should use with an R-2R ladder when using 1% tolerance resistors. Later I understood that it was not needed that many bits for video, that last bit would be better off in the audio generation. At the end of the R-2R ladder I have put one 1pF cap to get a a little bit of filtering if the TV’s input has to high bandwidth as my color generation technique generates square wave that needs to be filtered so only the “sinus part” remains. The resistor ladder has an open output as it is supposed to be connected to the TV that has an 75Ohm input that ends the ladder.
The audio part is very similar to the video part, also a five bit DA using an R-2R ladder. The difference is at the end of the ladder, the audio has a 100 Ohm pot to regulate the volume. The 100Ohm pot also ends the ladder as the audio impedance varies a lot between different audio inputs. (1k…20kOmh)
The joystick inputs are extremely simple, just five pins on the chip connected directly to the joystick inputs. The joystick pins on the SX-chip have their internal pull-up resistors enabled so there is no need for external resistors. There are two joystick inputs, and as with my PIC-based games I used old C64/Amiga/Atari joysticks. If you don’t have one you could build one quite easy using the schematic here to the right using five off(on) switches and a 9pin female dsub.
One of the more tricky parts is the Oscillator. This should run at 12 times the color carrier of the TV-system. The built in generator in the SX-key programmer is not accurate enough for video generation, so an external oscillator is needed. During the development of the games I used an almost 30 years old frequency generator (as new ones cost a fortune) seen at the picture here to the right, which made the development a lot easier. There chip-oscillators available that can be programmed once just like you can program a microcontroller. You can buy such oscillators from my webshop preprogrammed to NTSC frequency. (Currently that is the only ones I sell because my games works so poorly for PAL and most modern TVs support both PAL and NTSC anyway). See the table below for what frequencies to use if you program your oscillator yourself or have another solution to generate the frequency.
For more detail: SX Game System
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w