Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ps2 keyboard sending the same value twice with 8051

Status
Not open for further replies.

ucsam

Advanced Member level 4
Joined
Oct 12, 2010
Messages
119
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
kathmandu,nepal
Activity points
2,058
I am using 8051 and the keyboard is sending the same data twice. Is there something i dont know about how keyboard sends the data?
 

where is it sending and how? from uart? if yes then it may b echo that is sending it twice
 

There are also anohter variables.
For instance : Are you flagging in the code program each read once to avoid multiple readings ?

Some answer is imprecise without more details.

+++
 

Be careful not to read the PRESS and then the RELEASE codes.
For example,
PRESS code for "A" is 1C
RELEASE code for "A is FO 1C
In both cases you have 1C, so if you omit somewhere F0 as RELEASE, you will read the same code twice ..

see:
The PS2 protocol

:wink:
IanP
 

i have a library that looks after the hardware stuffs
i do have a function the asks me whether to take the data on release or on press so thats not my problem.
are there any other cases?
 

Maybe Keyboard doesn´t have the hardware dobouce properly designed.
Exchange for other, to check if problem persists.


+++
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top