📄 lcd.lst
字号:
C51 COMPILER V6.23a LCD 11/27/2003 16:33:33 PAGE 1
C51 COMPILER V6.23a, COMPILATION OF MODULE LCD
OBJECT MODULE PLACED IN LCD.OBJ
COMPILER INVOKED BY: d:\SoftDev\Keil\C51\BIN\C51.EXE LCD.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 /****************************************************************/
2 /* UP-MP3DIY100 */
3 /* Beijing Universal Pioneering Technology Co., LTD */
4 /* CopyRighted,All right Reserved www.up-tech.com */
5 /* July,2003 */
6 /* 010-62387873 62381842 */
7 /****************************************************************/
8
9 //#include<reg51.h>
10 #include "REGSND1.H"
11 #include <absacc.h>
12 #include <lcd.h>
13 #include "uart.h"
14
15 bit FLAGDOG=0;/*看门狗标志位*/
16 sbit WDI=P2^7;
17
18 unsigned char code yu[32]={0x00,0x00,0x88,0x88,0x4A,0xAC,0xB8,0xAA,0xBC,0xA8,0xB8,0xAC,0x4A,0x88,0x88,0x00
-,
19 0x00,0x00,0x00,0x00,0x3A,0x2A,0x2A,0x2A,0x2A,0x2A,0x2A,0x2A,0x3A,0x00,0x00,0x00};
20 unsigned char code xin[32]={0x00,0x00,0x80,0x60,0xF8,0x06,0x08,0xA8,0xA8,0xAA,0xAC,0xA8,0xA8,0xA8,0x08,0x0
-0,
21 0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x3E,0x12,0x12,0x12,0x12,0x12,0x3E,0x00,0x00};
22 unsigned char code dian[32]={0x00,0x00,0xF0,0x90,0x90,0x90,0x90,0xFE,0x90,0x90,0x90,0x90,0xF0,0x00,0x00,0x
-00,
23 0x00,0x00,0x0F,0x04,0x04,0x04,0x04,0x1F,0x24,0x24,0x24,0x24,0x27,0x20,0x18,0x00};
24 unsigned char code zi[32]={0x00,0x00,0x80,0x82,0x82,0x82,0x82,0x82,0xE2,0x92,0x8A,0x86,0x82,0x80,0x80,0x00
-,
25 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x20,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
26 unsigned char code you[32]={0x00,0x00,0x04,0x84,0x44,0xF4,0x9C,0x96,0x94,0x94,0x94,0x94,0xF4,0x04,0x04,0x0
-0,
27 0x00,0x00,0x01,0x00,0x00,0x3F,0x04,0x04,0x04,0x14,0x24,0x24,0x1F,0x00,0x00,0x00};
28 unsigned char code xian[32]={0x00,0x00,0xFE,0x02,0x22,0x5A,0x86,0x00,0xFE,0x92,0x92,0x92,0x92,0xFE,0x00,0x
-00,
29 0x00,0x00,0x3F,0x04,0x08,0x04,0x03,0x00,0x3F,0x12,0x04,0x0A,0x11,0x30,0x10,0x00};
30 unsigned char code gong[32]={0x00,0x00,0x80,0x80,0x40,0x30,0x0C,0x00,0xC0,0x06,0x18,0x20,0xC0,0x80,0x80,0x
-00,
31 0x00,0x00,0x00,0x10,0x18,0x14,0x12,0x11,0x10,0x10,0x14,0x18,0x30,0x00,0x00,0x00};
32 unsigned char code si[32]={0x00,0x00,0x10,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x12,0x02,0x02,0xFE,0x00,0x00
-,
33 0x00,0x00,0x00,0x1F,0x08,0x08,0x08,0x08,0x08,0x1F,0x00,0x10,0x20,0x1F,0x00,0x00};
34 unsigned char code d[32]={0x00,0x00,0x00,0xC0,0x40,0x40,0x40,0x7E,0x48,0x48,0x48,0x48,0xC8,0x08,0x00,0x00,
35 0x00,0x00,0x20,0x1B,0x02,0x02,0x0A,0x32,0x02,0x0A,0x32,0x02,0x0B,0x10,0x20,0x00};
36 unsigned char code zhen[32]={0x00,0x00,0xFE,0x22,0x5A,0x86,0x08,0xC8,0xB8,0x8E,0xE8,0x88,0x88,0x88,0x08,0x
-00,
37 0x00,0x00,0x3F,0x02,0x04,0x03,0x04,0x04,0x04,0x04,0x3F,0x04,0x04,0x04,0x04,0x00};
38 unsigned char code ye[32]={0x00,0x00,0x12,0x24,0x8C,0x00,0x84,0xC4,0x34,0xC4,0xB6,0x24,0x24,0xE4,0x04,0x00
-,
39 0x00,0x00,0x02,0x3F,0x00,0x01,0x00,0x3F,0x21,0x12,0x0C,0x05,0x0B,0x30,0x20,0x00};
40 unsigned char code jin[32]={0x00,0x00,0x00,0x80,0x80,0xBE,0xAA,0xAA,0x2A,0xAA,0xAA,0xBE,0x80,0x80,0x00,0x0
-0,
41 0x00,0x00,0x00,0x3F,0x24,0x24,0x24,0x3F,0x00,0x3F,0x24,0x24,0x24,0x3F,0x00,0x00};
42 unsigned char code xi[32]={0x00,0x00,0x00,0x00,0xFE,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00
-,
43 0x00,0x00,0x21,0x22,0x26,0x20,0x3F,0x20,0x20,0x20,0x3F,0x20,0x24,0x22,0x23,0x00};
C51 COMPILER V6.23a LCD 11/27/2003 16:33:33 PAGE 2
44 unsigned char code s[32]={0x00,0x00,0x20,0x22,0x22,0x22,0x22,0x22,0xE2,0x22,0x22,0x22,0x22,0x22,0x20,0x00,
45 0x00,0x00,0x08,0x04,0x02,0x03,0x10,0x20,0x1F,0x00,0x00,0x01,0x02,0x04,0x0C,0x00};
46 unsigned char code mo[32]={0x00,0x00,0x10,0xD0,0xFE,0x50,0x94,0xF4,0x5E,0x54,0x54,0x54,0x5E,0xF4,0x04,0x00
-,
47 0x00,0x00,0x03,0x00,0x3F,0x00,0x24,0x25,0x15,0x0D,0x07,0x0D,0x15,0x25,0x24,0x00};
48 unsigned char code kuai[32]={0x00,0x00,0x20,0x20,0xFE,0x20,0x20,0x10,0x10,0xFE,0x10,0x10,0x10,0xF0,0x00,0x
-00,
49 0x00,0x00,0x08,0x08,0x0F,0x24,0x25,0x11,0x0D,0x03,0x05,0x09,0x11,0x21,0x21,0x00};
50
51 unsigned char code zy[32]={0X00,0X00,0X10,0X30,0XD0,0X00,0XD0,0X30,0X10,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-,
52 0X00,0X00,0X00,0X00,0X10,0X1F,0X10,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-};
53 unsigned char code zu[32]={0X00,0X00,0X10,0XF0,0X10,0X00,0X10,0XF0,0X10,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-,
54 0X00,0X00,0X00,0X0F,0X10,0X10,0X10,0X0F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-};
55 unsigned char code zs[32]={0X00,0X00,0X00,0X60,0X90,0X10,0X10,0X30,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-,
56 0X00,0X00,0X00,0X18,0X10,0X11,0X11,0X0E,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-};
57 unsigned char code zn[32]={0X00,0X00,0X10,0XF0,0X70,0X80,0X10,0XF0,0X10,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-,
58 0X00,0X00,0X10,0X1F,0X10,0X03,0X0C,0X1F,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-};
59 unsigned char code zg[32]={0X00,0X00,0XC0,0X20,0X10,0X10,0X10,0X70,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-,
60 0X00,0X00,0X07,0X08,0X10,0X10,0X12,0X0E,0X02,0X00,0X00,0X00,0X00,0X00,0X00,0X00
-};
61 unsigned char code engA[8]={0x00,0x7E,0x11,0x11,0x11,0x7E,0x00,0x00};
62 unsigned char code engB[8]={0x00,0x41,0x7f,0x49,0x49,0x36,0x00,0x00};
63 unsigned char code engC[8]={0x00,0x3E,0x41,0x41,0x41,0x22,0x00,0x00};
64 unsigned char code engD[8]={0x00,0x41,0x7f,0x41,0x41,0x3E,0x00,0x00};
65
66
67
68 void init()
69 {
70 1 TMOD=0x11;
71 1 ET0=1;
72 1 EA=1;
73 1 TH0=0;
74 1 TL1=0;
75 1 TR0=1;
76 1 }
77
78 void time_1() interrupt 1 using 1
79 { TH0=0x00;
80 1 TL1=0x00;
81 1 FLAGDOG=1;
82 1 }
83
84 void main()
85 {
86 1 P3_3=1;
87 1 P3_5=0;
88 1 //nit();
89 1
90 1 // P2=0x55;
91 1 // P1=0xff;
92 1 // while(1) ;
93 1 // delay(10000);
C51 COMPILER V6.23a LCD 11/27/2003 16:33:33 PAGE 3
94 1 lcd_init();
95 1
96 1 // if(FLAGDOG==1)
97 1 // { WDI=~WDI; FLAGDOG=0;}
98 1
99 1 write_chinese(0,1,d);
100 1 write_chinese(16,1,zhen);
101 1 write_chinese(31,1,ye);
102 1 write_chinese(46,1,jin);
103 1
104 1 // if(FLAGDOG==1)
105 1 // { WDI=~WDI; FLAGDOG=0;}
106 1
107 1 write_chinese(61,1,xi);
108 1 write_chinese(77,1,s);
109 1 write_chinese(92,1,mo);
110 1 write_chinese(107,1,kuai);
111 1
112 1 printu("LCD Begin!\n");
113 1
114 1 // if(FLAGDOG==1)
115 1 // { WDI=~WDI; FLAGDOG=0;}
116 1
117 1 write_chinese(0,2,yu);
118 1 write_chinese(16,2,xin);
119 1 write_chinese(31,2,dian);
120 1 write_chinese(46,2,zi);
121 1
122 1 // if(FLAGDOG==1)
123 1 // { WDI=~WDI; FLAGDOG=0;}
124 1
125 1 write_chinese(61,2,you);
126 1 write_chinese(77,2,xian);
127 1 write_chinese(92,2,gong);
128 1 write_chinese(107,2,si);
129 1 delay(10000);
130 1 send_command(0xae);
131 1
132 1 // write_english(0,4,engA);
133 1 // write_english(8,4,engB);
134 1 // write_english(16,4,engC);
135 1 // write_english(24,4,engD);
136 1 // do{
137 1 // if(FLAGDOG==1)
138 1 // { WDI=~WDI; FLAGDOG=0;}
139 1 // }while(1);
140 1 while(1){
141 2 int i=40;
142 2 while(i--) delay(10000);
143 2 send_command(0xae);
144 2 i=7;
145 2 while(i--) delay(10000);
146 2 send_command(0xaf);
147 2
148 2 }
149 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 744 ----
CONSTANT SIZE = 716 ----
XDATA SIZE = ---- ----
C51 COMPILER V6.23a LCD 11/27/2003 16:33:33 PAGE 4
PDATA SIZE = ---- ----
DATA SIZE = ---- 15
IDATA SIZE = ---- ----
BIT SIZE = 1 ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -