cancel
Showing results for 
Search instead for 
Did you mean: 

POWERSTEP01, When in external step mode, how does KVAL get calculated for VOLTAGE MODE?

CBeif.1
Associate II

I know that Vout = Vs * Kval

I know that

Kval = [(Kval_x * BEMF_COMP) * VSCOMP * K_THERM]*microstep

In the datasheet KVal_x is either KVAL_ACC, KVAL_DEC, KVAL_RUN, or KVAL_HOLD

depending on the state of the motion planner.

But, I am not using the internal motion planner, I am providing an external

step pin. So how do I control the Kval in this situation?

3 REPLIES 3
Cristiana SCARAMEL
ST Employee

In Step-clock mode the SPEED register is set to zero and motor status is considered stopped regardless of the STCK signal frequency.

So you need to consider the KVAL_HOLD.

If you feel a post has answered your question, please click "Accept as Solution"

Thanks, Does that also mean BEMF compensation does not work in external STEP MODE?

Acceleration compensation curve is applied when the motor runs.

No BEMF compensation is applied when the motor is stopped as is in fact considered the motor in step-clock mode.

If you feel a post has answered your question, please click "Accept as Solution"