Hello,
Following this suject: https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-100Hz-PWM-with-dutycycle-change/m-p/13548...
I noticed that, even with the driver modification provided in the above subject, when using a frequency of 100Hz, the pwm is glitching (pwm stays high for too long). I use this pwm with an LED so, sometimes, it flashes. And I don't want it to sparkle like that. The issue does not occure for high frequency (or I can't see it appear).
I have this problem with my project but I can reproduce it with the example provided by NXP (sctimer pwm with dutycycle change). The glitch appears more when using debug in the while(1) of the project (in order to take some time of the µC).
Edit1 : I can see the glitch with the oscilloscope for a PWM at 10kHz.
Edit2 : The glitch appears on the 4 channels I am using. I can provide pictures of the glitch on channels output 2 and 4. Channel 4 has a dutycycle of 0 and the output goes to 1 for 6.6µs (so there's a short blink). At the same time, the output 2 stays high for an extra 6.6µs.



Thanks for helping me.
François