diff --git a/firmware/motion-head/src/config.h b/firmware/motion-head/src/config.h index facb76c2ad0b617f9a2973ef0ee0e8415416a6e1..5afe6ea3c0832687c9314900a1fa843f951f7709 100644 --- a/firmware/motion-head/src/config.h +++ b/firmware/motion-head/src/config.h @@ -4,11 +4,16 @@ // for the bus: head, or drop? #define UCBUS_IS_HEAD +// genuine max is 63, drop for speed +#define UCBUS_MAX_DROPS 32 //#define UCBUS_IS_DROP // and D21 or D51? #define UCBUS_IS_D51 //#define UCBUS_IS_D21 +// 3, 2, or 1 MBaud +#define UCBUS_BAUD 2 + // if you're using the 'module board' https://gitlab.cba.mit.edu/jakeread/ucbus-module // the first (og) revision has an SMT header, and some of the RS485 pins are varied, // set this flag. otherwise, if you have thru-hole JTAG header, comment it out diff --git a/firmware/motion-head/src/main.cpp b/firmware/motion-head/src/main.cpp index 8ec6413dcd305ba1666b0893f913b12eacd2ad8d..03a3fbe8232456bd11184b6129e01f8903dc7de3 100644 --- a/firmware/motion-head/src/main.cpp +++ b/firmware/motion-head/src/main.cpp @@ -228,8 +228,9 @@ void setup() { smoothieRoll->init(20000); // 25kHz base (40us period) or // 20kHz base (50us period) + // 10kHz base (100us period) // 5kHz base (200us period) - d51ClockBoss->start_ticker_a(200); + d51ClockBoss->start_ticker_a(100); } void loop() { diff --git a/firmware/motion-head/src/osape-d51 b/firmware/motion-head/src/osape-d51 index 0ae34dd7e5bca95f22725a970c2c2eb69e55ddb2..23064339e200c3819af8bc55988b57d3eaa28a2e 160000 --- a/firmware/motion-head/src/osape-d51 +++ b/firmware/motion-head/src/osape-d51 @@ -1 +1 @@ -Subproject commit 0ae34dd7e5bca95f22725a970c2c2eb69e55ddb2 +Subproject commit 23064339e200c3819af8bc55988b57d3eaa28a2e