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

📄 target.h

📁 本程序来自TI公司网站原程序,其功能是通过传统的矢量控制算法来实现对永磁同步电机的控制,矢量控制采用双闭环结构
💻 H
字号:
/* =================================================================================
File name:        TARGET.H                    
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
Target device selection file.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0                                                   
------------------------------------------------------------------------------*/

#ifndef TARGET 

/*------------------------------------------------------------------------------
Following is the selection list of the target choices.
Note that the F241 is represented by the F243 and the 
LF2407 represents the LF2406 and the LF2402.
------------------------------------------------------------------------------*/
#define F240   1
#define F243   2
#define F2407  4
#define UNKNOWN 8

/*------------------------------------------------------------------------------
This line sets the target to one of the available choices.
------------------------------------------------------------------------------*/
#define TARGET  F2407



#ifndef TARGET    
#error  Critical: A target must be defined !!
#endif  


#warn NOTE: This system assumes a CLKIN of 10 MHz for the 
#warn TMS320F240x and a CLKIN of 5MHz for the TMS320F24x
 
//#error Remove this line upon verifying your board CLKIN


/* This system was written assuming a CLKIN of 7.5 MHz for the LF240x parts. If your 
    system uses a different CLKIN requiring a change in the PLL multiplication factor,
    then it must be changed in the system file.
    
    The PLL multiplication factor is set in the SCSR1 register and this is written in the
    function
                    void RstSystem(void)
                    {
                     
                     
                     #if (TARGET==F2407)
                      
                       SCSR1=0xc;    
                             
                     #endif
                    
 
                    }
 
    If for your EVM board the CLKIN is 15MHz then update the line to read
         
                     #if (TARGET==F2407)
                      
                       SCSR1=0x20c;    
                             
                     #endif
 
*/
 

#endif  /*TARGET */

⌨️ 快捷键说明

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