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

Thread: DMA & DAC ring buffer examples

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    13

    DMA & DAC ring buffer examples

    Hey guys! I've been looking around for some examples of using the DMA's circular buffer to drive the DAC on the 3.6. My intent is to output arbitrary waveforms, by rewriting half the buffer while the other half is being output. Do you know of some cases of people doing this? I'm not an expert and could use a bit of guidance!

  2. #2
    Junior Member
    Join Date
    Jan 2018
    Posts
    13
    Never mind, I guess I'm just bad at google. Found some useful stuff inside the Audio library. Cheers

  3. #3
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,765
    Others who are interested might want to look here, for example: https://github.com/PaulStoffregen/Audio/blob/master/output_dac.cpp

Posting Permissions

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