![Program cpld with arduino mega](https://kumkoniak.com/15.jpg)
If it is totally not possible to get this to work only with an ATmega Controller, then i will leave it. To the idea of using discrete logic: it should not be very hard to get discrete logic do the work of an MBC, but as you already pointed out, it would be much bigger than using a CPLD or the actual mapper chip (i wanted it to be not bigger than an actual cartridge for portability and nkt something bulky) and it would only be able to do what the MBC would have done, but what i had in mind was to add more features than just rom and ram banking to a mapper chip, and from capabilities, the Arduino (or more specific the ATmega chip) seemed like it was pretty much fitting my needs (very small chip, cheap to get and easy to work with, at least for me ), but i was not sure if it was fast enough.
![program cpld with arduino mega program cpld with arduino mega](https://arduino.ua/products_pictures/large_TDC162-1.jpg)
![program cpld with arduino mega program cpld with arduino mega](https://earthpeopletechnology.com/wp-content/uploads/2019/02/EPT-5M57-AP-M4_Block_Diagram_001.jpg)
He also used PortManipulation for the arduino in order to make it fast enough to pass the data through for the gameboy. I found a blogpost in which someone was able to pass the data of the Nintendo Logo stored in the EEPROM of the Arduino to the Gameboy and it was able to read the data. The Arduino IDE is capable of doing something called PortManipulation, which is changing the state if the IO Pins in a really fast manner, but i am not sure if this is even fast enough. If the arduino would be capable to do so, I would have an awesome idea, which i would then try to make real To me it seems like the MBC is rather easy to reproduce in software as it does not much (just rom and ram banking and switching between the chips). I fear that it is not fast enough to do so as it is not rally fast with its 16MHz, but I could be wrong. I searched around the inet for information or someone who has already tried, but there was only information on CPLDsĬapable of doing the work of an MBC. So I wanted to know if there is any information on whether the arduino (or rather the atmega chip on it) would be able to emulateĪn MBC, at best the MBC5 which would then, as far as i know, be compatible with the other MBC types (excluding the ones with RTC). I have another project ongoing, but as long as i cannot work on that, i wanted to do some further developement on the gameboy,
![program cpld with arduino mega program cpld with arduino mega](https://i0.wp.com/etstore.in/wp-content/uploads/2020/12/Keyes-Mega-Prototyping-Shield.png)
(after i lost my pokemon blau save in an attempt to dump the sram -_- but now i found the bug and it dumps everything properly).
![program cpld with arduino mega program cpld with arduino mega](http://www.earthpeopletechnology.com/wp-content/uploads/2018/11/EPT_5M57_AP_M5_Diagonol_Front_Right_Side_002.jpg)
I recently coded a gameboy cartridge dumper for my arduino in order to get in touch with gameboy hardware, it works pretty well
![Program cpld with arduino mega](https://kumkoniak.com/15.jpg)