Question
LL Library, CubeMX and DAC not working (F429) and do we really need the software trigger?
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration----------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DAC_Init();
/* USER CODE BEGIN 2 */
uint16_t bitValue = 1;
/* USER CODE END 2 */
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
while (bitValue < 4095)
{
LL_DAC_ConvertData12RightAligned(DAC, LL_DAC_CHANNEL_1, bitValue);
LL_DAC_TrigSWConversion(DAC, LL_DAC_CHANNEL_1);
LL_DAC_ConvertData12RightAligned(DAC, LL_DAC_CHANNEL_2, bitValue);
LL_DAC_TrigSWConversion(DAC, LL_DAC_CHANNEL_2);
bitValue++;
}
bitValue = 1;
}I am trying to get the DAC to just output something. I cannot seem to get anything out of the DAC outputs. Am I missing something in my code? Also, is there a way to do this without triggering the DAC? Cant we just tell it what to output and it will just adjust the output with out needing the trigger?
