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_F103.h Source File

X-NUCLEO-IHM07M1 X-CUBE-SPN7

MC_SixStep_param_F103.h
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 200000
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 5
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 2500
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 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
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   doxygen 1.8.9.1