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

📄 rmp2cntl.lst

📁 TI公司24X系列DSP控制永磁同步电机PMSM
💻 LST
字号:
dspa -q -l -s -i../../../rtmon -i../../../sys/bldc3_2/asm -i..\..\..\rtmon -i..\..\..\sys\bldc3_2\asm -v2xx -iC:/CCStudio_v3.1/c2400/cgtools/include -g rmp2cntl.asm rmp2cntl.obj 

TMS320C24xx COFF Assembler Version 7.04  Wed Dec 28 11:23:55 2005
Copyright (c) 1987-2003  Texas Instruments Incorporated 
rmp2cntl.asm                                                         PAGE    1

       1            ;===========================================================================
       2            ; File Name:    rmp2cntl.asm
       3            ;
       4            ; Module Name:  RMP2CNTL                         
       5            ;
       6            ; Initialization Routine: RMP2CNTL_INIT
       7            ;
       8            ; Originator:   Digital Control Systems Group
       9            ;                       Texas Instruments
      10            ;
      11            ; Description:  This module implements a ramp up and ramp down function. 
      12            ;               The output variable rmp2_out follows the desired ramp value 
      13            ;               rmp2_desired.   
      14            ;
      15            ;                               |~~~~~~~~~~~~~~~~~|
      16            ;                               |                 |
      17            ;  rmp2_desired  o----------- ->| RMP2CNTL        |----->o rmp2_out
      18            ;                               |                 |
      19            ;                               |                 |
      20            ;                               |_________________|
      21            ;
      22            ;
      23            ;
      24            ;=====================================================================================
      25            ; History:
      26            ;-------------------------------------------------------------------------------------
      27            ; 9-15-2000     Release Rev 1.00        
      28            ;===========================================================================
      29            ;(To use this Module, copy this section to main system file)
      30            ;               .ref    RMP2CNTL, RMP2CNTL_INIT         ;function call
      31            ;               .ref    rmp2_dly, rmp2_desired          ;Inputs 
      32            ;               .ref    rmp2_out                        ;Output
      33            ;               .ref    rmp2_max, rmp2_min
      34            ;===========================================================================
      35            ;Module definitions for external reference.
      36                            .def    RMP2CNTL, RMP2CNTL_INIT         ;function call
      37                            .def    rmp2_dly,rmp2_desired           ;Inputs
      38                            .def    rmp2_out                        ;Output
      39                            .def    rmp2_max, rmp2_min
      40            ;===========================================================================
      41                            .include        x24x_app.h    
      42                                             
      43            ;===========================================================================
      44            ;Variable Definitions for rmp2cntl module
      45            ;---------------------------------------------------------------------------
      46            ;rmp2_max       .usect  "rmp2cntl",1    ;Max ramp output
      47            ;rmp2_min       .usect  "rmp2cntl",1    ;Min ramp output
      48            ;rmp2_delay_cntr        .usect  "rmp2cntl",1    ;Counter for ramp2 delay 
      49            ;rmp2_dly       .usect  "rmp2cntl",1    ;Ramp2 delay expressed in number of
      50                                                    ;system sampling time period.
      51            ;rmp2_desired   .usect  "rmp2cntl",1    ;Desired ramp input for ramp2
      52            ;rmp2_out       .usect  "rmp2cntl",1    ;Ramp2 output
      53            
      54 0000       rmp2_max_vars   .usect  "rmp2cntl",6,1  ;Max ramp output
TMS320C24xx COFF Assembler Version 7.04  Wed Dec 28 11:23:55 2005
Copyright (c) 1987-2003  Texas Instruments Incorporated 
rmp2cntl.asm                                                         PAGE    2

      55      0000- rmp2_max                .set    rmp2_max_vars+0 ;Max ramp output
      56      0001- rmp2_min                .set    rmp2_max_vars+1 ;Min ramp output
      57      0002- rmp2_delay_cntr .set    rmp2_max_vars+2 ;Counter for ramp2 delay 
      58      0003- rmp2_dly                .set    rmp2_max_vars+3 ;Ramp2 delay expressed in number of
      59                                                                                            ;system sampling time period.
      60      0004- rmp2_desired    .set    rmp2_max_vars+4 ;Desired ramp input for ramp2
      61      0005- rmp2_out                .set    rmp2_max_vars+5 ;Ramp2 output
      62            
      63            
      64            ;======================================================================
      65 0000       RMP2CNTL_INIT:
      66            ;======================================================================
      67 0000 bc00-                 LDP     #rmp2_out
      68 0001 ae02-                 SPLK    #0h,rmp2_delay_cntr
         0002 0000  
      69 0003 ae03-                 SPLK    #50h, rmp2_dly          ;Default ramp2 delay
         0004 0050  
      70 0005 ae05-                 SPLK    #0h, rmp2_out
         0006 0000  
      71 0007 ae00-                 SPLK    #07ff0h, rmp2_max       ;Default max ramp2 output
         0008 7ff0  
      72 0009 ae01-                 SPLK    #0fh, rmp2_min          ;Default min ramp2 output 
         000a 000f  
      73 000b ef00                  RET
      74            
      75            ;===========================================================                
      76 000c       RMP2CNTL:
      77            ;=========================================================== 
      78 000c bc00-                 LDP     #rmp2_out
      79 000d 1005-                 LACC    rmp2_out                
      80 000e 3004-                 SUB     rmp2_desired            
      81 000f e388                  BCND    done_rmp2,EQ            
         0010 002f' 
      82            
      83 0011 1002-                 LACC    rmp2_delay_cntr                 
      84 0012 b801                  ADD     #1                              
      85 0013 9002-                 SACL    rmp2_delay_cntr                 
      86 0014 3003-                 SUB     rmp2_dly                
      87 0015 e344                  BCND    done_rmp2, LT                    
         0016 002f' 
      88 0017 ae02-                 SPLK    #0,  rmp2_delay_cntr    
         0018 0000  
      89            
      90 0019       chng_rmp2:
      91 0019 1005-                 LACC    rmp2_out
      92 001a 3004-                 SUB     rmp2_desired 
      93 001b e344                  BCND    inc_rmp2, LT
         001c 0027' 
      94            
      95 001d 1005- dec_rmp2        LACC    rmp2_out
      96 001e ba01                  SUB     #1
      97 001f 9005-                 SACL    rmp2_out
      98 0020 3001-                 SUB     rmp2_min
      99 0021 e38c                  BCND    done_rmp2, GEQ
TMS320C24xx COFF Assembler Version 7.04  Wed Dec 28 11:23:55 2005
Copyright (c) 1987-2003  Texas Instruments Incorporated 
rmp2cntl.asm                                                         PAGE    3

         0022 002f' 
     100 0023 1001-                 LACC    rmp2_min
     101 0024 9005-                 SACL    rmp2_out 
     102 0025 7980                  B       done_rmp2
         0026 002f' 
     103            
     104 0027 1005- inc_rmp2        LACC    rmp2_out
     105 0028 b801                  ADD     #1
     106 0029 9005-                 SACL    rmp2_out
     107 002a 3000-                 SUB     rmp2_max
     108 002b e3cc                  BCND    done_rmp2, LEQ
         002c 002f' 
     109 002d 1000-                 LACC    rmp2_max
     110 002e 9005-                 SACL    rmp2_out
     111 002f       done_rmp2:
     112 002f ef00                  RET
     113            
     114            
     115            
     116            

 No Errors,  No Warnings

⌨️ 快捷键说明

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