Skip to main content
klaasdc
Associate III
October 16, 2010
Question

STM8S PWM jitter

Posted on October 16, 2010 at 18:09

STM8S PWM jitter

    This topic has been closed for replies.

    12 replies

    klaasdc
    klaasdcAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Hi lowpowermcu,

    You understand the code correctly. I'm implementing a digital tachometer that controls an analog needle attached to a servo.

    The suggestion you made is a very good idea. I had not considered that before. I will try it now :)

    However, I'm still a bit worried by the fact that I can consistenly make the next timer's output a rubbish value by calling TIMx_SetCounter(0) at a certain frequency. I'm beginning to fear it might be some sort of bug. When I have some time I might verify this with a pulse generator as I can't believe it.

    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Hi klaas,

    Felicitation !!!

    regards,

    MCU Lüfter