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

DDS Support for Arduino Zero (and its built-in DAC) #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Aug 17, 2015

  1. Configuration menu
    Copy the full SHA
    fdaa602 View commit details
    Browse the repository at this point in the history
  2. - Fixed a few problems with Arduino Zero support

    - Added a 10-bit sine table, probably wasteful considering its stored in 16-bit integers.
    - Added "DDS_MAX_COMPARATOR" and "DDS_MAX_ACCUMULATOR" macros to hide some math and imrpove readability.
    - Simplified calcFrequency and made it work for arbirary frequencies (with/without default refclk)
    - Simplified getDutyCycle().  I think its more understandable now, and works for various combinations of accumulator size and lookup table size.
    
    Tested on both an Arduino Zero and an Arduino UNO.  Seems to work, but YMMV.
    jake-b committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    a581404 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2015

  1. Updated examples/DDS/DDS.ino to include the ISRs for the Arduino Zero.

    NOTE: this sample won't really work for the HamShield ont he Ardiuno Zero as it will
    Besides the logic voltage issue, it will be playing its tones out of AO, rather
    than D3 or D11.  Hook up your oscilloscope to A0 to see the waveform.
    jake-b committed Aug 18, 2015
    Configuration menu
    Copy the full SHA
    11f5e8b View commit details
    Browse the repository at this point in the history