mipidisaster / mipidisaster/miLibrary

Stepper class processor utilisation improvements

Open
#5 6 comments 0 reactions 1 assignee View on GitHub

@mipidisaster is already working on this.

Since Aug 12, 2021.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.