DAC and Timers on stm32l0
Hi,
I’m trying to use the DAC provided in L0 boards with timers. Initially my clock was based on a 2097kHz, so I changed it to 32MHz (I actually changed every clock to 32MHz, I don’t know which one is the one used for timers).
But here is my issue : I’m sending 200 points through DMA to build a sinus, it works well, exept for the frequency. I tried a preriod of 1, but the result is the same with a period of 10. And even with a period of 10, my sinus’ frequency should be at 16kHz, but it is only 2kHz.. does anyone has a clue?
I didn’t touch the prescaler, with the value 0 (maybe I should change it ?).
Thank you