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.

write a c program for given Flow chart.

Status
Not open for further replies.

N.Karthick

Junior Member level 2
Junior Member level 2
Joined
Sep 19, 2014
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Tirupur, India
Activity points
166
Hi Everyone,

Pls any tell me how to write a c code for that diagram Untitled.png
 

Based on the information that you have given (which is close to none) I will take a wild guess that this code will do the job:

Code:
int x;
int y;

void main(){
    x=1023;                               // set x to maximum value of 1023 - just a guess - no idea what is actually required
    for(y=0; y< 1024; y++){
       Delay_ms(10);                  // adjust to suit time of waveform - if that is what is wanted - again just a wild guess
    }
    while(1);                              // infinite loop to prevent return to operating system
}

Code is untested - just guessing at what is wanted
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top