Qaisar Azeemi
Member
please also tell me how much delay will this routine produce with 12MHz crystal?
Code:
#include <reg51.h>
sbit led=P0^0;
void delay(msec)
{
int i,j;
for (i=0;i<msec;i++)
for (j=0; j<1275; j++);
}
void main()
{
led=1;
delay(100);
led=0;
delay(100);
}