mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-18 23:49:49 +00:00
Merge pull request #10021 from thinkyhead/bf1_safe_stepper_pulse
[1.1.x] Set a safe default MINIMUM_STEPPER_PULSE of 2µs
This commit is contained in:
commit
ea6f5e20a6
39 changed files with 77 additions and 39 deletions
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -775,7 +775,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -789,7 +789,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -783,7 +783,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -778,7 +778,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -776,7 +776,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -777,7 +777,8 @@
|
|||
|
||||
// The minimum pulse width (in µs) for stepping a stepper.
|
||||
// Set this if you find stepping unreliable, or if using a very fast CPU.
|
||||
#define MINIMUM_STEPPER_PULSE 0 // (µs) The smallest stepper pulse allowed
|
||||
// 0 is OK for AVR, 0 is OK for A4989 drivers, 2 is needed for DRV8825 drivers
|
||||
#define MINIMUM_STEPPER_PULSE 2
|
||||
|
||||
// @section temperature
|
||||
|
||||
|
|
|
@ -797,7 +797,7 @@ void Stepper::isr() {
|
|||
#define STOP_E_PULSE(INDEX) do{ if (e_steps) { E_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0)
|
||||
#else
|
||||
#define START_E_PULSE(INDEX) do{ if (e_steps) E## INDEX ##_STEP_WRITE(!INVERT_E_STEP_PIN); }while(0)
|
||||
#define STOP_E_PULSE(INDEX) do { if (e_steps) { E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0)
|
||||
#define STOP_E_PULSE(INDEX) do { if (e_steps) { e_steps < 0 ? ++e_steps : --e_steps; E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); } }while(0)
|
||||
#endif
|
||||
|
||||
if (use_advance_lead) {
|
||||
|
|
Loading…
Reference in a new issue