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

nRF52 power draw with utility timer #1920

Closed
gfwilliams opened this issue Aug 26, 2020 · 2 comments
Closed

nRF52 power draw with utility timer #1920

gfwilliams opened this issue Aug 26, 2020 · 2 comments

Comments

@gfwilliams
Copy link
Member

The utility timer uses TIMER1, and TIMER1 uses ~0.5mA when enabled

Often the utility timer is used for stuff that has to happen quickly and accurately (eg. Serial port emulation, digitalPulse) but there are times (eg. Bangle.js) when we use it just because we want something to run in an IRQ and don't care +/- 1ms when it runs.

It'd be nice if in these cases we could use the Nordic app_timer code used for setInterval/etc since this does still use IRQs, we just don't use them

I guess one option might be to allow Utility Timer tasks to be flagged with whether they need high precision or not, and if not they can be handled using app_timer?

gfwilliams added a commit that referenced this issue Aug 26, 2020
@gfwilliams
Copy link
Member Author

Above changes just modify Bangle.js to use Nordic's native APP_TIMER, which takes the urgency off getting this done

@gfwilliams
Copy link
Member Author

@espruino espruino deleted a comment from catch22out Aug 31, 2020
@gfwilliams gfwilliams closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant