#include<AT89X51.h> void delay(unsigned int); void main(void)
{ P1_1=0; /* unset pin # 1*/
P1_2=0; /* unset pin # 2*/
/* bring delay*/
delay(300); P1_1=1; /* set pin # 1*/ P1_2=1; /* set pin # 2*/ /*bring delay*/ delay(300) }
/* define delay function*/ void delay(unsigned int itime) { int i,j; for (i=0;i<itime;i++); for (j=0;j<5000;j++); }
It looks like Per really struggled to say anything about the op's post.
it is sad that what could be said with a few simple sentences has to be a full page just to avoid the wrath of the PoliticalCorrectness police
it is sad that what could be said with a few simple sentences ...
A few sentences??? I could put it into five simple words!!! The first four being "what a load of" and the last one having four letters, starting with cr and ending with a p. Better not though, because it's not politically correct.