Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PC keyboard to IC

13 views
Skip to first unread message

PADME

unread,
Jan 15, 2005, 7:08:52 AM1/15/05
to
Hi all,

I've heard there is an IC which can convert an IBM PC keyboard to ASCII.

Any help is very appreciated.

Thank you in advance
Padme

j.b. miller

unread,
Jan 15, 2005, 8:12:39 AM1/15/05
to
Google is your friend..

several companies have high price 'convertors', plug and go types...
or
you can do it yourself for about $5, all you need is a small
microcomputer( I use the now 'obsolete' PIC16C84 ) and some time. Easy to
program, TONS of info on the web about it, just need to ask Google.

Seems to be a 'classic' project for colleges,etc.

petrus bitbyter

unread,
Jan 15, 2005, 10:00:24 AM1/15/05
to

"PADME" <padm...@yahoo.com> schreef in bericht
news:4b2e113.05011...@posting.google.com...


Wel,

The old IBM PC-AT used an Intel 8042 for a keyboard processor. Current PCs
still have compatibel keyboardprocessors, embedded in theit chipsets. You
can find several other projects of interfacing a PC keyboard. For instance:
http://www.electronic-engineering.ch/microchip/projects/keyboard/v1xx/keyboard_v1xx.html
Except for that 8042 I'm not aware of a dedicated IBM keyboard interface
chip, but enough examples of programming a micro for it.
BTW You did not mention what kind of interface you need for the ASCII.
Serial? Parallel? USB? I2C? SSP? CAN?

petrus bitbyter

Jim Thompson

unread,
Jan 15, 2005, 12:42:14 PM1/15/05
to

MANY years ago I built my own KVM switch, by sending the keyboard
signals down a shift register and doing a broad-side decode to
activate the switch. Following are the codes as seen at the shift
register. I have schematics, if you're interested... but it's NOT a
trivial task (as I did it... today probably just a uP :)

L-ALT 011101110
TAB 111110010
CAPS 111100111
L-SHFT 011101101
L-CTRL 011101011
SPACE 111010110
R-ALT 011101110
R-CTRL 011101011
R-SHFT 010100110
ENTER 010100101
BK-SP 010011001
INSERT 110001111
HOME 010010011
PG-UP 010000010
PG-DN 110000101
DELETE 010001110
END 010010110
UP-A 110001010
LEFT-A 110010100
DN-A 010001101
RT-A 010001011
Z 111100101
X 011011101
C 011011110
V 111010101
B 111001101
N 111001110
M 011000101
, 010111110
. 110110110
/ 110110101
A 111100011
S 011100100
D 111011100
F 011010100
G 111001011
H 011001100
J 111000100
K 010111101
L 010110100
; 110110011
' 110101101
Q 111101010
W 011100010
E 011011011
R 011010010
T 111010011
Y 011001010
U 011000011
I 110111100
O 010111011
P 010110010
[ 110101011
] 110100100
` 111110001
1 111101001
2 011100001
3 111011001
4 111011010
5 011010001
6 011001001
7 111000010
8 111000001
9 110111001
0 110111010
- 010110001
= 010101010
\ 110100010
ESC 110001001
F1 011111010
F2 011111001
F3 111111011
F4 011110011
F5 011111100
F6 111110100
F7 101111100
F8 011110101
F9 111111110
F10 011110110
F11 010000111
F12 111111000
PRT-SCR 011101101
SCRL-LK 010000001
PAUSE 010001000
NUM-LK 010001000
NUM / 110110101
NUM * 110000011
NUM - 010000100
7-HOME 010010011
8-UP 110001010
9-PG-UP 010000010
4-LEFT 110010100
NUM-5 110001100
6-RT 010001011
1-END 010010110
2-DN 010001101
3-PG-DN 110000101
0-INS 110001111
.DEL 010001110
NUM + 110000110
NUM-ENT 010100101

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.

Danny T

unread,
Jan 15, 2005, 2:00:04 PM1/15/05
to

May I but in with a quick question? I've no intention of doing this, but
the post's got me curios... How many wires in a PS2 cable, and when I
press a single key on my keyboard, what gets sent? Is it just a binary
value for a key (eg. 7 wires would give 128 possibly keys), or is it
something more clever?

--
Danny

Don Pearce

unread,
Jan 15, 2005, 2:10:59 PM1/15/05
to

No - it is serial data plus a clock. Just two effectively active
wires.

d

Pearce Consulting
http://www.pearce.uk.com

Rich Grise

unread,
Jan 15, 2005, 3:40:25 PM1/15/05
to


There's a _bunch_ of information out there:

http://www.google.com/search?q=ps2+keyboard+interface+spec

Have Fun!
Rich

Danny T

unread,
Jan 15, 2005, 3:50:53 PM1/15/05
to
Don Pearce wrote:

> No - it is serial data plus a clock. Just two effectively active
> wires.

Righto! :-)

--
Danny

Anthony Fremont

unread,
Jan 15, 2005, 4:49:18 PM1/15/05
to

"Rich Grise" wrote:

> There's a _bunch_ of information out there:
>
> http://www.google.com/search?q=ps2+keyboard+interface+spec

I have some PIC code that reads an AT style keyboard and outputs RS-232.
It was one of my very first PIC projects. It carries out the
initialization and converts scan codes into ASCII. It's not complete
though, it needs to handle the caps-lock and some other keys better.
It's half of my portable 4*20 LCD terminal project. It could probably
be crammed into an Altoids box for the ultimate in stylish geekism ;-)

Lionel Theunissen

unread,
Jan 25, 2005, 9:29:37 PM1/25/05
to
Years ago I wrote some PIC code for a mini-terminal with an AT keyboard
input and ASCII RS232 output. I think a PS/2 keyboard will work with a plug
adaptor. The source code is available here:

http://www.dontronics.com/dt102.html

Click the newterm.zip link at the bottom of the page.

Lionel...

PADME <padm...@yahoo.com> wrote in message
news:4b2e113.05011...@posting.google.com...

0 new messages