Messa in campo 4 file - 26/06/2020 Francia
Dependencies: mbed X_NUCLEO_IHM03A1_for
Fork of FORIGO_Modula_V7_3_VdcStep_maggio2020 by
Diff: powerstep.hpp
- Revision:
- 17:9629eb019892
- Parent:
- 14:e2b5efa06c41
- Child:
- 18:7c978f69cc51
--- a/powerstep.hpp Sun Mar 31 15:11:53 2019 +0000 +++ b/powerstep.hpp Fri Apr 05 07:52:39 2019 +0000 @@ -5,8 +5,8 @@ powerstep01_init_u_t init = { /* common parameters */ - //.cm.cp.cmVmSelection = POWERSTEP01_CM_VM_CURRENT, // enum powerstep01_CmVm_t - .cm.cp.cmVmSelection = POWERSTEP01_CM_VM_VOLTAGE, // enum powerstep01_CmVm_t + .cm.cp.cmVmSelection = POWERSTEP01_CM_VM_CURRENT, // enum powerstep01_CmVm_t + //.cm.cp.cmVmSelection = POWERSTEP01_CM_VM_VOLTAGE, // enum powerstep01_CmVm_t 5500, // Acceleration rate in step/s2, range 14.55 to 59590 steps/s^2 582 5500, // Deceleration rate in step/s2, range 14.55 to 59590 steps/s^2 582 180.45, // Maximum speed in step/s, range 15.25 to 15610 steps/s 488 92.45 @@ -14,7 +14,7 @@ POWERSTEP01_LSPD_OPT_ON, // Low speed optimization bit, enum powerstep01_LspdOpt_t 15624.00, // Full step speed in step/s, range 7.63 to 15625 steps/s 244.16 POWERSTEP01_BOOST_MODE_OFF, // Boost of the amplitude square wave, enum powerstep01_BoostMode_t - 750.00, // Overcurrent threshold settings via enum powerstep01_OcdTh_t 281.25 + 968.75, // Overcurrent threshold settings via enum powerstep01_OcdTh_t 281.25 STEP_MODE_1_8, // Step mode settings via enum motorStepMode_t POWERSTEP01_SYNC_SEL_DISABLED, // Synch. Mode settings via enum powerstep01_SyncSel_t (POWERSTEP01_ALARM_EN_OVERCURRENT| @@ -30,12 +30,12 @@ POWERSTEP01_WD_EN_DISABLE, // External clock watchdog, enum powerstep01_WdEn_t POWERSTEP01_TBLANK_375ns, // Duration of the blanking time via enum powerstep01_TBlank_t 375 POWERSTEP01_TDT_125ns, // Duration of the dead time via enum powerstep01_Tdt_t 125 - 270.00, // KVAL Hold torque in mV, range from 0.0mV to 0.996 mV - 450.00, // KVAL RUN torque in mV, range from 0.0mV to 0.996 mV - 450.00, // KVAL ACC torque in mV, range from 0.0mV to 0.996 mV - 450.00, // KVAL DEC torque in mV, range from 0.0mV to 0.996 mV - POWERSTEP01_TOFF_FAST_8us, //Maximum fast decay time , enum powerstep01_ToffFast_t 8 - POWERSTEP01_FAST_STEP_12us, //Maximum fall step time , enum powerstep01_FastStep_t 12 + 93.60, // KVAL Hold torque in mV, range from 0.0mV to 0.996 mV + 273.00, // KVAL RUN torque in mV, range from 0.0mV to 0.996 mV + 273.00, // KVAL ACC torque in mV, range from 0.0mV to 0.996 mV + 273.00, // KVAL DEC torque in mV, range from 0.0mV to 0.996 mV + POWERSTEP01_TOFF_FAST_28us, //Maximum fast decay time , enum powerstep01_ToffFast_t 8 + POWERSTEP01_FAST_STEP_28us, //Maximum fall step time , enum powerstep01_FastStep_t 12 3.0, // Minimum on-time in us, range 0.5us to 64us 3.0 20.5, // Minimum off-time in us, range 0.5us to 64us 21.0 POWERSTEP01_CONFIG_INT_16MHZ_OSCOUT_2MHZ, // Clock setting , enum powerstep01_ConfigOscMgmt_t @@ -45,7 +45,7 @@ POWERSTEP01_CONFIG_OC_SD_DISABLE, // Over current shutwdown enabling, enum powerstep01_ConfigOcSd_t POWERSTEP01_CONFIG_UVLOVAL_LOW, // UVLO Threshold via powerstep01_ConfigUvLoVal_t POWERSTEP01_CONFIG_VCCVAL_7_5V, // VCC Val, enum powerstep01_ConfigVccVal_t - POWERSTEP01_CONFIG_TSW_024us, // Switching period, enum powerstep01_ConfigTsw_t 48 + POWERSTEP01_CONFIG_TSW_048us, // Switching period, enum powerstep01_ConfigTsw_t 48 POWERSTEP01_CONFIG_PRED_ENABLE // Predictive current enabling , enum powerstep01_ConfigPredEn_t }; /* Motor Control Component. */