Together with the PCBs came in a new revision of the C64/SX64 RAM Cartridge with onboard SD2IEC. It has a completely new layout and was tailor made to a C64 Cartridge shell I got from Ebay. Now I had more PCB estate at my disposal so the layout is much cleaner and thus better looking. The extra space gave room for some vintage looking parts, like the 5mm LEDs and bright red DIP-switch. Another change in the design is a pushpush microsd card connector and software control of the RAM.

SD2IEC part

Most of the top of the PCB is occupied by the SD2IEC part. SD2IEC is a project that takes an Atmel microcontroller and turns it into a (protocol) clone of a vintage commodore diskdrive. It will not completely emulate a real drive so not all the fastloaders will work, but great for everyday use. Now you can carry your C64 collection with you on a little microSD card. It has also 2 LEDs that simulate both LEDS on the drive (activity and error) and a DIP switch that let you select between ID 8 to 11. On the top there is a (solder) connection for the IEC cable. This time I didn’t forgot to include a ICSP connection. Just as the last time I followed this tutorial to burn the bootloader to the chip (even got myself a proper Atmel programmer this time), but it did nothing.. After some googling it happens the fuses I had the fuses wrong and the full commandline to program an ATMEGA644P with the bootloader should is:

avrdude -p m644p -U flash:w:sd2iec_bootloader.hex:i -U hfuse:w:0xDA:m -U efuse:w:0xFD:m -U lfuse:w:0xE7:m

After installing the bootloader the firmware can be flashed from SD card (just copy the appropriate .bin file to the root). The right firmware version for this cart is lars-64k and the bootloader can determine if a new version is placed on the SD card.

RAM cartridge part

This part of the board enables you to quickly develop (standard) cartridges or swap between multiple without removing/inserting/erasing/writing chips. It is based on an old article in Transactor. It replaces the ROM chip with a SRAM and by flipping switches it can switch between RAM and ROM mode. Inspired by the circuit of Magicdesk 1 I tried to replace the switches with logic. It turns out it didn’t work 🙁 Can’t tell why it is failing as I think in theory it should work.

ramcartgluelogic

The 747174 (left) / 7402 (right) combination is copied from the Magicdesk 1 circuit. Writing to the IO1 memory area should clock the D-flipflops. D5 controls the !EXROM signal and D6 the ability to write the RAM (!WE to the SRAM chip).

Things to change in the next (last?) revision

It looks I didn’t run the Design Rule Check before sending it in so I violated it a bit and had some clearance errors. I checked it with the multimeter and it didn’t short anywhere. Next revision should I should fix it an pass the DRC. Another nuisance is the ID dipswitch is mirrored.  Don’t know what to do with the circuitry around the SRAM, so I’m open for suggestions there.. Probably will revert to an EPROM and the stealth circuit used in the EPYX fastloader cartridge.

Share this