⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 int.c

📁 Keil 8051 C example RS232 to I2c
💻 C
字号:
#include <at89x52.H>              // SFR definition header file
#include <stdio.h>                 // prototype declarations for I/O functions
#include <rtx51tny.h>                 /* RTX-51 tiny functions & defines      */
#include "function.h"
#include "SystemEvent.h"
#include "UART.h"
#include "ExtVar.h"

void InitINT1(void){ 
  
   EX1=1;                        /* 1=Enable External interrupt 0 */
   EA = 1;                       /* global interrupt enable     */                                
}  
 
void INTx1 (void) interrupt 2 using 2 {                 
          	isr_send_signal(2);        EX1=0;       
} 
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -