View previous topic :: View next topic |
Author |
Message |
Murat Can
Joined: 25 Aug 2017 Posts: 3
|
Keypad And LCD with 16f877 (Asking) |
Posted: Fri Aug 25, 2017 5:15 am |
|
|
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.
Have a nice day. _________________ Maintenence Specialist |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9244 Location: Greensville,Ontario
|
|
Posted: Fri Aug 25, 2017 5:25 am |
|
|
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
|
|
Posted: Fri Aug 25, 2017 5:58 am |
|
|
Dear Jay, Thank you for suggestions,
I tried Flex keypads from forum.
I couldn't make it in work in Proteus.
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: 19544
|
|
Posted: Fri Aug 25, 2017 6:24 am |
|
|
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
|
|
Posted: Fri Aug 25, 2017 6:35 am |
|
|
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: 9244 Location: Greensville,Ontario
|
|
Posted: Fri Aug 25, 2017 8:17 am |
|
|
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 |
|
|
|