|
@ -209,8 +209,8 @@ |
|
|
chopconf.tbl = 1; |
|
|
chopconf.tbl = 1; |
|
|
chopconf.toff = chopper_timing.toff; |
|
|
chopconf.toff = chopper_timing.toff; |
|
|
chopconf.intpol = INTERPOLATE; |
|
|
chopconf.intpol = INTERPOLATE; |
|
|
chopconf.hend = chopper_timing.hstrt + 3; |
|
|
chopconf.hend = chopper_timing.hend + 3; |
|
|
chopconf.hstrt = chopper_timing.hend - 1; |
|
|
chopconf.hstrt = chopper_timing.hstrt - 1; |
|
|
st.CHOPCONF(chopconf.sr); |
|
|
st.CHOPCONF(chopconf.sr); |
|
|
|
|
|
|
|
|
st.rms_current(mA, HOLD_MULTIPLIER); |
|
|
st.rms_current(mA, HOLD_MULTIPLIER); |
|
@ -453,8 +453,8 @@ |
|
|
chopconf.tbl = 0b01; // blank_time = 24
|
|
|
chopconf.tbl = 0b01; // blank_time = 24
|
|
|
chopconf.toff = chopper_timing.toff; |
|
|
chopconf.toff = chopper_timing.toff; |
|
|
chopconf.intpol = INTERPOLATE; |
|
|
chopconf.intpol = INTERPOLATE; |
|
|
chopconf.hend = chopper_timing.hstrt + 3; |
|
|
chopconf.hend = chopper_timing.hend + 3; |
|
|
chopconf.hstrt = chopper_timing.hend - 1; |
|
|
chopconf.hstrt = chopper_timing.hstrt - 1; |
|
|
st.CHOPCONF(chopconf.sr); |
|
|
st.CHOPCONF(chopconf.sr); |
|
|
|
|
|
|
|
|
st.rms_current(mA, HOLD_MULTIPLIER); |
|
|
st.rms_current(mA, HOLD_MULTIPLIER); |
|
@ -546,8 +546,8 @@ |
|
|
TMC2660_n::CHOPCONF_t chopconf{0}; |
|
|
TMC2660_n::CHOPCONF_t chopconf{0}; |
|
|
chopconf.tbl = 1; |
|
|
chopconf.tbl = 1; |
|
|
chopconf.toff = chopper_timing.toff; |
|
|
chopconf.toff = chopper_timing.toff; |
|
|
chopconf.hend = chopper_timing.hstrt + 3; |
|
|
chopconf.hend = chopper_timing.hend + 3; |
|
|
chopconf.hstrt = chopper_timing.hend - 1; |
|
|
chopconf.hstrt = chopper_timing.hstrt - 1; |
|
|
st.CHOPCONF(chopconf.sr); |
|
|
st.CHOPCONF(chopconf.sr); |
|
|
|
|
|
|
|
|
st.rms_current(mA); |
|
|
st.rms_current(mA); |
|
|