Skip to main content
Associate II
December 3, 2024
Solved

Generate Tone Using DAC - STM32 NUCLEO-F410RB

  • December 3, 2024
  • 12 replies
  • 2040 views

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. 

This topic has been closed for replies.
Best answer by mƎALLEm

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.

 

12 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
December 3, 2024

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 "Best answer" on the reply which solved your issue or answered your question.
AMS12345Author
Associate II
December 4, 2024

@mƎALLEm 

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).

mƎALLEm
ST Technical Moderator
December 4, 2024

@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 "Best answer" on the reply which solved your issue or answered your question.