DAC not responding
- December 15, 2022
- 4 replies
- 2234 views
I'm using the STM32H745I-DISCO board.
I'm trying capture on the ADC and feed straight out on the DAC, triggered by a timer.
The timer is working, and the ADC is getting data that looks sensible.
I can see data reaching the DAC data register, but the output is sitting at rail.
My signals are:
ADC1 IN0 PA0_C T1 Arduino connector CN7 pin3
DAC1 OUT1 PA4 U3 STMOD connector P1 pin13
I'm calling HAL_DAC_Start(&hdac1, DAC_CHANNEL_1);
at startup, then
HAL_DAC_SetValue(&hdac1,DAC1_CHANNEL_1,DAC_ALIGN_12B_R,(uint32_t)Sample_ADC)
I've tried various options in CubeMX without success.
7.2. DAC1 - OUT1 connected to: only external pin
Initialized Context: Cortex-M7
DAC Out1 Settings:
Mode selected Normal Mode
Output Buffer Enable
Trigger None
User Trimming Factory trimming
Did I miss something?
