View previous topic :: View next topic |
Author |
Message |
Nisar
Joined: 16 Nov 2007 Posts: 20
|
4x4 Keypad Code in CCS C Compiler using PIC16F877, PortC |
Posted: Sun Feb 22, 2009 12:40 pm |
|
|
Hello every body
I'm using PIC16F877 and interfacing 4x4 Keypad with Port C.Plz any body send me its Code.I'm using CCS C Compiler.
Regards
Nisar |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Feb 22, 2009 1:00 pm |
|
|
Look in the CCS Code Library forum. It has links to a 4x4 keypad driver. |
|
|
Nisar
Joined: 16 Nov 2007 Posts: 20
|
4x4 Keypad have Connection with PIC16F877 at PortC |
Posted: Fri Feb 27, 2009 12:20 am |
|
|
Plz any one send me C Code.
My 4x4 Keypad have Connection with PIC16F877 at PortC as following.
Colo Pin_C3
Col1 Pin_C2
Col2 Pin_C1
Col3 Pin_C0
Row0 Pin_C4
Row1 Pin_C5
Row2 Pin_C6
Row3 Pin_C7
all pins are Connected with 10K Pullup resister.
Thanks in advance |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Nisar
Joined: 16 Nov 2007 Posts: 20
|
|
Posted: Thu Mar 05, 2009 10:57 pm |
|
|
Thanks PCM Now 4x4 Keypad work properly |
|
|
miji88
Joined: 06 Apr 2011 Posts: 25 Location: Malaysia
|
|
Posted: Wed Apr 13, 2011 3:17 am |
|
|
How can I program using ccs compiler for keypad 4x3? _________________ i'm student that realy need help to learn |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Wed Apr 13, 2011 5:28 am |
|
|
miji88
All you need to do is look at the program that PCMprogrammer offered above. It is well commented and easy to understand, very easy to modify to a 4 x 3 keypad.
Refer to the onscreen help(F11) that CCS supplies to read what the commands/functions/etc. are doing if you're not sure. |
|
|
miji88
Joined: 06 Apr 2011 Posts: 25 Location: Malaysia
|
|
Posted: Wed Apr 13, 2011 6:27 am |
|
|
nice... thanks dude.. I try modified it first. _________________ i'm student that realy need help to learn |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Apr 13, 2011 1:19 pm |
|
|
CCS Code Library already has the 4x3 driver. You don't have to modify
the 4x4. Here's the link:
http://www.ccsinfo.com/forum/viewtopic.php?t=26333
Also, CCS has their kbd.c driver, which is for a 4x3 keypad:
Quote: | c:\program files\picc\drivers\kbd.c |
|
|
|
|