C51 COMPILER V9.59.0.0 STC8A_BMM_ISR 06/10/2021 17:04:34 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE STC8A_BMM_ISR OBJECT MODULE PLACED IN .\list\STC8A_BMM_Isr.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE STC8A_BMM_Isr.c LARGE OMF2 OPTIMIZE(8,SPEED) BROWSE DEBUG PRINT(.\list\S -TC8A_BMM_Isr.lst) TABS(2) OBJECT(.\list\STC8A_BMM_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_BMM.h" 14 15 //======================================================================== 16 // 函数: BMM_ISR_Handler 17 // 描述: BMM中断函数. 18 // 参数: none. 19 // 返回: none. 20 // 版本: V1.0, 2021-05-25 21 //======================================================================== 22 void BMM_ISR_Handler (void) interrupt 13 23 { 24 1 char store; 25 1 26 1 store = P_SW2; 27 1 P_SW2 |= 0x80; //使能扩展SFR(XSFR)访问 28 1 29 1 // TODO: 在此处添加用户代码 30 1 //---------- BMM UART1 ------------- 31 1 if (BMM_UR1T_STA & 0x01) //发送完成 32 1 { 33 2 BMM_UR1T_STA &= ~0x01; //清标志位 34 2 BmmTx1Flag = 1; 35 2 } 36 1 if (BMM_UR1T_STA & 0x04) //数据覆盖 37 1 { 38 2 BMM_UR1T_STA &= ~0x04; //清标志位 39 2 } 40 1 41 1 if (BMM_UR1R_STA & 0x01) //接收完成 42 1 { 43 2 BMM_UR1R_STA &= ~0x01; //清标志位 44 2 BmmRx1Flag = 1; 45 2 } 46 1 if (BMM_UR1R_STA & 0x02) //数据丢弃 47 1 { 48 2 BMM_UR1R_STA &= ~0x02; //清标志位 49 2 } 50 1 //---------- BMM UART2 ------------- 51 1 if (BMM_UR2T_STA & 0x01) //发送完成 52 1 { 53 2 BMM_UR2T_STA &= ~0x01; //清标志位 54 2 BmmTx2Flag = 1; C51 COMPILER V9.59.0.0 STC8A_BMM_ISR 06/10/2021 17:04:34 PAGE 2 55 2 } 56 1 if (BMM_UR2T_STA & 0x04) //数据覆盖 57 1 { 58 2 BMM_UR2T_STA &= ~0x04; //清标志位 59 2 } 60 1 61 1 if (BMM_UR2R_STA & 0x01) //接收完成 62 1 { 63 2 BMM_UR2R_STA &= ~0x01; //清标志位 64 2 BmmRx2Flag = 1; 65 2 } 66 1 if (BMM_UR2R_STA & 0x02) //数据丢弃 67 1 { 68 2 BMM_UR2R_STA &= ~0x02; //清标志位 69 2 } 70 1 //---------- BMM UART3 ------------- 71 1 if (BMM_UR3T_STA & 0x01) //发送完成 72 1 { 73 2 BMM_UR3T_STA &= ~0x01; //清标志位 74 2 BmmTx3Flag = 1; 75 2 } 76 1 if (BMM_UR3T_STA & 0x04) //数据覆盖 77 1 { 78 2 BMM_UR3T_STA &= ~0x04; //清标志位 79 2 } 80 1 81 1 if (BMM_UR3R_STA & 0x01) //接收完成 82 1 { 83 2 BMM_UR3R_STA &= ~0x01; //清标志位 84 2 BmmRx3Flag = 1; 85 2 } 86 1 if (BMM_UR3R_STA & 0x02) //数据丢弃 87 1 { 88 2 BMM_UR3R_STA &= ~0x02; //清标志位 89 2 } 90 1 //---------- BMM UART4 ------------- 91 1 if (BMM_UR4T_STA & 0x01) //发送完成 92 1 { 93 2 BMM_UR4T_STA &= ~0x01; //清标志位 94 2 BmmTx4Flag = 1; 95 2 } 96 1 if (BMM_UR4T_STA & 0x04) //数据覆盖 97 1 { 98 2 BMM_UR4T_STA &= ~0x04; //清标志位 99 2 } 100 1 101 1 if (BMM_UR4R_STA & 0x01) //接收完成 102 1 { 103 2 BMM_UR4R_STA &= ~0x01; //清标志位 104 2 BmmRx4Flag = 1; 105 2 } 106 1 if (BMM_UR4R_STA & 0x02) //数据丢弃 107 1 { 108 2 BMM_UR4R_STA &= ~0x02; //清标志位 109 2 } 110 1 111 1 P_SW2 = store; 112 1 } MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 226 ---- C51 COMPILER V9.59.0.0 STC8A_BMM_ISR 06/10/2021 17:04:34 PAGE 3 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)