Skip to main content
Visitor II
July 1, 2024
Question

Dual waveform generation on DACs of NUCLEO H7A3ZI-Q

  • July 1, 2024
  • 1 reply
  • 973 views

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.

    1 reply

    Super User
    July 1, 2024

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

    hth

    KnarfB

    Visitor II
    July 2, 2024

    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