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

Keypad And LCD with 16f877 (Asking)

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



Joined: 25 Aug 2017
Posts: 3

View user's profile Send private message Send e-mail

Keypad And LCD with 16f877 (Asking)
PostPosted: Fri Aug 25, 2017 5:15 am     Reply with quote

Hello Dear CCS forum,
I used to use assembly with mikroC and also I'm new to pic programming and CCS.
I'm looking for help, at least an information about writing to lcd by keypad (3x4).
I tried some examples in Proteus and they were separated.
(keypad and lcd separated programs).
I failed.
I need to get float value from keyboard and also write it to lcd.
I know I'm asking a lot. Sorry for it. Just graduated as electrical & electronics engineer. Need this for part of my project. I'm open for all suggestions.
If you give code, could you give explanations near of it, because I'm beginner to CCS and really want to learn a lot. Embarassed
Have a nice day.
_________________
Maintenence Specialist
temtronic



Joined: 01 Jul 2010
Posts: 9229
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Aug 25, 2017 5:25 am     Reply with quote

Simply breakdown the project into smaller parts.
Obvious place to start...get PIC to run the 'classic' 1Hz LED program (flashes LED at 1 HZ rate). This will confirm
1) PIC works
2) compiler compiles
3) programmer programs
4) you can cut code...

Once that works
I'd get LCD module to display
then the keypad (flex_kpd works great...)
then code for inputting/display float numbers.
done

BTW both LCD and KPD code is in the examples folder.

Beware PROTEUS doesn't play nice with PICs, it's totally useless,busted, broke, no good....
Use real hardware from the start..you NEED real hardware for the project
even with modest skills this is at most a 2-3 day task.
Jay
Murat Can



Joined: 25 Aug 2017
Posts: 3

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 25, 2017 5:58 am     Reply with quote

Dear Jay, Thank you for suggestions,
I tried Flex keypads from forum.
I couldn't make it in work in Proteus. Crying or Very sad
i checked many,
I have just problem with making pic know the device,
i have knowledge of C programing
Again thank you.
_________________
Maintenence Specialist
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Fri Aug 25, 2017 6:24 am     Reply with quote

If you look at the flex LCD driver, PCM_Programmer posts a test program for this. This shows how every basic CCS PIC program has to appear:

An include for the processor.
Fuses.
Clock setup (there are certain basic times when these have to be reversed, for very specific things, but this is the normal order).
Then include the driver(s)
Then the main code.
Murat Can



Joined: 25 Aug 2017
Posts: 3

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 25, 2017 6:35 am     Reply with quote

i will try them again, may i ask for problems that i can't solve from here?
_________________
Maintenence Specialist
temtronic



Joined: 01 Jul 2010
Posts: 9229
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Aug 25, 2017 8:17 am     Reply with quote

this...
Quote:

I couldnt make it in work in proteus.

..won't surprise any of us old guys or regulars.

If you read the sticky PIC101 at the top, you'll see why.

Proteus is NOT a reliable,accurate 'simulator' for PICs. while some say it works for 'this' or 'that', it just doesn't work properly. It's been 'busted' for years and no one will fix it.

Honestly the BEST place to get a PIC to work is 'on the bench', you've got to get your fingers pricked by PIC pins and inhale solder fumes to truly understand how PICs work !

Jay
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