Delay.lst
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:9k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. ##############################################################################
  2. #                                                                            #
  3. # IAR MSP430 C/EC++ Compiler V2.10A/W32                23/Apr/2007  18:04:07 #
  4. # Copyright 1996-2003 IAR Systems. All rights reserved.                      #
  5. #                                                                            #
  6. #    __rt_version  =  1                                                      #
  7. #    __double_size =  32                                                     #
  8. #    __reg_r4      =  free                                                   #
  9. #    __reg_r5      =  free                                                   #
  10. #    __pic         =  no                                                     #
  11. #    Source file   =  E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
  12. #                     filesDelay.c                                          #
  13. #    Command line  =  -I "C:Program FilesIAR SystemsEmbedded Workbench    #
  14. #                     3.2430INC" -I "C:Program FilesIAR                 #
  15. #                     SystemsEmbedded Workbench 3.2430INCCLIB" -lCN     #
  16. #                     E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
  17. #                     DebugList -lA E:projectFaxProgramVson_Bryan_Fax_ #
  18. #                     Conexant_070423DebugList -o                         #
  19. #                     E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
  20. #                     DebugObj -z2 --no_cse --no_unroll --no_inline        #
  21. #                     --no_code_motion --debug -e                            #
  22. #                     E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
  23. #                     filesDelay.c                                          #
  24. #    List file     =  E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
  25. #                     DebugListDelay.lst                                   #
  26. #    Object file   =  E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
  27. #                     DebugObjDelay.r43                                    #
  28. #                                                                            #
  29. #                                                                            #
  30. ##############################################################################
  31. E:projectFaxProgramVson_Bryan_Fax_Conexant_070423filesDelay.c
  32.       1          /************************************************
  33.       2          Delay subroutine
  34.       3          Copyright 2006 by Vson. All rights reserved.
  35.       4          Author:      Bryan Cai
  36.       5          Date:        2006.12.21
  37.       6          Description: soft delay
  38.       7          Note:
  39.       8          Identifier abbreviation: 
  40.       9                                   c-const
  41.      10                                   a-array
  42.      11                                   p-pointer
  43.      12                                   g-global
  44.      13                                   uc-unsigned char
  45.      14                                   w-unsigned int
  46.      15                                   cnt-count
  47.      16                                   pnt-point
  48.      17          Update:
  49.      18                2006.12.21  Bryan      program header
  50.      19          ************************************************/
  51.      20          
  52.      21          #include "includeH.h"
  53.      22          
  54.                                     In segment CODE, align 2, keep-with-next
  55.      23          void Delay1500ms(void)
  56.                         Delay1500ms:
  57.      24          {     
  58.       000000   0A12                 PUSH.W  R10
  59.      25                unsigned char ucGeneralCount;
  60.      26                for (ucGeneralCount=0; ucGeneralCount<30; ucGeneralCount++)// delay 1.5S minimun 1 second
  61.       000002   4A43                 MOV.B   #0x0, R10
  62.                         ??Delay1500ms_0:
  63.       000004   7A901E00             CMP.B   #0x1e, R10
  64.       000008   042C                 JC      ??Delay1500ms_1
  65.      27                {
  66.      28                   ATcmdDelay();  //50ms
  67.       00000A   B012....             CALL    #ATcmdDelay
  68.      29                }
  69.       00000E   5A53                 ADD.B   #0x1, R10
  70.       000010   F93F                 JMP     ??Delay1500ms_0
  71.      30          }
  72.                         ??Delay1500ms_1:
  73.       000012   3A41                 POP.W   R10
  74.       000014   3041                 RET
  75.      31          
  76.                                     In segment CODE, align 2, keep-with-next
  77.      32          void Delay2000ms(void)
  78.                         Delay2000ms:
  79.      33          {     
  80.       000000   0A12                 PUSH.W  R10
  81.      34                unsigned char ucGeneralCount;
  82.      35                for (ucGeneralCount=0; ucGeneralCount<40; ucGeneralCount++)// delay 1.5S minimun 1 second
  83.       000002   4A43                 MOV.B   #0x0, R10
  84.                         ??Delay2000ms_0:
  85.       000004   7A902800             CMP.B   #0x28, R10
  86.       000008   042C                 JC      ??Delay2000ms_1
  87.      36                {
  88.      37                   ATcmdDelay();  //50ms
  89.       00000A   B012....             CALL    #ATcmdDelay
  90.      38                }
  91.       00000E   5A53                 ADD.B   #0x1, R10
  92.       000010   F93F                 JMP     ??Delay2000ms_0
  93.      39          }
  94.                         ??Delay2000ms_1:
  95.       000012   3A41                 POP.W   R10
  96.       000014   3041                 RET
  97.      40          
  98.                                     In segment CODE, align 2, keep-with-next
  99.      41          void ATcmdDelay(void)//delay 50ms
  100.                         ATcmdDelay:
  101.      42          { 
  102.      43            unsigned int DelayCnt=0;
  103.       000000   0E43                 MOV.W   #0x0, R14
  104.      44            for(DelayCnt = 0;DelayCnt < 0xbfff;DelayCnt++)//0xbfff
  105.       000002   0E43                 MOV.W   #0x0, R14
  106.                         ??ATcmdDelay_0:
  107.       000004   3E90FFBF             CMP.W   #0xbfff, R14
  108.       000008   032C                 JC      ??ATcmdDelay_1
  109.      45            _NOP();
  110.       00000A   0343                 NOP
  111.       00000C   1E53                 ADD.W   #0x1, R14
  112.       00000E   FA3F                 JMP     ??ATcmdDelay_0
  113.      46          }
  114.                         ??ATcmdDelay_1:
  115.       000010   3041                 RET
  116.                                     In segment CODE, align 2, keep-with-next
  117.      47          void delay800ms(void)//delay 8000ms
  118.                         delay800ms:
  119.      48          { 
  120.      49            unsigned int DelayCnt=0;
  121.       000000   0E43                 MOV.W   #0x0, R14
  122.      50            for(DelayCnt=0;DelayCnt<0xffff;DelayCnt++)
  123.       000002   0E43                 MOV.W   #0x0, R14
  124.                         ??delay800ms_0:
  125.       000004   3E93                 CMP.W   #0xffff, R14
  126.       000006   0324                 JEQ     ??delay800ms_1
  127.      51            _NOP();
  128.       000008   0343                 NOP
  129.       00000A   1E53                 ADD.W   #0x1, R14
  130.       00000C   FB3F                 JMP     ??delay800ms_0
  131.      52          } 
  132.                         ??delay800ms_1:
  133.       00000E   3041                 RET
  134.      53          
  135.                                     In segment CODE, align 2, keep-with-next
  136.      54          void delay1us(unsigned int wDelayNum)//delay 1us
  137.                         delay1us:
  138.      55          { 
  139.      56            unsigned int wGeneralCount=0;
  140.       000000   0E43                 MOV.W   #0x0, R14
  141.      57            wDelayNum=wDelayNum-1;
  142.       000002   3C53                 ADD.W   #0xffff, R12
  143.      58            for (wGeneralCount=0;wGeneralCount<wDelayNum;wGeneralCount++)
  144.       000004   0E43                 MOV.W   #0x0, R14
  145.                         ??delay1us_0:
  146.       000006   0E9C                 CMP.W   R12, R14
  147.       000008   032C                 JC      ??delay1us_1
  148.      59            {
  149.      60               __no_operation();
  150.       00000A   0343                 NOP
  151.      61            }
  152.       00000C   1E53                 ADD.W   #0x1, R14
  153.       00000E   FB3F                 JMP     ??delay1us_0
  154.      62          } 
  155.                         ??delay1us_1:
  156.       000010   3041                 RET
  157.    Maximum stack usage in bytes:
  158.      Function        CSTACK
  159.      --------        ------
  160.      ATcmdDelay          2
  161.      Delay1500ms         4
  162.        -> ATcmdDelay     4
  163.      Delay2000ms         4
  164.        -> ATcmdDelay     4
  165.      delay1us            2
  166.      delay800ms          2
  167.    Segment part sizes:
  168.      Function/Label Bytes
  169.      -------------- -----
  170.      Delay1500ms      22
  171.      Delay2000ms      22
  172.      ATcmdDelay       18
  173.      delay800ms       16
  174.      delay1us         18
  175.  
  176.  96 bytes in segment CODE
  177.  
  178.  96 bytes of CODE memory
  179. Errors: none
  180. Warnings: none