Delay.lst
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:9k
- ##############################################################################
- # #
- # IAR MSP430 C/EC++ Compiler V2.10A/W32 23/Apr/2007 18:04:07 #
- # Copyright 1996-2003 IAR Systems. All rights reserved. #
- # #
- # __rt_version = 1 #
- # __double_size = 32 #
- # __reg_r4 = free #
- # __reg_r5 = free #
- # __pic = no #
- # Source file = E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # filesDelay.c #
- # Command line = -I "C:Program FilesIAR SystemsEmbedded Workbench #
- # 3.2430INC" -I "C:Program FilesIAR #
- # SystemsEmbedded Workbench 3.2430INCCLIB" -lCN #
- # E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # DebugList -lA E:projectFaxProgramVson_Bryan_Fax_ #
- # Conexant_070423DebugList -o #
- # E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # DebugObj -z2 --no_cse --no_unroll --no_inline #
- # --no_code_motion --debug -e #
- # E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # filesDelay.c #
- # List file = E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # DebugListDelay.lst #
- # Object file = E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # DebugObjDelay.r43 #
- # #
- # #
- ##############################################################################
- E:projectFaxProgramVson_Bryan_Fax_Conexant_070423filesDelay.c
- 1 /************************************************
- 2 Delay subroutine
- 3 Copyright 2006 by Vson. All rights reserved.
- 4 Author: Bryan Cai
- 5 Date: 2006.12.21
- 6 Description: soft delay
- 7 Note:
- 8 Identifier abbreviation:
- 9 c-const
- 10 a-array
- 11 p-pointer
- 12 g-global
- 13 uc-unsigned char
- 14 w-unsigned int
- 15 cnt-count
- 16 pnt-point
- 17 Update:
- 18 2006.12.21 Bryan program header
- 19 ************************************************/
- 20
- 21 #include "includeH.h"
- 22
- In segment CODE, align 2, keep-with-next
- 23 void Delay1500ms(void)
- Delay1500ms:
- 24 {
- 000000 0A12 PUSH.W R10
- 25 unsigned char ucGeneralCount;
- 26 for (ucGeneralCount=0; ucGeneralCount<30; ucGeneralCount++)// delay 1.5S minimun 1 second
- 000002 4A43 MOV.B #0x0, R10
- ??Delay1500ms_0:
- 000004 7A901E00 CMP.B #0x1e, R10
- 000008 042C JC ??Delay1500ms_1
- 27 {
- 28 ATcmdDelay(); //50ms
- 00000A B012.... CALL #ATcmdDelay
- 29 }
- 00000E 5A53 ADD.B #0x1, R10
- 000010 F93F JMP ??Delay1500ms_0
- 30 }
- ??Delay1500ms_1:
- 000012 3A41 POP.W R10
- 000014 3041 RET
- 31
- In segment CODE, align 2, keep-with-next
- 32 void Delay2000ms(void)
- Delay2000ms:
- 33 {
- 000000 0A12 PUSH.W R10
- 34 unsigned char ucGeneralCount;
- 35 for (ucGeneralCount=0; ucGeneralCount<40; ucGeneralCount++)// delay 1.5S minimun 1 second
- 000002 4A43 MOV.B #0x0, R10
- ??Delay2000ms_0:
- 000004 7A902800 CMP.B #0x28, R10
- 000008 042C JC ??Delay2000ms_1
- 36 {
- 37 ATcmdDelay(); //50ms
- 00000A B012.... CALL #ATcmdDelay
- 38 }
- 00000E 5A53 ADD.B #0x1, R10
- 000010 F93F JMP ??Delay2000ms_0
- 39 }
- ??Delay2000ms_1:
- 000012 3A41 POP.W R10
- 000014 3041 RET
- 40
- In segment CODE, align 2, keep-with-next
- 41 void ATcmdDelay(void)//delay 50ms
- ATcmdDelay:
- 42 {
- 43 unsigned int DelayCnt=0;
- 000000 0E43 MOV.W #0x0, R14
- 44 for(DelayCnt = 0;DelayCnt < 0xbfff;DelayCnt++)//0xbfff
- 000002 0E43 MOV.W #0x0, R14
- ??ATcmdDelay_0:
- 000004 3E90FFBF CMP.W #0xbfff, R14
- 000008 032C JC ??ATcmdDelay_1
- 45 _NOP();
- 00000A 0343 NOP
- 00000C 1E53 ADD.W #0x1, R14
- 00000E FA3F JMP ??ATcmdDelay_0
- 46 }
- ??ATcmdDelay_1:
- 000010 3041 RET
- In segment CODE, align 2, keep-with-next
- 47 void delay800ms(void)//delay 8000ms
- delay800ms:
- 48 {
- 49 unsigned int DelayCnt=0;
- 000000 0E43 MOV.W #0x0, R14
- 50 for(DelayCnt=0;DelayCnt<0xffff;DelayCnt++)
- 000002 0E43 MOV.W #0x0, R14
- ??delay800ms_0:
- 000004 3E93 CMP.W #0xffff, R14
- 000006 0324 JEQ ??delay800ms_1
- 51 _NOP();
- 000008 0343 NOP
- 00000A 1E53 ADD.W #0x1, R14
- 00000C FB3F JMP ??delay800ms_0
- 52 }
- ??delay800ms_1:
- 00000E 3041 RET
- 53
- In segment CODE, align 2, keep-with-next
- 54 void delay1us(unsigned int wDelayNum)//delay 1us
- delay1us:
- 55 {
- 56 unsigned int wGeneralCount=0;
- 000000 0E43 MOV.W #0x0, R14
- 57 wDelayNum=wDelayNum-1;
- 000002 3C53 ADD.W #0xffff, R12
- 58 for (wGeneralCount=0;wGeneralCount<wDelayNum;wGeneralCount++)
- 000004 0E43 MOV.W #0x0, R14
- ??delay1us_0:
- 000006 0E9C CMP.W R12, R14
- 000008 032C JC ??delay1us_1
- 59 {
- 60 __no_operation();
- 00000A 0343 NOP
- 61 }
- 00000C 1E53 ADD.W #0x1, R14
- 00000E FB3F JMP ??delay1us_0
- 62 }
- ??delay1us_1:
- 000010 3041 RET
- Maximum stack usage in bytes:
- Function CSTACK
- -------- ------
- ATcmdDelay 2
- Delay1500ms 4
- -> ATcmdDelay 4
- Delay2000ms 4
- -> ATcmdDelay 4
- delay1us 2
- delay800ms 2
- Segment part sizes:
- Function/Label Bytes
- -------------- -----
- Delay1500ms 22
- Delay2000ms 22
- ATcmdDelay 18
- delay800ms 16
- delay1us 18
-
- 96 bytes in segment CODE
-
- 96 bytes of CODE memory
- Errors: none
- Warnings: none