After quite some time, I finally got the inspiration and time to implement new I/O for the CastleRunner 2000! I bought a Commodore 64 keyboard a few weeks ago, and got it working using an Arduino. So, of course we want this on our CR2000. However, getting that I/O to work with discrete components (as I have now) is not very fun. Luckily I still has some 6522s lying around (from when I wanted to implement some kind of serial communication). Those are perfect for the keyboard scanning. In fact, that is how the C64 does it as well.

Image
The 6522 in all its glory, with a 74138 in the foreground for arbiting, and the CR2000 in the back

It is quite easy to work with, just get your wiring correct, your mapping and your assembly. And it has two 8-bit I/O ports. With my current setup, I can wire up to eight of these bad boys into the design.

Next step is two actually build the keyboard scanning routines for the keyboard.


0 reacties

Geef een reactie

Avatar plaatshouder

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

Deze site gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie gegevens worden verwerkt.