pic 16f877a key bad not function

Discussion in 'Embedded Systems and Microcontrollers' started by emad shaaban, Apr 14, 2012.

  1. emad shaaban

    Thread Starter New Member

    Apr 10, 2012
    8
    0
    hi all
    i used pic 16f877a to read numbers from kay bad and display them in LCD (16x2) all the programe is function in proteus but in real the Lcd is working properly but i can not enter any number
    (i used R10K to ground in each kay colm) ( con figuration bit all disable save HS an WRT=WRT_half),
    plz help
     
    • 3-3.PNG
      3-3.PNG
      File size:
      22.4 KB
      Views:
      26
  2. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    have you got some code?
     
  3. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    763
    What means "kay bad"? Maybe "keypad"?

    If what you say is that your keypad does not work at all, show the settings of the port involved.

    Are you aware of the difference between pull-up and pull-down resistors?

    Show code.
     
  4. emad shaaban

    Thread Starter New Member

    Apr 10, 2012
    8
    0
    hi today
    yes i ment kaypad sorry for tne mistake . i do not know the differnances the you talk about ,could you please tell me.
     
  5. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    post your code.
     
  6. emad shaaban

    Thread Starter New Member

    Apr 10, 2012
    8
    0
    i used flowcode for programing i do not have codes
     
  7. Felo

    Member

    Feb 20, 2012
    91
    13
    flowcode does have an export ASM listing option, is very hard to help you without more info
     
  8. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    ugh. i cant help then. try uploading a picture of the flowcode? i imagine flowcode uses flowchart style layouts? so take a screen shot? must be able to export!
     
  9. MrChips

    Moderator

    Oct 2, 2009
    12,441
    3,361
    Do you understand how to interface to a keypad?
     
  10. emad shaaban

    Thread Starter New Member

    Apr 10, 2012
    8
    0
    dear all
    i than you all for your replies , i found the problme it was in the configuration bits WRT(wrt=enable) ,the correct is to put in(wrt=wrt_half), but i concloded that by luck ,coud any one till as what is the function and the reasone
    thankyou
     
  11. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    look in the datasheet. its the memory protection bits. someone else had the same problem the other day, exactly the same.. does noone read the datasheet?
     
Loading...