CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

4x4 Keypad Code in CCS C Compiler using PIC16F877, PortC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Nisar



Joined: 16 Nov 2007
Posts: 20

View user's profile Send private message

4x4 Keypad Code in CCS C Compiler using PIC16F877, PortC
PostPosted: Sun Feb 22, 2009 12:40 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Feb 22, 2009 1:00 pm     Reply with quote

Look in the CCS Code Library forum. It has links to a 4x4 keypad driver.
Nisar



Joined: 16 Nov 2007
Posts: 20

View user's profile Send private message

4x4 Keypad have Connection with PIC16F877 at PortC
PostPosted: Fri Feb 27, 2009 12:20 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Feb 27, 2009 12:35 am     Reply with quote

Did you look in the Code Library ? Did you try ? If you did, you would
have found this link:
http://www.ccsinfo.com/forum/viewtopic.php?t=28022&start=14
Nisar



Joined: 16 Nov 2007
Posts: 20

View user's profile Send private message

PostPosted: Thu Mar 05, 2009 10:57 pm     Reply with quote

Thanks PCM Now 4x4 Keypad work properly
miji88



Joined: 06 Apr 2011
Posts: 25
Location: Malaysia

View user's profile Send private message Yahoo Messenger

PostPosted: Wed Apr 13, 2011 3:17 am     Reply with quote

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: 9255
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Apr 13, 2011 5:28 am     Reply with quote

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

View user's profile Send private message Yahoo Messenger

PostPosted: Wed Apr 13, 2011 6:27 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Apr 13, 2011 1:19 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group