Skip to content

Instantly share code, notes, and snippets.

@samyk
samyk / sin134-pdb-dma-dac.c
Last active September 8, 2020 19:17
134kHz sine wave w/DMA, DAC and PDB on Teensy 3.6
// Generating a 134kHz sine wave using Teensy 3.6 with virtually
// 0 cpu usage by filling the DAC up via DMA triggered by PDB
// -samy kamkar
#include <DMAChannel.h>
#include "pdb.h"
DMAChannel dma(false);
static volatile uint16_t sinetable[] = {