I think my code is correct but still my simulation software is behaving abnormally.
check my code at
http://pastebin.com/JiQ5RTEX
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.
check my code at
http://pastebin.com/JiQ5RTEX
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.