Pwm generation and detection. It is the simplest method for PWM generation.