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_F030.h Source File
From X-NUCLEO-IHM07M1 X-CUBE-SPN7
|
X-CUBE-SPN7 for X-NUCLEO-IHM07M1
|
59 #define NUM_POLE_PAIRS 7
61 #define TARGET_SPEED 3000
62 #define POTENTIOMETER 1
71 #define STARTUP_CURRENT_REFERENCE 2000
73 #define MINIMUM_ACC 500
74 #define NUMBER_OF_STEPS 20000
75 #define TIME_FOR_ALIGN 500
76 #define BUTTON_DELAY 1000
79 #define SPEED_LOOP_TIME 4
84 #define LOWER_OUT_LIMIT 120
85 #define UPPER_OUT_LIMIT 2000
86 #define MAX_POT_SPEED 7000
87 #define MIN_POT_SPEED 1500
88 #define VAL_POT_SPEED_DIV 2
89 #define INITIAL_DEMAGN_DELAY 5
92 #define BEMF_THRSLD_DOWN 200
93 #define BEMF_THRSLD_UP 200
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
110 #define DEMO_START_TIME 10000
111 #define DEMO_STOP_TIME 5000
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