Page 2 of 2

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Sun Oct 02, 2016 4:58 pm
by jonesrayan
Thanks for the link, but i don't understand what the jitter really is ???. can you give me an example please to understand the problem of the jitter. please

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Sun Oct 02, 2016 7:19 pm
by Giovanni
It is random variation in timings.

Giovanni

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Sun Oct 02, 2016 8:57 pm
by jonesrayan
Can you give me more detail ?? can you give me an example

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Sun Oct 02, 2016 9:45 pm
by tfAteba
Hello Giovanni, JonesRayan,

As said Giovanni, a jitter is a random time that you generally dont want. It appear on your signal.

For Example, if you want to toggle a gpio pin to have a square signal with a period of 100us. You wouldn't have 100us all the time you measure. You will for example have 101us, 99us, 103us and so on.

Here is an image to illustrate my explanation.

I hope that help.
jitter.png
jitter.png (2.07 KiB) Viewed 4682 times

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Sun Oct 02, 2016 9:49 pm
by tfAteba
Here is a better illustration!
jitter2.png
jitter2.png (2.71 KiB) Viewed 4682 times

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Sun Oct 02, 2016 10:56 pm
by jonesrayan
Merci, thanks
and how who cause this perturbation, how we avoid jitter or how we resolve this situation

Re: Question about the CH_CFG_ST_FREQUENCY

Posted: Mon Oct 03, 2016 9:03 pm
by tfAteba
Hi Jonesrayan,

and how who cause this perturbation

Jitter can be cased mainly by two case:
- External hardware (Bad electronic design).
- The software (Your program).

how we avoid jitter or how we resolve this situation

To try to avoid jitter, you have to:
- In case 1, respect some rules when you design your PCB( electronic circuit.).
- In the case 2: In my opinion, you have to take care of the CPU frequency of the micro-controller you are planing to use.
So that you don't use it in critical case. Giovanni already give you an example on a previous post viewtopic.php?p=26951#p26951.

I hope this will help and answers to your question.