C51 COMPILER V9.59.0.0 STC8A_COMPARE 06/10/2021 10:21:42 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE STC8A_COMPARE OBJECT MODULE PLACED IN .\list\STC8A_Compare.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\Driver\src\STC8A_Compare.c LARGE OMF2 OPTIMIZE(8,SPEED) BROWSE INCDIR -(..\Driver\inc;..\User;..\App\inc) DEBUG PRINT(.\list\STC8A_Compare.lst) TABS(2) OBJECT(.\list\STC8A_Compare.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 // º¯Êý:void CMP_Inilize(CMP_InitDefine *CMPx) 17 // ÃèÊö: ±È½ÏÆ÷³õʼ»¯³ÌÐò. 18 // ²ÎÊý: CMPx: ½á¹¹²ÎÊý,Çë²Î¿¼compare.hÀïµÄ¶¨Òå. 19 // ·µ»Ø: none. 20 // °æ±¾: V1.0, 2012-10-22 21 //======================================================================== 22 void CMP_Inilize(CMP_InitDefine *CMPx) 23 { 24 1 CMPCR1 &= 0x30; 25 1 CMPCR2 = CMPx->CMP_OutDelayDuty & 0x3f; //±È½Ï½á¹û±ä»¯ÑÓʱÖÜÆÚÊý, 0~63 26 1 if(CMPx->CMP_EN == ENABLE) CMPCR1 |= CMPEN; //ÔÊÐí±È½ÏÆ÷ ENABLE,DISABLE 27 1 if(CMPx->CMP_Outpt_En == ENABLE) CMPCR1 |= CMPOE; //ÔÊÐí±È½Ï½á¹ûÊä³öµ½P3.4/P4.1, ENABLE,DISABLE 28 1 if(CMPx->CMP_InvCMPO == ENABLE) CMPCR2 |= INVCMPO; //±È½ÏÆ÷Êä³öÈ¡·´, ENABLE,DISABLE 29 1 if(CMPx->CMP_100nsFilter == DISABLE) CMPCR2 |= DISFLT; //ÄÚ²¿0.1uFÂ˲¨, ENABLE,DISABLE 30 1 31 1 EAXSFR(); /* MOVX A,@DPTR/MOVX @DPTR,AÖ¸ÁîµÄ²Ù×÷¶ÔÏóΪÀ©Õ¹SFR(XSFR) */ 32 1 33 1 if(CMPx->CMP_P_Select <= CMP_P_ADC) CMPEXCFG = (CMPEXCFG & ~0x03) | (CMPx->CMP_P_Select); //±È½ÏÆ÷ÊäÈë -Õý¼«Ñ¡Ôñ, CMP_P_P37/CMP_P_P50/CMP_P_P51, CMP_P_ADC: ÓÉADCÄ£ÄâÊäÈë¶Ë×öÕýÊäÈë. 34 1 if(CMPx->CMP_N_Select <= CMP_N_GAP) CMPEXCFG = (CMPEXCFG & ~0x04) | (CMPx->CMP_N_Select << 2); //±È½ÏÆ÷Ê -äÈ븺¼«Ñ¡Ôñ, CMP_N_GAP: Ñ¡ÔñÄÚ²¿BandGap¾­¹ýOPºóµÄµçѹ×ö¸ºÊäÈë, CMP_N_P36: Ñ¡ÔñP3.6×ö¸ºÊäÈë. 35 1 36 1 EAXRAM(); /* MOVX A,@DPTR/MOVX @DPTR,AÖ¸ÁîµÄ²Ù×÷¶ÔÏóΪÀ©Õ¹RAM(XRAM) */ 37 1 } MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 121 ---- 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 COMPILER V9.59.0.0 STC8A_COMPARE 06/10/2021 10:21:42 PAGE 2 C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)