Skip to main content
Associate
Jul 1, 2024 1:40 PM UTC
Question

Dual waveform generation on DACs of NUCLEO H7A3ZI-Q

Hi I am using Nucleo H7A3ZIQ board. I want to generate two sine waves of different frequencies on the DACs of the board. I followed the instructions from this youtube video link https://www.youtube.com/watch?v=6Z1L6ox63j0. I was able to generate sine wave on one DAC (DAC Channel 1). But I copied the same and added the second channel but I am not getting the sine wave in the second channel. I have attached the main.c file in the attachment. Can anyone please help me with this?

This topic has been closed for replies.

2 replies

KnarfB
Super User
Jul 1, 2024 2:52 PM UTC

DAC_ALIGN_12B_R is for data alignment. It should be used on both channels.

hth

KnarfB

Associate
Jul 2, 2024 10:14 AM UTC

I tried both the cases of using DAC_ALIGN_12B_R (in both the channels) for data alignment as well as 12B_R in one and 12B_L in one channel