PDA

View Full Version : Keyboard



rowdy235
November 27th, 2008, 03:23 PM
Hey guys, looking to attach a keyboard to my commodore C386SX-LT. I have one COM port on it and one printer port. My question is, is there any way to get a keyboard to attach to either of these ports? If the Com port, I also need a way to split it to mouse.

Thanks

rowdy235
November 27th, 2008, 05:33 PM
No clue why I put this in software lol

Mod's please move

MikeS
November 28th, 2008, 03:01 PM
Don't know about your particular setup, but with normal DOS and Windows systems you could plug in a serial keyboard and use either a wedge to redirect it to the keyboard or the WIN tools to do the same. Trouble is, the mouse would use the same port...

rowdy235
November 29th, 2008, 09:32 PM
I have a built-in modem I am removing and replacing with another COM port. I just didn't know there was such a thing as a serial keyboard. Please enlighten me.

Chuck(G)
November 30th, 2008, 09:04 PM
DOS does give you a certain limited functionality with the CTTY command. Basically, you can do CTTY COM1: and DOS will read from the comm port for input.

But there are gotchas.

The first one is that it's only good with programs that use DOS functions (e.g. 1, 6 and 10) for input. Programs using the BIOS calls won't work--and there are a lot of those.

The second is that no scan codes are returned and you don't get cursor or function key control. DOS expects a dumb ASCII TTY-type input.

But if you really want to take a PC keyboard and have it output ASCII codes over a serial link, I'm sure that I've seen a PIC project to do just that.

You could also write your own TSR/driver to simulate a PC keyboard from ASCII input and patch the INT 16H vector to your BIOS.

Just tossing some ideas out....