cancel
Showing results for 
Search instead for 
Did you mean: 

Generating PWM modulated sinewaves fails sometimes on some outputs - G431RBT6

Tobe
Senior III

I have setup Timer 8 to generate PWMs, to modulate a sinewave. I use preload, but that is only used once.

I have debugged and compared the registers, but i could not find a cause. I have also partially compared the sram bytes, but i could not find the cause there either. I checked my program too. But now after about 18 hours of searching i have to create this post.

Interestingly, it looks like the compare registers dont compare. But it looks to me, like the output is enabled (see picture). Sometimes, the complementary output stays high!

Before i post the code, i would like to know if someone knows of any hardware issues/difficulties.

A good idea how to troubleshoot this, would be welcome.

0 REPLIES 0