C51 COMPILER V9.52.0.0   INTERRUPT                                                         10/08/2018 13:51:26 PAGE 1   


C51 COMPILER V9.52.0.0, COMPILATION OF MODULE INTERRUPT
OBJECT MODULE PLACED IN .\Output\Interrupt.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\User\Source\Application\Interrupt.c LARGE OMF2 WARNINGLEVEL(0) BROWSE IN
                    -CDIR(..\Library\FU68xx_Hardware_Driver\Include;..\User\Include) DEBUG PRINT(.\Listing\Interrupt.lst) TABS(2) OBJECT(.\Ou
                    -tput\Interrupt.obj)

line level    source

   1          /**************************** (C) COPYRIGHT 2017 Fortiortech shenzhen *****************************
   2          * File Name          : Interrupt.c
   3          * Author             : Vina Peng,Fortiortech  Appliction Team
   4          * Version            : V1.0
   5          * Date               : 
   6          * Description        : This file contains all the interrupt function used for Motor Control.
   7          ***************************************************************************************************
   8          * All Rights Reserved
   9          **************************************************************************************************/
  10          
  11          
  12          /* Includes -------------------------------------------------------------------------------------*/
  13          // #include <Interrupt.h>
  14          #include <FU68xx_2.h>
  15          #include <Myproject.h>
  16          #include <Customer_Debug.h>
  17          /*---------------------------------------------------------------------------*/
  18          /* Name     :   void USART_INT(void) interrupt 12
  19          /* Input    :   NO
  20          /* Output   :   NO
  21          /* Description: 串口中断，中断优先级最低，用于接收调速信号,无中断插入时8us
  22          /*---------------------------------------------------------------------------*/
  23          extern void UartSendIsr();
  24          extern void  UartRecIsr();
  25          void USART_INT(void)  interrupt 12
  26          {
  27   1        if(TI==1)//
  28   1        {
  29   2          TI=0; //
  30   2         if(Uart.SendCnt<Uart.UsaTxlen)
  31   2          {
  32   3            Uart.SendCnt++;
  33   3            UART_SendData(Uart.T_DATA[Uart.SendCnt]);
  34   3          }
  35   2        }
  36   1        if(RI == 1)
  37   1        {
  38   2          RI = 0;
  39   2          Uart.Uredata= UT_DR;    
  40   2          Uart.R_DATA[Uart.UARxCnt]=Uart.Uredata;
  41   2          if(Uart.R_DATA[0] ==0xAA)
  42   2          {
  43   3            Uart.UARxCnt ++ ;
  44   3            if(Uart.R_DATA[1] ==0x55) 
  45   3            {
  46   4              Uart.R_DATA[1] =0;
  47   4              Uart.UARxCnt = 0;
  48   4            }       
  49   3          }
  50   2          else
  51   2          {
  52   3             Uart.UARxCnt = 0;
  53   3          }
C51 COMPILER V9.52.0.0   INTERRUPT                                                         10/08/2018 13:51:26 PAGE 2   

  54   2          if(Uart.UARxCnt>=10)
  55   2          {
  56   3            Uart.UARxCnt=0;
  57   3            Uart.ResponceFlag=1;
  58   3          }
  59   2        }
  60   1      }
  61          
  62          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    230    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)
