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

📄 lcd sdisplay.lst

📁 C51单片机对st7920并行方式驱动128*64液晶驱动,实现任意位置坐标位置写入图片;自动画线;自动画圆;任意位置反显等功能。
💻 LST
📖 第 1 页 / 共 2 页
字号:
C51 COMPILER V8.15   LCD_SDISPLAY                                                          03/17/2009 18:11:02 PAGE 1   


C51 COMPILER V8.15, COMPILATION OF MODULE LCD_SDISPLAY
OBJECT MODULE PLACED IN LCD SDisplay.OBJ
COMPILER INVOKED BY: E:\Keil\C51\BIN\C51.EXE LCD SDisplay.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*=====================================================================*\
   2          |                                                                                                                                               |
   3          |函数名:LCD工作程序                                                                                                             |
   4          |                                                                                                                               |
   5          |调用函数:LCDfigure()           LCD图形函数                                                                     |
   6          |                 LCDWord()                     LCD字体函数                                                                     |
   7          |                 LCDRdata()            LCD数据反显函数                                                         |
   8          |                 LCD_C()                       LCD清屏函数                                                                     |
   9          |                 Display()                     LCD显示开/关控制函数                                            |
  10          |         Start_line()          LCD开始行设置函数                                                       |
  11          |         Reset()                       LCD复位函数                                                                     |
  12          |         LCD_Time()            延时函数                                                                        |
  13          |                                                                                                                                               |
  14          |功能:实现LCD图片,文字显示功能                                                                                  |
  15          |                                                                                                                                               |
  16          \*=====================================================================*/
  17          
  18          #include <math.h>
  19          #include <AT89X52.H>
  20          #include <stdio.h>
  21          
  22          typedef unsigned char  uchar;           //无符号8位数
  23          typedef signed   char  schar;           //有符号8位数
  24          typedef unsigned int   uint;            //无符号16位数
  25          typedef signed   int   sint;            //有符号16位数
  26          typedef unsigned long  ulong;           //无符号32位数
  27          typedef signed   long  slong;           //有符号32位数
  28          typedef float          FP32;            //单精度浮点数
  29          typedef double         FP64;            //双精度浮点数
  30          
  31          #define BYTE           INT8S            //兼容以前版本的数据类型
  32          #define UBYTE          INT8U
  33          #define WORD           INT16S
  34          #define UWORD          INT16U
  35          #define LONG           INT32S
  36          #define ULONG          INT32U
  37          
  38          #define FALSE   0
  39          #define TRUE    1
  40          
  41          #define comm  0
  42          #define dat   1
  43          
  44          void LCD_Time(uint i);
  45          void init_lcd (void);
  46          void LCDc(unsigned char a);
  47          bit lcd_display(uchar Byte[], uchar x, uchar y, uchar xrange, uchar yrange);
  48          bit lcd_line(uchar x1, uchar y1, uchar x2, uchar y2);
  49          bit coundisplay(uchar x1, uchar y1, uchar x2, uchar y2);
  50          void lcd_china(uchar code *chn);
  51          void cursor_disp(bit open, unsigned char mode);                 //显示开/关控制函数
  52          bit lcd_point(uchar x,uchar y);
  53          void wr_lcd(bit dat_comm,unsigned char content);
  54          void delay_ms(unsigned int i);
  55          void _nop_ (void);
C51 COMPILER V8.15   LCD_SDISPLAY                                                          03/17/2009 18:11:02 PAGE 2   

  56          
  57          unsigned char code Bmp001[]=
  58          {
  59          /*------------------------------------------------------------------------------
  60          ;  源文件 / 文字 : F:\My Documents\111.bmp
  61          ;  宽×高(像素): 45×3
  62          ;  字模格式/大小 : 单色点阵液晶字模,横向取模,字节正序/18字节
  63          ;  数据转换日期  : 2009/3/16 0:22:46
  64          ------------------------------------------------------------------------------*/
  65          0xFF,0xFF,0xFF,0xFF,0xFF,0xF8,0xAA,0xAA,0xAA,0xAA,0xAA,0xA8,0xFF,0xFF,0xFF,0xFF,
  66          0xFF,0xF8
  67          };
  68          
  69          unsigned char code Bmp002[]=
  70          {
  71          /*------------------------------------------------------------------------------
  72          ;  源文件 / 文字 : 
  73          ;  宽×高(像素): 2×3
  74          ;  字模格式/大小 : 单色点阵液晶字模,横向取模,字节正序/3字节
  75          ;  数据转换日期  : 2009/3/16 18:35:55
  76          ------------------------------------------------------------------------------*/
  77          0xC0,0xC0,0xC0
  78          };
  79          
  80          unsigned char code Bmp006[]=
  81          {
  82          /*------------------------------------------------------------------------------
  83          ;  源文件 / 文字 : 
  84          ;  宽×高(像素): 128×64
  85          ;  字模格式/大小 : 单色点阵液晶字模,横向取模,字节正序/1024字节
  86          ;  数据转换日期  : 2009/3/17 14:12:27
  87          ------------------------------------------------------------------------------*/
  88          0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  89          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  90          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  91          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  92          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  93          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  94          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  95          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  96          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  97          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  98          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
  99          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 100          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 101          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 102          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 103          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 104          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 105          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 106          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 107          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 108          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 109          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 110          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 111          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 112          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 113          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 114          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
 115          0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,

⌨️ 快捷键说明

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