Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Low-Frequency Timing and System Power

Interpreting a Wearable's FIFO Watermark After Adding Gyroscope Records | Crystal & Oscillator Handbook

Adding gyroscope data can fill a shared FIFO faster without changing accelerometer sampling or the low-speed reference. Count entries by tag before interpreting more wakeups as faster sampling.

Watermark, source samples, and application reports have different units

A FIFO threshold can count bytes, words, records, or a specific source. One tagged inertial format uses one tag byte and six payload bytes per word. Three acceleration axes can occupy one entry, and a gyro or timestamp can add another. A fused application report can require both sources and matched times. Verify actual FIFO batching rates separately from output data rates, and check interrupt routing and host scheduling.

Worked example: two sources reach the same watermark in half the time

Assume an empty uncompressed FIFO with seven-byte entries and a 100-word threshold. At 100 acceleration entries per second it reaches the threshold in about 1 second, containing 700 logical bytes before transfer overhead. Add 100 gyro entries per second, with one of each every 10 ms and no intermediate reads. Total input is 200 entries per second, and about 0.5 seconds gives 100 words, potentially 50 from each source. Acceleration has not risen to 200 Hz.

Other phases, lower-power batching, timestamp entries, compression, overflow, or intermediate reads can change both time and composition. Equal byte totals do not establish the same number of acceleration samples or time span.

What the 32.768 kHz reference can establish

NDK NX1610SA is a 32.768 kHz tuning-fork passive crystal example for a matching oscillator circuit. Confirm exact load capacitance, equivalent series resistance, drive, startup, and routing. It is not an active clock source.

At nominal frequency, 1 second represents 32,768 cycles and half a second about 16,384. This can check host timestamps if that domain uses the reference. It is separate from the sensor's actual batching behavior.

Keep tags, notification state, and actual times

On an approved isolated bench or simulator, fix board and firmware. Compare acceleration only and both sources. For each event record pre-read level, active threshold, entries and per-tag count, source timestamps, and host read time. A threshold can stay asserted until the FIFO is drained below it. Missed edges, held status, and overwritten records call for separate evidence.

CheckRecordAvoid confusing
ThresholdUnits, live value, and trigger ruleTotal occupancy and per-source count
EntriesTags, data length, compression, and control recordsRaw bytes and sample meaning
BatchingPer-source rates and timingOutput rate and FIFO write rate
HostUnread words, read policy, notification, and overflowWakeups and fixed motion intervals
ReferenceFull specification, startup, and actual domainElectrical clock conditions and FIFO rules

Specify supported sources, tag format, effective depth, and report interval or source count. Request per-tag samples for normal and low-power modes. Approve the crystal separately.

Frequently asked questions

Does doubling the threshold guarantee one acceleration report per second? Only under validated composition, rates, depth, and drain behavior. Test the defined report window.

Do fewer notifications with the display off prove a weak crystal? Verify which sources still write, rates, threshold, and observed notifications before checking the reference separately.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.