Check whether the software truncates a signed 24-bit correction as if it were unsigned. NDK specifies a three-byte two’s-complement value for the NH37M28LN’s NSA3649A digital tuning option, with limiters at the signed endpoints represented by 0x7FFFFF and 0x800000. A positive result above the upper endpoint can become a negative correction if only the low 24 bits are transmitted. That can look like an oscillator with the wrong tuning direction even though the sign changed before the bytes reached it.
Confirm the transmitted bytes
The signed range runs from −8,388,608 to +8,388,607. A wider host integer holding +8,388,608 becomes 80 00 00 when truncated to 24 bits. In that signed format, those bytes represent −8,388,608. An out-of-range positive request must not wrap into that code. Limit or reject it under the approved control policy and record the condition. NDK gives +512 as 00 02 00 and −4096 as FF F0 00; these examples help verify byte order and sign across C0 through C2.
Test the encoding before using it on hardware
Identify the actual digital ordering specification rather than assuming that the family name fixes the interface. Convert the requested correction using the tuning range for the ordered version. Test zero, both endpoints and values just outside the permitted range before commissioning the board. Then follow NDK’s specified update sequence and record the requested value, transmitted bytes and measured direction separately. An I²C acknowledgment cannot tell you that the host encoded the intended sign. If encoding is correct but the direction still disagrees, examine the delivery specification, tuning curve and measurement conditions before replacing the oscillator.
Related selection guide: MERLIN Crystal Timing: Oven-controlled & precision timing
Resource link: https://www.mecxtal.com.cn/en/products/ocxo.html
