Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/DuetM
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-06-22 19:05:44 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-06-22 19:05:44 +0300
commit5cf69efc8645ab51f5b79ea27099eb67dd6a716e (patch)
treefda4e56e5f2230b6c08ac9293edefddf960f1700 /src/DuetM
parent2327b5d7a91df0cbabc9f22035b1244f5ba69a8d (diff)
Got the drivers on the 5LC working properly
Diffstat (limited to 'src/DuetM')
-rw-r--r--src/DuetM/Pins_DuetM.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DuetM/Pins_DuetM.h b/src/DuetM/Pins_DuetM.h
index 974a6a92..bed16211 100644
--- a/src/DuetM/Pins_DuetM.h
+++ b/src/DuetM/Pins_DuetM.h
@@ -123,9 +123,9 @@ constexpr uint8_t TMC22xx_UART_PINS = APINS_UART0;
// We send data via a 1K series resistor. Even if we assume a 200pF load on the shared UART line, this gives a 200ns time constant, which is much less than the 2us bit time @ 500kbaud.
// To write a register we need to send 8 bytes. To read a register we send 4 bytes and receive 8 bytes after a programmable delay.
// So at 500kbaud it takes about 128us to write a register, and 192us+ to read a register.
-// In testing I found that 500kbaud was not reliable, so now using 200kbaud.
-constexpr uint32_t DriversBaudRate = 200000;
-constexpr uint32_t TransferTimeout = 10; // any transfer should complete within 10 ticks @ 1ms/tick
+// In testing I found that 500kbaud was not reliable, so now using 250kbaud.
+constexpr uint32_t DriversBaudRate = 2500000;
+constexpr uint32_t TransferTimeout = 2; // any transfer should complete within 2 ticks @ 1ms/tick
constexpr uint32_t DefaultStandstillCurrentPercent = 75;
constexpr Pin TMC22xxMuxPins[3] = { PortCPin(14), PortCPin(16), PortCPin(17) }; // Pins that control the UART multiplexer, LSB first