【Proteus仿真】定时器1外部计数中断

【Proteus仿真】定时器1外部计数中断


  • Proteus仿真
    在这里插入图片描述

程序代码

/* Main.c file generated by New Project wizard
 *
 * Created:   周一 6月 27 2022
 * Processor: AT89C51
 * Compiler:  Keil for 8051
 */

#include<reg52.h> //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义

sbit LED=P1^2;    //定义LED端口

猜你喜欢

转载自blog.csdn.net/weixin_42880082/article/details/125492524