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

measure_delayed_vbat always takes >1024 ms #6

Open
badrbouslikhin opened this issue Nov 28, 2024 · 0 comments
Open

measure_delayed_vbat always takes >1024 ms #6

badrbouslikhin opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@badrbouslikhin
Copy link
Contributor

badrbouslikhin commented Nov 28, 2024

Description

The measure_delayed_vbat function ignores the provided delay parameter and always takes >1024 ms to complete.

Relevant Code

// HACK: we found that no matter what delay we set, the measurement will always take > 1024
// ms to complete. We do not know why yet.
self.delay.delay_ms(1025).await;

Peripheral

  • Name: ADC - System Monitor
  • Relevant Registers:
    • ADCDELTIMCONF

Action Items

  1. Investigate ADC timing behavior and adcdeltimconf configuration.
  2. Verify if this is a hardware or firmware issue.
  3. Fix timing to respect the delay parameter.
@badrbouslikhin badrbouslikhin added bug Something isn't working help wanted Extra attention is needed labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant