cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Tone Using DAC - STM32 NUCLEO-F410RB

AMS12345
Associate II

Is possible to generate different tone using dac peripheral for triangle wave form generation using PCM sample in stm32 nucleo F410RB controller. Is it possible to generate tone using wav data(pcm array).
1.If possible to generate need to give wav format or not needed?
2. If not which stm32 development board supports dac to generate tones using pcm array's. 

3 REPLIES 3
SofLit
ST Employee

Hello,

Please refer to this application note AN3126 "Audio and waveform generation using the DAC in STM32 products"

For wav usage please refer to the sections: 2.2.2 Audio wave file specifications and 2.3 Audio wave player implementation

Any STM32 having DAC peripheral supports this implementation ex: STM32F410 (only one DAC channel available) for Mono configuration. For stereo you need two DAC channels ex: STM32F407: Section 1.3 Dual channel mode

Hope it answers your question.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

@SofLit 

Thank you for the solution. Using any STM32 board which supports dac peripheral able to generate tone and audio right? For me one channel is enough to generate audio, so using STM32 nucleoF410RB able to generate different tones by PCM array of .wav files (should not input audio file, instead pcm array of audio files).


@AMS12345 wrote:

Using any STM32 board which supports dac peripheral able to generate tone and audio right? 


Yes, any STM32 MCU having DAC peripheral including STM32F410RB which is on Nucleo-F410RB board.

Please accept my previous comment if it answered your original question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.