外部中断0和外部中断1
来源:互联网 发布:大数据推动技术创新 编辑:程序博客网 时间:2024/05/21 09:43
源程序:
#include<reg51.h>
#define LED P1
void delay(int x);
void light(int x);
void light1(int x);
void main()
{
}
void delay(int x)
{
}
void my_int0() interrupt 0
{
}
void my_int1() interrupt 2
{
}
void light(int x)
{
}
void light1(int x)
{
}