📄 lgdp4524-2^2-hx8347(2).lst
字号:
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE LGDP4524_2_2_HX8347_2_
OBJECT MODULE PLACED IN LGDP4524-2^2-HX8347(2).OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE LGDP4524-2^2-HX8347(2).c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 /************************************************
2 dots 176*220
3 controller LGDP4524
4 interface 8080/16bits P1-L,P0-H
5 ************************************************/
6 #include <absacc.h>
7 #include <reg51.h>
8 #define uchar unsigned char
9 #define uint unsigned int
10 //#define p0XBYTE[0x0000]
11
12 sbit cs =P3^5;
13 sbit res =P3^4;
14 sbit rs =P2^3;
15 sbit wr =P2^2;
16 sbit uc4 =P2^7;
17 sbit uc6 =P2^5;
18 sbit step= P2^0;
19
20 #define HSIZE 176
21 #define VSIZE 220
22 void dis_bar();
23 void pause();
24 void display_image(void);
25
26
27 unsigned char code image[]= {
28
29 0x12,
30 };
31
32
33 void delay(uint t)
34 {
35 1 uchar t1;
36 1 while(t--)
37 1 for(t1=16;t1>0;t1--) //16
38 1 {;} //0.1ms
39 1 }
40
41
42
43 void write_data(uchar data_h,data_l)
44 {
45 1 uc4=0;
46 1 uc6=0;
47 1 cs=0;
48 1 rs=1;
49 1 P0=data_h;
50 1 P1=data_l;
51 1 wr=0;
52 1 wr=1;
53 1 cs=1;
54 1
55 1 }
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 2
56
57
58 /*void write_command1(uchar datac)
59 {
60 uc4=0;
61 uc6=0;
62 cs=0;
63 rs=0;
64 P1=datac;
65 wr=0;
66 wr=1;
67 cs=1;
68
69 }*/
70 void write_command(uchar data_h,data_l)
71 {
72 1 uc4=0;
73 1 uc6=0;
74 1 cs=0;
75 1 rs=0;
76 1 P0=data_h;
77 1 //P0=dd;
78 1 P1=data_l;
79 1 wr=0;
80 1 //delay(0);
81 1 wr=1;
82 1 cs=1;
83 1
84 1 }
85
86 void initialization()
87 {
88 1 //int p,p1,p2;
89 1 res=0;
90 1 delay(350);
91 1 res=1;
92 1 delay(150);
93 1 //*********************Initial code******************************
94 1 write_command(0x07);write_data(0x00,0x00);
*** WARNING C209 IN LINE 94 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
95 1 write_command(0x12);write_data(0x00,0x00);
*** WARNING C209 IN LINE 95 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
96 1 write_command(0x13);write_data(0x00,0x00);
*** WARNING C209 IN LINE 96 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
97 1 write_command(0x14);write_data(0x03,0x31);
*** WARNING C209 IN LINE 97 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
98 1 delay(50);
99 1 write_command(0x12);write_data(0x00,0x09);
*** WARNING C209 IN LINE 99 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
100 1 write_command(0x11);write_data(0x00,0x00);
*** WARNING C209 IN LINE 100 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
101 1 write_command(0x10);write_data(0x01,0x04);
*** WARNING C209 IN LINE 101 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
102 1 write_command(0x13);write_data(0x0C,0x4A);
*** WARNING C209 IN LINE 102 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
103 1 write_command(0x10);write_data(0x01,0x44);
*** WARNING C209 IN LINE 103 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
104 1 write_command(0x11);write_data(0x02,0x00);
*** WARNING C209 IN LINE 104 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
105 1 write_command(0x12);write_data(0x00,0x19);
*** WARNING C209 IN LINE 105 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
106 1 delay(50);
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 3
107 1 write_command(0x13);write_data(0x2C,0x2A);
*** WARNING C209 IN LINE 107 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
108 1 write_command(0x10);write_data(0x01,0x40);
*** WARNING C209 IN LINE 108 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
109 1 delay(50);
110 1 write_command(0x60);write_data(0x20,0x00);
*** WARNING C209 IN LINE 110 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
111 1 write_command(0x60);write_data(0x00,0x00);
*** WARNING C209 IN LINE 111 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
112 1 write_command(0x61);write_data(0x00,0x02);
*** WARNING C209 IN LINE 112 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
113 1 delay(50);
114 1 write_command(0x01);write_data(0x01,0x1B);
*** WARNING C209 IN LINE 114 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
115 1 write_command(0x02);write_data(0x07,0x00);
*** WARNING C209 IN LINE 115 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
116 1 write_command(0x03);write_data(0x10,0x30);
*** WARNING C209 IN LINE 116 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
117 1 write_command(0x09);write_data(0x00,0x00);
*** WARNING C209 IN LINE 117 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
118 1 write_command(0x0B);write_data(0x5D,0x2D);
*** WARNING C209 IN LINE 118 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
119 1 write_command(0x21);write_data(0x00,0x00);
*** WARNING C209 IN LINE 119 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
120 1 write_command(0x30);write_data(0x01,0x01);
*** WARNING C209 IN LINE 120 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
121 1 write_command(0x31);write_data(0x06,0x04);
*** WARNING C209 IN LINE 121 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
122 1 write_command(0x32);write_data(0x00,0x07);
*** WARNING C209 IN LINE 122 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
123 1 write_command(0x33);write_data(0x04,0x03);
*** WARNING C209 IN LINE 123 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
124 1 write_command(0x34);write_data(0x00,0x07);
*** WARNING C209 IN LINE 124 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
125 1 write_command(0x35);write_data(0x04,0x02);
*** WARNING C209 IN LINE 125 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
126 1 write_command(0x36);write_data(0x06,0x06);
*** WARNING C209 IN LINE 126 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
127 1 write_command(0x37);write_data(0x03,0x04);
*** WARNING C209 IN LINE 127 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
128 1 write_command(0x38);write_data(0x07,0x0E);
*** WARNING C209 IN LINE 128 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
129 1 write_command(0x39);write_data(0x07,0x0E);
*** WARNING C209 IN LINE 129 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
130 1 write_command(0x3A);write_data(0x01,0x01);
*** WARNING C209 IN LINE 130 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
131 1 write_command(0x3B);write_data(0x01,0x01);
*** WARNING C209 IN LINE 131 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
132 1 write_command(0x3C);write_data(0x01,0x01);
*** WARNING C209 IN LINE 132 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
133 1 write_command(0x3D);write_data(0x01,0x01);
*** WARNING C209 IN LINE 133 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
134 1 write_command(0x3E);write_data(0x00,0x01);
*** WARNING C209 IN LINE 134 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
135 1 write_command(0x3F);write_data(0x00,0x01);
*** WARNING C209 IN LINE 135 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
136 1 write_command(0x42);write_data(0xDB,0x00);
*** WARNING C209 IN LINE 136 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
137 1 write_command(0x44);write_data(0xAF,0x00);
*** WARNING C209 IN LINE 137 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
138 1 write_command(0x45);write_data(0xDB,0x00);
*** WARNING C209 IN LINE 138 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
C51 COMPILER V7.06 LGDP4524_2_2_HX8347_2_ 02/07/2009 11:22:42 PAGE 4
139 1 delay(50);
140 1 write_command(0x71);write_data(0x00,0x40);
*** WARNING C209 IN LINE 140 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
141 1 write_command(0x72);write_data(0x00,0x02);
*** WARNING C209 IN LINE 141 OF LGDP4524-2^2-HX8347(2).C: '_write_command': too few actual parameters
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -