Datasheet
TMC220X, TMC222X DATASHEET (Rev. 1.02 / 2017-MAY-16) 25
www.trinamic.com
GENERAL CONFIGURATION REGISTERS (0X00…0X0F)
R/W
Addr
n
Register
Description / bit names
R+
WC
0x01
3
GSTAT
Bit
GSTAT – Global status flags
(Re-Write with ‘1’ bit to clear respective flags)
0
reset
1: Indicates that the IC has been reset since the last
read access to GSTAT. All registers have been
cleared to reset values.
1
drv_err
1: Indicates, that the driver has been shut down
due to overtemperature or short circuit detection
since the last read access. Read DRV_STATUS for
details. The flag can only be cleared when all
error conditions are cleared.
2
uv_cp
1: Indicates an undervoltage on the charge pump.
The driver is disabled in this case. This flag is not
latched and thus does not need to be cleared.
R
0x02
8
IFCNT
Interface transmission counter. This register becomes
incremented with each successful UART interface write
access. Read out to check the serial transmission for
lost data. Read accesses do not change the content.
The counter wraps around from 255 to 0.
W
0x03
4
SLAVECONF
Bit
SLAVECONF
11..8
SENDDELAY for read access (time until reply is sent):
0, 1: 8 bit times
2, 3: 3*8 bit times
4, 5: 5*8 bit times
6, 7: 7*8 bit times
8, 9: 9*8 bit times
10, 11: 11*8 bit times
12, 13: 13*8 bit times
14, 15: 15*8 bit times
W
0x04
16
OTP_PROG
Bit
OTP_PROGRAM – OTP programming
Write access programs OTP memory (one bit at a time),
Read access refreshes read data from OTP after a write
2..0
OTPBIT
Selection of OTP bit to be programmed to the selected
byte location (n=0..7: programs bit n to a logic 1)
5..4
OTPBYTE
Selection of OTP programming location (0, 1 or 2)
15..8
OTPMAGIC
Set to 0xbd to enable programming. A programming
time of minimum 10ms per bit is recommended (check
by reading OTP_READ).
R
0x05
24
OTP_READ
Bit
OTP_READ (Access to OTP memory result and update)
See separate table!
7..0
OTP0 byte 0 read data
15..8
OTP1 byte 1 read data
23..16
OTP2 byte 2 read data
R
0x06
10
+
8
IOIN
Bit
INPUT (Reads the state of all input pins available)
0
ENN (TMC220x)
1
PDN_UART (TMC222x)
2
MS1 (TMC220x), SPREAD (TMC222x)
3
MS2 (TMC220x), DIR (TMC222x)