Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2016, 01:25:18 01:25


Login with username, password and session length


Pages: [1]
Print
Author Topic: interface ps2/at keyboard with pic16f877  (Read 4017 times)
0 Members and 1 Guest are viewing this topic.
microtech
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 13
-Receive: 16


« on: December 02, 2009, 06:21:02 06:21 »

Hi,
I am working in a project that capture the data from keyboard using pic16f877 and store then display in LCD. I connect the keyboard clock to RB0 and keyboard data to RA0 (assigned as digital I/O). Please help me to give some idea to write code . Thanks.

Please help to answer, how to handle the keyboard code,
when we press the keyboard key, it will generate make code,
when we release the keyboard key , it will generate break code.

key pressed: A.
make code: 1C.
key released : break code F0, 1C.
My question is how to read these three codes and assign the data.
need to read only make code (1C) or read both make code and break code.
Thanks.
Logged
oldvan
V.I.P
Senior Member
*****
Offline Offline

Posts: 375

Thank You
-Given: 152
-Receive: 106


If the van is a Rockin'...


WWW
« Reply #1 on: December 02, 2009, 06:47:56 06:47 »

I'd use a lookup table, probably simplest method.

Google found a ton of answers easily.

http://www.edaboard.com/ftopic294909.html

looks to cover your question pretty well.
Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
DarthPic
Junior Member
**
Offline Offline

Posts: 54

Thank You
-Given: 453
-Receive: 55



« Reply #2 on: December 02, 2009, 11:25:56 11:25 »

Hi ,

Do you have take a look on this thread ?
http://www.sonsivri.com/forum/index.php?topic=17039.0

Logged

Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why Wink ...
patoliyarj
Newbie
*
Offline Offline

Posts: 25

Thank You
-Given: 22
-Receive: 5


« Reply #3 on: December 02, 2009, 12:41:28 12:41 »

Years ago(4-5 yrs) I've tried to interface the PC Key board with Atmel's 89c52, threre were 4 wires, 2-data & 2-power for interface using PS-2 connector...I've also seen RTC & LCD for data entry and time setting display..I've nod done programming but...my senoirs were there n they did that...I was initial phase of programming at that time..u can search for the post here or also at www.8052.com...u can get help from there ...also 89c51 / AVR controller's application notes also contains some info. for the same...

Raj
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC