
20
TMC222 DATASHEET (V. 1.12 / March 7, 2011)
Copyright 2004-2011 TRINAMIC Motion Control GmbH & Co. KG
5.2.2
Status Flags
The table below shows the flags which are accessable by the serial interface in order to receive
information about the internal status of the TMC222.
Flag
Mnemonic
Length
(bit)
Related
Command
Comment
Reset
state
Digital supply
Reset
VddReset
1
GetFullStatus1
Set to ‘1’ after power-up or after a micro-cut in the supply
voltage to warn that RAM contents may have been lost.
Is set to ‘0’ after GetFullStatus1 command.
‘1’
Over current in coil
A
OVC1
1
GetFullStatus1
Set to ‘1’ if an over current in coil #1 was detected. Is set to
‘0’ after GetFullStatus1 command.
‘0’
Over current in coil
B
OVC2
1
GetFullStatus1
Set to ‘1’ if an over current in coil #2 was detected. Is set to
‘0’ after GetFullStatus1 command.
‘0’
StepLoss
1
GetFullStatus1
Set to ‘1’ when under voltage, over current or over
temperature event was detected. Is set to ‘0’ after
GetFullStatus1 command. SetPosition and
GotoSecurePosition commands are ignored when
<StepLoss> = 1
‘0’
Secure position
enabled
SecEn
1
Internal use
‘0’ if SecPos = “100 0000 0000”
‘1’ otherwise
n.a.
Electrical Defect
ElDef
1
GetFullStatus1
Set to ‘1’ if open circuit or a short was detected, (<OVC1>
or <OVC2>). Is. Is set to ‘0’ after GetFullStatus1 command.
‘0’
Temperature Info
Tinfo
2
GetFullStatus1
Indicates the chip temperature
“00” = normal temperature
“01 = low temperature warning
“10” = high temperature warning
“11” = motor shutdown
“00”
Thermal Warning
TW
1
GetFullStatus1
Set to one if temperature raises above 145 °C. Is set to ‘0’
after GetFullStatus1 command.
‘0’
Thermal Shutdown
TSD
1
GetFullStatus1
Set to one if temperature raises above 155°C. Is set to ‘0’
after GetFullStatus1 command and Tinfo = “00”.
‘0’
Motion Status
Motion
3
GetFullStatus1
Indicates the actual behavior of the position controller.
“000”: Actual Position = Target Position; Velocity = 0
“001”: Positive Acceleration; Velocity > 0
“010”: Negative Acceleration; Velocity > 0
“011”: Acceleration = 0 Velocity = maximum pos Velocity
“100”: Actual Position /= Target Position; Velocity = 0
“101”: Positive Acceleration; Velocity < 0
“110”: Positive Acceleration; Velocity < 0
“111”: Acceleration = 0 Velocity = maximum neg Velocity
“000”
External Switch
Status
ESW
1
GetFullStatus1
Indicates the status of the external switch.
‘0’ = open
‘1’ = close
‘0’
Charge Pump
failure
CPFail
1
GetFullStatus1
‘0’ charge pump OK
‘1’ charge pump failure
‘0’
Electrical flag
HS
1
Internal use
<CPFail> or <UV2> or <ElDef>
‘0’