Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to increment a number in virtual terminal (proteus)

Status
Not open for further replies.

Keklja

Junior Member level 2
Joined
Nov 11, 2011
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,450
Hi

My project is to to push button and the number should be incrementing by one every time. lets say the number is 25. When I pus button it should be 26, push again it is 27. Now how to show that on virtual terminal? Only idea that I have is standard c something like:

if (button==1)
num++;
printf ("Number is now %d",num);
}
Problem is printf doesnt work and "serial_send" command doesnt support "Number is now %d",num this form.

Im using AT89C51RD2 micro controller
 

which programming tool you are using? and i need to know is your coding compiled successfully or not..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top