www.pudn.com > PmSensored.rar > HVPM_Sensored-Settings.h, change:2014-03-08,size:2476b


/* ================================================================================= 
File name:  HVPM_Sensored-Settings.H                      
                  
Description: Incremental Build Level control file. 
=================================================================================  */ 
#ifndef PROJ_SETTINGS_H 
 
/*------------------------------------------------------------------------------ 
Following is the list of the Build Level choices. 
------------------------------------------------------------------------------*/ 
#define LEVEL1  1      		// Module check out (do not connect the motors)  
#define LEVEL2  2           // Verify ADC, park/clarke, calibrate the offset  
#define LEVEL3  3           // Verify closed current(torque) loop, QEP and speed meas. 
#define LEVEL4  4           // Verify close speed loop and speed PID  
 
/*------------------------------------------------------------------------------ 
This line sets the BUILDLEVEL to one of the available choices. 
------------------------------------------------------------------------------*/ 
#define   BUILDLEVEL LEVEL2 
 
 
#ifndef BUILDLEVEL     
#error  Critical: BUILDLEVEL must be defined !! 
#endif  // BUILDLEVEL 
//------------------------------------------------------------------------------ 
 
 
#ifndef TRUE 
#define FALSE 0 
#define TRUE  1 
#endif 
 
#define PI 3.14159265358979 
 
// Define the system frequency (MHz) 
#if (DSP2803x_DEVICE_H==1) 
#define SYSTEM_FREQUENCY 60 
#elif (DSP280x_DEVICE_H==1) 
#define SYSTEM_FREQUENCY 100 
//add by Guo 
#elif (DSP2833x_DEVICE_H==1) 
#define SYSTEM_FREQUENCY 150 
//add by Guo 
#endif 
 
 
// Define the ISR frequency (kHz) 
#define ISR_FREQUENCY 10 
 
// Define the electrical motor parametes (Estun Servomotor) 
#define RS 		2.35		    	    // Stator resistance (ohm)  
#define RR   			               	// Rotor resistance (ohm)  
#define LS   	0.0065					// Stator inductance (H)  
#define LR   			  				// Rotor inductance (H) 	 
#define LM   			   				// Magnatizing inductance (H) 
#define POLES  	8						// Number of poles 
 
// Define the base quantites 
#define BASE_VOLTAGE    236.140        // Base peak phase voltage (volt) 
#define BASE_CURRENT    10             // Base peak phase current (amp) 
#define BASE_TORQUE     		       // Base torque (N.m) 
#define BASE_FLUX       		       // Base flux linkage (volt.sec/rad) 
#define BASE_FREQ      	100            // Base electrical frequency (Hz)  
 
#endif