modify.lst
来自「液晶屏的单片机demo程序」· LST 代码 · 共 435 行 · 第 1/2 页
LST
435 行
C51 COMPILER V7.06 MODIFY 08/01/2005 17:59:47 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE MODIFY
OBJECT MODULE PLACED IN C:\WAVE\LCD\BACKUP\新建文件夹\MODIFY.OBJ
COMPILER INVOKED BY: C:\COMP51\C51.EXE C:\WAVE\LCD\BACKUP\新建文件夹\MODIFY.C DB SB OE
stmt level source
*** WARNING C500 IN LINE 1 OF C:\WAVE\LCD\BACKUP\新建文件夹\MODIFY.C: MISSING DEVICE (SECURITY KEY NOT FOUND)
1
2 #include <absacc.h>
3 #include <reg52.h>
4
5 #define DISPLAY_ON 0x3f
6 #define STARTLINE 0xc0
7 #define lcda XBYTE[0x8400]
8 #define lcdb XBYTE[0x8200]
9 #define lcdc XBYTE[0x8500]
10 #define lcdd XBYTE[0x8300]
11
12 sbit LCD_RS=P2^0;
13 sbit LCD_CS1=P2^2;
14 sbit LCD_CS2=P2^1;
15 sbit LCD_RW=P2^3;
16 sbit LCD_CE=P2^7;
17 sbit CPU_WR=P3^6;
18 sbit CPU_RD=P3^7;
19
20 unsigned char code kaiping[6][280]={
21 0x00,0x00,0x80,0xC0,0xF0,0x38,0x18,0x1C,0x0E,0x06,0x07,0x03,0x03,0x03,0x03,0x03,
22 0x03,0x03,0x03,0x03,0x02,0x06,0x0E,0x1C,0x18,0x38,0xF0,0xC0,0x80,0x00,0x00,0x00,
23 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
24 0x80,0x80,0x80,0x80,0xFF,0xA0,0xA0,0x90,0x90,0x88,0x84,0x82,0x80,0x80,0x80,0x00,
25 0x00,0x10,0x21,0x86,0x60,0x80,0x60,0x18,0x00,0xFF,0x00,0x08,0x10,0x20,0x40,0x00,
26 0x00,0x10,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,
27 0x00,0xFE,0x02,0x22,0x5A,0x86,0x00,0xFE,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,
28 0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x3F,0xC2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
29 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
30 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
31 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
32 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
33 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
34 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
35 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
36 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
37 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
38 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
39
40
41
42 0xF8,0xFE,0x07,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x06,0x0C,0x38,
43 0x38,0x0C,0x06,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x07,0x3E,0x38,0x00,
44 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
45 0x00,0x00,0x00,0x00,0xFF,0x40,0x21,0x12,0x04,0x08,0x10,0x30,0x60,0x20,0x00,0x00,
46 0x04,0x04,0xFE,0x01,0x80,0x80,0x40,0x40,0x20,0x23,0x10,0x08,0x04,0x03,0x00,0x00,
47 0x00,0x80,0x40,0x20,0x10,0x0C,0x03,0x08,0x71,0x22,0x04,0x18,0x30,0xE0,0x40,0x00,
48 0x00,0xFF,0x04,0x08,0x04,0x03,0x00,0x3F,0x10,0x10,0x10,0x10,0x10,0x3F,0x00,0x00,
49 0x00,0x40,0x20,0x10,0x0C,0x03,0x00,0x00,0x01,0x06,0x0C,0x18,0x30,0x60,0x20,0x00,
50 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
51 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
52 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
53 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
54 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
C51 COMPILER V7.06 MODIFY 08/01/2005 17:59:47 PAGE 2
55 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
56 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
57 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
58 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
59 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
60
61
62 0x39,0xF9,0xC1,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x3F,0x3F,0x00,0x00,0x00,
63 0x00,0x00,0x00,0x3F,0x3F,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0xC1,0xFF,0x3F,0x00,
64 0x00,0x00,0xF8,0x48,0x48,0x48,0x48,0xFF,0x48,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,
65 0x00,0x00,0x02,0x02,0x02,0x02,0x02,0xE2,0x12,0x0A,0x06,0x02,0x00,0x80,0x00,0x00,
66 0x00,0x04,0x84,0x44,0xE4,0x34,0x2C,0x27,0x24,0x24,0x24,0xE4,0x04,0x04,0x04,0x00,
67 0xFE,0x02,0x32,0x4E,0x82,0x00,0xFE,0x4A,0xCA,0x4A,0x4A,0x4A,0x7E,0x00,0x00,0x00,
68 0x00,0x00,0x80,0x40,0x30,0x0E,0x84,0x00,0x00,0x0E,0x10,0x60,0xC0,0x80,0x80,0x00,
69 0x00,0x10,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x12,0x02,0x02,0xFE,0x00,0x00,
70 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
71 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,
72 0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x80,
73 0x80,0x80,0xC0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x80,
74 0xC0,0xC0,0x80,0x80,0x80,0x80,0xC0,0xC0,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,
75 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
76 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
77 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
78 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
79 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
80
81
82
83
84 0x00,0x00,0x03,0x07,0x1E,0x38,0x30,0x70,0xE0,0xC0,0xC0,0x80,0x80,0x80,0x80,0x80,
85 0x80,0x80,0x80,0x80,0x80,0xC0,0xE0,0x70,0x30,0x38,0x1E,0x07,0x03,0x00,0x00,0x00,
86 0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x3F,0x44,0x44,0x44,0x44,0x4F,0x40,0x70,0x00,
87 0x01,0x01,0x01,0x01,0x01,0x41,0x81,0x7F,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,
88 0x02,0x01,0x00,0x00,0xFF,0x09,0x09,0x09,0x29,0x49,0xC9,0x7F,0x00,0x00,0x00,0x00,
89 0xFF,0x00,0x02,0x04,0x03,0x00,0xFF,0x40,0x20,0x03,0x0C,0x12,0x21,0x60,0x20,0x00,
90 0x00,0x01,0x20,0x70,0x28,0x24,0x23,0x31,0x10,0x10,0x14,0x78,0x30,0x01,0x00,0x00,
91 0x00,0x00,0x1F,0x04,0x04,0x04,0x04,0x04,0x04,0x0F,0x00,0x20,0x40,0x3F,0x00,0x00,
92 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
93 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
94 0x00,0x06,0x06,0xF6,0xE6,0x26,0x3F,0x3F,0x22,0xF2,0xE2,0x02,0x02,0xFF,0xFF,0x4C,
95 0x44,0x44,0x6C,0xFF,0x83,0x00,0x00,0x00,0x00,0x00,0x21,0x21,0x26,0xE4,0xE4,0x24,
96 0x01,0xA5,0xB4,0xBC,0xAC,0xA6,0xFD,0xF5,0xA4,0xA4,0xA4,0x80,0x80,0x00,0x00,0x00,
97 0x08,0x08,0x88,0xFF,0x48,0x28,0x00,0xC8,0x48,0x48,0x7F,0x48,0xC8,0x48,0x08,0x00,
98 0x10,0x10,0x10,0x10,0x10,0x90,0x50,0xFF,0x50,0x90,0x12,0x14,0x10,0x10,0x10,0x00,
99 0x00,0x20,0x10,0xF8,0x14,0x13,0x12,0x92,0x12,0x1A,0x16,0xF0,0x00,0x00,0x00,0x00,
100 0x20,0x22,0x2A,0xAA,0xAA,0xAA,0xAA,0xBF,0xAA,0xAA,0xAA,0xAA,0x2A,0x22,0x20,0x00,
101 0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x3F,0xC2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
102
103
104
105 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,
106 0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
107 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
108 0x00,0x20,0x20,0x20,0x20,0xFF,0x00,0x00,0x00,0xFF,0x40,0x20,0x30,0x18,0x10,0x00,
109 0x00,0x04,0x04,0xE4,0x24,0x24,0x25,0x26,0x24,0x24,0x24,0xE4,0x06,0x04,0x00,0x00,
110 0x00,0x08,0xC8,0x08,0x08,0x88,0x7F,0x08,0x08,0x08,0xFC,0x48,0x80,0x00,0x00,0x00,
111 0x02,0x02,0x82,0xBA,0xAA,0xAA,0xAA,0xFF,0xAA,0xAA,0xAA,0xAA,0xBA,0x02,0x02,0x00,
112 0x00,0xC0,0x78,0x97,0x12,0x10,0xF0,0x00,0x00,0x00,0xFF,0x20,0x40,0x80,0x80,0x00,
113 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
114 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
115 0x00,0x00,0x00,0x03,0x07,0x02,0x02,0x02,0x0A,0x0F,0x1F,0x0C,0x0F,0x07,0x01,0x00,
116 0x00,0x00,0x00,0x1F,0x1F,0x00,0x00,0x00,0x00,0x06,0x02,0x02,0x02,0x02,0x03,0x02,
C51 COMPILER V7.06 MODIFY 08/01/2005 17:59:47 PAGE 3
117 0x03,0x02,0x06,0x06,0x04,0x04,0x0F,0x0F,0x0C,0x1C,0x1C,0x1C,0x0C,0x0C,0x04,0x00,
118 0x01,0x41,0x80,0x7F,0x00,0x40,0x40,0x20,0x13,0x0C,0x0C,0x12,0x21,0x60,0x20,0x00,
119 0x10,0x10,0x08,0x04,0x02,0x01,0x00,0x7F,0x00,0x00,0x01,0x06,0x0C,0x18,0x08,0x00,
120 0x00,0x80,0x80,0x4F,0x40,0x20,0x18,0x07,0x08,0x10,0x20,0xEF,0x40,0x00,0x00,0x00,
121 0x00,0x80,0x80,0x5F,0x40,0x20,0x10,0x0F,0x10,0x10,0x20,0xEF,0x40,0x00,0x00,0x00,
122 0x00,0x40,0x20,0x10,0x0C,0x03,0x00,0x00,0x01,0x06,0x0C,0x18,0x30,0x60,0x20,0x00,
123
124
125
126 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
127 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
128 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
129 0x10,0x30,0x18,0x08,0x04,0x7F,0x00,0x00,0x00,0x3F,0x40,0x40,0x40,0x40,0x78,0x00,
130 0x00,0x20,0x10,0x19,0x0D,0x41,0x81,0x7F,0x01,0x01,0x05,0x0D,0x38,0x10,0x00,0x00,
131 0x04,0x42,0x21,0x10,0x0C,0x03,0x00,0x00,0x20,0x40,0x3F,0x00,0x00,0x07,0x02,0x00,
132 0x02,0x02,0x0A,0x0A,0x2A,0x4A,0x8A,0x7F,0x0A,0x0A,0x0A,0x0A,0x1F,0x02,0x02,0x00,
133 0x41,0x20,0x10,0x0B,0x04,0x0B,0x10,0x10,0x20,0x20,0x5F,0x40,0x40,0x41,0x40,0x00,
134 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
135 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
136 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
137 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
138 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
139 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
140 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
141 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
142 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
143 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
144
145
146
147 void delay(int num) //延时,执行一次延时用时约10us
148 {
149 1 while(num--);
150 1 }
151 /*
152 void lcd_write(unsigned char x,unsigned char y,unsigned char dd) //在(x,y)处显示
153 {
154 bit i;
155 unsigned char j;
156 j=1;
157 if(y<64)
158 i=1;
159 else
160 {
161 i=0;
162 y=y-64;
163 }
164 x=x/8;
165 if(i==1)
166 lcda=0xb8+x;
167 else
168 lcdb=0xb8+x;
169 while(j--); //下降沿锁存数据
170 j++;
171 if(i==1)
172 lcda=0x40+y;
173 else
174 lcdb=0x40+y;
175 while(j--);
176 j++;
177 LCD_RS=1;
178 if(i==1)
C51 COMPILER V7.06 MODIFY 08/01/2005 17:59:47 PAGE 4
179 lcdc=dd;
180 else
181 lcdd=dd;
182 while(j--);
183 }
184 */
185 void lcd_clear(void)
186 {
187 1 unsigned char x,y;
188 1 for(x=0;x<8;x++)
189 1 {
190 2 lcda=0xb8+x;
191 2 lcda=0x40;
192 2 lcdb=0xb8+x;
193 2 lcdb=0x40;
194 2 for (y=0;y<64;y++)
195 2 {
196 3 lcdc=0;
197 3 lcdd=0;
198 3 }
199 2 }
200 1 }
201
202
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?