XMega E series EDMA and DAC

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to get the EDMA to continuously write a signal from a lookup table to the DAC. I currently have the DAC working, but I'm a bit confused by the EDMA's registers. As I understand it, in peripheral mode, I should be able to set an EDMA channel to read from some (autoincrementing) location in memory and write to some peripheral. I see where the source location is explicitly set, but I'm unclear on the destination - is it implicitly set by the trigger source?
Similarly, does setting the DAC channel as the trigger source cause EDMA transfers to begin on conversion completion? If so, should the EDMA be set to single-shot (because each transfer will generate a trigger)?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I have posted a short test that uses EDMA with the DAC here. You can have a look at it and see if that answers some of your questions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That code answered all of my questions, thanks!