cancel
Showing results for 
Search instead for 
Did you mean: 

Why DAC output nothing in software trigger?

Wshuo.1
Associate II

I am use STM32L431RCT6,and my CubeMX config is this:

Wshuo1_0-1711240505296.png

And my code is:

```

uint32_t data = 128;
ret = HAL_DAC_SetValue(&hdac1, DAC_CHANNEL_1, DAC_ALIGN_8B_R, data);
if(ret) {
HAL_Delay(10);
}
ret = HAL_DAC_Start(&hdac1, DAC_CHANNEL_1);
if(ret) {
HAL_Delay(10);
}

```

And if my Trigger method use None, measure is OK(middle with VCC).

I do not know why.

1 REPLY 1

Read out and check/post content of DAC and relevant GPIO registers.

JW