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

Problem pulse length measurement #2500

Closed
ChrisDorna opened this issue Oct 30, 2019 · 3 comments
Closed

Problem pulse length measurement #2500

ChrisDorna opened this issue Oct 30, 2019 · 3 comments

Comments

@ChrisDorna
Copy link

Describe the bug
We discovered that the value measured is consequently 2/3 of the actual pulse width.

To Reproduce
plaatje

Expected behavior
Show right pulse lenght

Additional context
Joe Finney had already a look on this issue and answered:
OK… That particular makeCode block (pulseIn) isn’t implemented using our DAL interrupt based code for this – instead it’s using its own software implementation shown below.

This would explain some of the jitter, but not the undershoot. Perhaps the system timer is running slow… but surely we would have noticed if it were so slow…
plaatje 2

@martinwork
Copy link
Contributor

lancaster-university/microbit-dal#451 might be relevant.

@pelikhan
Copy link
Member

pelikhan commented Nov 10, 2020

v2 fix in #3642

@abchatra
Copy link
Collaborator

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants