2024-01-11 03:03 AM
I use STM32F407 Discovery board to generate analog signals using DAC with DMA transfer. The goal is to use both DAC channels to have two signals generated simultaneously. However, I cannot enable the DMA request for the second channel.
After analyzing previous posts, I understood that I need to change the settings on the low level and deal with registers.
The reference manual states:
To efficiently use the bus bandwidth in applications that require the two DAC channels at the
same time, three dual registers are implemented: DHR8RD, DHR12RD and DHR12LD. A
unique register access is then required to drive both DAC channels at the same time.
The problem is that I cannot find the way to configure these registers in STM32CubeIDE and understand what exactly do I need to change to enable the dual DAC channel converstion.
Could you answer whether I am on the right way of thinking, and if yes, what can I do to access the register values of the DAC and enable the DMA request for the second channel? Are there any other useful resources to understand how to work with the microcontroller peritherals (especially DAC) on the low level? Thank you
Solved! Go to Solution.
2024-01-11 03:14 AM - edited 2024-01-11 03:15 AM
Hi,
i see no problem on F407 :
-> go with mouse to the red marked ... system should tell you, what you doing wrong.
btw
You have set :
2024-01-11 03:14 AM - edited 2024-01-11 03:15 AM
Hi,
i see no problem on F407 :
-> go with mouse to the red marked ... system should tell you, what you doing wrong.
btw
You have set :
2024-01-11 03:33 AM
Thank you very much! It was conflicting wuth USART... no need to go deep woods :)
2024-01-11 03:40 AM
I just had a short look at the ref manual, to me it seems that you could solve this with 1 DMA channel only, when you choose one of the dual DAC data registers as peripheral target register for the DMA.