Skip to main content
Associate III
June 20, 2024
Solved

Speaker output in STM32H563ZIT6

  • June 20, 2024
  • 5 replies
  • 1234 views

HI,

  1. I would like to use the speaker output on the STM32H563ZIT6. I reviewed the wiki, but there aren't any references about how to play audio with the speaker output. Is it possible to enable this output to play audio?

  2. Does the STM32H563ZIT6 have built-in capability to directly convert this digital data to an analog signal for speakers without using an external CS43L22 DAC (Digital-to-Analog Converter)?

Regards,

Berlin

Best answer by AScha.3

Hi,

>I would like to use the speaker output on the STM32H563ZIT6

There is NO "speaker output" on the STM32H563 .

>Does the STM32H563ZIT6 have built-in capability to directly convert this digital data to an analog signal for speakers without using an external CS43L22 DAC 

Yes, as @Tesla DeLorean wrote, you can use the internal DAC , but its not an oversampling audio DAC, its just a plain 12bit (dual) DAC , maybe ok, if you just want some pocket radio quality or test signal generation.

And you need an amplifier after this DAC , to drive something like a speaker; the DAC cannot do this.

5 replies

Associate III
June 21, 2024

anyone please answer me

Associate III
June 22, 2024

ANY ONE  REPLY ME

Tesla DeLorean
Guru
June 22, 2024

Datasheet says it has two 12-bit analogue DAC's

Feed with wave from data from a pattern buffer with DMA paced with a TIM

Add an OP-AMP to add speakers, see other MCU examples for method to do that.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
AScha.3
AScha.3Best answer
Super User
June 22, 2024

Hi,

>I would like to use the speaker output on the STM32H563ZIT6

There is NO "speaker output" on the STM32H563 .

>Does the STM32H563ZIT6 have built-in capability to directly convert this digital data to an analog signal for speakers without using an external CS43L22 DAC 

Yes, as @Tesla DeLorean wrote, you can use the internal DAC , but its not an oversampling audio DAC, its just a plain 12bit (dual) DAC , maybe ok, if you just want some pocket radio quality or test signal generation.

And you need an amplifier after this DAC , to drive something like a speaker; the DAC cannot do this.

"If you feel a post has answered your question, please click ""Accept as Solution""."
December 16, 2025

Short answer: No, not directly.

The STM32H563ZIT6 does not include a built-in speaker driver or an audio DAC capable of directly driving a speaker. The internal DACs are intended for low-power control or reference signals, not audio playback.

To play audio, you need to generate the signal using PWM or DAC and then pass it through an external audio amplifier or audio codec before connecting a speaker.

During development, testing with simple reference audio signals can also help isolate signal quality issues. One example of a basic online tool is https://fixmyspeakercleaner.com/