STM32F446RET6 DAC to generate "an ideal square wave"
Hi,
I want to generate a bipolar square wave with a pulse width of 100us per phase using the DAC in STM32F446RET6.

But when I measured the DAC output (PA4), I found that the DAC output was not an ideal square wave, but a trapezoidal shape with a long rise time. However, according to the STM32F446RET6 manual, the DAC conversion time should be only a few microseconds. I used the DMA function and triggered the DAC output via Timer 6, but there was no improvement. How can I make the DAC output as perfect as possible?
Best,
Junzhe
