⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initcom.lst

📁 电力系统中的保护装置全部代码
💻 LST
📖 第 1 页 / 共 4 页
字号:
TMS320C3x/4x COFF AssemblerVersion 5.11     Fri Sep  3 09:19:11 2004
Copyright (c) 1987-1999 Texas Instruments IncorporatedC:\tic3x4x\c3x4x\cgtools\bin\asm30.exe Initcom.asm Initcom.obj -x -v30 -mb -iE:\f\fck 

Initcom.asm                                                          PAGE    1

        1                   ;/*************************************************************************/
        2                   ;/* Warning:                                                              */
        3                   ;/*       Pls don't remodify this File.                                   */
        4                   ;/*       If you have something exhausted,  pls contact with me.          */
        5                   ;/*                       GauTsuanFar----2001/12/22                       */
        6                   ;/*************************************************************************/
        7                   
        8                   ;/*************************************************************************/
        9                   ;/*                                                                       */
       10                   ;/*        Copyright (c) 2001-2001 XJ electric corporation.               */
       11                   ;/*                                                                       */
       12                   ;/* PROPRIETARY RIGHTS of XJ Group are involved in the                    */
       13                   ;/* subject matter of this material.  All manufacturing, reproduction,    */
       14                   ;/* use, and sales rights pertaining to this subject matter are governed  */
       15                   ;/* by the license agreement.  The recipient of this software implicitly  */
       16                   ;/* accepts the terms of the license.                                     */
       17                   ;/*                                                                       */
       18                   ;/*************************************************************************/
       19                   ;
       20                   ;/*************************************************************************/
       21                   ;/*                                                                       */
       22                   ;/* FILE NAME                                            VERSION          */
       23                   ;/*                                                                       */
       24                   ;/*      initcom.asm                                      ver1.0          */
       25                   ;/*                                                                       */
       26                   ;/* COMPONENT                                                             */
       27                   ;/*                                                                       */
       28                   ;/*      Initial 16c554 - Initial of 16C554                               */
       29                   ;/*      Interrupt-of 16c554 communication                                */
       30                   ;/*                                                                       */
       31                   ;/* DESCRIPTION                                                           */
       32                   ;/*                                                                       */
       33                   ;/*      This file contains the 16c554 processor dependent Initial        */
       34                   ;/*      routines and data.                                               */
       35                   ;/*                                                                       */
       36                   ;/* AUTHOR                                                                */
       37                   ;/*                                                                       */
       38                   ;/*      GauTsunFar, XJ electric corporation.                             */
       39                   ;/*                                                                       */
       40                   ;/* DATA STRUCTURES                                                       */
       41                   ;/*                                                                       */
       42                   ;/*      No.                                                              */
       43                   ;/*                                                                       */
       44                   ;/* FUNCTIONS                                                             */
       45                   ;/*      interrupt functions                                              */
       46                   ;/*      INT16c554_Initialize                      Target initialization  */
       47                   ;/* DEPENDENCIES                                                          */
       48                   ;/*                                                                       */
       49                   ;/*      None                                                             */
       50                   ;/*                                                                       */
       51                   ;/* HISTORY                                                               */
       52                   ;/*                                                                       */
       53                   ;/*         NAME            DATE                    REMARKS               */
       54                   ;/*        GauTsunFar      2001-8-22         complete the initial routine */
TMS320C3x/4x COFF AssemblerVersion 5.11     Fri Sep  3 09:19:11 2004
Copyright (c) 1987-1999 Texas Instruments IncorporatedC:\tic3x4x\c3x4x\cgtools\bin\asm30.exe Initcom.asm Initcom.obj -x -v30 -mb -iE:\f\fck 

Initcom.asm                                                          PAGE    2

       55                   ;/*                                          and the interrupt routine    */
       56                   ;/*                                                                       */
       57                   ;/*************************************************************************/
       58                   ;    
       59                                   .global  _Init_16c554,_Init_16c554A,_Init_16c554B,_Init_16c554C 
       60                                   .global  _Init_16c554D
       61                                   
       62                                   .global  _INT_EXINT3 
       63                                   
       64                                   .global  _Com_Port1,_Com_Port2,_Com_Port3,_Com_Port4
       65                                   .global  _RDY_OE,_Relay_Out,_Digital_In 
       66                                   
       67                                   .global  _pInReceBuffA,_pOutReceBuffA,_ReceiveBuffA
       68                                   .global  _pInReceBuffB,_pOutReceBuffB,_ReceiveBuffB
       69                                   .global  _pInReceBuffC,_pOutReceBuffC,_ReceiveBuffC
       70                                   .global  _pInReceBuffD,_pOutReceBuffD,_ReceiveBuffD
       71                                                  
       72                                   .global   _ReceBuffALen_,_ReceBuffBLen_
       73                                   .global   _ReceBuffCLen_,_ReceBuffDLen_      
       74                                   
       75          00000400 _ReceBuffALen_  .set   400h                  ;receive buffer length 
       76          00000400 _ReceBuffBLen_  .set   400h                  ;receive buffer length   
       77          00000400 _ReceBuffCLen_  .set   400h                  ;receive buffer length
       78          00000400 _ReceBuffDLen_  .set   400h                  ;receive buffer length
       79          00000001 _DataReady      .set   01H                   ;receive data ready
       80                   
       81                                  
       82 00000000          ReceiveBuffA_Addr .usect ".sysm8",_ReceBuffALen_ ;receive data buffer
       83 00000400          ReceiveBuffB_Addr .usect ".sysm8",_ReceBuffBLen_ ;receive data buffer 
       84 00000800          ReceiveBuffC_Addr .usect ".sysm8",_ReceBuffCLen_ ;receive data buffer
       85 00000c00          ReceiveBuffD_Addr .usect ".sysm8",_ReceBuffDLen_ ;receive data buffer
       86                                
       87 00000000                          .bss  pInReceBuffA_Addr,1    ;Input  pointer of buffer         
       88 00000001                          .bss  pOutReceBuffA_Addr,1   ;output pointer of buffer 
       89 00000002                          .bss  pInReceBuffB_Addr,1    ;Input  pointer of buffer         
       90 00000003                          .bss  pOutReceBuffB_Addr,1   ;output pointer of buffer 
       91 00000004                          .bss  pInReceBuffC_Addr,1    ;Input  pointer of buffer         
       92 00000005                          .bss  pOutReceBuffC_Addr,1   ;output pointer of buffer 
       93 00000006                          .bss  pInReceBuffD_Addr,1    ;Input  pointer of buffer         
       94 00000007                          .bss  pOutReceBuffD_Addr,1   ;output pointer of buffer 
       95                                       
       96                   
       97                   ;com1-813800,com2-813000,com3-812800,com4-812000    
       98 00000000                          .text
       99                   
      100                   ;_Com_Port1     .word    813800H          ; Addrress GPS-- com1
      101                   ;_Com_Port2     .word    813000H          ; Addrress PC--  com2 
      102                   ;_Com_Port3     .word    812800H          ; Addrress JK1-- com3
      103                   ;_Com_Port4     .word    812000H          ; Addrress JK2-- com4  
      104                   
      105                   ;_RDY_OE        .word    811001H          ; 485OE,CPU_RDY  
      106                   ;_Relay_Out     .word    811000H          ; Dout 
      107                   ;_Digital_In    .word    811002H          ; Din
      108                    
TMS320C3x/4x COFF AssemblerVersion 5.11     Fri Sep  3 09:19:11 2004
Copyright (c) 1987-1999 Texas Instruments IncorporatedC:\tic3x4x\c3x4x\cgtools\bin\asm30.exe Initcom.asm Initcom.obj -x -v30 -mb -iE:\f\fck 

Initcom.asm                                                          PAGE    3

      109 00000000 00000000 ReceiveBR       .word    00000000B        ;Receive buffer register(Addr+0,read only)
      110 00000001 00000000 TransmitHR      .word    00000000B        ;Transmit holding register(Addr+0,write only)
      111                   ;4800-d0,9600-68
      112 00000002 00000068 DLL             .word    01101000B        ;Baudrate low byte(Addr+0,DLAB=1)
      113 00000003 000000d0 DLL1            .word    11010000B        ;Baudrate low byte(Addr+0,DLAB=1)
      114 00000004 00000000 DLM             .word    00000000B        ;Baudrate High byte(Addr+1,DLAB=1)
      115                   ;receive Interrupt enabled
      116 00000005 00000001 InterruptER     .word    00000001B        ;Interrupt enable register(Addr+1)
      117                   ;FIFO,1char trigger level
      118 00000006 00000007 FIFOCR          .word    00000111B        ;FIFO control register(Addr+2,write only)
      119 00000007 00000000 InterruptIR     .word    00000000B        ;Interrupt identify register(Addr+2,read only)
      120                   ;8bit,1stop,even parity
      121 00000008 0000001b LineCR          .word    00011011B        ;line control register(Addr+3)
      122 00000009 00000003 LineCR1         .word    00000011B        ;line control register(Addr+3)
      123 0000000a 00000008 ModemCR         .word    00001000B        ;modem control register(Addr+4,no need mention)
      124                   ;
      125 0000000b 00000021 LineSR          .word    00100001B        ;line Status register(Addr+5)
      126 0000000c 00000000 ModemSR         .word    00000000B        ;Modem Status register(Addr+6,no need mention)
      127 0000000d 00000000 ScratchR        .word    00000000B        ;ScratchPad register(Addr+7,no need mention)       
      128                                   
      129 0000000e 00000000-_ReceiveBuffA   .word ReceiveBuffA_Addr   ;receive buffer address                       
      130 0000000f 00000400-_ReceiveBuffB   .word ReceiveBuffB_Addr   ;receive buffer address  
      131 00000010 00000800-_ReceiveBuffC   .word ReceiveBuffC_Addr   ;receive buffer address 
      132 00000011 00000c00-_ReceiveBuffD   .word ReceiveBuffD_Addr   ;receive buffer address 
      133                   
      134 00000012 00000000-_pInReceBuffA   .word pInReceBuffA_Addr   ;input  pointer address
      135 00000013 00000001-_pOutReceBuffA  .word pOutReceBuffA_Addr  ;output pointer address
      136                   
      137 00000014 00000002-_pInReceBuffB   .word pInReceBuffB_Addr   ;input  pointer address
      138 00000015 00000003-_pOutReceBuffB  .word pOutReceBuffB_Addr  ;output pointer address
      139                   
      140 00000016 00000004-_pInReceBuffC   .word pInReceBuffC_Addr   ;input  pointer address
      141 00000017 00000005-_pOutReceBuffC  .word pOutReceBuffC_Addr  ;output pointer address
      142                   
      143 00000018 00000006-_pInReceBuffD   .word pInReceBuffD_Addr   ;input  pointer address
      144 00000019 00000007-_pOutReceBuffD  .word pOutReceBuffD_Addr  ;output pointer address
      145                   ;---------------------------------------------------------                
      146                   ;void   _Init_16c554(void);
      147 0000001a          _Init_16c554:
      148 0000001a 620000a1'    call   _Init_16c554D
      149 0000001b 62000075'    call   _Init_16c554C
      150 0000001c 62000049'    call   _Init_16c554B  
      151                   ;initial Achannel      
      152                   ;void   _Init_16c554A(void);    
      153 0000001d          _Init_16c554A:    
      154 0000001d 0f350000     push   ST 
      155 0000001e 0f300000     push   DP
      156 0000001f 0f280000     push   AR0 
      157 00000020 0f290000     push   AR1                
      158                       
      159 00000021 08700000!    LDP    @_Com_Port1            ;Load Data Page Pointer
      160 00000022 08280000!    LDI    @_Com_Port1,AR0        ;LOAD in AR0 the pointer to Com_Port1
      161                   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -