Question of dac output frequency
Hi,
Recently I used STM32F407 to develop firmvare code of external DAC device.
In order to obtain a sinewave output from dac, I choose TIM2 to trigger interrupt.
TIM2_period is configured as 167, and TIM2_prescaler is configured as 0. The sysclk is 168MHz. The points in a period of sinewave are 300.
According to the configuration above, the frequency of sinewave should be 168M/168/300=3.3khz. But the actual frequecny is 551.8hz. It seems a huge difference between calculation and actual situation.
Could you give me an explanation about this phenomenon?
