- 1、本文档共20页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
/* ==============================================================================
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; /
您可能关注的文档
- 毕业论文:基于专用温度传感器的温度检测系统01(终稿).doc
- 毕业论文:基于信用缺失对中小企业融资难问题的分析(终稿).doc
- 毕业论文:基于三大期刊法学论文统计的分析(终稿).doc
- 毕业论文:基于盈利模型的中小商业银行经营策略研究(终稿).doc
- 毕业论文:基于SolidWorks水泵设计平台的应用分析(终稿).doc
- 毕业论文:基于JAVA技术的有哪些信誉好的足球投注网站引擎的研究与实现(终稿).doc
- 毕业论文:基于领域本体的电子学习资源库模型(终稿).doc
- 毕业论文:基于CAN总线SPI口访问的430源代码(终稿).doc
- 毕业论文:基于基于遗传算法的医学图像研究程序清单(终稿).doc
- 毕业论文:基于供应链管理的企业第三方物流外包决策体系研究(终稿).doc
文档评论(0)