Wesley90
Junior Member level 1
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!!