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 support@ccsinfo.com

kbd_getc()-Getting After Releasing A Key

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



Joined: 18 Jun 2012
Posts: 19

View user's profile Send private message

kbd_getc()-Getting After Releasing A Key
PostPosted: Sat Jul 07, 2012 10:41 pm     Reply with quote

Hi,
Following things I used in circuit.

PIC16F886
4X3 Matrix Keypad.
16X2 LCD Module.
CCS C Version 4.105

I have connected matrix keypad to port B and LCD on port C. And used sample code of CCS C which just read the keypad and displays keypress on LCD. Here one thing I noticed, I got number on LCD after releasing a key. If I press any key and kept press so there is no number on LCD but as soon as I release key I got number on LCD.
But I want number on LCD as soon as I press any key, so how to do this? What changes required in kbd.c file.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jul 07, 2012 10:45 pm     Reply with quote

Quote:
I want number on LCD as soon as I press any key

This is in the forum archives:
http://www.ccsinfo.com/forum/viewtopic.php?t=47014
AD76XYZ



Joined: 18 Jun 2012
Posts: 19

View user's profile Send private message

Thanks
PostPosted: Sat Jul 07, 2012 11:18 pm     Reply with quote

Thanks very much PCM Programmer.
It works fine.
Again thanks.
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