Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 4 months ago.
Waveform's frequency
Hey it's Florent!
I don't understand in your code how you set the frequency of the output: the DMA word transfer is triggered at I2S rate right?
Question relating to:
1 Answer
9 years, 4 months ago.
Hi Florent, Nice to meet you again )
main.cpp
struct I2S_InitTypeDef my_I2S_InitType 's member I2S_AUDIOFREQ_44K, is Frequency of I2S output. But It's depend on I2S PLL Setting, #define PLLI2S_N 271 #define PLLI2S_R 2
pls refer to STM32CubeMX.
Hey! It's sampling frequency, but I'm talking about waveform frequency. For exemple for your synthesizer, how do you output a 440Hz sinewave and then a 780Hz sinewave?
For example, with STM32F334's internal DAC, you can use TIM6 to trigger DMA transfer to the DAC for setting the frequency of the output. But I don't know how to do it with I2S DAC
posted by 18 Aug 2015