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 Clock Multiplier & Divider #319

Merged
merged 21 commits into from
Feb 9, 2024

Conversation

chrisib
Copy link
Collaborator

@chrisib chrisib commented Dec 31, 2023

One last MR for 2023!

Adds a combined clock multiplier & divider script. Pretty standard functionality; each output can have an independently-controlled modifier from [/12, /8, /6, /5, /4, /3, /2, x1, x2, x3, x4, x5, x6, x8, x12]. DIN accepts the incoming clock signal, which cannot be slower than 1Hz. AIN accepts a digital reset signal.

Each output is a ~50% duty cycle square wave with a rate equal to the incoming clock speed multiplied by the clock modifier.

This script uses the same analog-to-digital input wrapper introduced in #311 to allow AIN to be used in a fashion similar to DIN with a callback on the rising and falling edges.

@chrisib
Copy link
Collaborator Author

chrisib commented Feb 5, 2024

Rebased to latest traffic branch after rebasing that to latest main.

@roryjamesallen roryjamesallen added the new script Addition of a new contrib script label Feb 6, 2024
…irst and auto_show arguments to centre_text, modify all extant calls to centre_text to use the correct auto_show behaviour
…eeded. Fix a bug in the save_config declaration
…ignal for 1s, automatically reset all channels on stop
…dditional comments for clarity. Add missing docstrings
@roryjamesallen roryjamesallen merged commit 328321c into Allen-Synthesis:main Feb 9, 2024
3 checks passed
@chrisib chrisib deleted the clock-mod branch February 9, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new script Addition of a new contrib script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants