VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » Knowledge, science, education » GreatScott!
Overclocking can be useful! Let's try with my GameBoy & Arduino

Overclocking can be useful! Let's try with my GameBoy & Arduino

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
In this video we will be having a look at overclocking. At first I will explain in a very simple way what overclocking is and then I will use this technique in order to speed up my Arduino Microcontroller and GameBoy! Along the way we will learn about the advantages and disadvantages of overclocking
Date: 2021-12-19

Comments and reviews: 10


A bit more info on the gameboy. The gameboy color that you're using actually has twice the clock frequency as the original gameboy (8mhz vs 4mhz. So to compensate, the GB Color uses a clock divider internally, unless a game specifically tells it not to, which most gameboy color games do (Unless it's one that is designed to be backwards compatible.
If i remember correctly, this clock divider is causing the glitches as it can't keep up with the higher frequency and misses clocks. If you tried a gameboy color game, it might be stable at much higher speeds. Also another source of glitches might be the ROM, as higher clocks may push access times below its latency limit. A modern flashcart with flash or SRAM based storage might fair better.
Also interesting is the world of emulation, since you can essentially modify the way the hardware works. For example, some time ago i modified a GB emulator to run at 160mhz while keeping sound and video hardware at stock speeds. This means that the gameplay runs at the same speed, as it's tied to the display refresh rate, but any sort of slowdown is completely eliminated because the gb essentially has 20x more CPU power for every frame. This is great for chiptune artists too, as some of the more advanced effects can be quite CPU heavy and overwhelm the device.

reply

wow, this was a nice video, i really like these kind of experiment videos they are awesome. tbh i have never owned a gameboy, but i have gotten into retro consoles over the past years and its really amazing to see that changing the clock frequency doesn't abruptly freeze the device, well there it is an undetectable hardware speed hack.
reply

I don't understand why the PWM signal has a maximum frequency = crystal oscillator frequency/256. Obviously I understand that 2 8 is 256 but I miss the sense of the calculation itself. I've tried to hear it may times from 5: 45 but it doesn't get clear. is there somebody who could explain it to me?
reply

Hi there: -) Thanks for watching my last big video in 2021. This year has been quite a ride. I hope you enjoyed the videos I put out and you are looking forward to my videos in 2022. I wish you all happy holidays and stay creative; -)
reply

For educational purposes I understand why you did what you did, however an Atmel 328p can output the clock signal you need. Now if you need it to do other things and maintain a perfect clock than you maybe out of luck
reply

I see you are also one of many who void warranties, even if they don't exist anymore. I overclocked my GBC with Pokemon Red years ago, super fun, but I only did 12-15Mhz. ARM processors are super fun.
reply

U can also get 100khz pwm from arduino normally by playing around with the timer registers for a bit
But u will only get about 160 resolution duty cycle, which in my book is still plenty to work on

reply

When I was teenager, I did dreaming have some speed up like this, but my Apple II simply don't have such a speed up due to it's architecture won't allow simple speed up, sophisticate hardware not cheap.
reply

Fun fact (in case you don't know): you can also overclock PC's CPU by force the system to give it more voltage than usual. But this will increase heat output of CPU, but make the CPU runs faster!
reply

Nice! Will try it some time with a 24MHz crystal i have lying around. If it is able to run at up to 40MHz, i will have to add a 32MHz crystal to my list of stuff to order online at some point.
reply
Add a review, comment






Other channel videos