One pulse per second tells you how often pulses occur, not how long the high level lasts. The Taitien DT-5151 specifies a typical pulse width of 20 μs. A 1 ms polling loop can miss every pulse even when the source is working.
Separate the pulse interval from its width
A one-pulse-per-second signal, or 1PPS, gives a test stand or data logger a second boundary. There is a designated timing edge each second. The output state for the rest of that second depends on the waveform definition. Taiwan-based Taitien specifies the DT-5151's 1PPS output as 3.3 V CMOS with a typical 20 μs pulse width and a separate output load condition. The typical value gives the scale of the pulse, not a guaranteed minimum across temperatures and terminations. For receiver design, check the controlled specification or obtain evidence covering the required conditions.
A controller polling an input observes whether the line is high or low at that instant. It does not capture changes between observations. Even if firmware reads exactly a thousand times a second, a fixed phase relationship can cause it to miss the pulse for many consecutive seconds. If changing logging rate makes detection start working, the source may not have changed at all. The new read time may simply land inside the narrow pulse.
Worked example: the waveform is present, but every poll reads low
Suppose the source supplies an ideal 20 μs high pulse every 1 s and the controller reads the pin every 1 ms. In one second the rising edge occurs at 0 μs and the falling edge at 20 μs. The controller reads at 150 μs, 1,150 μs, 2,150 μs and so on. Every read misses the high interval. If the phase relationship repeats in the next second, the result repeats too. The timings and phase are illustrative, not measured jitter for an oscillator, controller or firmware build.
A 1 ms period is 1,000 μs. In an ideal example with uniform relative polling phase, the high interval occupies 20÷1,000=2% of that period. This describes an ideal hit opportunity for one pulse with random relative phase. It is not a measured miss rate, and the fixed-phase example can miss all pulses. It is also not the 1PPS waveform's duty cycle. That equals 20 μs divided by 1 s, or 0.002%. The same pulse width answers different questions depending on the denominator.
| Comparison | Example value | Meaning |
|---|---|---|
| Interval between 1PPS events | 1 s | How often a time boundary occurs |
| Width of one high pulse | 20 μs | How long the input remains high |
| Illustrative polling interval | 1 ms | Time between actual observations |
| Two ratios | 2% and 0.002% | Fraction of a polling period and waveform duty cycle are different |
If polling is unavoidable, avoiding misses in principle depends on keeping the actual maximum interval between reads shorter than the effective minimum high time. Input synchronization, filtering and execution latency also matter. An average 10 μs poll rate does not establish that no two reads are farther apart. Firmware changes, bus load and times when interrupts are disabled can increase the longest interval. Prefer evaluating an edge capture path that meets the minimum pulse width rather than accepting a short software sleep setting as evidence.
Capture the edge in hardware and read the timestamp later
If the receiver has a timer capture input, it can latch a local counter on the designated edge and let software read it afterward. Read latency does not then get mistaken for arrival time. The hardware still has thresholds, minimum pulse width, synchronization and possible filtering. A capture feature alone does not prove that a signal is recognizable after clamping, isolation or level translation. An interrupt without a hardware timestamp may reliably signal that an event occurred, but should not be assumed to have the same timing accuracy.
During first-article testing, observe the source output and receiving pin separately. Verify load and level translation and measure the high interval. Then align event flags and latched counts to the reference edge and check for gaps or duplicate records over consecutive seconds. Test a busy processor, scheduling delays and power recovery, as applicable. If the input filter is configurable, use the production setting. A bench pass with filtering off does not qualify production with it on.
If the system needs both event counts and time alignment, log whether each event was captured, which edge was used and the timestamp offset from an independent reference. If both edges interrupt, verify that one pulse does not count as two seconds. If a slower input needs pulse stretching, characterize the delay and variation of the resulting edge. A stretched pulse may be easier to observe while changing the edge used for alignment. The time-error budget and intended use determine whether that is acceptable.
Evidence for purchasing and first-article testing
| Check | Evidence to retain | Mistake it prevents |
|---|---|---|
| Output specification | Full model, supply, output standard and whether width is typical or minimum | Treating a typical value as a requirement guaranteed across lots |
| Board measurements | Source and receiver waveforms, load, thresholds and filter settings | Ignoring changes from cabling or isolation |
| Capture setup | Edge, capture clock, permitted pulse width, buffering and timestamp definition | Treating software read time as arrival time |
| Continuous data | Sequence, missed events, reference alignment and stressed retest | Claiming no misses from one screenshot |
| Change review | Supplier document, output option and new receiving path | Equating two different parts that both say 1PPS |
Ask the supplier for the minimum pulse width, electrical levels and load the application requires. “Once per second” is not a receiver compatibility statement. Engineering should check the capture path first. If the source waveform is present and polling misses it, a more accurate oscillator that still produces short pulses may not help.
If the receiver already has a minimum pulse specification, use a known compliant pulse source to test the receiving path independently. Verify capture logic, event counts and timestamping near the minimum under allowed input conditions. Then reconnect the actual source for the combined test. A miss can then be isolated to an input path that cannot detect short pulses or a board-level waveform that no longer reaches the required conditions. Do not change the timebase or filter between comparisons, or the results answer different questions.
Record the first second after power restoration separately. A receiver still initializing may produce no application record while the source is already active. If the system must use the first valid pulse after power-up, verify receiver readiness and the first confirmed event together.
Frequently asked questions
The scope sees a pulse each second. Does that mean the controller receives every pulse?
No. The scope trigger and controller capture path differ. Check that the actual input meets capture requirements and that firmware passes every event to the application.
Will refreshing the displayed 1PPS indicator more often fix missed pulses?
No. Display refresh and input capture are separate. Fix the receiving path first. A faster display cannot recover a pulse that occurred between observations.
