How to run DAC in STM32F107VC using HAL functions?
Hello. I have written a program to run the DAC in the STM32F107VC and I have used STM32CubeMX and HAL functions. But I don't see any waveform in the DAC output (PA4 pin). I was able to run the DAC using set the DAC registers. But I don't succeed with HAL functions. I use this functions:
MX_DAC_Init(); // generated with STM32cubeMX
HAL_DAC_Start(&hdac, DAC_CHANNEL_1);
HAL_DAC_SetValue(&hdac, DAC_CHANNEL_1, DAC_ALIGN_12B_R, 1800);With 1800 value, I should have a voltage of 1.4v at the output. Also, the DAC settings in STM32CubeMX are as follows:
Output buffer: Enable
Trigger: None
According to the training provided in this link.
Thank you for your guidance.