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

HELP: PIC16F877A for 3X4 Numeric Keypad and 4X20 LCD

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



Joined: 06 Aug 2010
Posts: 15

View user's profile Send private message

HELP: PIC16F877A for 3X4 Numeric Keypad and 4X20 LCD
PostPosted: Fri Aug 06, 2010 1:54 am     Reply with quote

Please Help ME:

Can you kindly give me a code for simple inputting of number from 0 - 9 that will be outputted on LCD? Kindly see the Schematic Diagram Below

I am using PIC C Compiler Provided by CCS and I am using ISIS for Simulation..

Hope that you could help me... Many Thanks...

PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 06, 2010 10:35 am     Reply with quote

Use this lcd driver:
http://www.ccsinfo.com/forum/viewtopic.php?t=28268
Use this keypad driver:
http://www.ccsinfo.com/forum/viewtopic.php?t=26333

Change the #define statements in those drivers so the pin connections
are the same as on your schematic.

Look in this CCS example file to see how to do the code in main():
Quote:

c:\program files\picc\examples\ex_lcdkb.c
zephyr2009



Joined: 06 Aug 2010
Posts: 15

View user's profile Send private message

PostPosted: Fri Aug 06, 2010 11:00 pm     Reply with quote

Quote:
Change the #define statements in those drivers so the pin connections
are the same as on your schematic.


I dont know how to change #define statements with my pin configurations because Im just a newbie.. could you please edit those codes for me? So I will be able to understand on how you will change the codes.. Please help me.. Thank you very much PCM Programmer..
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 06, 2010 11:04 pm     Reply with quote

You should at least try to do it.
zephyr2009



Joined: 06 Aug 2010
Posts: 15

View user's profile Send private message

PostPosted: Sat Aug 07, 2010 12:38 am     Reply with quote

Okay sir, Can you post your schematic diagram of your posted code? so that i will be able to understand on how your project works.. Smile Thanks a lot.. I'm trying to study those codes because I am a complete newbie with these codes...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Aug 07, 2010 12:47 am     Reply with quote

This thread has a schematic of an LCD and a PIC. It also lists the #define
statements for the flex lcd driver for that schematic.
http://www.ccsinfo.com/forum/viewtopic.php?t=40437
zephyr2009



Joined: 06 Aug 2010
Posts: 15

View user's profile Send private message

PostPosted: Sat Aug 07, 2010 1:23 am     Reply with quote

IT WORKS PERFECT!!! Smile I change the #define assignments with my pin configurations.. I just learned that when the input in D4 to D7 becomes low and then it is its bit assignment like 5 as 0101.. Smile

I hope that It would work on my Project as perfect as with the simulation.

Can you recommend any software that is compatible with my JDM Programmer?

I have ICProg Software but I think that it has a bug because it says program failed at 000h when I'm programming the hex file...
zephyr2009



Joined: 06 Aug 2010
Posts: 15

View user's profile Send private message

PostPosted: Sun Aug 08, 2010 7:18 am     Reply with quote

@Sir PCM Programmer, When I'm Programming the hex file that I built from your code, the ICProg says "Verify failed at address 000h!"

What does that mean?


I dont know if my programmer is JDM but I think it is...
I connecting the RS232 DB9 to my programmer and to the COM1 Port..

While programming, the LED is flashing and i think that my programmer is okay.. but if it get finished and that error is appearing...


any comments/suggestions might help me... Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 08, 2010 2:25 pm     Reply with quote

I don't know anything about those programmers. The inventors of those
programmers apparently don't have a support forum. My advice is to
use Google to find help.
zephyr2009



Joined: 06 Aug 2010
Posts: 15

View user's profile Send private message

PostPosted: Thu Aug 12, 2010 9:45 am     Reply with quote

Okay sir PCM programmer,

I wanted to add another feature in which the number that I inputted on LCD should be saved on PIC?

Could that be possible?

Because my project is all about SMS Texting, in which I wanted to send messages all the cellphone numbers saved on PIC...

So that my circuit will have a GSM Modem...

Do you have thread about these?

Thank you in advance.
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