📄 baojian.lst
字号:
424 5 if(time_start>_20S)
425 5 {
426 6 heathigh=1;
427 6 time_start=0x00;
C51 COMPILER V7.07 BAOJIAN 10/15/2007 23:33:26 PAGE 8
428 6 step++;
429 6 }
430 5 break;
431 5 }
432 4 ///////////////////////////
433 4
434 4 case 0x03:
435 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
436 5 if(time_start>_6S)
437 5 {
438 6 heathigh=0;
439 6 time_start=0x00;
440 6 step++;
441 6 }
442 5 break;
443 5 }
444 4
445 4 case 0x04:
446 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
447 5 if(time_start>_12S)
448 5 {
449 6 heathigh=1;
450 6 time_start=0x00;
451 6 step++;
452 6 }
453 5 break;
454 5 }
455 4
456 4 case 0x05:
457 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
458 5 if(time_start>_2S)
459 5 {
460 6 heathigh=0;
461 6 time_start=0x00;
462 6 step++;
463 6 }
464 5 break;
465 5 }
466 4 case 0x06:
467 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
468 5 if(time_start>_60S)
469 5 {
470 6 heathigh=1;
471 6 time_start=0x00;
472 6 step=0x03;
473 6 }
474 5 break;
475 5 }
476 4 default : break;
477 4 }
478 3 break;
479 3 }
480 2
481 2 case 0x02:
482 2 {
483 3
484 3 switch(step)
485 3 {
486 4
487 4 case 0x01:
488 4 {
489 5
C51 COMPILER V7.07 BAOJIAN 10/15/2007 23:33:26 PAGE 9
490 5 P3M1=_bin(1,0,1,0,1,1,0,0);
491 5 heathigh=1;
492 5 time_fly1=time_start;
493 5 if(time_start>(_20S-time_fly)) //
494 5 {
495 6 TR0=0;
496 6 heathigh=0;
497 6 time_start=0x00;
498 6 time_fly1=0x00;
499 6 step++;
500 6 TR0=1;
501 6 }
502 5 break;
503 5 }
504 4 case 0x02:
505 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
506 5 if(time_start>_20S)
507 5 {
508 6 heathigh=1;
509 6 time_start=0x00;
510 6 step++;
511 6 }
512 5 break;
513 5 }
514 4 //////////////////////////////////////////
515 4
516 4
517 4
518 4 case 0x03:
519 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
520 5 if(time_start>_6S)
521 5 {
522 6 heathigh=0;
523 6 time_start=0x00;
524 6 step++;
525 6 }
526 5 break;
527 5 }
528 4 case 0x04:
529 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
530 5 if(time_start>_60S)
531 5 {
532 6 heathigh=1;
533 6 time_start=0x00;
534 6 step=0x03;
535 6 }
536 5 break;
537 5 }
538 4 default : break;
539 4 }
540 3 break;
541 3 }
542 2 case 0x03:
543 2 {
544 3 switch(step)
545 3 {
546 4 case 0x01:
547 4 {
548 5
549 5 P3M1=_bin(1,0,1,0,1,1,0,0);
550 5 heathigh=1;
551 5 //time_fly=time_start;
C51 COMPILER V7.07 BAOJIAN 10/15/2007 23:33:26 PAGE 10
552 5 if(time_start>_05S) // -time_fly
553 5 {
554 6 TR0=0;
555 6 heathigh=0;
556 6 time_start=0x00;
557 6 step++;
558 6 TR0=1;
559 6 }
560 5 break;
561 5 }
562 4 case 0x02:
563 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
564 5 if(time_start>_60S)
565 5 {
566 6 heathigh=1;
567 6 time_start=0x00;
568 6 step++;
569 6 }
570 5 break;
571 5 }
572 4 case 0x03:
573 4 {
574 5
575 5 P3M1=_bin(1,0,1,0,1,1,0,0);
576 5 heathigh=1;
577 5 //time_fly=time_start;
578 5 if(time_start>_05S) // -time_fly
579 5 {
580 6 TR0=0;
581 6 heathigh=0;
582 6 time_start=0x00;
583 6 step++;
584 6 TR0=1;
585 6 }
586 5 break;
587 5 }
588 4 case 0x04:
589 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
590 5 if(time_start>_60S)
591 5 {
592 6 heathigh=1;
593 6 time_start=0x00;
594 6 step=0x03;
595 6 }
596 5 break;
597 5 }
598 4 default : step=0x03; break;
599 4 }
600 3 break;
601 3 }
602 2
603 2 default:break;
604 2 }
605 1 }
606
607 //键盘扫描void key(void);
608 ///////////////////////////////////////////////////////
609 void key(void)
610 {
611 1 bit temp;
612 1
613 1
C51 COMPILER V7.07 BAOJIAN 10/15/2007 23:33:26 PAGE 11
614 1 if(power_flag)
615 1 {
616 2 temp=strong_key;
617 2 // P3M1=_bin(1,0,1,0,1,1,0,0);
618 2 // P3M0=_bin(0,0,0,0,0,0,0,0);
619 2 P1M1=_bin(1,1,0,0,0,0,0,0);
620 2 _nop_();
621 2 strong_key=1;
622 2 _nop_();
623 2 while(!strong_key)
624 2 { _nop_();
625 3 while(!strong_key);
626 3 strong();
627 3 }
628 2 _nop_();
629 2 strong_key=temp;
630 2 _nop_();
631 2
632 2 temp=mid_key;
633 2 _nop_();
634 2 // P3M1=_bin(1,0,1,0,1,1,0,0);
635 2 // P3M0=_bin(0,0,0,0,0,0,0,0);
636 2 P1M1=_bin(1,0,1,0,0,0,0,0);
637 2 // _nop_();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -