单片机c51中断程序

如题所述

第1个回答  2020-12-07
外部中断
#include "reg51.h"

void int0(void) interrupt 0
{

}

void main(void)
{
IT0=1;
EX0=1;
//EA=1;
}
相似回答