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

📄 f2407drive2.lst

📁 TI的digital motor control lib的源代码。了解TI的编程规范
💻 LST
字号:
C:\TIC2XX\C2000\CGTOOLS\BIN\DSPA.EXE -q -v2xx -gs f2407drive2.asm -o ..\obj\f2407drive2.obj -l ..\temp\f2407drive2.lst 

TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00  Mon Apr  9 15:40:24 2001
Copyright (c) 1987-1999  Texas Instruments Incorporated 
f2407drive2.asm                                                      PAGE    1

       1            ;===============================================================================================================
       2            ; File name:       F2407DRIVE2.ASM                     
       3            ;                    
       4            ; Originator:   Digital Control Systems Group
       5            ;                       Texas Instruments
       6            ; Description:                                   
       7            ; This file contains source for the implementing the gate enable and
       8            ; disable of PWM signals on DMC1500 inverter.         
       9            ;=====================================================================================
      10            ; History:
      11            ;-------------------------------------------------------------------------------------
      12            ; 04-09-2001    Release Rev 1.0
      13            ;================================================================================
      14            ; Applicability: F240x.  (Peripheral dependant).
      15            ;
      16            ;================================================================================
      17            ; Routine Name: F2407_drive_drv_calc                    Routine Type: C Callable
      18            ;
      19            ; Description:
      20            ;  
      21            ;  C prototype : int F2407_drive_drv_calc(DRIVE *p)
      22            ;================================================================================
      23                            
      24            ; Definition of the DRIVE structure is as follows:
      25            ;
      26            ;typedef struct { int enable_flg;      /* Input: Enable drive flag: 1=enable, 0=disable */
      27            ;                 int (*init)();       /* Pointer to the init function */
      28            ;                 int (*calc)();       /* Pointer to the calc function */
      29            ;               } DRIVE;
      30            ;
      31            ;================================================================================
      32                              .include ..\include\x240x.h
      33            ;================================================================================
      34                              .def        _F2407_drive_drv_calc
      35            ;================================================================================
      36      0001  __F2407_drive_drv_calc_framesize .set 0001h
      37            ;================================================================================
      38 0000       _F2407_drive_drv_calc:
      39            
      40 0000 8aa0          POPD    *+                                                                             ; Keep return add
      41 0001 80a0          SAR     AR0,*+                                                                 ; Keep old frame pointer 
      42 0002 8180          SAR     AR1,*                                                                  ; Keep old stack pointer 
      43 0003 b001          LARK    AR0,__F2407_drive_drv_calc_framesize       ; Load AR0 with frame size   
      44 0004 00e8          LAR     AR0,*0+,AR0                                                            ; AR0->FP0 (new FP), ARP=
      45            
      46            ;================================================================================
      47 0005 7c03          SBRK    #3              ; ARP=AR0, AR0->FR0-3 (1st argument)
      48            ;--------------------------------------------------------------------------------
      49 0006 be47          SETC    SXM                             ; Turn sign extension mode on
      50                                                                    ; ARP=AR0, AR0->enable_flg
      51            ;--------------------------------------------------------------------------------
      52 0007 108b                  LACC    *,AR3                   ; ACC = enable_flg 
      53                                                                            ; ARP=AR0, AR0->enable_flg, ARP=AR3             
      54            ;--------------------------------------------------------------------------------
TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00  Mon Apr  9 15:40:24 2001
Copyright (c) 1987-1999  Texas Instruments Incorporated 
f2407drive2.asm                                                      PAGE    2

      55 0008 e308          BCND    ENABLE_DRIVE,NEQ ; Branch to ENABLE_DRIVE if enable_flg = 1
         0009 0012' 
      56                                            ; ARP=AR3, AR0->enable_flg
      57            ;--------------------------------------------------------------------------------
      58 000a       DISABLE_DRIVE                   ; ARP=AR3, AR0->enable_flg
      59            ;--------------------------------------------------------------------------------
      60 000a bf0b          LAR     AR3,#PBDATDIR   ; Point AR3 to PBDATDIR 
         000b 709a  
      61                                                                    ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR
      62            ;--------------------------------------------------------------------------------
      63 000c 1080                  LACC    *                               ; ACC = (PBDATDIR)
      64                                                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR       
      65            ;--------------------------------------------------------------------------------
      66 000d bfc0          OR              #5050h          ; ACC = (PBDATDIR) | 05050h
         000e 5050  
      67                                                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR       
      68            ;--------------------------------------------------------------------------------
      69 000f 9089          SACL    *,AR1                   ; PBDATDIR = PBDATDIR | 05050h
      70                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR, ARP=AR1
      71            ;--------------------------------------------------------------------------------
      72 0010 7980          B               _F2407_drive_drv_calc_end ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR 
         0011 001e' 
      73            ;--------------------------------------------------------------------------------
      74 0012       ENABLE_DRIVE                    ; ARP=AR3, AR0->enable_flg
      75            ;--------------------------------------------------------------------------------
      76 0012 bf0b          LAR     AR3,#PBDATDIR   ; Point AR3 to PBDATDIR 
         0013 709a  
      77                                                                    ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR
      78            ;--------------------------------------------------------------------------------
      79 0014 1080                  LACC    *                               ; ACC = (PBDATDIR)
      80                                                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR       
      81            ;--------------------------------------------------------------------------------
      82 0015 bfb0          AND             #0FFEFh         ; ACC = (PBDATDIR) & 0FFEFh  (IOPB4 low)
         0016 ffef  
      83                                                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR       
      84            ;--------------------------------------------------------------------------------
      85 0017 9080          SACL    *                               ; PBDATDIR = PBDATDIR & 0FFEFh  (IOPB4 low)
      86                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR
      87            ;--------------------------------------------------------------------------------
      88 0018 bfc0          OR              #0010h          ; ACC = (PBDATDIR) | 0010h   (IOPB4 high)
         0019 0010  
      89                                                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR       
      90            ;--------------------------------------------------------------------------------
      91 001a 9080          SACL    *                               ; PBDATDIR = PBDATDIR | 0010h   (IOPB4 high)
      92                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR
      93            ;--------------------------------------------------------------------------------
      94 001b bfb0          AND             #0FFBFh         ; ACC = (PBDATDIR) & 0FFBFh  (IOPB6 low)
         001c ffbf  
      95                                                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR       
      96            ;--------------------------------------------------------------------------------
      97 001d 9089          SACL    *,AR1                   ; PBDATDIR = PBDATDIR & 0FFBFh  (IOPB6 low)
      98                                            ; ARP=AR3, AR0->enable_flg, AR3->PBDATDIR, ARP=AR1
      99            ;--------------------------------------------------------------------------------
     100 001e       _F2407_drive_drv_calc_end:
TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00  Mon Apr  9 15:40:24 2001
Copyright (c) 1987-1999  Texas Instruments Incorporated 
f2407drive2.asm                                                      PAGE    3

     101            
     102                   ;;MAR     *,AR1                  ; can be removed if this condition is met on
     103                   ;;                               ; every path to this code. (i.e., ARP=AR1 here)
     104            
     105 001e 7c02          SBRK    #(__F2407_drive_drv_calc_framesize+1)
     106 001f 0090          LAR     AR0,*-
     107 0020 7680          PSHD    *
     108            
     109 0021 ef00          RET
     110            
     111            
     112            
     113            
     114            

 No Errors,  No Warnings

⌨️ 快捷键说明

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