Marlin for X-Y DC motor (interrupts issues and performance) September 19, 2013 08:38PM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 20, 2013 09:46AM |
Registered: 13 years ago Posts: 7,616 |
Quote
If any of the serial, TWI (for the LCD) or other interrupts fired my counts would be lost.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 20, 2013 10:16AM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 22, 2013 12:08PM |
Registered: 13 years ago Posts: 7,616 |
Quote
But what if the interrupt duration covers 2 or more ticks?
Quote
I'd be generating 25k interrupts /s for 1 axis so 50 k if I take some margin
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 22, 2013 04:59PM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 23, 2013 07:50AM |
Registered: 13 years ago Posts: 7,616 |
Quote
1. Integrate the position and speed PID on the mainboard and fetch position information and send back the speed output (PWM values) via some serial communication to the motor controller.
Quote
2. But I think that it's nicer (more elegant) to have the PID on the motor controler board, just needs to be have the PID interruptible and carefull with the divisions...
Quote
Or wait for [...] ramps for due
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 23, 2013 01:47PM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) September 24, 2013 09:21AM |
Registered: 13 years ago Posts: 7,616 |
Quote
Do you plan to merge it at some future point or is this best left in a branch?
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Marlin for X-Y DC motor (interrupts issues and performance) October 04, 2013 09:05PM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) October 05, 2013 04:51AM |
Registered: 13 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Marlin for X-Y DC motor (interrupts issues and performance) October 05, 2013 09:12AM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) October 06, 2013 06:20AM |
Registered: 13 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Marlin for X-Y DC motor (interrupts issues and performance) October 10, 2013 05:44PM |
Registered: 10 years ago Posts: 10 |
Re: Marlin for X-Y DC motor (interrupts issues and performance) October 11, 2013 05:07AM |
Registered: 13 years ago Posts: 7,616 |
Quote
The problem is that I can't really remove the communication interrupt (hard to debug without it)
Quote
and clearly the setpper interrupt seems to be te problem here, there are no others "long" interrupts that I can see.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |