📄 320240mine.lst
字号:
C51 COMPILER V7.50 320240MINE 02/21/2009 10:27:02 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE 320240MINE
OBJECT MODULE PLACED IN 320240MINE.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE 320240MINE.C BROWSE DEBUG OBJECTEXTEND
line level source
1
2 #include<User.h>
3 #define tongdaoxuanze 19
4 #define fanhui 1
5 #define jiaozhungaodian 2
6 #define jiaozhun 3
7 #define shuzi1 4
8 #define shuzi2 5
9 #define shuzi3 6
10 #define shuzi4 7
11 #define shuzi5 8
12 #define shuzi6 9
13 #define shuzi7 10
14 #define shuzi8 11
15 #define shuzi9 12
16 #define shuzi0 13
17 #define jiaozhunqueding 14
18 #define tongdao 15
19 #define tongdao2 16
20 #define tongdao3 17
21 #define tongdao4 18
22 bit monitor1 = 0;
23 bit monitor2 = 0;
24 bit monitor3 = 0;
25 bit keyboard_flag = 0;
26 uchar code num[]={
27 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39
28 };
29 void main(void)
30 {
31 1 CFG836=0x81;
32 1 delay1ms(20);
33 1 Rst();
34 1 Initiate();
35 1
36 1
37 1 //Wrr_Addr(BTMR); //光标闪烁时间
38 1 //Wrr_Data(0x20);
39 1 //Wr_Data(ITCR,0xff);
40 1 //
41 1 Access_2Pages();
42 1 Lcd_Clear();
43 1 //Dis_Blank_Rec(10,10,20,90);
44 1 //Dis_Black_Rec(2,3,7,43);
45 1 /*Dis_Point(0,0,1);
46 1 Dis_Point(1,0,0);
47 1 Dis_Point(2,0,1);
48 1 Dis_Point(3,0,0);
49 1 Dis_Point(4,0,1);
50 1 Dis_Point(5,0,0);
51 1 Dis_Point(6,0,1);*/
52 1
53 1
54 1 /*Dis_Circle(150,150,20,1);
55 1 Dis_Linexy(0,0,150,150,1);
C51 COMPILER V7.50 320240MINE 02/21/2009 10:27:02 PAGE 2
56 1 delay1ms(10);
57 1 Dis_Linexy(0,0,150,150,0);*/
58 1
59 1 //Dis_Black_Rec(0,0,20,20,1);
60 1 //Dis_Blank_Rec(30,0,50,20,1);
61 1 //Dis_DDRAM2_Pic();
62 1 //test();
63 1 //Dis_Touch();
64 1 //while(1);
65 1 //Display_Picture();
66 1 //LCD_CmdWrite(ITCR);
67 1 //LCD_DataWrite(0xff);
68 1 //LCD_LineDist_Adjust(0);
69 1
70 1 //Show_Two_Layer();
71 1 //Only_Show_Page2();
72 1 /*Dis_Linexy(5,40,10,35,1);
73 1 Dis_Linexy(10,35,15,40,1);
74 1 Dis_Linexy(10,35,10,230,1);
75 1 Dis_Linexy(10,230,300,230,1);
76 1 Dis_Linexy(300,230,295,225,1);
77 1 Dis_Linexy(295,235,300,230,1);*///用画线函数画坐标系
78 1
79 1 Access_Page1();
80 1 Only_Show_Page1();
81 1 Dis_Blank_Rec(0,29,40,239);
82 1
83 1 Dis_Pos_Pic(0,0,72,28,gImage_pic1);
84 1 Dis_Pos_Pic(10,0,80,28,gImage_pic2);
85 1 Dis_Pos_Pic(21,0,72,28,gImage_pic3);
86 1 Dis_Pos_Pic(31,0,72,28,gImage_pic4);
87 1
88 1 Dis_Pos_Pic(1,33,16,200,gImage_vertical);
89 1 Dis_Pos_Pic(2,229,288,7,gImage_horizen);
90 1 Lcd_On();
91 1 draw();
92 1 monitor1 = 1;
93 1 Dis_Touch();//主界面
94 1
95 1 /*Dis_Text(8,10,11,4,sRAiO3);
96 1 Dis_Blank_Rec(4,38,34,38);
97 1
98 1 Dis_Blank_Rec(4,60,7,84);
99 1 Dis_Linexy(33,72,40,84,1);
100 1 Dis_Linexy(41,83,55,60,1);//对勾图
101 1 Dis_Text(14,64,6,4,sRAiO5);
102 1 Dis_Blank_Rec(4,99,7,123);
103 1 Dis_Text(14,103,6,4,sRAiO6);
104 1 Dis_Blank_Rec(4,138,7,162);
105 1 Dis_Text(14,142,8,4,sRAiO7);
106 1 Dis_Blank_Rec(4,177,7,201);
107 1 Dis_Text(14,181,8,4,sRAiO8);
108 1 Dis_Pos_Pic(31,206,64,32,gImage_back);//通道界面
109 1 Dis_Touch();*/
110 1
111 1 /*Dis_Text(12,10,6,4,sRAiO4);
112 1 Lcd_Graphic();
113 1 //Dis_Text(4,38,30,0,sRAiO2);
114 1 Dis_Blank_Rec(4,38,34,38);
115 1
116 1 Dis_Blank_Rec(4,60,7,84);
117 1 Dis_Text(26,64,6,0,sRAiO9);
C51 COMPILER V7.50 320240MINE 02/21/2009 10:27:02 PAGE 3
118 1 Dis_Blank_Rec(4,99,7,123);
119 1 Dis_Text(26,103,6,0,sRAi10);
120 1
121 1 Lcd_Graphic();
122 1 Dis_Linexy(32,72,55,72,1);
123 1 Dis_Linexy(50,67,55,72,1);
124 1 Dis_Linexy(55,72,50,77,1);
125 1 //Dis_Linexy(33,123,260,123,1);
126 1 Dis_Pos_Pic(32,206,64,32,gImage_back);
127 1 Keyboard(4,45);//校准界面
128 1 Dis_Touch();*/
129 1
130 1
131 1 //Dis_Pos_Pic(0,0,256,10,gImage_pic5);
132 1 //Dis_Pos_Pic(4,30,16,200,gImage_pic6);
133 1 //Only_Show_Page1();
134 1 //Dis_Touch();
135 1 while(1);
136 1
137 1 //Dis_Ratate_90();
138 1 /*Dis_DDRAM1_Pic();
139 1 Dis_DDRAM2_Pic();
140 1 while(1)
141 1 {
142 1 Only_Show_Page2();
143 1 delay1ms(100);
144 1 Only_Show_Page1();
145 1 delay1ms(100);
146 1 }*/;
147 1 }
148
149 void Dis_Touch(void)
150 {
151 1 while(1)
152 1 {
153 2 uchar temp = 0;
154 2 uchar debounce = 0;
155 2 uchar num2[4];
156 2 Wrr_Addr(0xc0);//打开触摸
157 2 Wrr_Data(0xc4);
158 2 temp = Key_Scan();
159 2 while(monitor1 == 1)
160 2 {
161 3 temp = Key_Scan();
162 3
163 3 if(temp == tongdaoxuanze)
164 3 {
165 4 Show_Moniter2();
166 4 break;
167 4 }
168 3
169 3 if(temp == jiaozhun)
170 3 {
171 4
172 4 Show_Monitor3();
173 4 break;
174 4 }
175 3 }
176 2 while(monitor3 == 1)
177 2 {
178 3 uchar temp,i,count;
179 3 temp = Key_Scan();
C51 COMPILER V7.50 320240MINE 02/21/2009 10:27:02 PAGE 4
180 3 if((temp == jiaozhungaodian)&&(keyboard_flag==0))
181 3 {
182 4 Keyboard(4,45);
183 4 keyboard_flag = 1;
184 4 }
185 3 if((temp == shuzi1)&&(keyboard_flag==1))
186 3 {
187 4 LCD_Text();
188 4 LCD_GotoXY((5+count),47);
189 4 Wrr_Addr(0xb0);
190 4 Wrr_Data('1');
191 4 num2[count] = 1;
192 4 count++;
193 4 delay1ms(30);
194 4 }
195 3 if((temp == shuzi2)&&(keyboard_flag==1))
196 3 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -