C51 COMPILER V9.59.0.0 STC8A_SPI_ISR 06/10/2021 10:21:48 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE STC8A_SPI_ISR OBJECT MODULE PLACED IN .\list\STC8A_SPI_Isr.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\Driver\isr\STC8A_SPI_Isr.c LARGE OMF2 OPTIMIZE(8,SPEED) BROWSE INCDIR -(..\Driver\inc;..\User;..\App\inc) DEBUG PRINT(.\list\STC8A_SPI_Isr.lst) TABS(2) OBJECT(.\list\STC8A_SPI_Isr.obj) line level source 1 /*---------------------------------------------------------------------*/ 2 /* --- STC MCU Limited ------------------------------------------------*/ 3 /* --- STC 1T Series MCU Demo Programme -------------------------------*/ 4 /* --- Mobile: (86)13922805190 ----------------------------------------*/ 5 /* --- Fax: 86-0513-55012956,55012947,55012969 ------------------------*/ 6 /* --- Tel: 86-0513-55012928,55012929,55012966 ------------------------*/ 7 /* --- Web: www.STCMCU.com --------------------------------------------*/ 8 /* --- Web: www.STCMCUDATA.com ---------------------------------------*/ 9 /* --- QQ: 800003751 -------------------------------------------------*/ 10 /* 如果要在程序中使用此代码,请在程序中注明使用了STC的资料及程序 */ 11 /*---------------------------------------------------------------------*/ 12 13 #include "STC8A_SPI.h" 14 15 //======================================================================== 16 // 本地变量声明 17 //======================================================================== 18 19 u8 SPI_RxCnt; 20 21 //======================================================================== 22 // 函数: SPI_ISR_Handler 23 // 描述: SPI中断函数. 24 // 参数: none. 25 // 返回: none. 26 // 版本: V1.0, 2020-09-23 27 //======================================================================== 28 void SPI_ISR_Handler() interrupt SPI_VECTOR 29 { 30 1 if(SPCTL & 0x10) //主机模式 31 1 { 32 2 B_SPI_Busy = 0; 33 2 } 34 1 else //从机模式 35 1 { 36 2 if(SPI_RxCnt >= SPI_BUF_LENTH) SPI_RxCnt = 0; 37 2 SPI_RxBuffer[SPI_RxCnt++] = SPDAT; 38 2 SPI_RxTimerOut = 5; 39 2 } 40 1 SPSTAT = SPIF + WCOL; //清0 SPIF和WCOL标志 41 1 } 42 MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 80 ---- CONSTANT SIZE = ---- ---- XDATA SIZE = 1 ---- PDATA SIZE = ---- ---- DATA SIZE = ---- ---- IDATA SIZE = ---- ---- BIT SIZE = ---- ---- EDATA SIZE = ---- ---- HDATA SIZE = ---- ---- C51 COMPILER V9.59.0.0 STC8A_SPI_ISR 06/10/2021 10:21:48 PAGE 2 XDATA CONST SIZE = ---- ---- FAR CONST SIZE = ---- ---- END OF MODULE INFORMATION. C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)