C51 COMPILER V9.59.0.0 STC8A_LCM 06/10/2021 10:21:46 PAGE 1 C51 COMPILER V9.59.0.0, COMPILATION OF MODULE STC8A_LCM OBJECT MODULE PLACED IN .\list\STC8A_LCM.obj COMPILER INVOKED BY: C:\Keil_v5\C51\BIN\C51.EXE ..\Driver\src\STC8A_LCM.c LARGE OMF2 OPTIMIZE(8,SPEED) BROWSE INCDIR(..\ -Driver\inc;..\User;..\App\inc) DEBUG PRINT(.\list\STC8A_LCM.lst) TABS(2) OBJECT(.\list\STC8A_LCM.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_LCM.h" 14 15 //======================================================================== 16 // º¯Êý: void LCM_Inilize(LCM_InitTypeDef *LCM) 17 // ÃèÊö: LCM ³õʼ»¯³ÌÐò. 18 // ²ÎÊý: LCM: ½á¹¹²ÎÊý,Çë²Î¿¼LCM.hÀïµÄ¶¨Òå. 19 // ·µ»Ø: none. 20 // °æ±¾: V1.0, 2021-06-02 21 //======================================================================== 22 void LCM_Inilize(LCM_InitTypeDef *LCM) 23 { 24 1 EAXSFR(); /* MOVX A,@DPTR/MOVX @DPTR,AÖ¸ÁîµÄ²Ù×÷¶ÔÏóΪÀ©Õ¹SFR(XSFR) */ 25 1 26 1 LCMIFSTA = 0x00; 27 1 if(LCM->LCM_Mode == MODE_M6800) LCMIFCFG |= MODE_M6800; //LCM½Ó¿Úģʽ£ºM6800 28 1 else LCMIFCFG &= ~MODE_M6800; //LCM½Ó¿Úģʽ£ºI8080 29 1 30 1 if(LCM->LCM_Bit_Wide == BIT_WIDE_16) LCMIFCFG |= BIT_WIDE_16; //LCMÊý¾Ý¿í¶È£º16λ 31 1 else LCMIFCFG &= ~BIT_WIDE_16; //LCMÊý¾Ý¿í¶È£º8λ 32 1 33 1 if(LCM->LCM_Setup_Time <= 7) LCMIFCFG2 = (LCMIFCFG2 & ~0x1c) | (LCM->LCM_Setup_Time << 2); //LCMͨÐÅÊý¾Ý½ -¨Á¢Ê±¼ä£º0~7 34 1 if(LCM->LCM_Hold_Time <= 3) LCMIFCFG2 = (LCMIFCFG2 & ~0x03) | LCM->LCM_Hold_Time; //LCMͨÐÅÊý¾Ý½¨Á¢Ê±¼ä£º -0~7 35 1 36 1 if(LCM->LCM_Enable == ENABLE) LCMIFCR |= 0x80; //ʹÄÜLCM½Ó¿Ú¹¦ÄÜ 37 1 else LCMIFCR &= ~0x80; //½ûÖ¹LCM½Ó¿Ú¹¦ÄÜ 38 1 39 1 EAXRAM(); /* MOVX A,@DPTR/MOVX @DPTR,AÖ¸ÁîµÄ²Ù×÷¶ÔÏóΪÀ©Õ¹RAM(XRAM) */ 40 1 } MODULE INFORMATION: STATIC OVERLAYABLE CODE SIZE = 132 ---- CONSTANT SIZE = ---- ---- XDATA SIZE = ---- ---- PDATA SIZE = ---- ---- DATA SIZE = ---- ---- IDATA SIZE = ---- ---- BIT SIZE = ---- ---- EDATA SIZE = ---- ---- HDATA SIZE = ---- ---- C51 COMPILER V9.59.0.0 STC8A_LCM 06/10/2021 10:21:46 PAGE 2 XDATA CONST SIZE = ---- ---- FAR CONST SIZE = ---- ---- END OF MODULE INFORMATION. C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)