⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 +

📁 设计仿真实例的运行文件及C程序
💻
字号:
#include<reg52.h>
sbit led=P1^1;
//中断初始化函数
void tx_init()
{
  TMOD=0x60;
  TH1=0x9c;
  TL1=0x9c;
  ET1=1;
  EA=1;
  TR1=1;
  led=1;
}

void main()
{
  tx_init();
  while(1);
}

void tx0_func() interrupt 3
{
  led=~led;
  led=~led;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -