Well, there is no GOTO there is GOSUB, this was just a literal description of how it works.

16F887 has two PWM modules, which can be output at 4 different channels, read the datasheet. You can adjust duty cycle individually, just frequency will be the same.

From datasheet: - 10-bit PWM with 1, 2 or 4 output channels, programmable “dead time”, max. frequency 20 kHz.


IF Z2=07 then nothing should happen and nothing happens

For the cleanliness of experiment, I've built a completely new PCB today, and will check code for it at weekend.