documentation
.HELP!
X-NUCLEO-IHM07M1 X-CUBE-SPN7 Documentation
X-CUBE-SPN7 for X-NUCLEO-IHM07M1: C:/Users/giuseppe scuderi-sl/Desktop/MOTOR CONTROL/Peppe/trunk/Firmware/X-CUBE-SPN7-MC-6STEP/Projects/Multi/Examples/MotorControl/Inc/MC_SixStep_param.h Source File
X-NUCLEO-IHM07M1 X-CUBE-SPN7
previous page
next page
X-CUBE-SPN7 for X-NUCLEO-IHM07M1
Main Page
Modules
Classes
Files
File List
File Members
Projects
Multi
Examples
MotorControl
Inc
MC_SixStep_param.h
Go to the documentation of this file.
1
54
/* ****************************************************************************
55
==============================================================================
56
###### BASIC PARAMETERS ######
57
==============================================================================
58
**************************************************************************** */
59
#define NUM_POLE_PAIRS 7
60
#define DIRECTION 0
61
#define TARGET_SPEED 3000
62
#define POTENTIOMETER 1
65
/* ****************************************************************************
66
==============================================================================
67
###### ADVANCED PARAMETERS ######
68
==============================================================================
69
**************************************************************************** */
70
71
#define STARTUP_CURRENT_REFERENCE 2000
72
#define ACC 600000
73
#define MINIMUM_ACC 500
74
#define NUMBER_OF_STEPS 20000
75
#define TIME_FOR_ALIGN 500
76
#define BUTTON_DELAY 1000
77
#define NUMBER_ZCR 12
79
#define SPEED_LOOP_TIME 1
80
#define KP_GAIN 8000
81
#define KI_GAIN 50
82
#define KP_DIV 4096
83
#define KI_DIV 4096
84
#define LOWER_OUT_LIMIT 120
85
#define UPPER_OUT_LIMIT 2000
86
#define MAX_POT_SPEED 10000
87
#define MIN_POT_SPEED 1500
88
#define VAL_POT_SPEED_DIV 2
89
#define INITIAL_DEMAGN_DELAY 10
92
#define BEMF_THRSLD_DOWN 200
93
#define BEMF_THRSLD_UP 200
96
#define FILTER_DEEP 20
97
#define HFBUFFERSIZE 10
98
#define ADC_SPEED_TH 82
101
#define BEMF_CONSEC_DOWN_MAX 10
102
#define BEMF_CNT_EVENT_MAX 100
105
#define GPIO_ZERO_CROSS 1
106
#define GPIO_COMM 1
110
#define DEMO_START_TIME 5000
111
#define DEMO_STOP_TIME 2000
114
#define DEMAGN_VAL_1 1
115
#define DEMAGN_VAL_2 2
116
#define DEMAGN_VAL_3 3
117
#define DEMAGN_VAL_4 4
118
#define DEMAGN_VAL_5 5
119
#define DEMAGN_VAL_6 6
120
#define DEMAGN_VAL_7 7
121
#define DEMAGN_VAL_8 8
122
#define DEMAGN_VAL_9 9
123
#define DEMAGN_VAL_10 10
124
#define DEMAGN_VAL_11 11
125
#define DEMAGN_VAL_12 12
126
#define DEMAGN_VAL_13 13
127
#define DEMAGN_VAL_14 14
129
#define TRUE 1
130
#define FALSE 0
Generated on Fri Sep 11 2015 16:47:21 for X-CUBE-SPN7 for X-NUCLEO-IHM07M1 by
1.8.9.1
previous page
start
next page
Menu
Homepage
Table of contents
Main Page
Modules
Classes
Files
File Members
Functions
Variables
Typedefs
Enumerations
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
stm32F302_nucleo_ihm07m1.h
stm32F030_nucleo_ihm07m1.h
stm32F401_nucleo_ihm07m1.h
stm32F103_nucleo_ihm07m1.h
MC_SixStep_param.h
DRIVERS
BSP
COMPONENTS
L6230_Motor_Driver_handler
L6230
L6230MotorDriver
EnableInput_CH1_E_CH2_E_CH3_D
EnableInput_CH1_E_CH2_D_CH3_E
EnableInput_CH1_D_CH2_E_CH3_E
DisableInput_CH1_D_CH2_D_CH3_D
Start_PWM_driving
Stop_PWM_driving
HF_TIMx_SetDutyCycle_CH1
HF_TIMx_SetDutyCycle_CH2
HF_TIMx_SetDutyCycle_CH3
Current_Reference_Start
Get in touch
Submit feedback about this site to:
[email protected]