Dear colleagues,
I am trying to figure out what really determines the frequency of the signal that you can observe in the spectrum analyzer, for example. For the sine wave, it is obvious and clear.
Let's say that we have a perfect sine wave of a frequency f (50Ohm output) feeding the 50Ohm impedance transmission line terminated with 50Ohm load. In the spectrum analyzer, we would see only one harmonic of the f frequency, and that is clear.
For the case of the square wave, in reality, there is no clean square or edge, we have rounded corners. Depending on the signal output strength, transmission line impedance, load (and other properties), that corner shape (and rise/fall time) will wary, this is how I see it.
One example from my side is that I had one device on the certification testing, we were good in the radio emissions testing for all signals, except in one (STAT_GPIO from the MCU). During the testing, we had only one low-to-high transition on that GPIO, and as soon as the transition happens, the signal analyzer reports harmonic at 320MHz (and some other higher harmonics). That signal was not repetitive, surely not at 320MHz frequency because there was only one signal transition. My foolish guess was that for those GPIOs we don't really need LP filtering since they are not repetitive and happens once per hour for example (I was so wrong). Our fix was instead of making that pin an output, we configured it as an input and activating either pull up or pull down, whether we need HIGH or LOW. That worked because it was a weak pull, and the strength of that action was much lower now.
One more way to make it more clear to me, but not fully is the following example. Let's say that we have a sine wave of the f frequency like on the image:
Spectrum analyzer would see an f frequency, pretty clear. One note, I see ^ leading and trailing edges
even though is the sine wave.
Now take a look at the next image:
The leading and trailing edges are exactly the same as on the previous image, but "stretched", and the spectrum analyzer would see the same f frequency. My assumption is, that is what makes the "frequency" parameter of the signal, or am I wrong?
So, what determines the signal frequency? Because once I know it, I know how to filter it.
Thank you in advance!
Best regards!