IoInitial.lst
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:9k
- ##############################################################################
- # #
- # IAR MSP430 C/EC++ Compiler V2.10A/W32 23/Apr/2007 18:04:11 #
- # 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 #
- # filesIoInitial.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 #
- # filesIoInitial.c #
- # List file = E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # DebugListIoInitial.lst #
- # Object file = E:projectFaxProgramVson_Bryan_Fax_Conexant_070423 #
- # DebugObjIoInitial.r43 #
- # #
- # #
- ##############################################################################
- E:projectFaxProgramVson_Bryan_Fax_Conexant_070423filesIoInitial.c
- 1 //Io Set
- 2
- 3 #include "includeH.h"
- In segment DATA16_AN, at 0x21
- unsigned char volatile __data P1OUT
- P1OUT:
- 000000 DS8 1
- In segment DATA16_AN, at 0x22
- unsigned char volatile __data P1DIR
- P1DIR:
- 000000 DS8 1
- In segment DATA16_AN, at 0x26
- unsigned char volatile __data P1SEL
- P1SEL:
- 000000 DS8 1
- In segment DATA16_AN, at 0x29
- unsigned char volatile __data P2OUT
- P2OUT:
- 000000 DS8 1
- In segment DATA16_AN, at 0x2a
- unsigned char volatile __data P2DIR
- P2DIR:
- 000000 DS8 1
- In segment DATA16_AN, at 0x2e
- unsigned char volatile __data P2SEL
- P2SEL:
- 000000 DS8 1
- In segment DATA16_AN, at 0x1d
- unsigned char volatile __data P4OUT
- P4OUT:
- 000000 DS8 1
- In segment DATA16_AN, at 0x1e
- unsigned char volatile __data P4DIR
- P4DIR:
- 000000 DS8 1
- In segment DATA16_AN, at 0x1f
- unsigned char volatile __data P4SEL
- P4SEL:
- 000000 DS8 1
- In segment DATA16_AN, at 0x32
- unsigned char volatile __data P5DIR
- P5DIR:
- 000000 DS8 1
- In segment DATA16_AN, at 0x33
- unsigned char volatile __data P5SEL
- P5SEL:
- 000000 DS8 1
- In segment DATA16_AN, at 0x35
- unsigned char volatile __data P6OUT
- P6OUT:
- 000000 DS8 1
- In segment DATA16_AN, at 0x36
- unsigned char volatile __data P6DIR
- P6DIR:
- 000000 DS8 1
- In segment DATA16_AN, at 0x37
- unsigned char volatile __data P6SEL
- P6SEL:
- 000000 DS8 1
- 4
- In segment CODE, align 2, align-sorted
- 5 void IoInitial(void)
- IoInitial:
- 6 {
- 7 //BCSCTL1|=XTS; //MCLK时钟源 Select LFXTCLK high frequency
- 8 //BCSCTL2|=SELM_3; //MCLK时钟源 Select LFXTCLK //+DIVM_3
- 9 //delay800ms();
- 10 P2SEL = 0X00;
- 000000 C2432E00 MOV.B #0x0, &0x2e
- 11 P2DIR = 0X1f;//P2DIR = 0X3E;
- 000004 F2401F002A00 MOV.B #0x1f, &0x2a
- 12 P2OUT = 0X19;
- 00000A F24019002900 MOV.B #0x19, &0x29
- 13
- 14 //P2SEL = 0X00; //For old flash circuit
- 15 //P2DIR = 0X3E; //For old flash circuit
- 16 //P2OUT = 0X26; //For old flash circuit
- 17
- 18 FLASH_CON_PORT_OUT |= CE; //COMMAND_LATCH_INTO_INITAIL all control disable
- 000010 F2D22900 BIS.B #0x8, &0x29
- 19 FLASH_CON_PORT_OUT |= WE;
- 000014 D2D32900 BIS.B #0x1, &0x29
- 20 FLASH_CON_PORT_OUT |= RE;
- 000018 F2D010002900 BIS.B #0x10, &0x29
- 21 FLASH_CON_PORT_OUT &= ~CLE;
- 00001E E2C22900 BIC.B #0x4, &0x29
- 22 FLASH_CON_PORT_OUT &= ~ALE;
- 000022 E2C32900 BIC.B #0x2, &0x29
- 23
- 24
- 25
- 26
- 27
- 28 //P2OUT = 0X19; //
- 29 //P3SEL = 0X00;
- 30 //P3DIR = 0Xff;
- 31 //P3OUT = 0X10;
- 32 //P3OUT = 0X00;
- 33 P1SEL = 0X00;
- 000026 C2432600 MOV.B #0x0, &0x26
- 34 P1DIR = 0X40;
- 00002A F24040002200 MOV.B #0x40, &0x22
- 35 P1OUT = 0x00;
- 000030 C2432100 MOV.B #0x0, &0x21
- 36 P4SEL = 0X00;
- 000034 C2431F00 MOV.B #0x0, &0x1f
- 37 P4DIR = 0X06;
- 000038 F24006001E00 MOV.B #0x6, &0x1e
- 38 P4OUT = 0x06;
- 00003E F24006001D00 MOV.B #0x6, &0x1d
- 39 P5SEL = 0X00;
- 000044 C2433300 MOV.B #0x0, &0x33
- 40 P5DIR = 0X00;
- 000048 C2433200 MOV.B #0x0, &0x32
- 41 P6SEL = 0X00;
- 00004C C2433700 MOV.B #0x0, &0x37
- 42 P6DIR = 0x58;//11011000 11010001; //McuModemKeyControl on PcModemKeyControl off
- 000050 F24058003600 MOV.B #0x58, &0x36
- 43 P6OUT = 0x09;//0b01000001; //McuModemKeyControl on PcModemKeyControl off Set SoftUartRx and Tx bit
- 000056 F24009003500 MOV.B #0x9, &0x35
- 44
- 45 }
- 00005C 3041 RET
- Maximum stack usage in bytes:
- Function CSTACK
- -------- ------
- IoInitial 2
- Segment part sizes:
- Function/Label Bytes
- -------------- -----
- P1OUT 1
- P1DIR 1
- P1SEL 1
- P2OUT 1
- P2DIR 1
- P2SEL 1
- P4OUT 1
- P4DIR 1
- P4SEL 1
- P5DIR 1
- P5SEL 1
- P6OUT 1
- P6DIR 1
- P6SEL 1
- IoInitial 94
-
- 94 bytes in segment CODE
- 14 bytes in segment DATA16_AN
-
- 94 bytes of CODE memory
- 0 bytes of DATA memory (+ 14 bytes shared)
- Errors: none
- Warnings: none