Skip to main content
CBeif.1
Associate II
May 18, 2020 6:23 PM UTC
Question

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

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?

This topic has been closed for replies.

3 replies

Cristiana SCARAMEL
ST Employee
May 22, 2020 3:50 PM UTC

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"""
CBeif.1
CBeif.1Author
Associate II
Jun 4, 2020 10:30 PM UTC

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

Cristiana SCARAMEL
ST Employee
Jun 8, 2020 3:04 PM UTC

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"""