TMC4671 Datasheet • IC Version V1.00 | Document Revision V1.04 • 2018-Dec-11
50 / 157
The transfer function needs to be transformed to time discrete domain by Z-Transformation and coeffi-
cients need to be normalized. This is done by the following equations.
b_2_z = (b_0_cont · T2 + 2 · b_1_cont · T + 4 · b_2_cont)/(T2 − 2 · a_1_cont · T + 4 · a_2_cont)
b_1_z = (2 · b_0_cont · T2 − 8 · b_2_cont)/(T2 − 2 · a_1_cont · T + 4 · a_2_cont)
b_0_z = (b_0_cont · T2 − 2 · b_1_cont · T + 4 · b_2_cont)/(T2 − 2 · a_1_cont · T + 4 · a_2_cont)
a_2_z = (T2 + 2 · a_1_cont · T + 4 · a_2_cont)/(T2 − 2 · a_1_cont · T + 4 · a_2_cont)
a_1_z = (2 · T2 − 8 · a_2_cont)/(T2 − 2 · a_1_cont · T + 4 · a_2_cont)
b_0 = round(b_0_z · 229)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
(33)
(34)
(35)
b_1 = round(b_1_z · 229)
b_2 = round(b_2_z · 229)
a_1 = round(−a_1_z · 229)
a_2 = round(−a_2_z · 229)
while T is the sampling time according to PWM_MAX_COUNT
variables.
·
10 ns and variables with index z are auxiliary
There are four biquad filters in the control structure. Figure 29 illustrates their placement in the control
structure.
Figure 29: Biquad Filters
The biquad filter for the position target value is intended to be used as a low-pass filter for smoothening
position input to the control structure. It is evaluated in every PWM cycle, or down-sampled according to
the down-sampling factor for the velocity and position controllers. After powering on it is disabled.
The biquad filter for the flux target value is also intended to be used as a low-pass filter for input values
from the user’s microcontroller. Sampling frequency is fixed to the PWM frequency.
The biquad filter for the torque target value can be used as a low-pass filter for bandwidth limitation
and noise suppression. Moreover, it can be designed to suppress a resonance or anti-resonance. Same
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com