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

📄 rmp3cntl.lst

📁 无刷直流电机的无传感器控制TI程序
💻 LST
字号:
dspa -q -l -s -i../../../rtmon -i../../../sys/bldc3_2/asm -i..\..\..\rtmon -i..\..\..\sys\bldc3_2\asm -v2xx -iC:/ti/c2400/cgtools/include -g rmp3cntl.asm rmp3cntl.obj 

TMS320C24xx COFF Assembler Version 7.02  Sun Apr 27 20:34:14 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
rmp3cntl.asm                                                         PAGE    1

       1            ;===========================================================================
       2            ; File Name:    rmp3cntl.asm
       3            ;
       4            ; Module Name:  RMP3CNTL                                  
       5            ;
       6            ; Initialization Routine: RMP3CNTL_INIT
       7            ;
       8            ; Originator:   Digital Control Systems Group
       9            ;                       Texas Instruments
      10            ;
      11            ; Description:  This module implements a ramp down function. The output
      12            ;               flag variable rmp3_done_flg is set to 7FFFh when the output 
      13            ;               variable rmp3_out equals the input variable rmp3_desired.
      14            ;
      15            ;                               |~~~~~~~~~~~~~~~~~|
      16            ;                               |                 |
      17            ;  rmp3_desired  o----------- ->| RMP3CNTL        |----->o rmp3_out
      18            ;                               |                 |----->o rmp3_done_flg
      19            ;                               |_________________|     
      20            ;
      21            ;
      22            ;
      23            ;
      24            ;=====================================================================================
      25            ; History:
      26            ;-------------------------------------------------------------------------------------
      27            ; 9-15-2000     Release Rev 1.0 
      28            ;===========================================================================
      29            ;(To use this Module, copy this section to main system file)
      30            ;               .ref    RMP3CNTL, RMP3CNTL_INIT                 ;function call
      31            ;               .ref    rmp3_desired, rmp3_dly                  ;Inputs
      32            ;               .ref    rmp3_out, rmp3_done_flg                 ;Outputs
      33            ;               .ref    rmp3_min
      34            ;===========================================================================
      35            ;Module definitions for external reference.
      36                            .def    RMP3CNTL, RMP3CNTL_INIT                 ;function call
      37                            .def    rmp3_desired, rmp3_dly                  ;Inputs
      38                            .def    rmp3_out, rmp3_done_flg                 ;Outputs
      39                            .def    rmp3_min
      40            ;===========================================================================
      41                            .include        x24x_app.h
      42            ;===========================================================================
      43            ;Variable Definitions for rmp3cntl module
      44            ;---------------------------------------------------------------------------
      45            
      46 0000       rmp3_min        .usect  "rmp3cntl",1    ;Min ramp output
      47 0001       rmp3_delay_cntr .usect  "rmp3cntl",1    ;Counter for ramp3 delay 
      48 0002       rmp3_dly        .usect  "rmp3cntl",1    ;Ramp3 delay expressed in number of
      49                                                    ;system sampling time period.
      50 0003       rmp3_desired    .usect  "rmp3cntl",1    ;Desired ramp input for ramp3
      51 0004       rmp3_out        .usect  "rmp3cntl",1    ;Ramp3 output
      52 0005       rmp3_done_flg   .usect  "rmp3cntl",1    ;Ramp3 done flag
      53            
      54            
TMS320C24xx COFF Assembler Version 7.02  Sun Apr 27 20:34:14 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
rmp3cntl.asm                                                         PAGE    2

      55            ;======================================================================
      56 0000       RMP3CNTL_INIT:
      57            ;======================================================================
      58 0000 bc00-                 LDP     #rmp3_out
      59 0001 ae01-                 SPLK    #0h, rmp3_delay_cntr
         0002 0000  
      60 0003 ae05-                 SPLK    #0h, rmp3_done_flg 
         0004 0000  
      61 0005 ae00-                 SPLK    #50h, rmp3_min          ;Default min for rmp3         
         0006 0050  
      62 0007 ef00                  RET
      63            
      64            ;======================================================================
      65 0008       RMP3CNTL:
      66            ;======================================================================
      67 0008 bc00-                 LDP     #rmp3_out
      68 0009 1003-                 LACC    rmp3_desired
      69 000a 3004-                 SUB     rmp3_out
      70 000b e388                  BCND    SET_RMP3_FLG, EQ        ;If Set point = target 
         000c 001e' 
      71                                                            ;set rmp3_done_flg = 7FFFh then exit
      72 000d 1001-                 LACC    rmp3_delay_cntr
      73 000e b801                  ADD     #1
      74 000f 9001-                 SACL    rmp3_delay_cntr
      75 0010 3002-                 SUB     rmp3_dly                
      76 0011 e344                  BCND    SRC_EXIT, LT   
         0012 001d' 
      77                            
      78            
      79 0013 1004- dec_rmp3        LACC    rmp3_out        
      80 0014 ba01                  SUB     #1
      81 0015 9004-                 SACL    rmp3_out
      82 0016 3000-                 SUB     rmp3_min
      83 0017 e38c                  BCND    SRC_1, GEQ
         0018 001b' 
      84 0019 1000-                 LACC    rmp3_min
      85 001a 9004-                 SACL    rmp3_out
      86 001b       SRC_1:
      87 001b ae01-                 SPLK    #0, rmp3_delay_cntr
         001c 0000  
      88            
      89 001d       SRC_EXIT
      90 001d ef00                  RET
      91            
      92 001e       SET_RMP3_FLG
      93 001e ae05-                 SPLK    #7FFFh, rmp3_done_flg
         001f 7fff  
      94 0020 ef00                  RET    
      95            
      96            
      97            

 No Errors,  No Warnings

⌨️ 快捷键说明

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