Pic 16f877a simulation problem

Discussion in 'Programmer's Corner' started by mahmoud0i0d, Sep 25, 2013.

  1. mahmoud0i0d

    Thread Starter New Member

    Sep 25, 2013
    1
    0
    Hey guys .. I'm glad to participate in this Forum .. that's my first thread .. too bad it's a problem with the simulation :rolleyes: .. Here is the thing . I'm a beginner in programming using C .. and I wanted to make a project using an lcd and a keypad to open a safe .. I wanted it to turn off the system after 4 wrong passwords the problem is when I type the right password the program reads it as wrong .. I don't know why .. That's the simulation pic
    [​IMG]
    and here is the rar file of the code and the simulation I hope u can help
    http://www.fileswap.com/dl/aC7cZ1Px6H/
     
  2. Ian Rogers

    Member

    Dec 12, 2012
    158
    29
    The correct code is 2744 what are you typing
     
  3. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    I really dislike how Proteus allows users to simulate a PIC without an oscillator of any kind.

    You should post your code as text in your post (between code tags, of course) because many people will not go download some random file from some random website and attempt to run it, myself included.
     
  4. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,797
    1,103
    Are you de-bouncing keystrokes in software (I haven't checked you code)?
     
  5. LETITROLL

    Member

    Oct 9, 2013
    218
    2
    Can you share you code ?
     
  6. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,388
    1,605
    In the real world LCD displays typically need a potentiometer to set the contrast.

    There are exceptions but so rare I always start by putting one in; it can get a DNP for "production".
     
Loading...