Beeper (BEEP)
The beeper hardware is a sound generation unit. This is a hardware not found in other micros and is
useful in scenarios where we need an audible output. An alarm is a good example. The beeper unit
uses LSI to generate 1kHz, 2kHz and 4kHz square wave outputs that can be directly feed to a small
piezo tweeter (not buzzer). In most STM8 micros, the beeper module's I/O pin (PD4) is not accessible
unless alternate function configuration bit is altered during code upload. However, there are few
exceptional chips like the STM8S003 in which we don't need to change any configuration bit at all. The
beeper module has dependencies with the Auto-Wake-Up (AWU) module.
Hardware Connection
Need help?
Do you have a question about the STM8 and is the answer not in the manual?
Questions and answers