Library to handle the X-NUCLEO-IHM06A1 Motor Control Expansion Board based on the STSPIN220 component.
Dependencies: ST_INTERFACES
Dependents: HelloWorld_IHM06A1
Fork of X-NUCLEO-IHM06A1 by
STSpin220_config.h
00001 /**************************************************************************//** 00002 * @file STSpin220_config.h 00003 * @author IPC Rennes 00004 * @version V1.1.0 00005 * @date May 26th, 2016 00006 * @brief Predefines values for the STSpin220 registers 00007 * and for the devices parameters 00008 * @note (C) COPYRIGHT 2016 STMicroelectronics 00009 ****************************************************************************** 00010 * @attention 00011 * 00012 * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> 00013 * 00014 * Redistribution and use in source and binary forms, with or without modification, 00015 * are permitted provided that the following conditions are met: 00016 * 1. Redistributions of source code must retain the above copyright notice, 00017 * this list of conditions and the following disclaimer. 00018 * 2. Redistributions in binary form must reproduce the above copyright notice, 00019 * this list of conditions and the following disclaimer in the documentation 00020 * and/or other materials provided with the distribution. 00021 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00022 * may be used to endorse or promote products derived from this software 00023 * without specific prior written permission. 00024 * 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00026 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00027 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00028 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00029 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00030 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00031 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00032 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00033 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00034 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00035 * 00036 ****************************************************************************** 00037 */ 00038 00039 /* Define to prevent recursive inclusion -------------------------------------*/ 00040 #ifndef __STSPIN220_CONFIG_H 00041 #define __STSPIN220_CONFIG_H 00042 00043 #ifdef __cplusplus 00044 extern "C" { 00045 #endif 00046 00047 /** @addtogroup STSpin220 00048 * @{ 00049 */ 00050 00051 /** @addtogroup Stspin220_Exported_Constants 00052 * @{ 00053 */ 00054 00055 /** @defgroup Predefined_Stspin220_Registers_Values Predefined Stspin220 Registers Values 00056 * @{ 00057 */ 00058 00059 /************************ Speed Profile *******************************/ 00060 00061 /// Acceleration rate in pulse/s2 (must be greater than 0) 00062 #define STSPIN220_CONF_PARAM_ACC (480) 00063 00064 /// Deceleration rate in pulse/s2 (must be greater than 0) 00065 #define STSPIN220_CONF_PARAM_DEC (480) 00066 00067 /// Running speed in pulse/s (8 pulse/s < Maximum speed <= 10 000 pulse/s ) 00068 #define STSPIN220_CONF_PARAM_RUNNING_SPEED (1600) 00069 00070 /// Minimum speed in pulse/s (8 pulse/s <= Minimum speed < 10 000 pulse/s) 00071 #define STSPIN220_CONF_PARAM_MIN_SPEED (400) 00072 00073 /************************ Torque *******************************/ 00074 00075 /// Acceleration torque in % (from 0 to 100) 00076 #define STSPIN220_CONF_PARAM_ACC_TORQUE (20) 00077 00078 /// Deceleration torque in % (from 0 to 100) 00079 #define STSPIN220_CONF_PARAM_DEC_TORQUE (15) 00080 00081 /// Running torque in % (from 0 to 100) 00082 #define STSPIN220_CONF_PARAM_RUNNING_TORQUE (10) 00083 00084 /// Holding torque in % (from 0 to 100) 00085 #define STSPIN220_CONF_PARAM_HOLDING_TORQUE (25) 00086 00087 /// Torque boost speed enable 00088 #define STSPIN220_CONF_PARAM_TORQUE_BOOST_EN (TRUE) 00089 00090 /// Torque boost speed threshold in fullstep/s 00091 #define STSPIN220_CONF_PARAM_TORQUE_BOOST_TH (200) 00092 00093 /******************************* Others ***************************************/ 00094 00095 /// Step mode selection settings 00096 #define STSPIN220_CONF_PARAM_STEP_MODE (STEP_MODE_1_32) 00097 00098 /// Automatic HIZ STOP 00099 #define STSPIN220_CONF_PARAM_AUTO_HIZ_STOP (HOLD_MODE) 00100 00101 /// REF PWM frequency (Hz) 00102 #define STSPIN220_CONF_PARAM_REF_PWM_FREQUENCY (100000) 00103 00104 /** 00105 * @} 00106 */ 00107 00108 /** 00109 * @} 00110 */ 00111 00112 /** 00113 * @} 00114 */ 00115 00116 #ifdef __cplusplus 00117 } 00118 #endif 00119 00120 #endif /* __STSPIN220_CONFIG_H */
Generated on Tue Jul 12 2022 15:16:41 by
1.7.2

X-NUCLEO-IHM06A1 Low Voltage Stepper Motor Driver