Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed t3_int isr #147

Closed
wants to merge 12 commits into from
Closed

Removed t3_int isr #147

wants to merge 12 commits into from

Conversation

damosvil
Copy link
Contributor

@damosvil damosvil commented Jul 20, 2023

Removed t3 interrupt service routine to avoid wasting necessary CPU cycles

To be merged after https://github.com/bird-sanctuary/bluejay/tree/feature/dynamic_pwm

@damosvil damosvil self-assigned this Jul 20, 2023
@damosvil damosvil added the enhancement New feature or request label Jul 20, 2023
@damosvil damosvil added this to the v0.21.0 milestone Jul 20, 2023
@damosvil damosvil linked an issue Jul 20, 2023 that may be closed by this pull request
@damosvil damosvil requested a review from stylesuxx July 20, 2023 17:44
@damosvil damosvil marked this pull request as draft July 20, 2023 17:53
src/Modules/Isrs.asm Outdated Show resolved Hide resolved
@@ -691,8 +683,6 @@ comp_read_wrong_startup_jump:
sjmp comp_check_timeout ; Continue to look for good ones

comp_read_wrong_extend_timeout:
clr Flag_Demag_Detected ; Clear demag detected flag
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it no longer necessary to clear the demag detection flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@damosvil damosvil marked this pull request as ready for review July 20, 2023 21:35
@damosvil damosvil requested a review from stylesuxx July 20, 2023 21:35
Copy link
Contributor

@stylesuxx stylesuxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me!

Let's merge the other PR first and I'll merge this one into the v0.21 branch afterwards.

damosvil and others added 4 commits July 21, 2023 23:59
In the previous t3 isr version when t3 expires it reloads the timer after a small delay.
In this version we have to load the reload times directly into timer3 and also update the reload time to have a functionality as close as possible to previous version's one.
…ons problems because not processing interrups on time
@damosvil damosvil requested a review from stylesuxx July 21, 2023 23:00
@stylesuxx stylesuxx changed the base branch from feature/dynamic_pwm to v0.21 July 26, 2023 09:36
@stylesuxx stylesuxx deleted the branch v0.21 July 23, 2024 10:11
@stylesuxx stylesuxx closed this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timer 3 use overflow bit
2 participants