Datasheet
TMC5062 DATASHEET (Rev. 1.11 / 2017-MAY-16) 26
www.trinamic.com
6.1 General Configuration Registers
GENERAL CONFIGURATION REGISTERS (0X00…0X1F)
R/W
Addr
n
Register
Description / bit names
RW
0x00
11
GCONF
Bit
GCONF – Global configuration flags
0..2
Reserved, set to 0
3
poscmp_enable
0: Encoder 1 A and B inputs are mapped.
1: Position compare pulse (PP) and interrupt output
(INT) are available, Encoder 1 is unused.
4
enc1_refsel
0: N channel 1 mapped depending on interface to
SWIOP (if SW_SEL=0) or IO0 (if SW_SEL=1).
1: N channel 1 mapped to REFL1.
5
enc2_enable
0: Right reference switches are available.
1: Encoder 2 A and B signals are mapped to REFR1
and REFR2 inputs.
6
enc2_refsel
0: N channel 2 mapped depending on interface to
SWION (if SW_SEL=0) or IO1 (if SW_SEL=1).
1: N channel 2 mapped to REFL2.
7
test_mode
0: Normal operation
1: Enable analog test output on pin REFR2
TEST_SEL selects the function of REFR2:
0…4: T120, DAC1, VDDH1, DAC2, VDDH2
Attention: Not for user, set to 0 for normal operation!
8
shaft1
1: Inverse motor 1 direction
9
shaft2
1: Inverse motor 2 direction
10
lock_gconf
1: GCONF is locked against further write access.
R+C
0x01
4
GSTAT
Bit
GSTAT – Global status flags
0
reset
1: Indicates that the IC has been reset since the last
read access to GSTAT.
1
drv_err1
1: Indicates, that driver 1 has been shut down due
to overtemperature or short circuit detection
since the last read access. Read DRV_STATUS1 for
details. The flag can only be reset when all error
conditions are cleared.
2
drv_err2
1: Indicates, that driver 2 has been shut down due
to overtemperature or short circuit detection
since the last read access. Read DRV_STATUS2 for
details. The flag can only be reset when all error
conditions are cleared.
3
uv_cp
1: Indicates an undervoltage on the charge pump.
The driver is disabled in this case.
R
0x02
8
IFCNT
Interface transmission counter. This register becomes