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

📄 vhz.lst

📁 本程序来自TI公司网站原程序,其功能是通过传统的V/F控制算法来实现对感应电机的控制,控制程序可以采用.asm也可以采用.C。 程序的具体算法和介绍在软件压缩包有详细介绍!
💻 LST
📖 第 1 页 / 共 4 页
字号:
     539 004e 8b8b          MAR     * ,AR3
     540 004f ae89          SPLK    #-1,* ,AR1
         0050 ffff  
     541                    .line   20
     542            ;>>>>           drive.calc(&drive);
     543 0051 bf80          LALK    _drive+0
         0052 003f- 
     544 0053 90a0          SACL    *+
     545 0054 1041-         LAC     _drive+2
     546 0055 be30          CALA
     547 0056 8b90          MAR     *-
     548                    .line   26
     549            ;>>>>           VHZ_TI_Run(&vhz); 
     550 0057 bf80          LALK    _vhz+0
TMS320C24xx COFF Assembler Version 7.02  Mon Apr 28 14:36:15 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
../temp/vhz.asm                                                      PAGE   13

         0058 0013- 
     551 0059 90a0          SACL    *+
     552 005a 7a80          CALL    _VHZ_TI_Run
         005b 0000! 
     553 005c 8b90          MAR     *-
     554                    .line   31
     555            ;>>>>           dac.update(&dac);
     556            ;>>>>   #endif /* BUILDLEVEL==LEVEL1*/
     557            ;>>>>   #if (BUILDLEVEL==LEVEL2)
     558            ;>>>>   #if     TARGET==F243                      
     559            ;>>>>           EVIFRA=0x0ffff;           /* Clear all Group A EV interrupt flags    */
     560            ;>>>>   #elif   TARGET==F2407                                                          
     561            ;>>>>           EVAIFRA=0x0ffff;          /* Clear all EV1 Group A EV interrupt flags*/
     562            ;>>>>   #endif  /* TARGET */            
     563            ;>>>>           drive.calc(&drive);
     564            ;>>>>           VHZ_TI_Run(&vhz); 
     565            ;>>>>           pwm.mfunc_c1=vhz.svgen.va;         
     566            ;>>>>           pwm.mfunc_c2=vhz.svgen.vb;
     567            ;>>>>           pwm.mfunc_c3=vhz.svgen.vc;
     568            ;>>>>           pwm.update(&pwm);
     569            ;>>>>           dac.update(&dac);
     570            ;>>>>   #endif /* BUILDLEVEL==LEVEL2*/
     571            ;>>>>   #if (BUILDLEVEL==LEVEL3)
     572            ;>>>>   #if     TARGET==F243                      
     573            ;>>>>           EVIFRA=0x0ffff;           /* Clear all Group A EV interrupt flags    */
     574            ;>>>>   #elif   TARGET==F2407                                                          
     575            ;>>>>           EVAIFRA=0x0ffff;          /* Clear all EV1 Group A EV interrupt flags*/
     576            ;>>>>   #endif  /* TARGET */            
     577            ;>>>>           drive.calc(&drive);
     578            ;>>>>           if((cap.read(&cap))==0)             /* Call the capture read function*/
     579            ;>>>>           speed.time_stamp=cap.time_stamp;    /* Read out new time stamp       */
     580            ;>>>>           speed.calc(&speed);                 /* Call the speed calulator      */
     581            ;>>>>           vhz.speed_value=speed.speed_prd;    /* Update vhz object speed info  */
     582            ;>>>>           VHZ_TI_Run(&vhz); 
     583            ;>>>>           pwm.mfunc_c1=vhz.svgen.va;         
     584            ;>>>>           pwm.mfunc_c2=vhz.svgen.vb;
     585            ;>>>>           pwm.mfunc_c3=vhz.svgen.vc;
     586            ;>>>>           pwm.update(&pwm);
     587            ;>>>>           dac.update(&dac);
     588            ;>>>>   #endif /* BUILDLEVEL==LEVEL3*/
     589 005d bf80          LALK    _dac+0
         005e 0037- 
     590 005f 90a0          SACL    *+
     591 0060 bc00-         LDPK    _dac+5
     592 0061 103c-         LAC     _dac+5
     593 0062 be30          CALA
     594 0063 8b90          MAR     *-
     595                    .line   127
     596            ;>>>>          asm("    SETC     XF ");
     597 0064 be4d      SETC     XF 
     598 0065       EPI0_2:
     599                    .line   128
     600 0065 7c01          SBRK    1
     601 0066 7989          B       I$$REST,AR1   ;and return
TMS320C24xx COFF Assembler Version 7.02  Mon Apr 28 14:36:15 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
../temp/vhz.asm                                                      PAGE   14

         0067 0000! 
     602            
     603                    .endfunc        456,000000000H,1
     604            
     605                    .sym    _RstSystem,_RstSystem,32,2,0
     606                    .globl  _RstSystem
     607            
     608                    .func   459
     609            ;>>>>   void RstSystem(void)
     610            ******************************************************
     611            * FUNCTION DEF : _RstSystem
     612            ******************************************************
     613 0068       _RstSystem:
     614 0068 8aa0          POPD    *+
     615 0069 80a0          SAR     AR0,*+
     616 006a 8180          SAR     AR1,*
     617 006b b001          LARK    AR0,1
     618 006c 00e8          LAR     AR0,*0+,AR0
     619            
     620                    .line   8
     621            ;>>>>           WSGR=WAIT_STATES;         /* Initialize Wait State Generator         */
     622 006d b940          LACK    64
     623 006e 9080          SACL    * 
     624 006f 0c89          OUT     * ,0ffffh,AR1
         0070 ffff  
     625                    .line   9
     626            ;>>>>           disable_ints();           /* Make sure the interrupts are disabled   */
     627 0071 7a80          CALL    _disable_ints
         0072 0000! 
     628                    .line   10
     629            ;>>>>           wdog.disable();           /* Vccp/Wddis pin/bit must be high         */
     630 0073 bc00-         LDPK    _wdog
     631 0074 103d-         LAC     _wdog
     632 0075 be30          CALA
     633                    .line   11
     634            ;>>>>           IMR=0x02;                 /* Set up interrupt mask to enable INT2    
     635            ;>>>>                                        until an explicit enable.               */
     636            ;>>>>   #if (TARGET==F243)
     637            ;>>>>           SCSR=0x40c0;              /* Init SCSR */
     638            ;>>>>           EVIMRA=0x0200;            /* Enable the timer underflow interrupt    */
     639            ;>>>>   #endif
     640            ;>>>>   #if (TARGET==F2407)
     641 0076 b304          LARK    AR3,4
     642 0077 b902          LACK    2
     643 0078 8b8b          MAR     * ,AR3
     644 0079 9080          SACL    * 
     645                    .line   25
     646            ;>>>>           SCSR1=0xc;                /* Init SCSR */
     647 007a bf0c          LARK    AR4,28696
         007b 7018  
     648 007c 7808          ADRK    8
     649 007d 8b8c          MAR     * ,AR4
     650 007e 838d          SAR     AR3,* ,AR5
     651                    .line   26
TMS320C24xx COFF Assembler Version 7.02  Mon Apr 28 14:36:15 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
../temp/vhz.asm                                                      PAGE   15

     652            ;>>>>           EVAIMRA=0x0200;           /* Enable the timer underflow interrupt    */
     653            ;>>>>   #endif  /* TARGET */
     654 007f bf0d          LARK    AR5,29740
         0080 742c  
     655 0081 ae89          SPLK    #512,* ,AR1
         0082 0200  
     656 0083       EPI0_3:
     657                    .line   29
     658 0083 7c02          SBRK    2
     659 0084 0090          LAR     AR0,*-
     660 0085 7680          PSHD    *
     661 0086 ef00          RET
     662            
     663                    .endfunc        487,000000000H,1
     664            
     665                    .sym    _phantom,_phantom,32,2,0
     666                    .globl  _phantom
     667            
     668                    .func   490
     669            ;>>>>   void interrupt phantom(void)
     670            ;>>>>           static int phantom_count;
     671            ******************************************************
     672            * FUNCTION DEF : _phantom
     673            ******************************************************
     674 0087       _phantom:
     675 0087 7a80          CALL    I$$SAVE
         0088 0000! 
     676 0089 8180          SAR     AR1,*
     677 008a b001          LARK    AR0,1
     678 008b 00e0          LAR     AR0,*0+
     679            
     680            
     681                    .sym    _phantom_count,_phantom_count$1,4,3,16
     682                    .line   5
     683            ;>>>>           phantom_count ++;  
     684 008c bc00-         LDPK    _phantom_count$1
     685 008d 1042-         LAC     _phantom_count$1
     686 008e b801          ADDK    1
     687 008f 9042-         SACL    _phantom_count$1
     688 0090       EPI0_4:
     689                    .line   15
     690 0090 7c01          SBRK    1
     691 0091 7989          B       I$$REST,AR1   ;and return
         0092 0000! 
     692            
     693                    .endfunc        504,000000000H,1
     694            
     695                    .sym    _rtmon_init,_rtmon_init,32,2,0
     696                    .globl  _rtmon_init
     697            
     698                    .func   512
     699            ;>>>>   void rtmon_init(void)
     700            ******************************************************
     701            * FUNCTION DEF : _rtmon_init
TMS320C24xx COFF Assembler Version 7.02  Mon Apr 28 14:36:15 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
../temp/vhz.asm                                                      PAGE   16

     702            ******************************************************
     703 0093       _rtmon_init:
     704 0093 8aa0          POPD    *+
     705 0094 80a0          SAR     AR0,*+
     706 0095 8180          SAR     AR1,*
     707 0096 b001          LARK    AR0,1
     708 0097 00e0          LAR     AR0,*0+
     709            
     710                    .line   3
     711            ;>>>>       asm("       CALL    MON_RT_CNFG ");
     712 0098 7a80         CALL    MON_RT_CNFG 
         0099 0000! 
     713 009a       EPI0_5:
     714                    .line   4
     715 009a 7c02          SBRK    2
     716 009b 0090          LAR     AR0,*-
     717 009c 7680          PSHD    *
     718 009d ef00          RET
     719            
     720                    .endfunc        515,000000000H,1
     721            
     722                    .sym    _isr_ticker,_isr_ticker,4,2,16
     723                    .globl  _isr_ticker
     724            *****************************************************
     725            * UNDEFINED REFERENCES                              *
     726            *****************************************************
     727                    .global _enable_ints
     728                    .global I$$SAVE
     729                    .global I$$REST
     730                    .global _disable_ints
     731                    .end

 No Errors,  No Warnings

⌨️ 快捷键说明

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