TMC2225 DATASHEET (Rev. 1.15 / 2023-FEB-16)
23
5.1.1 OTP_READ OTP configuration memory
The OTP memory holds power up defaults for certain registers. All OTP memory bits are cleared to 0
by default. Programming only can set bits, clearing bits is not possible. Factory tuning of the clock
frequency affects otp0.0 to otp0.4. The state of these bits therefore may differ between individual ICs.
0X05: OTP_READ OTP MEMORY MAP
Bit Name
23 otp2.7
Function
otp_en_SpreadCycle
22 otp2.6
21 otp2.5
OTP_IHOLD
20 otp2.4
19 otp2.3
OTP_IHOLDDELAY
18 otp2.2
otp_PWM_FREQ
17 otp2.1
otp_PWM_REG
16 otp2.0
otp_PWM_OFS
15 otp1.7
14 otp1.6
13 otp1.5
OTP_CHOPCONF8
OTP_TPWMTHRS
12 otp1.4
OTP_CHOPCONF7...5
otp_pwm_autograd
Comment
This flag determines if the driver defaults to SpreadCycle
or to StealthChop.
0 Default: StealthChop (GCONF.en_SpreadCycle=0)
OTP 1.0 to 1.7 and 2.0 used for StealthChop
SpreadCycle settings: HEND=0; HSTART=5; TOFF=3
1 Default: SpreadCycle (GCONF.en_SpreadCycle=1)
OTP 1.0 to 1.7 and 2.0 used for SpreadCycle
StealthChop settings: PWM_GRAD=0; TPWM_THRS=0;
PWM_OFS=36; pwm_autograd=1
Reset default for standstill current IHOLD (used only if
current reduction enabled, e.g. pin PDN_UART low).
%00: IHOLD= 16 (53% of IRUN)
%01: IHOLD= 2 ( 9% of IRUN)
%10: IHOLD= 8 (28% of IRUN)
%11: IHOLD= 24 (78% of IRUN)
(Reset default for run current IRUN=31)
Reset default for IHOLDDELAY
%00: IHOLDDELAY= 1
%01: IHOLDDELAY= 2
%10: IHOLDDELAY= 4
%11: IHOLDDELAY= 8
Reset default for PWM_FREQ:
0: PWM_FREQ=%01=2/683
1: PWM_FREQ=%10=2/512
Reset default for PWM_REG:
0: PWM_REG=%1000: max. 4 increments / cycle
1: PWM_REG=%0010: max. 1 increment / cycle
Depending on otp_en_SpreadCycle
0 0: PWM_OFS=36
1: PWM_OFS=00 (no feed forward scaling);
pwm_autograd=0
1 Reset default for CHOPCONF.8 (hend1)
Depending on otp_en_SpreadCycle
0 Reset default for TPWM_THRS as defined by (0..7):
0: TPWM_THRS= 0
1: TPWM_THRS= 200
2: TPWM_THRS= 300
3: TPWM_THRS= 400
4: TPWM_THRS= 500
5: TPWM_THRS= 800
6: TPWM_THRS= 1200
7: TPWM_THRS= 4000
1 Reset default for CHOPCONF.5 to CHOPCONF.7
(hstrt1, hstrt2 and hend0)
Depending on otp_en_SpreadCycle
0 0: pwm_autograd=1
1: pwm_autograd=0
www.trinamic.com
    "