In this tutorial, we will interface an LED with a generic STM8S microcontroller that is controlled using a PWM signal generated from the microcontroller and we will program the microcontroller using STVD and Cosmic C compiler.