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

📄 parameter.h

📁 2812例程以及 控制直流无刷电机程序
💻 H
字号:
/* ==============================================================================
System Name:  BLDC31

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 the system frequency (MHz)
#if (DSP_TARGET==F2808)
#define SYSTEM_FREQUENCY 100
#endif
#if (DSP_TARGET==F2812)
#define SYSTEM_FREQUENCY 150
#endif

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

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

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

// 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.1    			// Base torque (N.m)
#define BASE_FLUX       0.79616       // Base flux linkage (volt.sec/rad)
#define BASE_FREQ      	100           // Base electrical frequency (Hz)

#endif  // end of PARAMETER.H definition

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

⌨️ 快捷键说明

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