📄 cc1.c
字号:
#include<AT89x51.H>
unsigned int t7hz;
main()
{
while(1)
{
TMOD=0x02;
TH0=0x06;
TL0=0x06;
EA=1;
ET0=1;
TR0=1;
while(1);
}
}
void timerr(void) interrupt 1
{
t7hz++;
if(t7hz==2000)
{
t7hz=0;
P0_7=~P0_7;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -