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


Login with username, password and session length


Pages: [1]
Print
Author Topic: PS2 Keyboard Interfacing with Micro-Controller.  (Read 3947 times)
0 Members and 1 Guest are viewing this topic.
xpress_embedo
Active Member
***
Offline Offline

Posts: 173

Thank You
-Given: 122
-Receive: 254


« on: June 12, 2016, 03:26:48 15:26 »

Hello! Everyone,
I am attaching the project for decoding PS2 Keyboard Keypress using LPC1343 Micro-Controller.
Compiler Used is IAR 7.60.
Clock Pin is configured to Interrupt on falling edge, and then Data Lines are read.
Code written can be used for any other micro-controller, just call the state machine function in Clock Falling Edge interrupt.
Decoded Keys are then Displayed on 2x16 LCD.
Code is documented and doxygen files are also present.
Note: Caps/NUM/Scroll Lock Led's are not working. (Will implement that also and re-upload the code)
« Last Edit: June 12, 2016, 03:28:57 15:28 by xpress_embedo » Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 188

Thank You
-Given: 257
-Receive: 322



« Reply #1 on: July 11, 2016, 12:24:00 00:24 »

I did something similar in 2004 using the PIC16F876.
I have made two programs, one for a PS2 keyboard and another for a PS2 mouse.
The pressed keys and the mouse position, including wheel position, are displayed in the LCD.
The programs are written in C for the HI-TECH C Microchip PIC V8.02.

Xpress_embedo, I have implemented the LED functions. See the function updateleds() in the file Ps2Keyb.c.

Programs are attached bellow.
Logged
PICker
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 207
-Receive: 110


« Reply #2 on: July 11, 2016, 05:27:44 05:27 »

Have a look to these links:
http://www.westmountainradio.com/pdf/Article_Bern.pdf
https://www.ccsinfo.com/forum/viewtopic.php?t=46200
https://www.ccsinfo.com/forum/viewtopic.php?t=27544
https://www.ccsinfo.com/forum/viewtopic.php?t=46629
http://www.ccsinfo.com/forum/viewtopic.php?p=91480
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