📄 bldcsensor.h
字号:
/* ==============================================================================
System Name: BLDC31
File Name: BLDC3_1.H
Description: Primary system header file for the Real Implementation of Sensored
Trapezoidal Drive for a Three Phase Brushless DC Motor (BLDC) using
Hall Effect sensor
Originator: 重庆大学DSP实验室
7-19-2006 Release Rev 2.0(删除PWM_ENABLE)
================================================================================= */
#include <regs240x.h>
#define SYSTEM_INT_PERIOD 1000 /* 25 uS 采样周期 @25 ns CPU 时钟 */
#include <sysvecs.h>
//#include <pid_reg3.h> // Include header for the PIDREG3 object
#include <pid2.h>
#include <rmp2cntl.h> // Include header for the RMP2 object
//#include <mod6_cnt.h> // Include header for the MOD6CNT object
#include <speed_pr.h> // Include header for the SPEED_MEAS_REV object
#include <rmp_cntl.h> // Include header for the RMPCNTL object
#include <F2407BLDCPWM.h> // Include header for the PWMGEN object
#include <f2407hall3.h> // Include header for the HALL3 object
#include <F2407ADC.h> // Include header for the ADCVALS object
#include <F24X_WD.H>
/*-----------------------------7-23-2006添加-------------------------------------*/
//void ipmfault_disp(void); //IPM模块错误信号显示
void Iref_disp(void);
void Ifb_disp(void);
void Vref_disp(void);
void Vfb_disp(void);
void fpwm_disp(void); //PWM斩波频率显示
void Dpwm_disp(void); //PWM占空比显示
void mod6_disp(void); //换向的状态,0~5中的一个.St显示
void Hmap_disp(void);
void prop_int(void);
/*-------------------------------------------------------------------------------*/
#ifndef TRUE
#define FALSE 0
#define TRUE 1
#endif
//===========================================================================
// No more.
//===========================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -