2025-07-22 10:16 AM
I've got an STM32G491RE on a NUCLEO-G491RE board and I'm driving the DAC using TIM4's TRGO and pulling values out of a memory buffer using DMA. It was a bit of a challenge getting set up, but now that it's running it's beautiful.
What's weird is that I've got TIM4 initialized with both prescaler and counter set to 4, and since that board is running at 72 MHz that means I'm triggering the DAC every 347 ns but it's supposed to have a max of 1 Msps.
Am I correct in assuming it's just ignoring those extra timer triggers? Are there any error bits set when you "overdrive" a DAC like this?
2025-07-22 10:30 AM
I don't think it's a physical limit, in terms of gears grinding, just that it lacks the dynamics / bandwidth to slew at higher rates.
So there's not going to be an error or status flags. It's your responsibility to get the factoring right in the TIM dividers, and keep it within range, and matching the sample rate of the data. If you saturate the DMA, then you might expect to see over/under flow type errors.
>>Am I correct in assuming it's just ignoring those extra timer triggers?
No, that would be an incorrect assumption.