Min step delay in microseconds (EXTEND_STEP_PULSE_USEC) for Stepperpulse
For A4988 dont use it
This commit is contained in:
parent
c719b3820f
commit
79da42fb65
2 changed files with 28 additions and 7 deletions
|
|
@ -162,9 +162,12 @@ const int NUM_AXIS = 4; // The axis order in all axis related arrays is X, Y, Z,
|
||||||
//// Not used at the Moment
|
//// Not used at the Moment
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
|
||||||
// Min step delay in microseconds. If you are experiencing missing steps, try to raise the delay microseconds, but be aware this
|
// Extended step pulse in microseconds.
|
||||||
// If you enable this, make sure STEP_DELAY_RATIO is disabled.
|
// If you enable this, make sure STEP_DELAY_RATIO is disabled.
|
||||||
//#define STEP_DELAY_MICROS 1
|
// Minimum High Time for Stepperpulse at 16 Mhz (E-Axis) is 2,4 us
|
||||||
|
// Minimum High Time for Stepperpulse on X = 6,7 us / Y = 5,6 us / Z = 3,6 us
|
||||||
|
// if you want Stepperpulse like 8 us set the value to 6
|
||||||
|
#define EXTEND_STEP_PULSE_USEC 0
|
||||||
|
|
||||||
// Step delay over interval ratio. If you are still experiencing missing steps, try to uncomment the following line, but be aware this
|
// Step delay over interval ratio. If you are still experiencing missing steps, try to uncomment the following line, but be aware this
|
||||||
// If you enable this, make sure STEP_DELAY_MICROS is disabled. (except for Gen6: both need to be enabled.)
|
// If you enable this, make sure STEP_DELAY_MICROS is disabled. (except for Gen6: both need to be enabled.)
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,12 @@
|
||||||
- Error in JERK calculation after G92 command is send, make problems
|
- Error in JERK calculation after G92 command is send, make problems
|
||||||
with Z-Lift function in Slic3r
|
with Z-Lift function in Slic3r
|
||||||
- Add homing values can shown with M206 D
|
- Add homing values can shown with M206 D
|
||||||
|
- M303 Autotune use HEATER_CURRENT val for Maximum PWM Value
|
||||||
|
|
||||||
|
Version 1.3.23T
|
||||||
|
- Change max overshoot for Autotune to 55 °C
|
||||||
|
- Analog pins was added with the wrong pin number, needs to be offset +55 to protect against using the pin as a digital
|
||||||
|
- Min step delay in microseconds (EXTEND_STEP_PULSE_USEC)
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -249,7 +255,7 @@ void __cxa_pure_virtual(){};
|
||||||
// M603 - Show Free Ram
|
// M603 - Show Free Ram
|
||||||
|
|
||||||
|
|
||||||
#define _VERSION_TEXT "1.3.22T / 20.08.2012"
|
#define _VERSION_TEXT "1.3.23T / 28.11.2012"
|
||||||
|
|
||||||
//Stepper Movement Variables
|
//Stepper Movement Variables
|
||||||
char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'};
|
char axis_codes[NUM_AXIS] = {'X', 'Y', 'Z', 'E'};
|
||||||
|
|
@ -3314,7 +3320,7 @@ ISR(TIMER1_COMPA_vect)
|
||||||
virtual_steps_x++;
|
virtual_steps_x++;
|
||||||
|
|
||||||
counter_x -= current_block->step_event_count;
|
counter_x -= current_block->step_event_count;
|
||||||
WRITE(X_STEP_PIN, LOW);
|
//WRITE(X_STEP_PIN, LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
counter_y += current_block->steps_y;
|
counter_y += current_block->steps_y;
|
||||||
|
|
@ -3330,7 +3336,7 @@ ISR(TIMER1_COMPA_vect)
|
||||||
virtual_steps_y++;
|
virtual_steps_y++;
|
||||||
|
|
||||||
counter_y -= current_block->step_event_count;
|
counter_y -= current_block->step_event_count;
|
||||||
WRITE(Y_STEP_PIN, LOW);
|
//WRITE(Y_STEP_PIN, LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
counter_z += current_block->steps_z;
|
counter_z += current_block->steps_z;
|
||||||
|
|
@ -3346,7 +3352,7 @@ ISR(TIMER1_COMPA_vect)
|
||||||
virtual_steps_z++;
|
virtual_steps_z++;
|
||||||
|
|
||||||
counter_z -= current_block->step_event_count;
|
counter_z -= current_block->step_event_count;
|
||||||
WRITE(Z_STEP_PIN, LOW);
|
//WRITE(Z_STEP_PIN, LOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ADVANCE
|
#ifndef ADVANCE
|
||||||
|
|
@ -3354,11 +3360,23 @@ ISR(TIMER1_COMPA_vect)
|
||||||
if (counter_e > 0) {
|
if (counter_e > 0) {
|
||||||
WRITE(E_STEP_PIN, HIGH);
|
WRITE(E_STEP_PIN, HIGH);
|
||||||
counter_e -= current_block->step_event_count;
|
counter_e -= current_block->step_event_count;
|
||||||
WRITE(E_STEP_PIN, LOW);
|
//WRITE(E_STEP_PIN, LOW);
|
||||||
}
|
}
|
||||||
#endif //!ADVANCE
|
#endif //!ADVANCE
|
||||||
|
|
||||||
step_events_completed += 1;
|
step_events_completed += 1;
|
||||||
|
|
||||||
|
#if (EXTEND_STEP_PULSE_USEC > 0)
|
||||||
|
delayMicroseconds(EXTEND_STEP_PULSE_USEC);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WRITE(X_STEP_PIN, LOW);
|
||||||
|
WRITE(Y_STEP_PIN, LOW);
|
||||||
|
WRITE(Z_STEP_PIN, LOW);
|
||||||
|
#ifndef ADVANCE
|
||||||
|
WRITE(E_STEP_PIN, LOW);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(step_events_completed >= current_block->step_event_count) break;
|
if(step_events_completed >= current_block->step_event_count) break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue