#include
sbit P1_1 = P1^1;
//定時器的初始化
void delay_1ms(void)
{
TMOD = 0x01;//采用16位計數(shù)器
TH0= 0xFC;
TL0= 0x18;
ET0= 0;
TR0= 1;//開啟
while(!TF0);
TF0= 0;
TR0 = 0;
}
void main(void)
{
while(1){
P1_1 = 1;
delay_1ms();
delay_1ms();
P1_1 = 0;
delay_1ms();
delay_1ms();
}
}