📄 main.lst
字号:
202 8 }
203 7 }
204 6 }
205 5 clr_timer2();
206 5 if(EnWork_bit)
207 5 {
208 6 message_treat();
209 6 }
210 5 }
211 4 }
212 3
213 3 else if((*(info_buffer+1)==MAINCALL)&&(EnWork_bit==0))//door call home
214 3 {
215 4 Clr_Rx();
216 4 init_timer2();
217 4 while(timeout2<0xc8)
218 4 {
219 5 if(Rx_bit)
220 5 {
221 6 if(*(info_buffer+1)==EXTBACK) //home answer
222 6 {
223 7 Clr_Rx();
224 7 inringBIT=1;
225 7 EnWork_bit=1;
226 7 init_timer2();
227 7 }
228 6 }
229 5 }
230 4 }
231 3
232 3 else if((*(info_buffer+1)==CENCALL)&&(EnWork_bit==0))//center call home
233 3 {
234 4 Clr_Rx();
235 4 init_timer2();
236 4 while(timeout2<0xc8)
237 4 {
238 5 if(Rx_bit)
239 5 {
240 6 if(*(info_buffer+1)==EXTBACK) //home answer
241 6 {
C51 COMPILER V7.02b MAIN 06/20/2006 18:46:35 PAGE 5
242 7 Clr_Rx();
243 7 inringBIT=1;
244 7 EnWork_bit=1;
245 7 init_timer2();
246 7 }
247 6 }
248 5 }
249 4 }
250 3
251 3 else if((*(info_buffer+1)==DDOORCALL)&&(EnWork_bit==0))//wall call home
252 3 {
253 4 Clr_Rx();
254 4 init_timer2();
255 4 while(timeout2<0xc8)
256 4 {
257 5 if(Rx_bit)
258 5 {
259 6 if(*(info_buffer+1)==EXTBACK) //home answer
260 6 {
261 7 Clr_Rx();
262 7 inringBIT=1;
263 7 EnWork_bit=1;
264 7 init_timer2();
265 7 }
266 6 }
267 5 }
268 4 inringBIT=1;
269 4 }
270 3
271 3 else if((*(info_buffer+1)==EXTCALL)&&(EnWork_bit==0))//home call center
272 3 {
273 4 Clr_Rx();
274 4 init_timer2();
275 4 while(timeout2<0xc8)
276 4 {
277 5 if(Rx_bit)
278 5 {
279 6 if(*(info_buffer+1)==MAINBACK) //door answer
280 6 {
281 7 Clr_Rx();
282 7 inringBIT=1;
283 7 EnWork_bit=1;
284 7 init_timer2();
285 7 }
286 6 }
287 5 }
288 4 }
289 3
290 3 else if((*(info_buffer+1)==EXTWATCH)&&(EnWork_bit==0))//inspect door
291 3 {
292 4 Clr_Rx();
293 4 init_timer2();
294 4 while(timeout2<0xc8)
295 4 {
296 5 if(Rx_bit)
297 5 {
298 6 if(*(info_buffer+1)==MAINBACK) //door answer
299 6 {
300 7 Clr_Rx();
301 7 inspectBIT=1;
302 7 EnWork_bit=TRUE;
303 7 init_timer2();
C51 COMPILER V7.02b MAIN 06/20/2006 18:46:35 PAGE 6
304 7 }
305 6 }
306 5 }
307 4 }
308 3
309 3
310 3 else if(*(info_buffer+1)==EXTZAIJI)
311 3 {
312 4 if((inringBIT)&&(EnWork_bit))
313 4 {
314 5 Clr_Rx();
315 5 inringBIT=0;
316 5 intalkingBIT=1;
317 5 init_timer2();
318 5 }
319 4 else
320 4 {
321 5 Clr_Rx();
322 5 }
323 4 }
324 3
325 3 else if(*(info_buffer+1)==GZAIJI)
326 3 {
327 4 if((inringBIT)&&(EnWork_bit))
328 4 {
329 5 Clr_Rx();
330 5 inringBIT=0;
331 5 intalkingBIT=1;
332 5 init_timer2();
333 5 }
334 4 else
335 4 {
336 5 Clr_Rx();
337 5 }
338 4 }
339 3
340 3 else
341 3 {
342 4 Clr_Rx();
343 4 }
344 3 }
345 2
346 2 if(inspectBIT)
347 2 {
348 3 if(timeout2>0x3e8) //inspect time 30s
349 3 {
350 4 inspectBIT=0;
351 4 EnWork_bit=0;
352 4 clr_timer2();
353 4 }
354 3 }
355 2
356 2 if((inringBIT)&&(EnWork_bit))
357 2 {
358 3 if(timeout2>0x7d0) //in-ring time 60s
359 3 {
360 4 inringBIT=0;
361 4 EnWork_bit=0;
362 4 clr_timer2();
363 4 }
364 3 }
365 2
C51 COMPILER V7.02b MAIN 06/20/2006 18:46:35 PAGE 7
366 2 if((inringBIT)&&(EnWork_bit==0))
367 2 {
368 3 if(timeout2>0x3e8) //in-ring time 30s
369 3 {
370 4 inringBIT=0;
371 4 EnWork_bit=0;
372 4 clr_timer2();
373 4 }
374 3 }
375 2
376 2 if(intalkingBIT)
377 2 {
378 3 if(timeout2>0x7d0) //in-talking time 60s
379 3 {
380 4 intalkingBIT=0;
381 4 EnWork_bit=0;
382 4 clr_timer2();
383 4 }
384 3 }
385 2 if(EnWork_bit)
386 2 {
387 3 if(timeout2>0x7d0) //if error commication ,set time 60s
388 3 {
389 4 EnWork_bit=0;
390 4 clr_timer2();
391 4 }
392 3 }
393 2 }
394 1 }
395
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 750 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 2 1
IDATA SIZE = ---- ----
BIT SIZE = 4 ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -