Now comes the question: how to improve one the clock circuit. I have a old style DIP14 size) canned oscillator with a local 100 nF cap and 39 ohms + a ferrite bead isolation from the 5 V supply. Adding an extra electrolytic cap to the oscillator supply did not change anything. The clock goes to the µC with short (~10 mm trace) and some 30 mm bodge wire to 2 74HC74 Flipflops. Does one need an extra buffer or added load capacitance ?
For the next PCB version the oscillator would likely be 3.3 V and smaller and closer to the flipflops and maybe a little longer to the µC.
When I was learning about about how the phase noise, in time, adds up as a bigger and bigger time jitter, I also compared a few oscillators I had around. You can estimate the phase noise of the oscillator by looking at the time jitter with an oscilloscope (observe the edge position of the studied clock many, many periods later after the trigger event - I was looking 1..10 seconds later after triggering).
The best in terms of phase noise (so smallest time jitter) of all I had on hand was the Rigol DG4102 DDS/Generator, followed by the internal Quartz+PLL of the DS1054Z (oscilloscope). Then, it was a SMD canned oscillator from a very old GSM mobile phone, and on the last place out of all Quartz based oscillator were some old canned oscillators from the TTL era (the ones in a 4 pins metal can, about the size of a 14 pins DIL).
Another thing about oscillators, I was "calibrating" an PlutoSDR by generating a 39 MHz square wave with the DDS generator, and looking at the 25th harmonic received with the SDR radio, a waterflow chart centered on 975 MHz. The SMD canned oscillator from the PlutoSDR was so sensitive that the 975 MHz line was visibly wiggling by simply waving my hand about 30 cm nearby the SDR. When blowing air on the ascillator, the 975 MHz line was going crazy.
Same with some nRF24L01+ unshielded 2.4GHz modules, a wave of hand nearby the module will show a frequency wiggle in the signal waterfall view.
My point is:
- all Quartz oscillators (including the canned ones) are sensitive to the surroundings. Always shield them against external fields and against surrounding (variable) capacitive couplings.
- the few square wave canned oscillators I tested from the TTL era were performing the worst in terms of jitter, when compared with more recent SMD canned oscillators, or with good (specified phase noise) canned Quartz oscillators.
- good frequency stability does not necessarily imply good phase noise performance (and thus low time jitter).
Search for low phase noise (or low jitter) Quartz oscillator part models. They are more expensive than normal ones.
Look in the datasheet for the phase noise of the Quartz canned oscillator you want to use. The low jitter ones _must_ have the phase noise specified in the datasheet. If it has no phase noise (or time jitter) guaranteed by the datasheet, then it be very bad at it.