36
TMC223 DATASHEET (V. 1.05 / March 7, 2011)
A valid parameter set of stall detection parameters depends on the given type of motor and the motion
settings for the motor (Irun, Ihold, Vmax, Vmin, Acc, …).
•
•
•
•
•
timing parameter (MinSamples) has to be chosen for a given velocity (Vmax) and PWM frequency
blanking parameter (FS2StallEN) has to be chosen depending on motor resonance characteristic
absolute threshold (AbsThr) for detection of stall by mechanical limit
relative threshold (DelThr) for motion monitoring purposes
automatic masking of stall detection on 100% PWM by switch (DC100En)
The threshold parameters AbsThr resp. DelThr has to be chosen depending on the Back EMF
constant of the motor.
6.8.11 SetOTPParam
This command is provided to the circuit by the Master in order to zap the OTP memory. The OTPA
address (OTPA) addresses the OTP word (please refer section 5.2.3, page 22) within the OTP
Memory structure. The Pbit byte represents the bit pattern to be programmed, where a one programs
an un-programmed OTP bit. For example, if one wants to OTP the defaults to Irun := 0xD and Ihold =
0x5, one has to execute the SetOTPParam with OTPA = 0x03 and Pbit := 0xD5. Those OTP bits that
are un-programmed can be programmed to '1' by corresponding Pbit chosen as '1' . For OTP the
supply voltage Vbat has to be within the valid range specified as VbbOTP within Table 27, page 50.
SetOTPParam command
Byte
Content
Structure
bit 4
bit 7
1
bit 6
1
bit 5
bit 3
bit 2
bit 1
bit 0
0
0
1
2
3
4
5
Slave Address
SetOTPParam
N/A
OTP3 OTP2 OTP1 OTP0
HW
0
1
0
0
1
1
1
1
0
1
1
1
0
1
1
0
1
1
1
1
1
1
N/A
OTP Address
Pbit
1
1
1
1
1
1
1
Pbit(7:0)
OTPA(2:0)
Note: N/A = not applicable
Copyright © 2007-2011 TRINAMIC Motion Control GmbH & Co. KG