Stepper class processor utilisation improvements

Đang mở
#5 6 bình luận 0 reaction 1 người được giao Xem trên GitHub

@mipidisaster đang làm issue này rồi.

Từ ngày 12/8/2021.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement

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

Ngôn ngữ chính
C++
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mipidisaster/miLibrary

Tất cả issue của mipidisaster/miLibrary

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.