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

📄 motor.h

📁 Source Code for Sensorless FOC for PMSM with PFC for dsPIC30F6010A
💻 H
字号:
#include "general.h"


//==================== PIN DEFINITIONS ======================

// LED's - Active high
#define pinLED1              LATAbits.LATA9
#define pinLED2              LATAbits.LATA10
#define pinLED3              LATAbits.LATA14
#define pinLED4              LATAbits.LATA15
#define pinLED_F_R           LATDbits.LATD7

// Pushbutton pin connections for the motor control PCB.
#define pinButton1           !PORTGbits.RG6
#define pinButton2           !PORTGbits.RG7
#define pinButton3           !PORTGbits.RG8
#define pinButton4           !PORTGbits.RG9

// This is the control line for the driver IC on the
// motor control PCB.  It must be low to activate
// the PWM drive signals to the power module.
#define pinPWMOutputEnable_   PORTDbits.RD11    // active low 

// PFC switch firing line
#define pinPFCFire           PORTDbits.RD5

// BRAKE circuit firing line
#define pinBrakeFire         PORTDbits.RD4

// This is the fault reset line for the motor power module.
// The dsPIC must generate an active high pulse to clear any
// of the red fault LEDs on the power module.
#define pinFaultReset        PORTEbits.RE9

⌨️ 快捷键说明

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