📄 main.lst
字号:
142 1 Count_UART0=0;
143 1 Count_UART0a=0;
144 1 Tran_Flag=0;
145 1 Rec_OK=0;
146 1 Tran_OK=0;
147 1 while(Rec_OK!=0x23)
148 1 ;
149 1 pointer=sRecComBuf;
150 1 while(Tran_OK!=0x45)
151 1 {
152 1 Tran_Flag=1;
153 1 SBUF0=*pointer++;
154 1 Count_UART0a++;
155 1 DELAY(100);
156 1 while(Tran_Flag)
157 1 ;
158 1 }
159 1 }***********************************/
160 1 #if DEBUG
161 1 while(1)
162 1 {
163 2 pointer=sRecComBuf; //pointer->sRecComBuf[0]
164 2 Count_UART0=0;
165 2 Count_UART0a=0;
166 2 Tran_Flag=0;
167 2 Rec_OK=0;
168 2 Tran_OK=0;
169 2 while(Rec_OK!=0x23)
170 2 ;
171 2 pointer=sRecComBuf; //pointer->sRecComBuf[0]
172 2 Selection = *(pointer+6);
173 2 if (Selection==1)
174 2 {
175 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
176 3 Address0707=*pointer++<<8;
C51 COMPILER V7.06 MAIN 06/13/2005 12:55:36 PAGE 4
177 3 Address0707+=*pointer++;;
178 3 Data0707 =*pointer++<<8;
179 3 Data0707 +=*pointer++;
180 3 Address24LC256=*pointer++<<8;
181 3 Address24LC256 +=*pointer++;
182 3 Selection = *pointer;
183 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
184 3 _0707READY();
185 3 WRITE_0707(Address0707,Data0707);
186 3 NONE_READY();
187 3 SM_Send (_24LC256,Address24LC256 , *pointer);
188 3 SM_Send (_24LC256,Address24LC256+1 , *(pointer+1));
189 3 SM_Send (_24LC256,Address24LC256+2 , *(pointer+2));
190 3 SM_Send (_24LC256,Address24LC256+3 , *(pointer+3));
191 3 sRecComBuf[0]=SM_Receive (_24LC256, Address24LC256);
192 3 sRecComBuf[1]=SM_Receive (_24LC256, Address24LC256+1);
193 3 sRecComBuf[2]=SM_Receive (_24LC256, Address24LC256+2);
194 3 sRecComBuf[3]=SM_Receive (_24LC256, Address24LC256+3);
195 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
196 3 }
197 2 else if (Selection==2)
198 2 {
199 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
200 3 DataAddress6100=*pointer++<<8;
201 3 DataAddress6100+=*pointer++;
202 3 Address24LC256=*pointer++<<8;
203 3 Address24LC256 +=*pointer;
204 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
205 3 _R6100READY() ; //Ready for red 6100
206 3 WRITE_6100(DataAddress6100);
207 3 NONE_READY();
208 3 SM_Send (_24LC256,Address24LC256 , *pointer);
209 3 SM_Send (_24LC256,Address24LC256+1 , *(pointer+1));
210 3 sRecComBuf[0]=SM_Receive (_24LC256, Address24LC256);
211 3 sRecComBuf[1]=SM_Receive (_24LC256, Address24LC256+1);
212 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
213 3 }
214 2 else if (Selection==3)
215 2 {
216 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
217 3 DataAddress6100=*pointer++<<8;
218 3 DataAddress6100+=*pointer++;
219 3 Address24LC256=*pointer++<<8;
220 3 Address24LC256 +=*pointer;
221 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
222 3 _G6100READY() ; //Ready for red 6100
223 3 WRITE_6100(DataAddress6100);
224 3 NONE_READY();
225 3 SM_Send (_24LC256,Address24LC256 , *pointer);
226 3 SM_Send (_24LC256,Address24LC256+1 , *(pointer+1));
227 3 sRecComBuf[0]=SM_Receive (_24LC256, Address24LC256);
228 3 sRecComBuf[1]=SM_Receive (_24LC256, Address24LC256+1);
229 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
230 3 }
231 2 else if (Selection==4)
232 2 {
233 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
234 3 DataAddress6100=*pointer++<<8;
235 3 DataAddress6100+=*pointer++;
236 3 Address24LC256=*pointer++<<8;
237 3 Address24LC256 +=*pointer;
238 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
C51 COMPILER V7.06 MAIN 06/13/2005 12:55:36 PAGE 5
239 3 _B6100READY() ; //Ready for red 6100
240 3 WRITE_6100(DataAddress6100);
241 3 NONE_READY();
242 3 SM_Send (_24LC256,Address24LC256 , *pointer);
243 3 SM_Send (_24LC256,Address24LC256+1 , *(pointer+1));
244 3 sRecComBuf[0]=SM_Receive (_24LC256, Address24LC256);
245 3 sRecComBuf[1]=SM_Receive (_24LC256, Address24LC256+1);
246 3 pointer=sRecComBuf; //pointer->sRecComBuf[0]
247 3 }
248 2 while(Tran_OK!=0x45)
249 2 {
250 3 Tran_Flag=1;
251 3 SBUF0=*pointer++;
252 3 Count_UART0a++;
253 3 DELAY(100);
254 3 while(Tran_Flag)
255 3 ;
256 3 }
257 2
258 2 }
259 1 #endif
260 1 SetTG ();
261 1 SetVSPCR ();
262 1 SetVSPRSR ();
263 1 SetVSPGSG ();
264 1 SetVSPBSB ();
265 1 SetGCRAMR ();
266 1 SetGCRAMG ();
267 1 SetGCRAMB ();
268 1 SetVSPPQICSR ();
269 1 SetVSPCUCSRa ();
270 1 SetVSPCUCSRb ();
271 1 Set6100R ();
272 1 Set6100G ();
273 1 Set6100B ();
274 1
275 1
276 1 }
*** WARNING C280 IN LINE 73 OF MAIN.C: 'i': unreferenced local variable
*** WARNING C280 IN LINE 73 OF MAIN.C: 'n': unreferenced local variable
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1092 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = 1542 ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 5
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 2 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -