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

Four event sources each need a timestamp. Can the PCF2131 be treated as a four-deep queue?

An instrument needs to know when its cabinet door opened and when external power changed, with records for each source. NXP describes four separate PCF2131 event inputs with timestamps. This does not establish four independent historical records when one input triggers four times. Define how many sources must be monitored and how many events per source must be retained before deciding whether the on-chip record is sufficient.

Work backward from the record the customer must recover

Make a four-row table of event source, input channel, active edge, and maximum host offline time. If a contact must record opening and closing, confirm what one channel can capture, whether later events overwrite the existing record, and when software must clear flags. If external logic combines four contacts into one pin, the device may not distinguish which moved first. Check input levels and supply state before assuming an outside signal remains valid during power loss.

Include repeated and nearly simultaneous events in acceptance testing

Generate two distinct pulses on one input, read timestamps and flags, then trigger two different channels in turn. Align arrival times with register readings and watch for new events while the host services the interrupt. For unattended logging of each event, size external storage and host wake energy for the maximum event count.

Quote the RTC separately from any controller, storage, and software required for a complete log. Use “four channels” as an acceptance requirement only once each input's purpose and required history depth are clear. NXP PCF2131 timestamp and input-channel documentation

Send us a part number or your requirements

Brand, frequency, quantity and delivery target — a useful place to start.

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.