2019-01-28 01:28 AM
Dear ST.
I setup IC L6472 for my steper motor and i am need example calculation sequnce for precise seti control registers/
Can you write example calculation control registers values for motor with L = 3.6 mG and R = 1.8 om?
And second question:
Can you write normal sequnce comands for change STEP_MODE on the fly?
On my sequnce i have spurios bug with wrong direction drive moto after Run commands?
My sequnce
uint8_t StepModeW = g_StepMode | 0x8;
cSPIN_Hard_HiZ();
cSPIN_Registers_Set(&g_cSPIN);
cSPIN_SetAcc(ACC);
cSPIN_SetDec(DEC);
cSPIN_SetMinSpeed(BeginSpeed);
cSPIN_Set_Param(cSPIN_STEP_MODE,(uint8_t)(StepModeW));
cSPIN_Set_Param(cSPIN_ABS_POS,0);
cSPIN_Set_Param(cSPIN_EL_POS,0);
cSPIN_Reset_Pos();
cSPIN_Run(Direction,EndSpeedW);
My MCU Clock configuration: Core:168 Mhz APB1 and APB2 CLK 21 Mhz SPI CLK:2.625 Mhz
2019-02-18 02:09 AM
Dear, my recommended setup is the following: