IoInitial.s43
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:6k
- NAME IoInitial
- RTMODEL "__double_size", "32"
- RTMODEL "__pic", "no"
- RTMODEL "__reg_r4", "free"
- RTMODEL "__reg_r5", "free"
- RTMODEL "__rt_version", "1"
- RSEG CSTACK:DATA:SORT:NOROOT(1)
- EXTERN ?longjmp_r4
- EXTERN ?longjmp_r5
- EXTERN ?setjmp_r4
- EXTERN ?setjmp_r5
- PUBWEAK ?setjmp_save_r4
- PUBWEAK ?setjmp_save_r5
- PUBLIC IoInitial
- FUNCTION IoInitial,0203H
- LOCFRAME CSTACK, 2, STACK
- PUBWEAK P1DIR
- PUBWEAK P1OUT
- PUBWEAK P1SEL
- PUBWEAK P2DIR
- PUBWEAK P2OUT
- PUBWEAK P2SEL
- PUBWEAK P4DIR
- PUBWEAK P4OUT
- PUBWEAK P4SEL
- PUBWEAK P5DIR
- PUBWEAK P5SEL
- PUBWEAK P6DIR
- PUBWEAK P6OUT
- PUBWEAK P6SEL
-
- CFI Names cfiNames0
- CFI StackFrame CFA SP DATA
- CFI Resource PC:16, SP:16, SR:16, R4:16, R5:16, R6:16, R7:16, R8:16
- CFI Resource R9:16, R10:16, R11:16, R12:16, R13:16, R14:16, R15:16
- CFI EndNames cfiNames0
-
- CFI Common cfiCommon0 Using cfiNames0
- CFI CodeAlign 2
- CFI DataAlign 2
- CFI ReturnAddress PC CODE
- CFI CFA SP+2
- CFI PC Frame(CFA, -2)
- CFI SR Undefined
- CFI R4 SameValue
- CFI R5 SameValue
- CFI R6 SameValue
- CFI R7 SameValue
- CFI R8 SameValue
- CFI R9 SameValue
- CFI R10 SameValue
- CFI R11 SameValue
- CFI R12 Undefined
- CFI R13 Undefined
- CFI R14 Undefined
- CFI R15 Undefined
- CFI EndCommon cfiCommon0
-
- // E:projectFaxProgramVson_Bryan_Fax_Conexant_070423filesIoInitial.c
- // 1 //Io Set
- // 2
- // 3 #include "includeH.h"
- ASEGN DATA16_AN:DATA:NOROOT,021H
- // unsigned char volatile __data P1OUT
- P1OUT:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,022H
- // unsigned char volatile __data P1DIR
- P1DIR:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,026H
- // unsigned char volatile __data P1SEL
- P1SEL:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,029H
- // unsigned char volatile __data P2OUT
- P2OUT:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,02aH
- // unsigned char volatile __data P2DIR
- P2DIR:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,02eH
- // unsigned char volatile __data P2SEL
- P2SEL:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,01dH
- // unsigned char volatile __data P4OUT
- P4OUT:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,01eH
- // unsigned char volatile __data P4DIR
- P4DIR:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,01fH
- // unsigned char volatile __data P4SEL
- P4SEL:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,032H
- // unsigned char volatile __data P5DIR
- P5DIR:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,033H
- // unsigned char volatile __data P5SEL
- P5SEL:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,035H
- // unsigned char volatile __data P6OUT
- P6OUT:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,036H
- // unsigned char volatile __data P6DIR
- P6DIR:
- DS8 1
- ASEGN DATA16_AN:DATA:NOROOT,037H
- // unsigned char volatile __data P6SEL
- P6SEL:
- DS8 1
- // 4
- RSEG CODE:CODE:SORT:NOROOT(1)
- // 5 void IoInitial(void)
- IoInitial:
- CFI Block cfiBlock0 Using cfiCommon0
- CFI Function IoInitial
- // 6 {
- // 7 //BCSCTL1|=XTS; //MCLK时钟源 Select LFXTCLK high frequency
- // 8 //BCSCTL2|=SELM_3; //MCLK时钟源 Select LFXTCLK //+DIVM_3
- // 9 //delay800ms();
- // 10 P2SEL = 0X00;
- MOV.B #0x0, &0x2e
- // 11 P2DIR = 0X1f;//P2DIR = 0X3E;
- MOV.B #0x1f, &0x2a
- // 12 P2OUT = 0X19;
- 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
- BIS.B #0x8, &0x29
- // 19 FLASH_CON_PORT_OUT |= WE;
- BIS.B #0x1, &0x29
- // 20 FLASH_CON_PORT_OUT |= RE;
- BIS.B #0x10, &0x29
- // 21 FLASH_CON_PORT_OUT &= ~CLE;
- BIC.B #0x4, &0x29
- // 22 FLASH_CON_PORT_OUT &= ~ALE;
- 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;
- MOV.B #0x0, &0x26
- // 34 P1DIR = 0X40;
- MOV.B #0x40, &0x22
- // 35 P1OUT = 0x00;
- MOV.B #0x0, &0x21
- // 36 P4SEL = 0X00;
- MOV.B #0x0, &0x1f
- // 37 P4DIR = 0X06;
- MOV.B #0x6, &0x1e
- // 38 P4OUT = 0x06;
- MOV.B #0x6, &0x1d
- // 39 P5SEL = 0X00;
- MOV.B #0x0, &0x33
- // 40 P5DIR = 0X00;
- MOV.B #0x0, &0x32
- // 41 P6SEL = 0X00;
- MOV.B #0x0, &0x37
- // 42 P6DIR = 0x58;//11011000 11010001; //McuModemKeyControl on PcModemKeyControl off
- MOV.B #0x58, &0x36
- // 43 P6OUT = 0x09;//0b01000001; //McuModemKeyControl on PcModemKeyControl off Set SoftUartRx and Tx bit
- MOV.B #0x9, &0x35
- // 44
- // 45 }
- RET
- CFI EndBlock cfiBlock0
- RSEG CODE:CODE:NOROOT(1)
- ?setjmp_save_r4:
- REQUIRE ?setjmp_r4
- REQUIRE ?longjmp_r4
- RSEG CODE:CODE:NOROOT(1)
- ?setjmp_save_r5:
- REQUIRE ?setjmp_r5
- REQUIRE ?longjmp_r5
- END
- //
- // 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