-
Notifications
You must be signed in to change notification settings - Fork 35
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 minimal example to documentation #4
Comments
Hi, I'm sorry you're having so much trouble. I copied your sample code and ran it and, unfortunately, it worked fine for me. I'm at a loss to explain why you are not seeing the frequency change. Perhaps a bad connection on the FNC, CLK, or MOSI pins? Note that the value returned by GetActualProgrammedFrequency will be reporting correctly even if there is no communication with the AD9833, since the calculations are done in the library, not in the chip itself. I will add another sketch showing the simplest setups. Thanks for your comments and good luck. Let me know if you find the problem. Bill |
Poor connection to FNC was indeed the problem. It was my mistake assuming the GetActual was doing comms with the chip, which led me down the wrong debugging path assuming connections were fine. I fixed FNC and now I get clean signals at the commanded frequency. |
Great! |
Hi |
Hi. I am attempting to use your library to control an AD9833 board module. I can see the default ~1000Hz sine wave on my scope. I am trying to generate a sine wave of a different frequency, say 300 Hz. I can program the frequency and read it back with GetActualProgrammedFrequency.
The sine wave on the scope is still ~1000Hz, however. The fact that I can read back a programmed frequency close to 300 Hz indicates to me that my comms are fine. The only thing I can think of is that I have to latch the new configuration somehow.
Could you please add a minimal example that changes the default waveform to a different frequency? What I am using (shown below) is close to minimal but still doesn't work. I've tried different combination of EnableOutput and Reset, etc, trying to get the frequency to change but still no dice. A minimal example would be a useful addition I think. Thanks.
The text was updated successfully, but these errors were encountered: