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

📄 f2407pwmdac2.lst

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

TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00  Sun Dec 10 15:39:20 2000
Copyright (c) 1987-1999  Texas Instruments Incorporated 
f2407pwmdac2.asm                                                     PAGE    1

       1            ;===============================================================================================================
       2            ; File name:       F2407PWMDAC.ASM                     
       3            ;                    
       4            ; Originator:   Digital Control Systems Group
       5            ;                       Texas Instruments
       6            ; Description:                                   
       7            ; This file contains source for converting any s/w variables with 
       8            ; Q15 representation into the PWM signals in EVB for x240x only. 
       9            ; Thus, it can be used to view the signal, represented by the 
      10            ; variable, at the outputs of the PWM7, PWM9, PWM11 pins through the
      11            ; external lowpass filters.
      12            ; Applicability of these functions is indicated in the Table 1
      13            ;=====================================================================================
      14            ; History:
      15            ;-------------------------------------------------------------------------------------
      16            ; 01-15-2001    Release Rev 1.0
      17            ;================================================================================
      18            ;                           T A B L E      1
      19            ;================================================================================
      20            ;     Function Name    |    Applicability
      21            ;================================================================================
      22            ;                      |      F240 | F241| F243 | LF2402 | LF2406 | LF2407
      23            ;                      |           |     |      |        |        |
      24            ; F2407_PWMDAC_Update  |           |     |      |   Y    |   Y    |     Y 
      25            ;================================================================================
      26            ;================================================================================
      27            ; Routine Name: PWMDAC Update Routine        Routine Type: C Callable
      28            ;
      29            ; Description:
      30            ;  
      31            ;  Sine Module
      32            ;  
      33            ;  C prototype : int F2407_PWMDAC_Update(PWMDAC *p)
      34            ;================================================================================
      35            ; History:                
      36            ; __________________________________________________________________________
      37            ; Date of Mod   |                     DESCRIPTION
      38            ;   ------------|-----------------------------------------------------------
      39            ;               |
      40            ;               |
      41            ;================================================================================
      42            ; Definition of the argument structure.
      43            ; typedef struct {   
      44            ;       int *PWM_DAC_IPTR0;     /* Pointer to source data output on PWMDAC channel 0 */
      45            ;       int *PWM_DAC_IPTR1;     /* Pointer to source data output on PWMDAC channel 1 */
      46            ;       int *PWM_DAC_IPTR2;     /* Pointer to source data output on PWMDAC channel 2 */
      47            ;       int pwmdac_period;  /* PWMDAC period in usec  (Q0) */
      48            ;   int (*init)();      /* Pointer to the init function */
      49            ;       int (*update)();        /* Pointer to the update function */
      50            ;       } PWMDAC ;  
      51            ;
      52            ; 
      53            ;        Frame Usage Details:
      54            ;     step   |      a      |      b       |      c       |     d     
TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00  Sun Dec 10 15:39:20 2000
Copyright (c) 1987-1999  Texas Instruments Incorporated 
f2407pwmdac2.asm                                                     PAGE    2

      55            ;____________|_____________|______________|______________|_____________
      56            ;     FR0        |    15       |  dac_period  |              |     
      57            ;
      58            ;================================================================================
      59                            .def     _F2407_PWMDAC_Update
      60            ;================================================================================
      61                            .include ..\include\x240x.h
      62            ;================================================================================
      63      0001  __F2407_PWMDAC_Update_framesize .set 0001h
      64            ;================================================================================
      65 0000       _F2407_PWMDAC_Update:
      66            
      67 0000 8aa0          POPD    *+                                                                             ; Keep return add
      68 0001 80a0          SAR     AR0,*+                                                                 ; Keep old frame pointer 
      69 0002 8180          SAR     AR1,*                                                                  ; Keep old stack pointer 
      70 0003 b001          LARK    AR0,__F2407_PWMDAC_Update_framesize        ; Load AR0 with frame size   
      71 0004 00e8          LAR     AR0,*0+,AR0                                                            ; AR0->FP0 (new FP), ARP=
      72            ;================================================================================
      73 0005 7c03                  SBRK    #3              ; ARP=AR0, AR0->FR0-3 (1st argument)            
      74            ;--------------------------------------------------------------------------------
      75 0006 028a                  LAR             AR2,*,AR2 ; ARP=AR0, AR0->PWM_DAC_IPTR0, AR2->PWM_DAC_IPTR0, ARP=AR2            
      76            ;--------------------------------------------------------------------------------
      77 0007 0388                  LAR             AR3,*,AR0 ; ARP=AR2, AR0->PWM_DAC_IPTR0, AR2->PWM_DAC_IPTR0, AR3->(PWM_DAC_IPTR0
      78            ;--------------------------------------------------------------------------------
      79 0008 7803                  ADRK    #3              ; ARP=AR0, AR0->FR0, AR2->PWM_DAC_IPTR0, AR3->(PWM_DAC_IPTR0) 
      80            ;--------------------------------------------------------------------------------
      81 0009 8b8a          MAR             *,AR2   ; ARP=AR2, AR0->FR0, AR2->PWM_DAC_IPTR0, AR3->(PWM_DAC_IPTR0)   
      82            ;--------------------------------------------------------------------------------
      83 000a 7803                  ADRK    #3              ; ARP=AR2, AR0->FR0, AR2->pwmdac_period, AR3->(PWM_DAC_IPTR0)           
      84            ;----------------------------------------------------------------------------------
      85 000b be47          SETC    SXM             ; Turn sign extension mode on
      86                                                    ; ARP=AR2, AR0->FR0, AR2->pwmdac_period, AR3->(PWM_DAC_IPTR0)
      87            ;----------------------------------------------------------------------------------
      88 000c be43                  SETC    OVM             ; Set overflow mode
      89                                                            ; ARP=AR2, AR0->FR0, AR2->pwmdac_period, AR3->(PWM_DAC_IPTR0)
      90            ;----------------------------------------------------------------------------------

⌨️ 快捷键说明

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