📄 isr.lst
字号:
C51 COMPILER V7.06 ISR 08/10/2005 23:36:34 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE ISR
OBJECT MODULE PLACED IN ISR.OBJ
COMPILER INVOKED BY: D:\Keil51\C51\BIN\C51.EXE ISR.C BROWSE DEBUG OBJECTEXTEND
stmt level source
1 #include "common.h"
2 #include "HAL.H"
3 #include "SL811.H"
4 #include "HPI.H"
5 #include "HPI32.H"
6
7 extern FLAGS bdata bFlags;
8 extern unsigned char xdata UARTBUF[UARTBUF_LENGTH];
9 extern Command_Def xdata Command;
10 //////////////////////////////////////////
11 void ISR_COMM(void) interrupt 4
12 {
13 1 unsigned char *pBuf=(unsigned char *)&Command; //Low Bit at Head
14 1 unsigned long xdata cnt;
15 1
16 1 MCU_LED3=0;
17 1 if(RI==0)
18 1 {
19 2 MCU_LED3=1;
20 2 return;
21 2 }
22 1
23 1 for(cnt=0;cnt<37;cnt++)
24 1 {
25 2 while(!RI);
26 2 *(pBuf+cnt)=SBUF;
27 2 RI=0;
28 2 }
29 1
30 1 /////// data phase /////////////////////
31 1 if(Command.CLass==0x04||Command.CLass==0x05||Command.CLass==0x09) ///GreatFile/GreatDir/WriteFile
32 1 {
33 2 if(Command.len>MAX_WRITE_LENGTH)
34 2 {
35 3 Command.CLass=0xff;
36 3 bFlags.bits.bUartInDone=1;
37 3 MCU_LED3=1;
38 3 return;
39 3 }
40 2 for(cnt=0;cnt<Command.len;cnt++)
41 2 {
42 3 while(!RI);
43 3 UARTBUF[cnt]=SBUF;
44 3 RI=0;
45 3 }
46 2 }
47 1 //////////////////////////
48 1 bFlags.bits.bUartInDone=1;
49 1 RI=0;
50 1 MCU_LED3=1;
51 1 }
52
53 void ISR_INT0(void) interrupt 0
54 {
55 1 DISABLE_INTERRUPTS;
C51 COMPILER V7.06 ISR 08/10/2005 23:36:34 PAGE 2
56 1 SL811Write(IntStatus,INT_CLEAR);
57 1 ENABLE_INTERRUPTS;
58 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 407 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 4
PDATA SIZE = ---- ----
DATA SIZE = ---- 3
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -