2024-03-23 05:38 PM
I am use STM32L431RCT6,and my CubeMX config is this:
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.
Solved! Go to Solution.
2024-03-24 01:26 AM
Read out and check/post content of DAC and relevant GPIO registers.
JW
2024-03-24 01:26 AM
Read out and check/post content of DAC and relevant GPIO registers.
JW
2024-09-20 08:40 PM
[BUG] DAC software trigger at STM32L431 have not s... - STMicroelectronics Community
I have learn DAC reg, and I have find CubeMX question. Thank you.