文档分类
用单片机实现的交通灯设计
}
void main()
{
cs=0;
second_counts=10;
Operation_type=0;
TMOD=0x01;
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
EA=1;
ET0=1;
TR0=1;
while(1)
Traffic();
//TO interruput Services
void time_interupt() interrupt 1