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

Implement missing SQR1 and SQR2 functions #197

Open
CloudyPadmal opened this issue Jun 24, 2021 · 2 comments
Open

Implement missing SQR1 and SQR2 functions #197

CloudyPadmal opened this issue Jun 24, 2021 · 2 comments
Labels

Comments

@CloudyPadmal
Copy link
Contributor

In the previous psl package, there were functions to control SQR1 and SQR2 pins individually. However, they are missing in the latest version and one has to use SQR4 function driving all 4 SQR pins.

With the latest firmware upgrades, it is made possible to generate sine and square waves simultaneously and we need to implement whatever the missing functions referring to the old python package.

Refer to following as a guide:

@bessman
Copy link
Collaborator

bessman commented Jun 24, 2021

We will need to add a way to check the firmware version as well, because I think WAVEGEN->SET_SQR2 is broken in the current version.

@CloudyPadmal
Copy link
Contributor Author

That's true.. in the old SQR2 function in firmware, the right timer is never turned on making it broken. I wonder if there's a way to trigger it indirectly. 🤔

Now that I'm thinking, it would be nice if we had a getter setter function to access any arbitrary register in firmware.

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

No branches or pull requests

2 participants