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 ACCEPTED SOLUTION

Accepted Solutions

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

JW

View solution in original post

2 REPLIES 2

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

JW

[BUG] DAC software trigger at STM32L431 have not s... - STMicroelectronics Community

I have learn DAC reg, and I have find CubeMX question. Thank you.