8051 keypad interfacing C Program problem

Discussion in 'Embedded Systems and Microcontrollers' started by shubham161, Jul 22, 2012.

  1. shubham161

    Thread Starter Member

    Jul 22, 2012
    50
    3
    I think my code is correct but still my simulation software is behaving abnormally.

    check my code at

    http://pastebin.com/JiQ5RTEX

    design1.png design2.png

    this forum doesn't let me attach the proteus design file so i am giving the screen shot. pressing key in the keypad don't do anything and the numbers 1, 4, 7 and 0 shows up on the seven segment with some delay. Seems like the simulation software is not recognizing the "if" statement.
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,452
    3,371
    I do not use simulation software to debug code.
    Why not debug the actual code on a real system?
     
  3. shubham161

    Thread Starter Member

    Jul 22, 2012
    50
    3
    Because the real system costs a lot. I don't have money to buy components and burner right now. And it also takes a lot of time and give a lot more frustration when we fail.
     
Loading...