Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 04:26:36 16:26


Login with username, password and session length


Pages: [1]
Print
Author Topic: interface ps2/at keyboard with pic16f877  (Read 6906 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, 05:21:02 05: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
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« Reply #1 on: December 02, 2009, 05:47:56 05: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
V.I.P
Junior Member
*****
Offline Offline

Posts: 69

Thank You
-Given: 704
-Receive: 67



« Reply #2 on: December 02, 2009, 10:25:56 10: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, 11:41:28 11: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