mipidisaster / mipidisaster/miLibrary
Stepper class processor utilisation improvements
@mipidisaster is already working on this.
Since Aug 12, 2021.
- Dominant language
- C++
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
At version 0.1.1, the design of the stepper class makes use of two interupts, one which is a "controller" interrupt; the TIMER overflow interrupt, and the other interrupt is used to count the number of pulses, the TIMER Compare interrupt.
Both of these interrupts will be triggered for each STEP pulse generated, which essentially doubles the utilisation of the CPU, which can get quite a lot with faster pulses.
The aim of this issue is to reduce the interrupt utilisation, such that either:
a) Only the counter interrupt is needed, with the overflow called when a change is needed (i.e. new speed, or position achieved)
or
b) Only one interrupt is required, which handles everything
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.