- 4
- 0
- 约2.48万字
- 约 20页
- 2016-11-27 发布于重庆
- 举报
基于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; /
您可能关注的文档
- 基于SSL的課程设计.doc
- 基于SSM的安徽省入境旅游市場客源结构研究2.doc
- 基于SSM的白銀市近10年产业结构演进分析.doc
- 基于SSM區域经济发展差异分析.doc
- 基于SSH的電子商城系统.doc
- 基于SSP范式的中國地方政府债券发行制度研究.doc
- 基于SST51單片机网络的应用.doc
- 基于SST指數的中国农村教育贫困分析.doc
- 基于ST89C52單片机的自动往返小车(含程序).doc
- 基于STC12C5410AD的智能小車.doc
- 某镇领导班子2025年度民主生活会对照检查材料.docx
- 高级中学党政办公室主任2025年度述职述廉报告.docx
- 在镇“锤炼作风提效能,凝心聚力建新功”主题春训活动动员部署会上的讲话.docx
- 在2026年春季开学教职工会议上的讲话.docx
- 公司党支部2025年度组织生活会对照检查材料.docx
- 在树立和践行正确政绩观学习教育动员部署会议上的讲话.docx
- 专题党课:筑牢作风“防火墙” 展现司法新担当.docx
- 在树立和践行正确政绩观学习教育专题研讨会上的发言材料.docx
- 在公司2026年度党建暨党风廉政大会上的讲话.docx
- 在县委党的建设工作领导小组会议上关于开展树立和践行正确政绩观学习教育部署工作的讲话.docx
原创力文档

文档评论(0)