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
