- 6
- 0
- 约2.44万字
- 约 20页
- 2018-06-02 发布于福建
- 举报
基于TMS320F2812永磁同步电动机SVPWM空间矢量控制算法实现源代码(终稿)
/* ==============================================================================
System Name: PMSM34
File Name: PMSM3_4.C
Description: Primary system file for the Real Implementation of Position Control
Based Sensored Field Orientation Control for a Three Phase Permanent-
Magnet Synchronous Motor (PMSM) using QEP sensor
Originator: Digital control systems Group - Texas Instruments
Note: In this software, the default inverter is supposed to be DMC550 board.
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-15-2005 Version 3.20: Support both F280x and F281x targets
04-25-2005 Version 3.21: Move EINT and ERTM down to ensure that all initialization
is completed before interrupts are allowed.
================================================================================= */
// Include header files used in the main function
#include target.h
#include DSP281x_Device.h
#include IQmathLib.h
#include pmsm3_4.h
#include parameter.h
#include build.h
#include math.h
// Prototype statements for functions found within this file.
interrupt void MainISR(void);
interrupt void QepISR(void);
interrupt void PDPINTAISR(void);
// Global variables used in this system
float32 VdTesting = 0; // Vd testing (pu)
float32 VqTesting = 0.25; // Vq testing (pu)
float32 IdRef = 0; // Id reference (pu)
float32 IqRef = 0.2; // Iq reference (pu)
float32 SpeedRef = 0.1; // Speed reference (pu)
float32 PositionRef = 0.5; // Position reference (Mechanical rotor Anglele (pu)
float32 T = 0.001/ISR_FREQUENCY; // Samping period (sec), see parameter.h
Uint16 IsrTicker = 0;
Uint16 BackTicker = 0;
volatile Uint16 EnableFlag = FALSE;
Uint16 LockRotorFlag = FALSE;
Uint16 SpeedLoopPrescaler = 10; // Speed loop prescaler
Uint16 SpeedLoopCount = 1; /
您可能关注的文档
- 国际内审师(CIA)考试600题第一部分内部审计在治理、风险和控制中作用.pdf
- 国家局烟草新内管规范.pdf
- 国家局烟草新内管规范文档下载.pdf
- 国际大厦智能化系统设计施工组织方案.doc
- 国际内审师(CIA)考试600题第一部分内部审计在治理、风险和控制中作用文档下载.pdf
- 国际市场定价策略制定及应用培训课程 (NXPowerLite).ppt
- 国际内审师(CIA)考试内部审计在治理、风险和控制中作用.pdf
- 国际市场营销实务培训课程之当代国际营销几个热点问题分析与运用.ppt
- 国际市场定价策略制定及应用培训课程.ppt
- 国际内审师(CIA)考试内部审计在治理、风险和控制中作用文档下载.pdf
原创力文档

文档评论(0)