细分设置1/8
This commit is contained in:
parent
ce04a54b9d
commit
37c1b4e343
File diff suppressed because it is too large
Load Diff
|
@ -89,15 +89,15 @@ static void tmc2240_config_write(tmc2240_index_e index)
|
|||
tmc->config.gconf.data = 0x00000000;
|
||||
|
||||
tmc->config.chopconf.data = 0x00410153;
|
||||
tmc->config.chopconf.bits.mres = TMC2240_MRES_1;
|
||||
tmc->config.chopconf.bits.mres = TMC2240_MRES_8;
|
||||
|
||||
tmc->config.drvconf.data = 0x00000021;
|
||||
tmc->config.global_scaler.data = 0x00000000;
|
||||
|
||||
tmc->config.ihold_irun.bits.ihold = 2;
|
||||
tmc->config.ihold_irun.bits.irun = 16;
|
||||
tmc->config.ihold_irun.bits.iholddelay = 5;
|
||||
tmc->config.ihold_irun.bits.irundelay = 5;
|
||||
tmc->config.ihold_irun.bits.ihold = 31;
|
||||
tmc->config.ihold_irun.bits.irun = 31;
|
||||
tmc->config.ihold_irun.bits.iholddelay = 0;
|
||||
tmc->config.ihold_irun.bits.irundelay = 0;
|
||||
|
||||
tmc->config.pwmconf.data = 0xC44C261E;
|
||||
tmc->config.gstat.data = 0x00000007;
|
||||
|
|
Loading…
Reference in New Issue