Wesley90
Junior Member level 1
- Joined
- Jan 29, 2013
- Messages
- 15
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,410
Hi,
I've basically designed a keypad interface using 8051 and 16*2 LCD display where a time is set n the countdown begins(say 150secs and downwards)!!
I've used a "for" loop to give one second delay..Now i need to display the decremented number after every second..Eg:150...149 and so on till 0..I want to know how to decrement a number stored in the variable n den display the contents of the variable..
Eg: val=150;
val=--val;
Delay of 1 second;
HOW TO DISPLAY THE CURRENT VALUE of val????
Plz do help!!
I've basically designed a keypad interface using 8051 and 16*2 LCD display where a time is set n the countdown begins(say 150secs and downwards)!!
I've used a "for" loop to give one second delay..Now i need to display the decremented number after every second..Eg:150...149 and so on till 0..I want to know how to decrement a number stored in the variable n den display the contents of the variable..
Eg: val=150;
val=--val;
Delay of 1 second;
HOW TO DISPLAY THE CURRENT VALUE of val????
Plz do help!!