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

Calibration: off by 1 error #10

Closed
mungewell opened this issue Apr 22, 2024 · 3 comments
Closed

Calibration: off by 1 error #10

mungewell opened this issue Apr 22, 2024 · 3 comments

Comments

@mungewell
Copy link
Owner

As mentioned on #4 we have a way to assess the XTAL accuracy by performing a calibration process, and logging the results.

I have/am writing scripts to automate this process and previously noted that a unit could settle on calibration values which differ by 1 unit - which represents 1/256 fractional division of the CPU clock.

I previously though that this was a set-up issue (ie only at start), but now I have a couple of logs where the calibration value changes during the process to 'jump' between the two values. This suggests that there is something wrong with the way the code monitors/tracks the input (from UltraSync)...

cal_ttyACM2_crop

and
cal_ttyACM4_crop

Note: Multiple units monitoring the same input signal, so I don't think that this is the UltraSync glitching.

@mungewell
Copy link
Owner Author

Also note that '1 unit' represents a change of around 2PPM, this is a tiny inaccuracy.

@mungewell
Copy link
Owner Author

Pushed changes to the 'pcb-rev1' tree, which I think solves this issue.

@mungewell
Copy link
Owner Author

Haven't see this occur in recent testing of Rev2.0,closing.

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