Demo uses Component PWMMC for generating PWM pulses for motor control. In neverending loop, every 8. period of the PWM the duty cycle is increased.