A building temperature panel connected to a constant low-voltage temperature simulator exhibits slight jitter in its raw readings. After modifying the firmware to average every sixteen samples, the display stabilizes immediately but remains higher than an independent reference. Do not equate "no jitter" with accurate measurement. If the display and analog-to-digital sampling are derived from the same 24 MHz crystal oscillator, and each sampling instance coincides with the display action introducing in-phase error, averaging will only reduce random fluctuations and cannot eliminate this set of deviations in the same direction.
This section uses an independent low-voltage prototype and synthetic records to illustrate the verification method, without connecting a temperature-controlled actuator and without modifying field equipment. The focus is on identifying synchronous error that remains unchanged before and after averaging, rather than increasing screen refresh rate or adjusting the camera. The decision required from R&D is: which step—retaining the original sampling interval, reselecting the phase, or continuing to increase the number of averages—is supported by evidence. Procurement must determine whether a higher-precision reference crystal oscillator is truly needed here.
A shared 24 MHz reference can keep two derived events in phase
The panel's analog input section measures temperature as a corresponding voltage, which is then converted to digital via analog-to-digital conversion; the display section updates according to its own scan cycle. If periodic power or common reference changes occur during the scan action, they may couple into the analog sampling path. Whether the input, reference, or ground potential is affected must be determined by the specific design; one cannot assume interference solely because the board has a display. This example sets only a known synthetic repetitive error to derive what averaging would do to it.
Assuming the sampling timer and a periodic task generating display load changes both derive from the same 24 MHz reference, are divided by 24,000 to yield 1 kHz, and maintain a fixed phase under the same timer configuration, the sampling occurs at the same position within each cycle. In this idealized example, if the display-induced analog interference repeats every cycle, the resulting sampling error will have a consistent direction. Identical nominal frequencies do not guarantee actual phase locking in reality; factors such as common source origin, whether the division states remain fixed, and how the two counters are initialized must be verified. Conversely, if a more accurate crystal oscillator is used while driving the same group of dividers, the two periods will change proportionally together, and the phase relationship will not automatically desynchronize.
TAITIEN’s OX-B series includes a nominal 24 MHz CMOS oscillator in a 3.2 × 2.5 mm package, with nominal supply options of 1.8, 2.5 and 3.3 V. Confirm supply version, output load, stability over the required temperature range and the complete order code. The example uses the part as a candidate common reference for two derived timings. It does not identify a part used in a commercial panel.
Averaging reduces uncorrelated noise and can leave a synchronous offset
Assuming the accurate value of the temperature simulation input is 1000 mV, the first type of error is approximately independent zero-mean random noise, with a standard deviation of 4 mV for a single result. Under ideal conditions satisfying independence, zero mean, and similar variance, the standard deviation of the average of sixteen samples becomes 4 divided by the square root of 16, which is 1 mV. The second type of error is coherent interference encountered in every sample; a synthetic example records it as +6 mV. Adding 6 mV to each of the sixteen results and averaging yields +6 mV. Consequently, the result may exhibit significant fluctuation around 1006 mV, changing to only slight fluctuation around 1006 mV, without approaching 1000 mV.
Here, 1000 mV represents the analog input to the bench; 6 mV is not the error specification of a particular temperature sensor. If two cycles are not perfectly synchronized, sampling may slowly sweep across different phases of the interference; a deviation within a short window may manifest as a fluctuation over a longer period, and it does not necessarily mean the problem has disappeared. One should also avoid relying solely on the number of bits in the averaged result. Sixteen values produce a finer output decimal, but this does not indicate that the input has been accurately measured; if the panel finally displays the temperature as an integer, it may mask the residual original offset.
| Offline comparison | Synthetic result | What it tells you |
|---|---|---|
| Same phase, using a 16-sample average instead of a single sample | Less scatter, still biased by +6 mV | Separate random noise from synchronous offset |
| Change only to another approved sample phase | Mean changes with the analog input held fixed | Check periodic coupling and actual sampling time |
| Both phases show the same offset | This does not support a phase-dependent effect | Check gain, reference and static calibration too |
| Divider and trigger sources are unverified | Only the two frequency readings are close | Common origin and phase lock remain unverified |
Align the actual sampling instant with display activity
Hold the external low-voltage reference fixed and save the unaveraged samples. Align the first sample timestamp, sample IDs used in each average and display scanning or load activity. Use the conversion timing, not the application’s receipt time. If the logs cannot be aligned, record the uncertainty before arranging a controlled comparison.
Conduct a minimal-variable control experiment. Keep the average count, input, and operating mode constant; within the permitted prototype or offline model, vary only a single sampling phase condition, or separately compare and compare the display-load records. If the mean consistently shifts with phase changes, continue investigating periodic interference; if only short-term differences are observable and re-examination lacks directionality, do not hastily designate phase as the root cause. If the validation scheme selects a quiet sampling window, confirm that the window remains valid under permitted conditions such as temperature, display mode, and actual power supply. Writing the optimal position of a batch of prototypes as a constant for all versions will cause the next software or board revision to revert to the baseline.
The final decision on mass production acceptance involves listing short-term repeatability and the average error relative to an independent reference separately, while retaining the specified window length, display status, and time limits. Increasing the average from sixteen to sixty-four samples may halve the ideal random noise, but it also increases the wait time per group, and synchronization error does not decrease by the same proportion. If purchasing an upgraded crystal oscillator, one can only verify frequency difference, output, and timing requirements based on actual needs, rather than using "lower parts per million" as proof that "analog deviation is necessarily lower."
For an objective acceptance test, define two display states and require the difference between their means to remain within the allocated interference budget. Derive the budget from the use case and measurement uncertainty. The illustrative 6 mV is not a universal limit. Keep both measurements traceable to the same acceptance reference.
Frequently asked questions
Can a single fixed compensation value be used when the panel is slightly off at low temperatures and also slightly off at high temperatures? Calibration can handle proven stable static errors, but in this case, if the offset varies with display mode, power supply, or sampling phase, a single compensation value cannot automatically cover all states. First, group and verify these conditions, retaining only those states that have been calibrated.
Is it necessarily impossible to derive both the sampling and display clocks from the same crystal oscillator? No. Sharing a clock can make relative timing easier to control and even facilitate scheduling sampling at empirically verified quiet intervals. The issue lies in not understanding the relationship between the two actions, allowing sampling to consistently fall on the same interference position while substituting averaging for validation. The choice depends on the signals of this specific design and empirical measurements, not on scoring based on the number of crystal oscillators.
