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

Add the EVM frac Synth reset function #177

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

hongran
Copy link
Contributor

@hongran hongran commented Sep 13, 2024

If the reference clock has a glitch (a forward shift of phase), the event clock is down and the EVM ends up in a state where it cannot automatically recover the event clock even the PLL status shows fine. To fix this, the FracSynth control word must be rewritten. Writing to that register triggers some low-level reset of the board and the event clock is recovered after that.

In the current code, writing to the record of the Frac Synth frequency does not result in writing to the control word register, because it checks if the requested frequency value changes. I had to write a different frequency and write back the old value. This is inconvenient and likely to introduce error when I just need a reset. In this commit, I made a dedicated api function and a record to write the same control word value to the register. This is only used for the resetting purpose.

@jerzyjamroz jerzyjamroz self-assigned this Sep 16, 2024
@jerzyjamroz jerzyjamroz merged commit 0053e86 into epics-modules:master Sep 16, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants