This application note provides a short description of how to use the STM8L-DISCOVERY as a basic wave generator for various waveforms such as sine, sinc (sin(x)/x), square, ramp and sawtooth signals. More generally, this document describes STM8L on-chip DAC (digital-to-analog converter) peripheral settings when used with the DMA (direct memory access) controller.