Vicne:
Oh, and by the way, I tested the symmetric situation...
Excellent. Thank you.
I guess it makes sense according to your analysis.
Yes, it does.
I find it really strange that nobody noticed that before however...
Well, a few possibilities come to mind...
• Timing. Notice the code I posted includes some while conditions. They are used to synchronize the rest of the code to timer 1. Without those the problem is less severe / less likely to occur.
• LED quality. The burst is so short some LEDs may not produce visible light.
• Inertia. When driving a motor (any "large" load) the short burst is unlikely to have an effect.