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 support for setting SMB clock output to arbitrary frequency #424

Closed
wants to merge 2 commits into from

Conversation

adamgreig
Copy link
Contributor

  • Refactored si5338.c a little to reuse the multisynth related functions for both CLK3A (the SMB output and extension board clock) and the original CLK1/2 going to the LMS for sampling.
  • Added new functions to si5338.c to get/set rational/integer frequencies for CLK3A
  • Expose those functions in bladerf.c and export to the libbladeRF.h API
  • Extend "mimo master" command in bladeRF-cli to support an optional frequency

I've tested locally against an oscilloscope and this works as expected for me, though I can only measure up to ~100MHz output clocks directly.

Very open to suggestions and changes - this is mostly based on a quick chat on IRC after I implemented setting the SMB to 10MHz in a quick C program to solve my particular need.

@bpadalino
Copy link
Contributor

Maximum output frequency for driving CMOS with the si5338 is 200MHz so it should be limited to that.

Reviewing more.

@jynik
Copy link
Contributor

jynik commented Sep 15, 2015

@bpadalino - It looks like this was merged. Can I close this?

@bpadalino
Copy link
Contributor

@jynik - Committed in 01940e6 and not if I can close it first!

@bpadalino bpadalino closed this Sep 15, 2015
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

Successfully merging this pull request may close these issues.

3 participants