In this tutorial we learn how to generate PWM signals using PIC PIC16F877A. PIC MCU has a special module called Compare Capture module (CCP) which can be used to generate PWM signals.