本程序来自TI公司网站原程序,其功能是通过传统的矢量控制算法来实现对永磁同步电机的控制,矢量控制采用双闭环结构

源代码在线查看: target.h

软件大小: 1029 K
上传用户: x8610341
关键词: 程序 矢量控制 TI公司 永磁同步电机
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* =================================================================================
				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 */
				
							

相关资源