write a c program for given Flow chart.

Status
Not open for further replies.
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…