|
Reprap e tesina maturità March 06, 2017 05:17PM |
Registered: 11 years ago Posts: 156 |
|
Re: Reprap e tesina maturità March 06, 2017 07:11PM |
Registered: 11 years ago Posts: 756 |
|
Re: Reprap e tesina maturità March 11, 2017 01:40PM |
Registered: 11 years ago Posts: 156 |
|
Re: Reprap e tesina maturità March 11, 2017 01:43PM |
Registered: 11 years ago Posts: 6,409 |
|
Re: Reprap e tesina maturità March 11, 2017 02:40PM |
Registered: 11 years ago Posts: 156 |
|
Re: Reprap e tesina maturità March 11, 2017 03:55PM |
Registered: 11 years ago Posts: 6,409 |
) nel loop c'è ben poco...
/**
* Stepper Driver Interrupt
*
* Directly pulses the stepper motors at high frequency.
* Timer 1 runs at a base frequency of 2MHz, with this ISR using OCR1A compare mode.
*
* OCR1A Frequency
* 1 2 MHz
* 50 40 KHz
* 100 20 KHz - capped max rate
* 200 10 KHz - nominal max rate
* 2000 1 KHz - sleep rate
* 4000 500 Hz - init rate
*/
HAL_STEP_TIMER_ISR {
HAL_timer_isr_prologue (STEPPER_TIMER);
#if ENABLED(ADVANCE) || ENABLED(LIN_ADVANCE)
Stepper::advance_isr_scheduler();
#else
Stepper::isr();
#endif
}
/**
* Timer 0 is shared with millies so don't change the prescaler.
*
* This ISR uses the compare method so it runs at the base
* frequency (16 MHz / 64 / 256 = 976.5625 Hz), but at the TCNT0 set
* in OCR0B above (128 or halfway between OVFs).
*
* - Manage PWM to all the heaters and fan
* - Prepare or Measure one of the raw ADC sensor values
* - Check new temperature values for MIN/MAX errors (kill on error)
* - Step the babysteps value for each axis towards 0
* - For PINS_DEBUGGING, monitor and report endstop pins
* - For ENDSTOP_INTERRUPTS_FEATURE check endstops if flagged
*/
HAL_TEMP_TIMER_ISR {
HAL_timer_isr_prologue(TEMP_TIMER);
Temperature::isr();
}
|
Re: Reprap e tesina maturità March 11, 2017 04:10PM |
Registered: 11 years ago Posts: 156 |