can somebody help me out on how to interface an 8051 ic to a 8742 keyboard controller ic..?? i am connecting a keyboard through a ps2 connector to the board...this interface is controlled by 8742..how do i obtain the keys pressed at 8051?
Why would you need the 8742? It should be easy to connect PS/2 to the 8051 directly. The protocol should be well documented, just google it.
well that would have sufficed...but as per the requirement a keyboard controller ic controls the interfacing....
It is very well documented. It just needs a little bit of common sense use of Google to find plenty of good projects that interface with a PS/2 keyboard.
There again, the common sense approach would surely have been to use Google first - Instead of posting on the Keil forum.
u think i havnt done that???i've googld on how to interface 8742 to c51...didnt find anything useful..hence posted here...
"u think i havnt done that???"
Well ... I just did a search and the TOP of the list was an Intel sourced PDF which details the pinout and timing. That should surely be a good start.
But how would interfacing it to a C51 differ from interfacing it to anything else?
Do you think that the 8742 behaves any differently when connected to a C51 than when connected to anything else?
Similarly, do you think that the C51 behaves any differently when connected to an 8742 than when connected to anything else?
General procedure for interfacing anything to anything else:
www.8052.com/.../160143
You do have the Datasheet for the 8742, don't you...?
when the dinosaurs roamed the earth, the 8742 was quite commonly used.
8742 keyboard controller ic the datasheet is dated 1991 the cheapest I can find is $49.99 which indicates a discontinued and now rare chip.
I think you have to go back to the "requirement provider" and say "WHY?"
Erik
connecting/converting (I do not remember exactly) a PS2 keyboard to I²C, use half of it
"I think you have to go back to the "requirement provider" and say "WHY?""
easy: it could be a learning experience; it could be a one-off project from salvaged parts; it could be just for fun; or it could be for no reason. countless possibilities.
Exactly - which is precisely why the OP needs to state which of those possibilities actually applies here!
"Exactly - which is precisely why the OP needs to state which of those possibilities actually applies here!"
you have a point but I am not sure how it relates to his problem.
back to topic: interfacing to any device is fairly simple - you just need to understand how that device works and make your mcu talk to it that way.
The relation to the problem is that a lot of people pick the first solution they get to think about. That sometimes goes for the person creating the thread. And sometimes for the person who requested the job done.
By knowing the reason for using the chip, we will know if there is a valid reason for this extra glue or if there is actually a better reason for interfacing directly with the PS/2 connector.
The reason behind a design can greatly affect what answers we will write.