Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Direct Digital Synthesis using PWM and a wavetable (Teensy 3)

  1. #1

    Direct Digital Synthesis using PWM and a wavetable (Teensy 3)

    Hi everyone

    I'm trying to put together a little synthesizer using PWM as the audio output. I've read about Direct Digital Synthesis (DDS) and I sort of understand how it works (I've never tried anything this advanced before), but I'm confused as to how I'd set it up. I'll explain what I understand so far (or what I think I understand!).

    A counter is set up so that it reads duty cycle values from the wavetable
    The duty cycle values need to be fed to the PWM signal
    The wavetable counter timer uses a fixed clock frequency, so to change the frequency the increment value needs to change

    At this stage I just need to be able to enter a frequency value into a variable and have the PWM pin spit out that frequency - I'll worry about MIDI and polyphony later.

    I'm still fairly new to programming - especially microcontroller stuff, so just assume I'm a complete noob. Any help would be greatly appreciated!

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    This might help?

    You'll probably really like the upcoming audio shield and library!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts