Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 06, 2016, 01:01:44 13:01


Login with username, password and session length


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

Posts: 153

Thank You
-Given: 103
-Receive: 188


WWW
« on: June 12, 2016, 04:26:48 16: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, 04:28:57 16:28 by xpress_embedo » Logged
motox
Active Member
***
Offline Offline

Posts: 113

Thank You
-Given: 142
-Receive: 129



« Reply #1 on: July 11, 2016, 01:24:00 01: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
Junior Member
**
Offline Offline

Posts: 75

Thank You
-Given: 28
-Receive: 35


« Reply #2 on: July 11, 2016, 06:27:44 06: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