| Electronic Components Datasheet Search |
|
UM0324 Datasheet(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0324 Datasheet(HTML) 18 Page - STMicroelectronics |
|
18 / 105 page ![]() Getting started with the library UM0324 18/105 2.2.1 Library configuration file: 75x_MCconf.h The purpose of this file is to declare the compiler conditional compilation keys that are used throughout the entire library compilation process to: ● Select which current measurement technique is actually in use (the choice is between three shunt or ICS sensors, according to availability). ● Select which speed/position sensor is actually performed (here the choice is between tachometer and quadrature incremental encoder, according to availability). ● Enable or disable the derivative action in the speed controller or in the current controllers in accordance with expected performance and code size. If this header file is not edited appropriately (no choice or undefined choice), you will receive an error message when building the project. Note that you will not receive an error message if the configuration described in this header file does not match the hardware that is actually in use, or in case of wrong wiring. More specifically: ● #define ICS_SENSORS To be uncommented when current sampling is done using isolated current sensors. ● #define THREE_SHUNT To be uncommented when current sampling is performed via three shunt resistors (default). ● #define ENCODER To be uncommented when an incremental encoder is connected to the starter kit for position sensing; in parallel, fill out MC_encoder_param.h (as explained in Section 2.2.3);. ● #define TACHO To be uncommented when a tachogenerator is in use to detect rotor speed (default); in parallel, fill out MC_tacho_prm.h (as explained in Section 2.2.4);. ● #define Id_Iq_DIFFERENTIAL_TERM_ENABLED To be uncommented when differential terms for torque and flux control loop regulation (PID) are enabled; ● #define SPEED_DIFFERENTIAL_TERM_ENABLED To be uncommented when differential term for speed control loop regulation (PID) is enabled. Once these settings have been done, only the required blocks will be linked in the project; this means that you do not need to exclude .c files from the build. Caution: When using shunt resistors for current measurement, ensure that the REP_RATE parameter (in MC_Control_Param.h) is set properly (see Section 2.2.2 and Section A.2: Selecting PWM frequency for 3 shunt resistor configuration on page 98 for details). |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |