TMC5130A DATASHEET (Rev. 1.14 / 2017-MAY-15)
30
6.1 General Configuration Registers
GENERAL CONFIGURATION REGISTERS (0X00…0X0F)
R/W
Addr
n
Register
Description / bit names
Bit GCONF – Global configuration flags
I_scale_analog
0
0:
Normal operation, use internal reference voltage
1:
Use voltage supplied to AIN as current reference
1
internal_Rsense
0:
1:
Normal operation
Internal sense resistors. Use current supplied into
AIN as reference for internal sense resistor
en_pwm_mode
1: stealthChop voltage PWM mode enabled
2
3
(depending on velocity thresholds). Switch from
off to on state while in stand still, only.
enc_commutation (Special mode - do not use, leave 0)
1:
Enable commutation by full step encoder
(DCIN_CFG5 = ENC_A, DCEN_CFG4 = ENC_B)
4
5
shaft
1:
Inverse motor direction
diag0_error (only with SD_MODE=1)
1:
Enable DIAG0 active on driver errors:
Over temperature (ot), short to GND (s2g),
undervoltage chargepump (uv_cp)
DIAG0 always shows the reset-status, i.e. is active low
during reset condition.
6
7
diag0_otpw (only with SD_MODE=1)
1:
Enable DIAG0 active on driver over temperature
prewarning (otpw)
RW
0x00
17
GCONF
diag0_stall (with SD_MODE=1)
1:
Enable DIAG0 active on motor stall (set
TCOOLTHRS before using this feature)
diag0_step (with SD_MODE=0)
0:
DIAG0 outputs interrupt signal
1:
Enable DIAG0 as STEP output (dual edge
triggered steps) for external STEP/DIR driver
8
9
diag1_stall (with SD_MODE=1)
1:
Enable DIAG1 active on motor stall (set
TCOOLTHRS before using this feature)
diag1_dir (with SD_MODE=0)
0:
1:
DIAG1 outputs position compare signal
Enable DIAG1 as DIR output for external STEP/DIR
driver
diag1_index (only with SD_MODE=1)
1:
Enable DIAG1 active on index position (microstep
look up table position 0)
10 diag1_onstate (only with SD_MODE=1)
1:
Enable DIAG1 active when chopper is on (for the
coil which is in the second half of the fullstep)
11 diag1_steps_skipped (only with SD_MODE=1)
1:
Enable output toggle when steps are skipped in
dcStep mode (increment of LOST_STEPS). Do not
enable in conjunction with other DIAG1 options.
www.trinamic.com