Sir,Thank you for reply
The external DC signal 0-5V is taken as input through the port avillable on the Embedded board. With the help of ADC this signal is to be converted in to digital form to blink the LED. We take T=Ton + Toff = 5sec
if i/p is 1V => LED will ON for 1 sec and OFF for 4 sec,This cycle remain continue..
if i/p is 2V => LED will ON for 2 sec and OFF for 3 sec,This cycle remain continue..
if i/p is 3V => LED will ON for 3 sec and OFF for 2 sec,This cycle remain continue..
if i/p is 4V => LED will ON for 4 sec and OFF for 1 sec,This cycle remain continue..
i am asking for the logic behind coding ..