Ripper, on Thu Jan 8, 2009 10:34 AM, said:
i'm converting an st to an atom based computer the only snag i have is that i want to keep the original keyboard and functionality so all i'm keeping is the keyboard so usb would be ideal...but ps2 i can cope with too.
I see. Again, you can make this at two different levels. The ST keyboard (as all PC keyboards, even the oldest ones) has its own microcontroller. You can hook your ps/2 or USB device before the mcu (and discard it, if you want), or after it.
Each approach has its pros and cons, might be just a matter of personal preference. If you discard the keyboard micro, then you must perform the physical process of scanning the matrix. If instead you keep it, then your design just interfaces with it using the Atari published IKBD protocol (similar in many aspects to the PC keyboard protocol). The connection is simple standard serial async.
It shouldn't change too much in terms of which microcontroller you should use, except perhaps that you need more I/O pins for scanning the matrix. At first glance, keeping the keyboard microcontroller sounds a better idea.
Regarding exactly which micro to use. Personally, I wouldn't worry too much. You are not going to sell this product (I understand). So you probably don't care too much if the micro costs $5 or $20. What I'm trying to say is that it might be wise to use an overkill device (more flash, more ram, some pins to spair, faster speed, etc). Just make sure it comes with DIP encapsulation (unless you feel confortable with other ones). And I'd get one that has hardware support for PS/2 and/or USB.
Depending on your budget and microcontroller experience, you might prefer to get one of those starter kit development boards.
Edited by ijor, Thu Jan 8, 2009 9:41 AM.