#include<reg51.h>
void main()
{
TMOD=0x50; // Timer1 is acting as counter in mode 1
TL1=0x00;
TH1=0x00;
TR1=1; // start timer
while(1);
}
No comments:
Post a Comment