TMC5160 DATASHEET (Rev. 1.08 / 2018-NOV-19)
73
9 Selecting Sense Resistors
The TMC5160 provides several means to set the motor current: Sense resistors, GLOBALSCALER and
currentscale CS. To adapt a drive to the motor, choose a sense-resistor value fitting or slightly
exceeding the maximum desired current at 100% settings of the scalers. Fine-tune the current to the
specific motor via the 8 bit GLOBALSCALER. Situation specific motor current adaptation is done by 5
bit scalers (actual scale can be read via CS), controlled by coolStep, run- and hold current (IRUN,
IHOLD). This makes the CS control compatible to other TRINAMIC ICs.
Set the desired maximum motor current by selecting an appropriate value for the sense resistor. The
following table shows the RMS current values which are reached using standard resistors.
CHOICE OF RSENSE AND RESULTING MAX. MOTOR CURRENT
WITH GLOBALSCALER=255
RSENSE [Ω]
RMS current [A]
(CS=31)
Sine wave peak
current [A] (CS=31)
0.22
0.15
0.12
0.10
0.075
0.066
0.050
0.033
0.022
1.1
1.6
2.0
2.3
3.1
3.5
4.7
7.1
1.5
2.2
2.8
3.3
4.4
5.0
6.6
10.0
15.0
10.6
Sense resistors should be carefully selected. The full motor current flows through the sense resistors.
Due to chopper operation the sense resistors see pulsed current from the MOSFET bridges. Therefore,
a low-inductance type such as film or composition resistors is required to prevent voltage spikes
causing ringing on the sense voltage inputs leading to unstable measurement results. Also, a low-
inductance, low-resistance PCB layout is essential. A massive ground plane is best. Please also refer to
layout considerations in chapter 29.
The sense resistor sets the upper current which can be set by software settings IRUN, IHOLD and
GLOBALSCALER. Choose the sense resistor value so that the maximum desired current (or slightly
more) flows at the maximum current setting (GLOBALSCALER = 0 and IRUN = 31).
CALCULATION OF RMS CURRENT
퐺ꢒꢑꢠꢎꢒ푆퐶ꢎꢒ퐸푅 퐶푆 + ꢃ
푉
ꢃ
ꢕꢓ
퐼ꢟ푀ꢓ
=
∗
∗
∗
ꢀ56
3ꢀ
푅ꢓꢔ푁ꢓꢔ
ꢀ
√
The momentary motor current is calculated by:
퐶푈푅퐴/퐵
ꢀ4ꢁ
퐺ꢒꢑꢠꢎꢒ푆퐶ꢎꢒ퐸푅
퐶푆 + ꢃ
3ꢀ
푉
ꢕꢓ
퐼푀푂푇
=
∗
∗
∗
ꢀ56
푅ꢓꢔ푁ꢓꢔ
GLOBALSCALER is the global current scaler. A setting of 0 is treated as full scale (256).
CS is the current scale setting as set by the IHOLD and IRUN and coolStep.
VFS is the full scale voltage (please refer to electrical characteristics, VSRT).
CURA/B is the actual value from the internal sine wave table.
248 is the amplitude of the internal sine wave table.
The sense resistor needs to be able to conduct the peak motor coil current in motor standstill
conditions, unless standby power is reduced. Under normal conditions, the sense resistor conducts
www.trinamic.com