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

📄 interrupt_func.lst

📁 电能表源码
💻 LST
字号:
C51 COMPILER V7.06   INTERRUPT_FUNC                                                        11/24/2008 09:37:04 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE INTERRUPT_FUNC
OBJECT MODULE PLACED IN interrupt_func.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE bottom\interrupt_func.c LARGE OPTIMIZE(9,SIZE) BROWSE NOAREGS MODDP2 INCDIR
                    -(C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR.LENOVO-80B42371\桌面\VANGO\程序\var\) DEBUG OBJECTEXTEND PRINT(.\interrupt_func
                    -.lst) OBJECT(interrupt_func.obj)

stmt level    source

   1          /*************************************************************************************
   2          
   3                  文件类型:
   4                  文件作用:
   5                  修改权限:
   6                  文件相关:
   7                  
   8                  创 建 人:GeminiKQ
   9                  创建日期:2006.12.20
  10                  当前版本:Ver0.1
  11                  
  12                  版本信息:Ver0.1                                        GeminiKQ
  13          
  14          **************************************************************************************/
  15          #include "Tiger.h"
*** WARNING C318 IN LINE 15 OF bottom\interrupt_func.c: can't open file 'Tiger.h'
  16          
  17          unsigned char u3time;
  18          unsigned int u3timeover;
  19          unsigned char systemflg;
  20          
  21          /*
  22          //======================================================
  23          //函数功能:中断管理
  24          //入口参数:type:1-开中断  0-关中断
  25          //返回参数:flag_buffint改变
  26          //======================================================
  27          void Ctor_intrupt(unsigned char type,unsigned char num)
  28          { unsigned long tempdata;
  29            tempdata=1; 
  30            if(type==1)                            //开启中断
  31               { SetInterrupt(num);
  32                     tempdata=tempdata<<num;
  33                     flag_buffint|=tempdata;
  34               }
  35            else
  36               { ClrInterrupt(num);                //屏蔽中断
  37                 tempdata=(~tempdata);
  38                     tempdata=tempdata<<num;
  39                 flag_buffint&=tempdata;
  40               }
  41          }
  42          */
  43          
  44          //=============================================
  45          //      中断服务子程序
  46          //=============================================
  47          void Int0(void) //端口中断0(P1.3),低电平/下降沿                          中断0 
  48          {}              
  49          void Int1(void) //Timer 0 interrupt                                                                     中断1 
  50          {   TL0  = 0xff;                            //10ms
*** ERROR C202 IN LINE 50 OF BOTTOM\INTERRUPT_FUNC.C: 'TL0': undefined identifier
  51   1          TH0  = 0xdf;
C51 COMPILER V7.06   INTERRUPT_FUNC                                                        11/24/2008 09:37:04 PAGE 2   

*** ERROR C202 IN LINE 51 OF BOTTOM\INTERRUPT_FUNC.C: 'TH0': undefined identifier
  52   1          if(time_plusswitch<=8)                    //80ms拉闸信号
*** ERROR C202 IN LINE 52 OF BOTTOM\INTERRUPT_FUNC.C: 'time_plusswitch': undefined identifier
  53   1             time_plusswitch++; 
*** ERROR C202 IN LINE 53 OF BOTTOM\INTERRUPT_FUNC.C: 'time_plusswitch': undefined identifier
  54   1          if(sta_485comm!=standby_comm)            //500ms通讯延时
*** ERROR C202 IN LINE 54 OF BOTTOM\INTERRUPT_FUNC.C: 'sta_485comm': undefined identifier
  55   1             timedelay_comm++;
*** ERROR C202 IN LINE 55 OF BOTTOM\INTERRUPT_FUNC.C: 'timedelay_comm': undefined identifier
  56   1          if(timocount_cf<1000)                    //CF间隔大于10s
*** ERROR C202 IN LINE 56 OF BOTTOM\INTERRUPT_FUNC.C: 'timocount_cf': undefined identifier
  57   1             timocount_cf++;
*** ERROR C202 IN LINE 57 OF BOTTOM\INTERRUPT_FUNC.C: 'timocount_cf': undefined identifier
  58   1      }                   
  59          void Int2(void) //端口中断1(P1.4),低电平/下降沿                          中断2 
  60          {}              
  61          void Int3(void) //Timer 1 interrupt                                                                     中断3 
  62          {
  63   1      }              
  64          void Int4(void) //Timer 2 interrupt                                                                     中断4 
  65          {} 
  66                   
  67          void Int5(void) //Uart 1收中断                                                                          中断5 
  68          { 
  69   1      }              
  70          void Int6(void) //Uart 1发送中断                                                                        中断6 
  71          { 
  72   1      } 
  73                    
  74          void Int7(void) //UART2发送中断  红外发送                                                       中断7 
  75          { 
  76   1              intrupt_sendinfr();             // 红外发送中断相应函数 
  77   1      }  
  78                      
  79          void Int8(void) //UART2接收中断  红外接受                                                       中断8 
  80          { 
  81   1          buff_intrrec=(unsigned char)RecvUData(2);  // 接收到的字节进接受缓存 
  82   1          rec_infrcomm();                                // 接收中断处理函数
  83   1      }  
  84                      
  85          void Int9(void) //UART4发送中断                                                                         中断9 
  86          { 
  87   1      }
  88          
  89          void Int10(void)//UART4接收中断                                                                         中断10
  90          { 
  91   1      }
  92          void Int11(void)//Timer2定时器溢出中断                                                          中断11
  93          {}
  94          void Int12(void)//Timer4定时器溢出中断                                                          中断12
  95          {}
  96          void Int13(void)//FLASH擦写中断                                                                         中断13
  97          {}
  98          void Int14(void)//CF中断                                                                                        中断14
  99          { delay_cftime=timocount_cf;
 100   1        timocount_cf=0; 
 101   1      }              
 102          void Int15(void)//UART3发送中断                                                                         中断15
 103          {
 104   1      }              
 105          void Int16(void)//UART3接收中断                                                                         中断16
 106          {
C51 COMPILER V7.06   INTERRUPT_FUNC                                                        11/24/2008 09:37:04 PAGE 3   

 107   1      }              
 108          void Int17(void)//UART5发送中断                                                                         中断17
 109          {//intrupt_send485();
 110   1      }              
 111          void Int18(void)//UART5接收中断                                                                         中断18
 112          { //buff_485rec=RecvUData(5);
 113   1        //rec_485comm();
 114   1      }              
 115          void Int19(void)//Timer3定时器溢出中断                                                          中断19
 116          {       
 117   1      }              
 118          void Int20(void)//Timer5定时器溢出中断                                                          中断20
 119          {}              
 120          void Int21(void)//RTC秒中断                                                                                     中断21
 121          { Flg_rtvrefresh=1;                    //置位秒刷新标志位
 122   1      }              
 123          void Int22(void)//RTC非法写入中断                                                                       中断22
 124          {}              
 125          void Int23(void)//PLL频率锁定中断                                                                       中断23
 126          {}              
 127          void Int24(void)//端口中断2(P1.1),下降沿触发                                         中断24
 128          {}              
 129          void Int25(void)//端口中断3(P1.2),下降沿触发                                         中断25
 130          {}              
 131          void Int26(void)//PLL频率错误中断                                                                       中断26
 132          {}              
 133          void Int27(void)//掉电中断                                                                                      中断27
 134          {}
 135          
 136          

C51 COMPILATION COMPLETE.  1 WARNING(S),  8 ERROR(S)

⌨️ 快捷键说明

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