Interrupt(单片机中断)

标签:
单片机中断 |
分类: [01]单片机 |
http://s15/middle/a05b986dgbd938a93b6be&690
1.外部中断:
#include<reg52.h>
#include<stdio.h>
#define uint unsigned int
#define uchar unsigned char
uchar
temp;
void delay(uint
delay_time);
void main()
{
}
void delay(uint delay_time)
{
}
void INTERRUPT() interrupt 0
{
}
proteus仿真结果:
http://s15/middle/a05b986dgbd93b7141ade&690
http://s10/middle/a05b986dgbd93c08e54e9&690
http://s7/middle/a05b986dgbd93ce8eb8b6&690
代码:
#include<reg52.h>
#include<stdio.h>
#define uint unsigned int
#define uchar unsigned char
uint
n;
0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00,0xff};
void main()
{
}
void INTERRUPT( )
{
}