51单片机中断实验
时间:10-02
整理:3721RD
点击:
[img]file:///C:\Users\进击的Zhu\AppData\Roaming\Tencent\Users\1208307935\QQ\WinTemp\RichOle\KFLUL2]`WG{Z{)Z[A61}EV3.jpg[/img]#include<reg51.h>
#define uint unsigned int
sbit L=P0^0;
void xx() interrupt 0
{
L=!L;
}
void main()
{
P0=0x00;
EA=1;//kai zhong duan
IT0=0;//wai bu zhong duan 0 di dian ping chu fa fangsi
EX0=1;//wai bu zhog duan 0
do
{}
while(1)
{
L=1;
}
}
这个怎么没有像书上说的那样的现象啊?
#define uint unsigned int
sbit L=P0^0;
void xx() interrupt 0
{
L=!L;
}
void main()
{
P0=0x00;
EA=1;//kai zhong duan
IT0=0;//wai bu zhong duan 0 di dian ping chu fa fangsi
EX0=1;//wai bu zhog duan 0
do
{}
while(1)
{
L=1;
}
}
这个怎么没有像书上说的那样的现象啊?
什么现象