I have scale factor at MINUS -6, such as 1E-6. Is that what you meant? (you said 1E6)
Input frequency is 1E6 Hz
Sampling interval is 0.1second
No, your input frequency would be 10E6 (10 MHz). Since it's 10 Hz in reality, you would enter 1E-6 to scale the readings back by 1000000:1.
I'm afraid the unwrapping code in TimeLab is too primitive. It heavily depends on "full_cycle_period_secs" being very, very accurate. If it isn't, you get a jump in phase at every wrap.
Yes and no. The unwrapping algorithm is meant to operate on the
count, not the
period. If I'm doing a conventional STOP-START measurement between two 10 MHz sources, such that the TI readings can never exceed 100 ns, then a difference between successive readings that exceeds 50 ns indicates that a rollover occurred. In that case, the reading is still correct modulo 100 ns. The "phase unwrapper" is simply implementing a carry or borrow operation, adding more MSDs to the count. It was intended to handle this case, and that's about it. For the intended use case it's well below the noise floor of most counters.
If I use a 5370B to compare two sources that are close to 10 MHz, for example, the unwrapper works well, or at least well enough. I don't get a 2-ns error at the nominal 100-ns wrap points until I specify an input frequency that's 200 kHz off, i.e., 10.2 or 9.8 MHz. That makes sense, considering that 1/10.2E6 or 1/9.8E6 is roughly 98 or 102 ns.
So, thinking about it this way, it's not surprising that wrap errors that ordinarily don't show up in a straightforward TI measurement are suddenly a problem with a DMTD. After all the whole idea is to magnify any phase-difference errors to measure them on a counter that normally doesn't have the required resolution. What to do about it is a different question, of course.
An exercise for the proverbial student.
I'd be very suprised if there was such inconsistency in time intervals measured with the TAPR TICC. As I said, it's a timestamping counter and by design cannot be affected by start/stop ordering problems occuring near phase wrap. If there was an inconsistency, it'd have to be in the numeric library. Not likely for something as simple as a subtraction.
Yep, agreed.