要求用T1定时,并通过P1.0输出,请填出空白处的语句。
#include<reg51.h>
sbit sout=P1^0;
unsigned char count=20;
void timer1() interrupt 3 using 0
{
TH1= ;
TL1= ;
Count--
if(count==0)
{
count= 20 ;
sout=~sout;
}
}
void main()
{
IE=0x82;
TMOD= 0x10 ;
TH1= ;
TL1= ;
TR1=1;
While(1);
}
在线等,急求,采纳加分!
晶振频率为12MHz