392659369专题

51单片机使用中断输出不同频率的方波https://bbs.csdn.net/topics/392659369

#include "reg52.h"#include<intrins.h> //#include "math.h"sbit QiTin = P3^0;//启停按键sbit duan = P2^6;//数码段sbit wei = P2^7;//数码位sbit NanBeiHong = P1^0;sbit NanBeiHuan = P1^1;sbit NanBeiLu = P1^