Skip to main content
MFuch
Associate
February 20, 2019
Solved

What's minimal possible jitter when using STM32 DAC with DMA?

  • February 20, 2019
  • 6 replies
  • 1427 views

Hi,

I need to generate a special waveform via DAC on a STM32F446. DAC samples must be generated at about 240kHz but with minimal jitter. A DMA channel with timer trigger will provide the data from internal RAM or flash. What best case - minimal - jitter can I expect on my output signal (between two DAC samples)? I expect jitter to be caused by STM32 internal arbitration etc.

Matthias

This topic has been closed for replies.
Best answer by MikeDB

Whilst the DMA delivers the data to the DAC module, I believe the data is then buffered and latched onto the actual D-A though timer updates which shouldn't have any jitter. So only problem is if you are running the processor so hard that the internal busses are full, at which point the error is flagged.

On the device I use it says the DMAs are on different DMA streams so if you do hit any problems you could try the other DAC.

6 replies

waclawek.jan
Super User
February 20, 2019

To avoid DMA-related jitter, use timer-based trigger (i.e. transfer from holding to output register) in DAC. Read the DAC trigger selection subchapter in RM.

JW

MikeDB
MikeDBBest answer
Senior II
February 20, 2019

Whilst the DMA delivers the data to the DAC module, I believe the data is then buffered and latched onto the actual D-A though timer updates which shouldn't have any jitter. So only problem is if you are running the processor so hard that the internal busses are full, at which point the error is flagged.

On the device I use it says the DMAs are on different DMA streams so if you do hit any problems you could try the other DAC.

MFuch
MFuchAuthor
Associate
February 20, 2019

Thanks that seems to be the trick. I will try.

MikeDB
Senior II
February 20, 2019

There's also two STM application notes on getting the best performance out of the DACs.

http://www.st.com/resource/en/application_note/dm00129215.pdf

http://www.st.com/resource/en/application_note/cd00259245.pdf

Amel NASRI
ST Technical Moderator
February 20, 2019

Hi @MikeDB​ ,

Could you please edit your last post to put correct references to the application notes?

Thanks,

Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
MikeDB
Senior II
February 20, 2019

Sorry - did it from my phone and it looked ok on that