2024-09-15 11:32 AM - edited 2024-09-15 11:32 AM
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.