[Moved] C CODE TO DISPLAY A NUMBER STORED IN A VARIABLE USING AT89c51/AT89s52

Status
Not open for further replies.

Wesley90

Junior Member level 1
Joined
Jan 29, 2013
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,410
Hi,
Can anybody plz help me in displaying a number (3 digit number) stored in a variable(consider int val)??? The variable keeps getting decremented every second and i need to display it every second!!!
 

Re: C CODE TO DISPLAY A NUMBER STORED IN A VARIABLE USING AT89c51/AT89s52

why is this posted in software requests?
Are you asking for a pc application?

Where do you want to show the value?
 

Re: C CODE TO DISPLAY A NUMBER STORED IN A VARIABLE USING AT89c51/AT89s52

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????

M really sorry>>M new to this and I Did not notice the section when I posted this!!Plz do help!!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…