I need a help plz n my project

Discussion in 'Embedded Systems and Microcontrollers' started by rozalina, Nov 23, 2009.

  1. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    Hi...
    I am doing a project using pic16f877 and SPO256.the user will enter a password(4 integer numbers or more)using a keypad.
    This integers will be compared to a stored password.
    If this password is correct the SPO256 will say a word(welcome,you are allowed)and a green light will appear(using LED).
    If not another sentence will be said and a red light will appear.
    I know how to connect,but i have to write the code using c language.
    1-How to read the integers from the keypad using pic16f877's port c.
    2-How to compare the entered password with the one stored already.
    3-How to open the green light if the password correct(and the red light)
    Please i don't have enough time,i need a fast help....
    Thanks
     
  2. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Start by posting a schematic.
     
  3. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    I want a help n writing the code.....
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,791
    It should be self evident that writng code requires a schematic. It also requires that you clearly define your requirements. Like fine wine this stuff is difficult to do correctly in a hurry. How much time do you have?
     
  5. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    I have a mnonth....
     
  6. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Get cracking on that schematic for starters.
     
  7. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    i have the schematic.i need a help to write the code
     
  8. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Ok so post it. We can't read your mind.
     
  9. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    here s the schematic for the SPO256 ,BUT A PPIC16F877 WILL BE CONNECTED AS I DESCRIBED BEFORE
     
  10. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,791
    You did not tell us how the PIC is connected to anything. Do you really think complex systems can be designed and built this way?
     
  11. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    And what programming language do you plan to write it in?
     
  12. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    The SPO256 only needs a few bytes to speak. The 16F877 has more than enough for a basic vocabulary.
     
  13. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    Any help plz....
     
  14. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,791
    Until we have some clues about how the PIC is connected there is nothing useful we can do. I don't know why this is so hard for you to understand. But, hey you've got another month to keep asking us to do the impossible.
     
  15. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    (But, hey you've got another month to keep asking us to do the impossible)
    thank u alot.....
     
  16. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    I have to write the code in C language...how the pic will be connected? i answer this question n my first letter....all the details i have i post it..
     
  17. SteveO

    Active Member

    May 15, 2008
    33
    0
    I mean I don't really have much help here, but I would suggest if you want real help you put in some effort yourself. It seems you are just asking people to not only write the code for you, but design a schematic for your PIC as well. They have said it is nearly impossible to design this type of system without a schematic of how the pins on the PIC are connected. If you bring a schematic I'm sure you will get some help. I've only been here a short time but I know there are some very helpful people on these boards who I have already learnt alot from and have solved more than one of my issues!

    Cheers guys/gals.
     
  18. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234

    I need you to answer a few questions first:

    1. Are you using the SPO256-AL2 (from Archer Electronics) or the "original" SPO256 used in commodore 64's?
    2. What compiler are you using? (i.e. Hi-Tech C, Microchip C, etc.)
    3. can you post what code you have done already (especially for the keypad) so I can further evaluate your situation....
    If you can provide this, I will be more than happy to assist you further, I have worked with both Pic16F877's + keypad and both SPO256 and SPO256-AL2.....

    My .02
     
  19. rozalina

    Thread Starter New Member

    Nov 23, 2009
    15
    0
    Hi....thank u so much....
    I am working with SPO256-AL2 ....
    I am using Hi-Tech C compiler....
    I do not know how to write the code for:take the input from the keypad to the pic then send from port c to the spo256....
    i have a code for the spo256(how it talk) in picbasic.....
    Thanks
     
  20. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Seriously Rozalina
    For reading the keyboard you must read the port connected to the keyboard. Then decode the input perhaps with a lookup table. And to send data to the SPO256-AL2 you must write something to port C. So is your problem that you do not know how to do this in C?
     
Loading...