Customized PWM _____

figure 1: magnified signal of pulses

figure 2, total signal

I want to generate a pulse sequence as the attached pictures, which is the 8khz square wave for a period about 450us in a 20ms cycle.

here is some possible ways,

1, C-scrips: I am not good at.

2, pulse pulse: a 2ms square wave * a customized 8kz wave

3, —-

in LTSPICE, it is relative easy, but I am not so familiar with PLECS, any suggestions are welcome.

thanks.