PWM matrix