Re: PIC, Keyboard, and USART
- From: "Abstract Dissonance" <Abstract.Dissonance@xxxxxxxxxxx>
- Date: Thu, 23 Mar 2006 15:48:39 -0600
"Jonathan Kirwan" <jkirwan@xxxxxxxxxxxxxx> wrote in message
news:4a4622p34mgk71nr4f1oolk66pga0g1aip@xxxxxxxxxx
I assume that you are talking about PC/AT keyboards here (or simply
known as "AT keyboards.") I think the original PC keyboard was
incompatible with the AT keyboard, but that all clones since that
advent are now following the AT keyboard arrangement and I doubt you
could even find a PC (non-AT) keyboard these days. Of course, I have
long since forgotten, for sure. Do check on what I'm saying.
Regarding AT keyboards, there is a very detailed electrical spec of
the hardware to be found in the IBM Technical Reference, Personal
Computer AT set (4 volume set, which I will protect with my life!)
That spec is the schematic itself, on page 17 of 22. They use '07
open-collector drivers tied to an RC filter, with 10k and 47pF.
Sheesh... that would be helpful to have. I wonder if one can download these
online now?
+5
|
/
\ 10k
/
|
|\ |
----| >-----+--------------+---O (either connector pin 1 or 2)|/ | |
| |
--- |
--- |
| 47pF |
| |
--- |
/// |
|
|
<---------------------------'
That spells out the exact details of both pin 1 and pin 2. You should
be able to note that the IBM PC can use either line is input or
output. There is a reason for that design. If you intend to operate
the keyboard correctly, you will need to mimic it.
What is pin 1 and pin 2? The pins from the connectors? i.e., Data and Clock?
Is that an inverter(buffer I guess)? (i.e. a bidirection link with a
pullup and LP filter?)
You will _also_ need to fully understand how the keyboard is properly
operated from the PC. It is discussed on pages 1-31 to 1-44 and all
of chapter 4 of that Technical Reference I mentioned. But in
particular there is the capability to observe aborts in transmission
and to deal with conflicts in securing the interface from one side or
the other.
I think that the technical details on the AT keyboard were fairly well
considered by IBM before laying them out and the proper operation of
the interface isn't entirely trivial, if you plan to get it right.
There are very specific timing issues you need to be aware of. Have
you searched the web for all this info? You should be aware of
something called the "BAT" and the power up exchanges, graceful
operation in the face of communication aborts, how to deal with
moments when both you and the keyboard decide to talk to each other,
etc.
What I have found on the net is not completely technical but just what
someone says works. Although they did point out certain issues they do not
go into the details.
Jon
Thanks for the info. Its good to know there are technical specifications
out there for this... now I just have to get my hands on it.
Thanks again,
Jon
.
- Follow-Ups:
- Re: PIC, Keyboard, and USART
- From: Jonathan Kirwan
- Re: PIC, Keyboard, and USART
- References:
- PIC, Keyboard, and USART
- From: Abstract Dissonance
- Re: PIC, Keyboard, and USART
- From: Jonathan Kirwan
- Re: PIC, Keyboard, and USART
- From: Abstract Dissonance
- Re: PIC, Keyboard, and USART
- From: Jonathan Kirwan
- PIC, Keyboard, and USART
- Prev by Date: Re: Newbie: Series/Parallel DC circuit current question
- Next by Date: Re: Simple circuit to generate 12VDC from a 9v battery?
- Previous by thread: Re: PIC, Keyboard, and USART
- Next by thread: Re: PIC, Keyboard, and USART
- Index(es):
Relevant Pages
|