Datasheet
Motor Control Interrupt Processing
Phase currents (iu
mea
, iv
mea
) reading
Transformations (using the phase angle ):
(iu
mea
, iv
mea
) → (ia
mea
, ib
mea
) → (id
mea
, iq
mea
)
Read DC Link voltage v
bus
Control Interrupt
Current PI controls use (id
ref
, iq
ref
), (id
mea
,iq
mea
) to produce (vd
out
, vq
out
)
Transformations (using the phase angle ):
(vd
out
, vq
out
) → (va
out
, vb
out
) → (vu
out
, vv
out
)
PWM output commands generation (using vu
out
, vv
out
)
v
bus
is used to calculate maximum phase voltage (used in current PI controls)
Phase estimation based on old_va
out
, old_vb
out
, ia
mea
, ib
mea
,
produces new estimated phase angle
est
Voltage memories update: old_va
out
= va
out
, old_vb
out
= vb
out
Speed estimation produces
est
Estimation errors detection (if errors an alarm is produced)
Start-up in progress?
NO
YES
id
ref
= 0
Speed PI control uses (
ref
,
est
) to obtain iq
ref
Start-up procedure produces id
ref
, iq
ref
,
stup
Phase angle update: =
new
new
=
stup
new
=
est
cnt_int > 0 ?
NO
YES
--cnt_int
Main loop
synchronization