DMA write to multiple destinations from single source

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I attached an example project of attempting to write values from a single ADC to two DACs.  The long-term goal is to insert a filter before the second DAC and compare the analog signals, but I'm keeping this example as simple as possible for troubleshooting.

My strategy is to setup a chain of two TDs with the same source, but a different destination for each.

The attached code example has two  scenarios. The first scenario only attempts to write to a single DAC, and this is successful. The second scenario attempts to write to both DACs, but only successfully writes to the second DAC, and the first DAC surprisingly remains unchanged.

This thread seems somewhat related, although the code example links are unavailable.

Multiple TD's for different destination adresses

The above thread suggests setting-up two DMA channels with a single TD each, but it seems like it should also be possible to configure this with a single channel and multiple TDs.

0 Likes
1 Reply