![ST L6470H Скачать руководство пользователя страница 30](http://html1.mh-extra.com/html/st/l6470h/l6470h_manual_1355485030.webp)
Phase current control
L6470
30/64
Doc ID 16737 Rev 2
7
Phase current control
The L6470 controls the phase current applying a sinusoidal voltage to motor windings.
Phase current amplitude is not directly controlled but depends on phase voltage amplitude,
load torque, motor electrical characteristics and rotation speed. Sinewave amplitude is
proportional to the motor supply voltage multiplied by a coefficient (K
VAL
). K
VAL
ranges from
0 to 100% and the sinewave amplitude can be obtained through the following formula:
Equation 1
Different K
VAL
values can be programmed for acceleration, deceleration and constant speed
phases and when motor is stopped (HOLD phase) through KVAL_ACC, KVAL_DEC,
KVAL_RUN and KVAL_HOLD registers (see paragraph
). KVAL value is calculated
according following formula:
Equation 2
Where K
VAL_X
is the starting K
VAL
value programmed for present motion phase
(KVAL_ACC, KVAL_DEC, KVAL_RUN or KVAL_HOLD), BEMF_COMP is the BEMF
compensation curve value, VSCOMP and K_THERM are the motor supply voltage and
winding resistance compensation factors and microstep is the current microstep value
(fraction of target peak current).
L6470 offers various methods to guarantee a stable current value, allowing the
compensation of:
●
low speed optimization (see paragraph
●
back electromotive force value (see paragraph
);
●
motor supply voltage variation (see paragraph
●
windings resistance variation (see paragraph
7.1
PWM sinewave generators
The two voltage sinewaves applied to stepper motor phases are generated by two PWM
modulators.
The PWM frequency (f
PWM
) is proportional to the oscillator frequency (f
OSC
) and can be
obtained through the following formula:
Equation 3
'N' is the integer division factor and 'm' is the multiplication factor. 'N' and 'm' values can be
programmed by F_PWM_INT and F_PWM_DEC parameters in CONFIG register (see
and
Available PWM frequencies are listed in paragraph
from
to
.
VAL
S
OUT
K
V
V
⋅
=
(
)
(
)
microstep
THERM
_
K
VSCOMP
COMP
_
BEMF
K
K
VAL_X
VAL
×
×
×
+
=
m
N
512
f
f
OSC
PWM
⋅
⋅
=