Re: SmoothieWare Compatible Mainboards February 06, 2015 07:17AM |
Registered: 14 years ago Posts: 7,616 |
Quote
JustAnotherOne
So having something that runs on 8 and 32 bit is unrealistic. It might be possible, but it then can not be high performance on both chips.
Quote
JustAnotherOne
Especially as I haven't seen Teacup run on anything 32bit.
Quote
dc42
Likewise, printers running Duet electronics sound smoother since I changed the firmware from using the Bresenham algorithm to calculating the step times precisely (to about the nearest microsecond) - for example, see [forums.reprap.org]. The limiting factor in achieving this is the time taken to calculate the square root of a 64-bit number, which needs to be done for every step during the acceleration and deceleration phases.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: SmoothieWare Compatible Mainboards February 06, 2015 10:18AM |
Registered: 11 years ago Posts: 126 |
Quote
Traumflug
Quote
JustAnotherOne
So having something that runs on 8 and 32 bit is unrealistic. It might be possible, but it then can not be high performance on both chips.
Uhm. You don't really mean this, do you? The whole world is full of software which runs on various bit-widths from the same source code. Changing that is just a matter of a compiler flag. For MCUs also a matter of adjusting to timer names, interrupt names and such stuff, but that's it.
Quote
Traumflug
Quote
JustAnotherOne
Especially as I haven't seen Teacup run on anything 32bit.
Here you go: [reprap.org]
Quote
Traumflug
Quote
dc42
Likewise, printers running Duet electronics sound smoother since I changed the firmware from using the Bresenham algorithm to calculating the step times precisely (to about the nearest microsecond) - for example, see [forums.reprap.org]. The limiting factor in achieving this is the time taken to calculate the square root of a 64-bit number, which needs to be done for every step during the acceleration and deceleration phases.
Sounds even smoother than "smoother". Teacup demonstrates how acceleration calculations need no 64-bit square roots and also doesn't need to calculate that between every step. Doing this calculation 500 times a second is entirely sufficient to comply with physics. This gives you something like 10'000 clock cycles per calculation, plenty of time.
Quote
Traumflug
Maybe it's time to combine these two.
Re: SmoothieWare Compatible Mainboards February 07, 2015 06:27AM |
Registered: 14 years ago Posts: 7,616 |
Quote
JustAnotherOne
On 8 Bit you can do a very efficient ring buffer by making it 256 Bytes in size. This way you can always do a ++ on the read and write pointers. The same on 32 bits would ask for a 4GB Buffer.
Quote
JustAnotherOne
The AVR has problems when doing multiplication on 16 bit variables. The 32 bits also come with hardware floating point,...
Quote
JustAnotherOne
May I cite what that page is saying:
"This page describes something which is no longer the most recent version. For the replacement version see: Gen7 Board-AVR 1.5"
Do I have to say more?
Quote
JustAnotherOne
But I can understand your decision if going on ARM was just changing the compiler switch and doing a search and replace on the timer names,..
Quote
JustAnotherOneQuote
Traumflug
Quote
dc42
Likewise, printers running Duet electronics sound smoother since I changed the firmware from using the Bresenham algorithm to calculating the step times precisely (to about the nearest microsecond) - for example, see [forums.reprap.org]. The limiting factor in achieving this is the time taken to calculate the square root of a 64-bit number, which needs to be done for every step during the acceleration and deceleration phases.
Sounds even smoother than "smoother". Teacup demonstrates how acceleration calculations need no 64-bit square roots and also doesn't need to calculate that between every step. Doing this calculation 500 times a second is entirely sufficient to comply with physics. This gives you something like 10'000 clock cycles per calculation, plenty of time.
You assume here some magic Frequency of 5 MHz. Why?
Quote
JustAnotherOneQuote
Traumflug
Maybe it's time to combine these two.
I don't understand what you want to combine here. But having a discussion about the best algorithms for Step generation, acceleration, jerk,.. would be very interesting. Lets Do that instead of fighting over 8bit vs 32 bits.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: SmoothieWare Compatible Mainboards April 24, 2015 06:12AM |
Registered: 10 years ago Posts: 54 |
Re: SmoothieWare Compatible Mainboards June 23, 2015 12:59PM |
Registered: 10 years ago Posts: 12 |
Re: SmoothieWare Compatible Mainboards June 06, 2018 06:02PM |
Registered: 7 years ago Posts: 619 |
Re: SmoothieWare Compatible Mainboards June 07, 2018 11:56AM |
Registered: 11 years ago Posts: 14,685 |
Quote
dlc60
(Duet guys, do you want to pitch in more info?