Tuesday 20 October 2015

AT89C51 COUNTER




#include<reg51.h>
void main()
{
int x;
TMOD=0x05;
TR0=1;
TH0=0;
TL0=0;
while(1)
{
while(TF0==0)
{
P1=TH0;
P2=TL0;
}
TF0=0;
}
}

No comments:

Post a Comment