⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lst

📁 Display driver for Hyvix HDC1600 LCD controller in Keil C for 8051
💻 LST
字号:
C51 COMPILER V7.09   MAIN                                                                  08/24/2007 15:55:02 PAGE 1   


C51 COMPILER V7.09, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE main.c OPTIMIZE(SIZE) BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*
   2          **********************************************************************************************************
             -*********
   3          *                                                                                               65k color LCD demo
   4          * Description:  Driver development for CM50010ACT6 65k color LCD demo. This program either display bmp fil
             -e
   5          *                               in *.h format or display system font pixel-by-pixel with the whole screen displays red, green, & blue
   6          * File:                 ..\CM50010ACT\main.c
   7          * Software:             Keil C (C51) compiler, Eval version 7.09 under uVision2 IDE v2.40
   8          * Programmer:   John Leung, TechToys Co. (www.TechToys.com.hk)
   9          * Hardware:             AT89S52-gLCD-STK1 PCB, with Atmel AT89C51RB2 running at 3.3V Vdd, 11.0592 MHz crystal
  10          *                               LCD is CM50010ACT6 module Part # (CM50010ACT6_BO_HDC1600)
  11          *                               The LCD controller is Hyvix's (www.hyvix.com) HDC1600
  12          * Date:                 24th August 2007
  13          * Version:              1.0
  14          * Programmer:   John Leung
  15          *
  16          *                                                                                               All Rights Reserved
  17          *
  18          **********************************************************************************************************
             -*********
  19          */
  20          
  21          #include <REG51RB2.H>
  22          #include "hdc1600.h"
  23          #include "delay.h"
  24          //#include "squares.h"
  25          
  26          /*
  27          **********************************************************************************************************
             -*********
  28          Due to 2k code constraint of the Keil C Eval version, there is not enough code space for displaying 
  29          both system font writing and bmp definition.
  30          Therefore we choose either one. 
  31          Option (A):     Display bmp like squares.h, uncomment the line #include "squares.h" below
  32                                          Uncomment cDispPatAt(64, 64, &squares[0]); in main()
  33                                          Comment the line #define PIXEL_FONT_EN 1 in hdc1600.h
  34                                          Comment the line "cDispStrAt(0,0, "ABCDEFGHI...." in main()
  35          Option (B):             Display system font. This is the default operation here.
  36                                          #define PIXEL_FONT_EN 1 in hdc1600.h to enable system font
  37                                          This allows function call for cDispStrAt()
  38                                          Remember to comment the lines   #include "sqaures.h" in the header section
  39                                                                                                          cDisprPatAt(64, 64, &squares[0]) in main() below
  40          **********************************************************************************************************
             -*********
  41          */
  42          
  43          
  44          /*
  45          **********************************************************************************************************
             -*********
  46          *                                                                                                       MAIN
  47          **********************************************************************************************************
             -*********
  48          */
C51 COMPILER V7.09   MAIN                                                                  08/24/2007 15:55:02 PAGE 2   

  49          void main (void)
  50          {
  51   1              cDispInit();
  52   1              cDispBackLite(ENABLE);
  53   1              cDispClr(RGB(31,63,31));
  54   1      
  55   1              for(;;)
  56   1              {
  57   2                      cDispStrAt(0,0, "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!+_#$%", 1, RGB(31,63,31)); 
  58   2                      //cDisprPatAt(64, 64, &squares[0]);
  59   2                      DelayMs(1000);
  60   2                      cDispClr(RGB(0,63,0));
  61   2                      DelayMs(1000);
  62   2                      cDispClr(RGB(0,0,31));
  63   2                      DelayMs(1000);
  64   2                      cDispClr(RGB(31,0,0));
  65   2                      DelayMs(1000);
  66   2              }
  67   1      }
  68          
  69          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     87    ----
   CONSTANT SIZE    =     44    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -