parameter.h

来自「附件程序是我用DSP2812开发的无刷直流电机控制程序」· C头文件 代码 · 共 60 行

H
60
字号
/* ==============================================================================
System Name:  BLDCMotor

File Name:	PARAMETER.H

Description:	Parameters file for the Real Implementation of Sensored 
          		Trapezoidal Drive for a Three Phase Brushless DC Motor (BLDC)
          		
Originator:		Digital control systems Group - Texas Instruments

Note: In this software, the default inverter is supposed to be DMC1500 board.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20
=================================================================================  */

#ifndef PARAMETER_H
#define PARAMETER_H

/*-------------------------------------------------------------------------------
Next, definitions used in main file.
-------------------------------------------------------------------------------*/
#ifndef TRUE
#define FALSE 0
#define TRUE  1
#endif

#define PI 3.14159265358979

#define SYSTEM_FREQUENCY 150

// Define the ISR frequency (kHz) - based on Timer 2
#define ISR_FREQUENCY 80

// Define the PWM frequency (kHz) - based on Timer 1
#define PWM_FREQUENCY 20

// This machine parameters are based on BLDC motor
// Define the BLDC motor parameters
#define RS 		1.8               		// Stator resistance (ohm)
#define RR   	0               		// Rotor resistance (ohm)
#define LS   	0.0023	     			// Stator inductance (H)
#define LR   	0						// Rotor inductance (H)
#define LM   	0						// Magnetizing inductance (H)
#define P    	4						// Number of poles(极对数=2)

// Define the base quantites
#define BASE_VOLTAGE    24				// Base peak phase voltage (volt)
#define BASE_CURRENT    5				// Base peak phase current (amp)
#define BASE_TORQUE     0.318		    // Base torque (N.m)
#define BASE_FLUX       42.33			// Base flux linkage (volt.sec/rad)?EMF
#define BASE_FREQ      	100       	    // Base electrical frequency (Hz)?

#endif  // end of PARAMETER.H definition

//===========================================================================
// No more.
//===========================================================================

⌨️ 快捷键说明

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