linear1 forums
[part of the linear1 network]
+ [linear1 case mods]
+ [LED Center]
+ [privacy policy]
Welcome, Guest. Please login or register.
March 20, 2010, 07:40:12 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Login Register

linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: help.. source code for a 4x3 alphanumeric keypad using pic16f873 « previous next »
Pages: [1] Print
Author Topic: help.. source code for a 4x3 alphanumeric keypad using pic16f873  (Read 2308 times)
viclyndon
Strong like bull
*
Offline Offline

Posts: 4


« on: January 18, 2006, 08:34:17 AM »

pls help..

im in need of a source code (firmware)  for a  4x3 alphanumeric keypad using pic16f873 using assembly language.  The 7 pins of the keypad are connected to PORTB.    I need to know how to program this case...  1 press = a , 2 press = b, 3 press = c....etc.             

thank you
Logged
rod_vdb
Strong like bull
*
Offline Offline

Posts: 7


« Reply #1 on: January 19, 2006, 02:29:24 PM »

There is plenty of source code on piclist.org try

http://www.piclist.org/techref/microchip/keymatrix.htm

Rod
Logged
Rob
LED guy
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1970


The constant-current gardener


WWW
« Reply #2 on: January 19, 2006, 05:21:42 PM »

Welcome to the boards, both of you!
Logged

viclyndon
Strong like bull
*
Offline Offline

Posts: 4


« Reply #3 on: January 21, 2006, 01:56:38 AM »

How can i program the PIC so that special keys like 'ENTER' and 'DELETE' can be outputted?
Logged
rod_vdb
Strong like bull
*
Offline Offline

Posts: 7


« Reply #4 on: January 21, 2006, 08:27:22 AM »

Er, that totally depends on how you are outputting your information....

If you are outputting ASCII, say out of the UART then just look up the ASCII code for caridge return, google should help you...

If you are not outputting ASCII then let us know and we can try and help

Rod
Logged
viclyndon
Strong like bull
*
Offline Offline

Posts: 4


« Reply #5 on: January 23, 2006, 12:15:35 AM »

i would like to interface my 4x3 alphanumeric keypad to the PS/2..... is it difficult or not?  i mean the software and the firmware..  and what port should i best put my keypad, PORTB(using interrupts) or PORTC?
Logged
rod_vdb
Strong like bull
*
Offline Offline

Posts: 7


« Reply #6 on: January 23, 2006, 09:44:27 AM »

Have a look here for information on the ps/2 protocol. You may be able to get the UART to generate these signals in its syncronous mode but I am not sure, otherwise you will have to write a software port but it does not look too dificult.

You might as well hook the keys up to PORTB if they have interrupt on change feature, it makes your job a little easier

Rod
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #7 on: January 23, 2006, 01:23:44 PM »

you might want to give this link a read too:

http://www.computer-engineering.org/ps2protocol/

it has a lot of information on the protocol as well as some insight to replicating the protocol with a microcontroller (timing, schematics, etc)

I have seen a lot of projects about interfacing a matrix keypad to the rs232 serial port and parallel port, but interfacing it with the ps2 port is a new one.

may I ask your application?  there maybe easier ways!
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
viclyndon
Strong like bull
*
Offline Offline

Posts: 4


« Reply #8 on: January 24, 2006, 01:11:23 AM »

"you might want to give this link a read too:

http://www.computer-engineering.org/ps2protocol/

it has a lot of information on the protocol as well as some insight to replicating the protocol with a microcontroller (timing, schematics, etc)

I have seen a lot of projects about interfacing a matrix keypad to the rs232 serial port and parallel port, but interfacing it with the ps2 port is a new one.

may I ask your application?  there maybe easier ways! "





It's just plain interfacing the 4x3 alphanumeric keypad to the PS/2.  But if necessary im not going to make a keypad driver to make it a lot easier.  I'll just use the existing keyboard driver in the PS/2 and then work from there to my keypad to make it compatible.  Is it possible?
 



Logged
david
Strong like bull
*
Offline Offline

Posts: 4


« Reply #9 on: December 22, 2007, 09:59:17 AM »

i would like to interface my 4x3 alphanumeric keypad to the PS/2..... is it difficult or not?  i mean the software and the firmware..  and what port should i best put my keypad, PORTB(using interrupts) or PORTC?

what have you put together ? have you done anything ? if you post your work we could help..

David
Logged
Pages: [1] Print 
linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: help.. source code for a 4x3 alphanumeric keypad using pic16f873 « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.177 seconds with 21 queries.