Dear All,

I would like to create a 1.5 MHz Sine Wave using TIMER + DAC + DMA.

I have started from the DAC_SignalsGeneration example for Discovery board and then I have modified the TIM_TimeBaseStructure.TIM_Period from 0xFF to 1.

I have done the measurement with the oscilloscope and in the first case (Period = 0xFF) the sine wave has a frequency of 11kHz and in the second case (Period = 1) the sine wave has a frequency of 350kHz. Sincerly I thought to obtain an higher frequency because the period is 255 times lower. Could anyone explain this behaviour?

Then I would like to know if it is possible to create a 1.5 MHz Sine Wave with Timer + DAC + DMA or if it is better to use a different solution.

Let me know!

Best regards

I would like to create a 1.5 MHz Sine Wave using TIMER + DAC + DMA.

I have started from the DAC_SignalsGeneration example for Discovery board and then I have modified the TIM_TimeBaseStructure.TIM_Period from 0xFF to 1.

I have done the measurement with the oscilloscope and in the first case (Period = 0xFF) the sine wave has a frequency of 11kHz and in the second case (Period = 1) the sine wave has a frequency of 350kHz. Sincerly I thought to obtain an higher frequency because the period is 255 times lower. Could anyone explain this behaviour?

Then I would like to know if it is possible to create a 1.5 MHz Sine Wave with Timer + DAC + DMA or if it is better to use a different solution.

Let me know!

Best regards

I think it's certainly possible to generate waves over 1-2 MHz, perhaps up to 10 MHz