For reading the ROM we are only interested in the WR, RD, A0-A15 and D0-D7 lines.
Audio in вІ (not used)
Reset вІ needs to be connected to VCC
D0 вІ D7 вІ the 8 data lines that we read the byte of data selected by the 16 address lines. These data lines can also be used to control which ROM bank to load (important for later).
A0 вІ A15 вІ the 16 addresses lines that we tell the ROM which particular byte of data we want to read
CS_SRAM вІ if enabled, selects the SRAM
~RD вІ if low (grounded) and if WR is high, we can read the ROM and SRAM
~WR вІ if low(grounded) and if RD is low, we can write to the SRAM and load a ROM or SRAM bank
CLK вІ Clock signal (not used)
VCC вІ Power (5 volts)
You can see it has 32 pins and those pin functions are:
MM1134 IC to control when SRAM should be run from battery or not
MBC is the memory bank controller, it allows us switch ROM banks to read the gameвІ s data from the ROM.
SRAM is where your save games/high scores are keep. Some cartridges (like the one of the left) donвІ t have this chip because they donвІ t store any data or itвІ s built into the MBC
ROM is where the gameвІ s data is stored
LetвІ s firstly take a look inside a Gameboy cartridge. A typical Gameboy cartridge contains:
Before I begin looking into extracting the save games I’ll look into dumping the ROM which was a way for me to learn how to communicate with the Gameboy cartridge. IвІ ll now guide you in how to communicate with the Gameboy cartridge to read the ROM so without further delay, letвІ s begin!
Recently IвІ ve been collecting retro gaming consoles such as the Gameboy and SNES and whilst playing a game on the SNES I actually lost all my saves when I turned it off (turns out the battery got disconnected from the cartridge). The thought came to me, how can I backup the save game from these devices? There are cart readers around but they seem to be harder to find in this day and age so I thought why not make one myself using the Arduino as itвІ s so versatile!
I'm learning about electronics bit by bit, making projects and tearing things apart
GBCartRead: Arduino based Gameboy Cart Reader вІ Part 1: Read the ROM « insideGadgets
Комментариев нет:
Отправить комментарий