C51 COMPILER V9.52.0.0   INTERRUPT                                                         09/28/2018 12:18:40 PAGE 1   


C51 COMPILER V9.52.0.0, COMPILATION OF MODULE INTERRUPT
OBJECT MODULE PLACED IN .\Output\Interrupt.obj
COMPILER INVOKED BY: D:\Softwares\Keil\C51\BIN\C51.EXE ..\User\Source\Application\Interrupt.c LARGE OMF2 BROWSE INCDIR(.
                    -.\Library\FU68xx_Hardware_Driver\Include;..\User\Include) DEBUG PRINT(.\Listing\Interrupt.lst) OBJECT(.\Output\Interrupt
                    -.obj)

line level    source

   1          /**************************** (C) COPYRIGHT 2018 Fortiortech shenzhen *****************************
   2          * File Name          : Interrupt.c
   3          * Author             : Chance Cheng, Fortiortech Appliction Team
   4          * Version            : V1.0
   5          * Date               : 2018-09-20
   6          * Description        : This file contains all the interrupt function used for Motor Control.
   7          ***************************************************************************************************
   8          * All Rights Reserved
   9          **************************************************************************************************/
  10          
  11          /* Includes -------------------------------------------------------------------------------------*/
  12          #include <FU68xx_2.h>
  13          #include <Myproject.h>
  14          
  15          
  16          /*-------------------------------------------------------------------------------------------------
  17              Function Name :     void SPI_INT(void) interrupt 14
  18              Description   :     SPI中断函数
  19              Input         :     无
  20              Output                :     无
  21          -------------------------------------------------------------------------------------------------*/
  22          uint8 SPI_ReceData = 0;
  23          void SPI_INT(void) interrupt 14
  24          {
  25   1          /* SPI传输完成中断 */
  26   1          if(ReadBit(SPI_CR1, SPIIF))
  27   1          {
  28   2              SPI_ReceData = SPI_DR;                      // 读取从机发送的数据
  29   2              ClrBit(SPI_CR1, SPIIF);
  30   2          }
  31   1          
  32   1          /* SPI写冲突中断 */
  33   1          if(ReadBit(SPI_CR1, WCOL))
  34   1          {
  35   2              ClrBit(SPI_CR1, WCOL);
  36   2          }
  37   1          
  38   1          /* SPI方式错误中断 */
  39   1          if(ReadBit(SPI_CR1, MODF))
  40   1          {
  41   2              ClrBit(SPI_CR1, MODF);
  42   2          }
  43   1          
  44   1          /* SPI接收溢出中断(仅从机有效) */
  45   1          if(ReadBit(SPI_CR1, RXOVR))
  46   1          {
  47   2              ClrBit(SPI_CR1, RXOVR);
  48   2          }
  49   1      }
  50          


MODULE INFORMATION:   STATIC OVERLAYABLE
C51 COMPILER V9.52.0.0   INTERRUPT                                                         09/28/2018 12:18:40 PAGE 2   

   CODE SIZE        =     71    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =      1    ----
   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)
