C51 COMPILER V9.59.0.0 STC8A_COMPARE_ISR 06/09/2021 14:13:54 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE STC8A_COMPARE_ISR OBJECT MODULE PLACED IN .\list\STC8A_Compare_Isr.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE STC8A_Compare_Isr.c OMF2 OPTIMIZE(8,SPEED) BROWSE DEBUG PRINT(.\list\STC -8A_Compare_Isr.lst) TABS(2) OBJECT(.\list\STC8A_Compare_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_Compare.h" 14 15 //======================================================================== 16 // 函数: CMP_ISR_Handler 17 // 描述: 比较器中断函数. 18 // 参数: none. 19 // 返回: none. 20 // 版本: V1.0, 2020-09-23 21 //======================================================================== 22 void CMP_ISR_Handler (void) interrupt CMP_VECTOR 23 { 24 1 CMPCR1 &= ~CMPIF; //清除中断标志 25 1 26 1 // TODO: 在此处添加用户代码 27 1 P50 = CMPCR1 & 0x01; //中断方式读取比较器比较结果 28 1 } MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 20 ---- 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)